123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- import axiosApi from './AxiosApi.js'
- const apiList = {
- page: {
- url: `/authority/dispatchRecord/page`,
- method: 'POST'
- },
- pageException: {
- url: `/authority/dispatchException/page`,
- method: 'POST'
- },
- save: {
- url: `/authority/dispatchException`,
- method: 'POST'
- },
- update: {
- url: `/authority/dispatchException`,
- method: 'PUT'
- },
- delete: {
- url: `/authority/dispatchException`,
- method: 'DELETE'
- },
- preview: {
- method: 'POST',
- url: `/authority/dispatch/preview`
- },
- selectLogs: {
- method: 'POST',
- url: `/authority/dispatchRecord/selectLogs`
- },
- getPointInfo: {
- method: 'POST',
- url: `/authority/plc/getPointInfo`
- }
- }
- export default {
- page (data) {
- return axiosApi({
- ...apiList.page,
- data
- })
- },
- pageException (data) {
- return axiosApi({
- ...apiList.pageException,
- data
- })
- },
- save (data) {
- return axiosApi({
- ...apiList.save,
- data
- })
- },
- update (data) {
- return axiosApi({
- ...apiList.update,
- data
- })
- },
- delete (data) {
- return axiosApi({
- ...apiList.delete,
- data
- })
- },
- selectLogs(data){
- return axiosApi({
- ...apiList.selectLogs,
- data
- })
- },
- getPointInfo(){
- return axiosApi({
- ...apiList.getPointInfo
- })
- },
- clearPlcPoint(point,flag){
- return axiosApi({
- method: 'GET',
- url: `/authority/plc/clearPlcPoint`,
- data: {point: point,flag:flag}
- })
- },
- resendCommand(id){
- return axiosApi({
- method: 'GET',
- url: `/authority/plc/resendCommand`,
- data: {id: id}
- })
- },
- unlockStorge(id,moveFlag){
- return axiosApi({
- method: 'GET',
- url: `/authority/dispatchRecord/unlockStorge`,
- data: {id: id,moveFlag: moveFlag}
- })
- },
- executeNextNode(id){
- return axiosApi({
- method: 'GET',
- url: `/authority/dispatchRecord/executeNextNode`,
- data: {id: id}
- })
- },
- cancelTaskNodeLog(id){
- return axiosApi({
- method: 'GET',
- url: `/authority/dispatchRecord/cancelTaskNodeLog`,
- data: {id: id}
- })
- },
- taskNodeCallback(data){
- return axiosApi({
- method: 'POST',
- url: `/authority/taskNode/taskNodeCallback`,
- data
- })
- }
- }
|