修改获取部门列表接口数据
This commit is contained in:
parent
205abe315d
commit
4ee1f79ca0
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user