123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- import { axios } from '@/utils/request'
- import { stringify } from 'qs'
- /**
- * page func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function getSbStopLogPage (parameter) {
- return axios({
- url: '/sb/stop-logs/page?' + stringify(parameter),
- method: 'get',
- headers: {
- 'Content-Type': 'application/json;charset=UTF-8'
- }
- })
- }
- /**
- * add func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function addSbStopLog (parameter) {
- return axios({
- url: '/sb/stop-logs',
- method: 'POST',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- data: parameter
- })
- }
- /**
- * update func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function updateSbStopLog (parameter) {
- return axios({
- url: '/sb/stop-logs/' + parameter.id,
- method: 'PUT',
- data: parameter
- })
- }
- /**
- * fetch single func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function fetchSbStopLog (parameter) {
- return axios({
- url: '/sb/stop-logs/' + parameter.id,
- method: 'get',
- headers: {
- 'Content-Type': 'application/json;charset=UTF-8'
- }
- })
- }
- /**
- * query list func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function querySbStopLog (parameter) {
- return axios({
- url: '/sb/stop-logs?' + stringify(parameter),
- method: 'get',
- headers: {
- 'Content-Type': 'application/json;charset=UTF-8'
- }
- })
- }
- /**
- * delete batch func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function deleteSbStopLogs (parameter) {
- return axios({
- url: '/sb/stop-logs',
- method: 'DELETE',
- data: parameter
- })
- }
- /**
- * delete single func
- * parameter: { }
- * @param parameter
- * @returns {*}
- */
- export function deleteSbStopLog (parameter) {
- return axios({
- url: '/sb/stop-logs/' + parameter.id,
- method: 'DELETE',
- data: parameter
- })
- }
- /**
- * export file
- * parameter: { }
- * @param parameter :
- * @returns {*}
- */
- export function exportSbStopLog (parameter) {
- return axios({
- url: '/sb/stop-logs/export?' + stringify(parameter),
- method: 'get',
- headers: {
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- responseType: 'blob'
- })
- }
- /**
- * export file
- * parameter: { }
- * @param parameter :
- * @returns {*}
- */
- export function exportSbStopLog2 (parameter) {
- return axios({
- url: '/sb/stop-logs/export2?' + stringify(parameter),
- method: 'get',
- headers: {
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- responseType: 'blob'
- })
- }
|