|
|
@ -1504,7 +1504,7 @@ ${newstr}class-id=0 |
|
|
|
//安信配置文件
|
|
|
|
//安信配置文件
|
|
|
|
configToAx() { |
|
|
|
configToAx() { |
|
|
|
let data = this.configJsonToAx(); |
|
|
|
let data = this.configJsonToAx(); |
|
|
|
console.log(data) |
|
|
|
console.log(data); |
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
const modal = this.modal.create({ |
|
|
|
const modal = this.modal.create({ |
|
|
|
nzTitle: '下发安信config.json配置', |
|
|
|
nzTitle: '下发安信config.json配置', |
|
|
@ -1559,10 +1559,11 @@ ${newstr}class-id=0 |
|
|
|
user: '', |
|
|
|
user: '', |
|
|
|
password: '', |
|
|
|
password: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
caps:[], |
|
|
|
caps: [], |
|
|
|
}; |
|
|
|
}; |
|
|
|
console.log(this.listOfData); |
|
|
|
console.log(this.listOfData); |
|
|
|
this.listOfData.forEach((item: any) => { |
|
|
|
this.listOfData.forEach((item: any) => { |
|
|
|
|
|
|
|
if (item.isEnabled) { |
|
|
|
let type = null; |
|
|
|
let type = null; |
|
|
|
item.type === 0 |
|
|
|
item.type === 0 |
|
|
|
? (type = 2) |
|
|
|
? (type = 2) |
|
|
@ -1581,18 +1582,19 @@ ${newstr}class-id=0 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let obj:any = { |
|
|
|
let obj: any = { |
|
|
|
id: item.id, |
|
|
|
id: item.id, |
|
|
|
type: type, |
|
|
|
type: type, |
|
|
|
url: item.uri, |
|
|
|
url: item.uri, |
|
|
|
name: item.name, |
|
|
|
name: item.name, |
|
|
|
}; |
|
|
|
}; |
|
|
|
if(areas.length !== 0){ |
|
|
|
if (areas.length !== 0) { |
|
|
|
obj.areas = areas |
|
|
|
obj.areas = areas; |
|
|
|
} |
|
|
|
} |
|
|
|
data.caps.push(obj); |
|
|
|
data.caps.push(obj); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return data |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|