设备登记-设备类型屏蔽网关字段&设备型号添加搜索

This commit is contained in:
zhujiyan
2024-10-09 15:27:48 +08:00
parent 74c7a38183
commit 4b963753fb

View File

@@ -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,