修改获取部门列表接口数据
This commit is contained in:
parent
205abe315d
commit
4ee1f79ca0
@ -255,8 +255,8 @@ function remoteMethodDeptId() {
|
||||
if (res.code === 200) {
|
||||
let deptList = res.rows.map(item => {
|
||||
return {
|
||||
label: item.name,
|
||||
value: item.id.toString()
|
||||
label: item.deptName,
|
||||
value: String(item.deptId)
|
||||
}
|
||||
})
|
||||
store.setDeptList(deptList)
|
||||
@ -265,7 +265,7 @@ function remoteMethodDeptId() {
|
||||
}
|
||||
//获取网关列表
|
||||
function remoteMethodGetwayId() {
|
||||
getDeviceList({ pageSize: 100, type: '网关' }).then(res => {
|
||||
getDeviceList({ pageNum: 1,pageSize: 100, type: '网关',userId:1 }).then(res => {
|
||||
if (res.code === 200) {
|
||||
let getwayList = res.rows.map(item => {
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user