设备登记-设备类型屏蔽网关字段&设备型号添加搜索
This commit is contained in:
@@ -187,13 +187,17 @@ queryByCode('Device_Type').then(res => {
|
|||||||
...item
|
...item
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
let index = devTypeOptions.value.findIndex((item: any) => {
|
||||||
|
return item.name == '网关'
|
||||||
|
})
|
||||||
|
devTypeOptions.value.splice(index, 1)
|
||||||
})
|
})
|
||||||
queryByid(id).then(res => {
|
queryByid(id).then(res => {
|
||||||
res.data.map((item: any, index: any) => {
|
res.data.map((item: any, index: any) => {
|
||||||
if (item.pid == id) {
|
if (item.pid == id) {
|
||||||
res.data.splice(index, 1)
|
res.data.splice(index, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
devModelOptions.value = res.data.map((item: any, index: any) => {
|
devModelOptions.value = res.data.map((item: any, index: any) => {
|
||||||
return {
|
return {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user