diff --git a/src/config/getData2.js b/src/config/getData2.js index f09db96..e2840c0 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -2,8 +2,8 @@ import {post, post2} from '@config/http.js' // import store from '../vuex/store' // 手持登录 -export const loginApi = (user, password) => post('api/pda/handlogin', { - user: user, +export const loginApi = (user, password) => post('api/pda/login', { + username: user, password: password }) // 手持登陆查询菜单权限 @@ -84,7 +84,7 @@ export const taskOperation = (uuid, type) => post2('api/hand/taskoperation', { * 搬运任务 */ // 1.1查询区域点位 -export const handQueryPoint = (uuid, type) => post2('api/pda/handling/queryPoint', {}) +export const handQueryPoint = (uuid, type) => post('api/pda/handling/queryPoint', {}) // export const handQueryPoint = () => { // let res = { // code: '1', @@ -94,7 +94,7 @@ export const handQueryPoint = (uuid, type) => post2('api/pda/handling/queryPoint // } // 1.2任务生成 -export const createTask = (sid, scode, spcode, nid, ncode, npcode) => post2('api/pda/handling/createTask', { +export const createTask = (sid, scode, spcode, nid, ncode, npcode) => post('api/pda/handling/createTask', { start_region_id: sid, start_region_code: scode, start_point_code: spcode, diff --git a/src/config/http.js b/src/config/http.js index e8e999e..200d9a6 100644 --- a/src/config/http.js +++ b/src/config/http.js @@ -66,7 +66,7 @@ export const post = (sevmethod, params) => { export const post2 = (sevmethod, params) => { return new Promise((resolve, reject) => { - axios.post(`${store.getters.acsUrl}/` + sevmethod, params) + axios.post(`${store.getters.acsip}/` + sevmethod, params) .then(response => { resolve(response.data) }, error => { diff --git a/src/pages/login/Home.vue b/src/pages/login/Home.vue index 3deecad..2d7146d 100644 --- a/src/pages/login/Home.vue +++ b/src/pages/login/Home.vue @@ -15,20 +15,20 @@