feat:编辑页面添加退出提示
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
url:'',
|
url:'',
|
||||||
threshold:'',
|
threshold:'',
|
||||||
},
|
},
|
||||||
elements:[],
|
elements:[{expression: "", legend: "", type: "expert", id: ""}],
|
||||||
panel: '',
|
panel: '',
|
||||||
sync: 0
|
sync: 0
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -331,7 +331,7 @@
|
|||||||
<label >{{$t('dashboard.panel.chartForm.statistics')}}</label>
|
<label >{{$t('dashboard.panel.chartForm.statistics')}}</label>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col style="width: calc(100% - 120px);">
|
<el-col style="width: calc(100% - 120px);">
|
||||||
<el-select placeholder="" popper-class="chart-box-dropdown-mini" size="small" v-model="statistics">
|
<el-select placeholder="" popper-class="chart-box-dropdown-mini" size="small" v-model="editChart.param.statistics">
|
||||||
<el-option :key="item.value" :label="item.label" :value="item.value" v-for="item in statisticsList">
|
<el-option :key="item.value" :label="item.label" :value="item.value" v-for="item in statisticsList">
|
||||||
<span class="panel-dropdown-label-txt" >{{item.label}}</span>
|
<span class="panel-dropdown-label-txt" >{{item.label}}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
@@ -382,6 +382,7 @@
|
|||||||
<el-color-picker
|
<el-color-picker
|
||||||
:ref="'colorPickerBac'+index"
|
:ref="'colorPickerBac'+index"
|
||||||
@active-change="(val)=>colorChange(mapping,showPicker[index].bac,val)"
|
@active-change="(val)=>colorChange(mapping,showPicker[index].bac,val)"
|
||||||
|
popper-class="no-style-class"
|
||||||
v-model="showPicker[index].bac?mapping.color.bac:mapping.color.text"
|
v-model="showPicker[index].bac?mapping.color.bac:mapping.color.text"
|
||||||
>
|
>
|
||||||
</el-color-picker>
|
</el-color-picker>
|
||||||
@@ -426,6 +427,7 @@
|
|||||||
<div class="color-content" ref="color-content">
|
<div class="color-content" ref="color-content">
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
:ref="'colorPickerBac'+index"
|
:ref="'colorPickerBac'+index"
|
||||||
|
popper-class="no-style-class"
|
||||||
@active-change="(val)=>colorChange(mapping,showPicker[index].bac,val)"
|
@active-change="(val)=>colorChange(mapping,showPicker[index].bac,val)"
|
||||||
v-model="showPicker[index].bac?mapping.color.bac:mapping.color.text"
|
v-model="showPicker[index].bac?mapping.color.bac:mapping.color.text"
|
||||||
>
|
>
|
||||||
@@ -937,7 +939,7 @@
|
|||||||
sync: this.editChart.sync
|
sync: this.editChart.sync
|
||||||
};
|
};
|
||||||
if(this.editChart.type === 'singleStat'){
|
if(this.editChart.type === 'singleStat'){
|
||||||
params.param.statistics=this.statistics;
|
// params.param.statistics=this.statistics;
|
||||||
} else {
|
} else {
|
||||||
delete params.param.statistics;
|
delete params.param.statistics;
|
||||||
}
|
}
|
||||||
@@ -1037,7 +1039,7 @@
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
if(this.editChart.type == 'singleStat'){
|
if(this.editChart.type == 'singleStat'){
|
||||||
this.$set(this.editChart.param, "statistics", this.statistics);
|
// this.$set(this.editChart.param, "statistics", this.statistics);
|
||||||
} else {
|
} else {
|
||||||
delete this.editChart.param.statistics;
|
delete this.editChart.param.statistics;
|
||||||
}
|
}
|
||||||
@@ -1436,7 +1438,7 @@
|
|||||||
sync: this.editChart.sync
|
sync: this.editChart.sync
|
||||||
};
|
};
|
||||||
if(this.editChart.type === 'singleStat'){
|
if(this.editChart.type === 'singleStat'){
|
||||||
params.param.statistics=this.statistics;
|
// params.param.statistics=this.statistics;
|
||||||
params.param.valueMapping=this.editChart.param.valueMapping;
|
params.param.valueMapping=this.editChart.param.valueMapping;
|
||||||
} else {
|
} else {
|
||||||
delete params.param.statistics;
|
delete params.param.statistics;
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
url:'',
|
url:'',
|
||||||
threshold:'',
|
threshold:'',
|
||||||
},
|
},
|
||||||
elements:[],
|
elements:[{expression: "", legend: "", type: "expert", id: ""}],
|
||||||
panel: '',
|
panel: '',
|
||||||
sync: 0
|
sync: 0
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user