This commit is contained in:
2022-12-15 18:36:13 +08:00
parent 40bca30800
commit 1129a32535
3 changed files with 12 additions and 12 deletions

View File

@@ -1,28 +1,28 @@
import {post} from '@config/http.js'
import {post2} from '@config/http.js'
// 测试接口返回结果
export const test = () => post('test/1', {})
export const test = () => post2('test/1', {})
// 手持登录
export const loginApi = (user, password) => post('mobile/auth/login', {
export const loginApi = (user, password) => post2('mobile/auth/login', {
username: user,
password: password
})
// 手持登陆查询菜单权限
export const authority = (id) => post('api/pda/authority', {
export const authority = (id) => post2('api/pda/authority', {
accountId: id
})
// 修改密码
export const updatePass = (Rfold, Rfnew) => post('api/pda/updatePass', {
export const updatePass = (Rfold, Rfnew) => post2('api/pda/updatePass', {
RfoldPass: Rfold,
RfnewPass: Rfnew
})
/** 任务生成 */
// 1.1查询设备
export const queryDevice = () => post('api/pda/queryDevice', {})
export const queryDevice = () => post2('api/pda/queryDevice', {})
// 1.2根据区域查询点位
export const pdaTask = (scode, ncode) => post('api/pda/task', {
export const pdaTask = (scode, ncode) => post2('api/pda/task', {
start_devicecode: scode,
next_devicecode: ncode
})

View File

@@ -3,10 +3,10 @@
<header><span class="fxcol">设置</span></header>
<section class="content">
<ul class="pwd-manage-content">
<li>
<!-- <li>
<span>wms地址:</span>
<input type="text" v-model="addrip">
</li>
</li> -->
<li>
<span>acs地址:</span>
<input type="text" v-model="acsip">

View File

@@ -75,7 +75,7 @@ export default {
/** 查询设备 */
async _queryDevice () {
let res = await queryDevice()
this.areaArr = [...res.result]
this.areaArr = [...res.result.regionja]
this.areaArr.map(el => {
this.$set(el, 'checked', true)
})
@@ -99,7 +99,7 @@ export default {
cancle () {
this.scodeObj = {}
this.ncodeObj = {}
this.disabled1 = true
this.disabled1 = false
},
toSure () {
this.disabled1 = true
@@ -224,7 +224,7 @@ export default {
.content
height calc(100% - 2.7rem)
.locate_block_wrap
height calc(100% - 2.8rem)
height 100%
overflow-y auto
.msg_item_flex_2
width 100%