fix:修复alertList图表编辑无法回显的问题
This commit is contained in:
@@ -93,7 +93,6 @@
|
|||||||
this.$emit('on-enter-complate',param,opType);
|
this.$emit('on-enter-complate',param,opType);
|
||||||
},
|
},
|
||||||
setData:function(responseData){
|
setData:function(responseData){
|
||||||
console.log(responseData)
|
|
||||||
if(responseData&&responseData.param){
|
if(responseData&&responseData.param){
|
||||||
let param=responseData.param;
|
let param=responseData.param;
|
||||||
let projectId=param.projectId;
|
let projectId=param.projectId;
|
||||||
@@ -118,7 +117,6 @@
|
|||||||
state:param.state
|
state:param.state
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this.parameters)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
queryOptionsData:function(){
|
queryOptionsData:function(){
|
||||||
|
|||||||
@@ -909,9 +909,12 @@
|
|||||||
this.editChart.param.url = data.param.url;
|
this.editChart.param.url = data.param.url;
|
||||||
this.setIsUrl();
|
this.setIsUrl();
|
||||||
//this.elements = [1];
|
//this.elements = [1];
|
||||||
}else if(this.editChart.type==='alertLine'){
|
}else if(this.editChart.type==='alertList'){
|
||||||
this.editChart.param = data.param;
|
this.editChart.param = data.param;
|
||||||
this.setIsAlertList();
|
this.setIsAlertList();
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.$refs.alertParamBox.setData(data)
|
||||||
|
})
|
||||||
//this.elements=[1];
|
//this.elements=[1];
|
||||||
}else{
|
}else{
|
||||||
if((this.editChart.type==='line'||this.editChart.type==='bar'||this.editChart.type==='stackArea'||this.editChart.type==='singleStat')&&data.param){
|
if((this.editChart.type==='line'||this.editChart.type==='bar'||this.editChart.type==='stackArea'||this.editChart.type==='singleStat')&&data.param){
|
||||||
|
|||||||
Reference in New Issue
Block a user