fix:asset 添加bug修复
This commit is contained in:
@@ -1103,6 +1103,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getAssetInfoChartData(chartInfo){
|
getAssetInfoChartData(chartInfo){
|
||||||
|
if(!this.isModel){
|
||||||
this.$refs['editChart'+chartInfo.id][0].showLoad(chartInfo);
|
this.$refs['editChart'+chartInfo.id][0].showLoad(chartInfo);
|
||||||
|
|
||||||
this.$get('/asset/info?id='+this.additionalInfo.id).then(response=>{
|
this.$get('/asset/info?id='+this.additionalInfo.id).then(response=>{
|
||||||
@@ -1113,6 +1114,9 @@ export default {
|
|||||||
this.$refs['editChart'+chartInfo.id][0].setData(chartInfo, {}, this.filter.panelId, this.filter,reponse.msg);
|
this.$refs['editChart'+chartInfo.id][0].setData(chartInfo, {}, this.filter.panelId, this.filter,reponse.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
this.$refs['editChart'+chartInfo.id][0].endLoading();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 设置图表的宽度
|
// 设置图表的宽度
|
||||||
setSize(size, index) {
|
setSize(size, index) {
|
||||||
|
|||||||
@@ -98,6 +98,7 @@
|
|||||||
<el-cascader
|
<el-cascader
|
||||||
:options="vendorTypeOptionData"
|
:options="vendorTypeOptionData"
|
||||||
:key="isResourceShow"
|
:key="isResourceShow"
|
||||||
|
:props="{emitPath:false}"
|
||||||
:disabled="this.assetType!=''?false:true"
|
:disabled="this.assetType!=''?false:true"
|
||||||
v-model="assetData.modelId"
|
v-model="assetData.modelId"
|
||||||
clearable
|
clearable
|
||||||
@@ -965,13 +966,13 @@
|
|||||||
this.$emit('refreshData', 'true');
|
this.$emit('refreshData', 'true');
|
||||||
this.sendStateData('close');
|
this.sendStateData('close');
|
||||||
} else {
|
} else {
|
||||||
this.assetData.modelId = tempModelId;
|
// this.assetData.modelId = tempModelId;
|
||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.assetData.modelId = tempModelId;
|
// this.assetData.modelId = tempModelId;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user