123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- /*********************** 【锁定记录、出入库记录】API ********************/
- import axiosApi from '../AxiosApi.js'
- const apiList = {
- getList: {
- method: 'POST',
- url: `/authority/warnLog/all`
- },
- page: {
- method: 'POST',
- url: `/authority/warnLog/page`
- },
- update: {
- method: 'POST',
- url: `/authority/warnLog/update`
- },
- save: {
- method: 'POST',
- url: `/authority/warnLog`
- },
- updateStatus: {
- method: 'GET',
- url: `/authority/warnLog/updateStatus`
- },
- remove: {
- method: 'DELETE',
- url: `/authority/warnLog`
- },
- delete: {
- method: 'POST',
- url: `/authority/warnLog/delete`
- },
- list: {
- method: 'POST',
- url: `/authority/warnLog/query`
- },
- preview: {
- method: 'POST',
- url: `/authority/warnLog/preview`
- },
- export: {
- method: 'POST',
- url: `/authority/warnLog/export`
- },
- import: {
- method: 'POST',
- url: `/authority/warnLog/import`
- },
- resend: {
- method: 'POST',
- url: `/authority/dispatchException/resend`
- },
- complete: {
- method: 'POST',
- url: `/authority/dispatchException/complete`
- },
- connected: {
- method: 'POST',
- url: `/authority/taskNode/getConnectedNodes`
- },
- getStorageNode: {
- method: 'POST',
- url: `/authority/taskNode/getResourceStorge`
- },
- nodeCallback: {
- method: 'POST',
- url: `/authority/dispatchException/nodeCallback`
- }
- }
- export default {
- getList (data) {
- return axiosApi({
- ...apiList.getList,
- data
- })
- },
- page (data) {
- return axiosApi({
- ...apiList.page,
- data
- })
- },
- save (data) {
- return axiosApi({
- ...apiList.save,
- data
- })
- },
- update (data) {
- return axiosApi({
- ...apiList.update,
- data
- })
- },
- updateStatus (data) {
- return axiosApi({
- ...apiList.updateStatus,
- data
- })
- },
- remove (data) {
- return axiosApi({
- ...apiList.remove,
- data
- })
- },
- delete (data) {
- return axiosApi({
- ...apiList.remove,
- data
- })
- },
- list (data) {
- return axiosApi({
- ...apiList.list,
- data
- })
- },
- check (code) {
- return axiosApi({
- method: 'GET',
- url: `/authority/warnLog/check/${code}`
- })
- },
- checkField (data) {
- return axiosApi({
- method: 'POST',
- url: `/authority/warnLog/check`,
- data
- })
- },
- preview (data) {
- return axiosApi({
- ...apiList.preview,
- data
- })
- },
- export (data) {
- return axiosApi({
- ...apiList.export,
- responseType: "blob",
- data
- })
- },
- import (data) {
- return axiosApi({
- ...apiList.import,
- data
- })
- },
- resend (data) {
- return axiosApi({
- ...apiList.resend,
- data
- })
- },
- complete (data) {
- return axiosApi({
- ...apiList.complete,
- data
- })
- },
- connected (data) {
- return axiosApi({
- ...apiList.connected,
- data
- })
- },
- getStorageNode (data) {
- return axiosApi({
- ...apiList.getStorageNode,
- data
- })
- },
- nodeCallback (data) {
- return axiosApi({
- ...apiList.nodeCallback,
- data
- })
- }
- }
|