perf:explore unit选择功能补充

This commit is contained in:
wangwenrui
2020-04-29 11:48:47 +08:00
parent 8e6e49647d
commit 690db89452
3 changed files with 31 additions and 17 deletions

View File

@@ -134,7 +134,7 @@
<el-col v-show="!isUrl" :span="10">
<el-cascader filterable placeholder="" popper-class="dc-dropdown" size="mini"
:options="unitOptions"
:props="{ expandTrigger: 'hover' }"
:props="{ expandTrigger: 'hover',emitPath:false }"
:show-all-levels="false"
v-model="chart.unit"
@change="unitSelected"
@@ -378,6 +378,9 @@
setTitle(title) {
this.rightBox.title = title;
},
setUnit:function(unit){
this.$set(this.chart,'unit',Number.parseInt(unit))
},
save() {
this.$refs['chartForm'].validate((valid) => {
if (valid) {