修改获取部门列表接口数据

This commit is contained in:
hzz 2023-06-21 18:23:29 +08:00
parent 205abe315d
commit 4ee1f79ca0

View File

@ -255,8 +255,8 @@ function remoteMethodDeptId() {
if (res.code === 200) { if (res.code === 200) {
let deptList = res.rows.map(item => { let deptList = res.rows.map(item => {
return { return {
label: item.name, label: item.deptName,
value: item.id.toString() value: String(item.deptId)
} }
}) })
store.setDeptList(deptList) store.setDeptList(deptList)
@ -265,7 +265,7 @@ function remoteMethodDeptId() {
} }
// //
function remoteMethodGetwayId() { function remoteMethodGetwayId() {
getDeviceList({ pageSize: 100, type: '网关' }).then(res => { getDeviceList({ pageNum: 1,pageSize: 100, type: '网关',userId:1 }).then(res => {
if (res.code === 200) { if (res.code === 200) {
let getwayList = res.rows.map(item => { let getwayList = res.rows.map(item => {
return { return {