let typeTree = types.map(item => {
// console.log(77777, item)
var showobj = item.typeName
if (item.typeID != 'fangchong' && item.typeID != 'quyu') {
console.log(999523, devices)
let deviceData = devices.filter(it => it.typeID === item.typeID)
let deviceTree = deviceData.map(item => {
// console.log(8888, item.typeID)
return {
isUse: false,
id: item.deviceCode,
label: `${item.deviceName}-${item.place}`,
key: 'device',
systemID: item.systemID,
leaf: true,
typeID: item.typeID,
deviceName: item.deviceName,
place: item.place,
typeName: showobj
}
})
return {
isUse: false,
id: item.typeID,
label: item.typeName,
children: deviceTree,
key: 'type',
systemID: item.systemID,
typeID: item.typeID,
typeName: item.typeName
}
}
// if (item.typeID == 'fangchong' && (item.systemID == "personnel" || item.systemID == "1")) {
// // console.log(9999, this.antiscour)
// // let deviceData = devices.filter(it => it.typeID === item.typeID)
// return {
// isUse: false,
// id: 'fangchong',
// label: item.typeName,
// leaf: true,
// key: 'fangchong',
// systemID: item.systemID
// }
// }
// if (item.typeID == 'quyu' && (item.systemID == "personnel" || item.systemID == "1")) {
// // let deviceData = devices.filter(it => it.typeID === item.typeID)
// return {
// isUse: false,
// id: 'quyu',
// label: item.typeName,
// key: 'quyu',
// leaf: true,
// systemID: item.systemID
// }
// }
})