diff --git a/src/config/getData2.js b/src/config/getData2.js index e2840c0..92a8ca3 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -102,3 +102,20 @@ export const createTask = (sid, scode, spcode, nid, ncode, npcode) => post('api/ next_region_code: ncode, next_point_code: npcode }) + +/** + * 点位绑定解绑 + */ +// 1.1 查询缓存区点位状态 +export const pointQueryPoint = () => post('api/pda/point/queryPoint', {}) +// 1.2组盘查询 +export const pointQueryVehicle = (code, vcode) => post('api/pda/point/queryVehicle', { + point_code: code, + vehicle_code: vcode +}) +// 1.3点位绑定解绑 +export const pointBinding = (code, vcode, flag) => post('api/pda/point/binding', { + point_id: code, + vehicle_code: vcode, + flag: flag +}) diff --git a/src/config/http.js b/src/config/http.js index 200d9a6..cc9f7a9 100644 --- a/src/config/http.js +++ b/src/config/http.js @@ -14,11 +14,7 @@ axios.interceptors.request.use( } token && (config.headers.Authorization = token) if (config.method === 'post') { - if (!config.data.flag) { - config.data = config.data - } else { - config.data = config.data.formData - } + config.data = config.data } return config }, diff --git a/src/pages/login/Home.vue b/src/pages/login/Home.vue index 2d7146d..298fe04 100644 --- a/src/pages/login/Home.vue +++ b/src/pages/login/Home.vue @@ -21,6 +21,7 @@
| 载具编码 | +
|---|
| {{e.vehicle_code}} | +