feat:dashboard legend 别名功能 & asset-account 配置bug修改

This commit is contained in:
wangwenrui
2020-03-04 09:58:19 +08:00
parent 7052835c42
commit 37503b55bd
5 changed files with 52 additions and 24 deletions

View File

@@ -860,9 +860,9 @@
// form.append("idcId", this.assetData.idcId);
// form.append("cabinetId", this.assetData.cabinetId);
// form.append("modelId", modelId);
// if (!this.accountSwitch) {
// this.assetData.accounts = [];
// }
if (!this.accountSwitch) {
this.assetData.accounts = [];
}
// for(let i in this.assetData.accounts){
// let account=this.assetData.accounts[i];
// if(account.user){
@@ -902,17 +902,17 @@
console.log("accountValideResult-->"+this.accountValideResult)
}
let modelId = ''
let authType = ''
// let authType = ''
// if (this.assetData.modelId !== '') {
// modelId = this.assetData.modelId.join(',').split(',')[1]
// } else {
// this.assetData.modelId = ''
// }
if (this.assetData.accounts[0].user === '') {
authType = ''
} else {
authType = this.assetData.accounts[0].authType
}
// if (this.assetData.accounts[0].user === '') {
// authType = ''
// } else {
// authType = this.assetData.accounts[0].authType
// }
// let form = new FormData();
// form.append("sn", this.assetData.sn);
// form.append("host", this.assetData.host);