forked from github/dataease
refactor: 视图更换数据集优化
This commit is contained in:
parent
82431c2393
commit
6cc9cc14e4
@ -1245,10 +1245,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeChart() {
|
changeChart() {
|
||||||
this.view.tableId = this.changeTable.id
|
if (this.view.tableId !== this.changeTable.id) {
|
||||||
this.view.xaxis = []
|
this.view.tableId = this.changeTable.id
|
||||||
this.view.yaxis = []
|
this.view.xaxis = []
|
||||||
this.view.customFilter = []
|
this.view.yaxis = []
|
||||||
|
this.view.customFilter = []
|
||||||
|
}
|
||||||
this.save(true, 'chart', false)
|
this.save(true, 'chart', false)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<de-container>
|
<de-container>
|
||||||
<de-aside-container>
|
<de-aside-container>
|
||||||
<dataset-group-selector-tree @getTable="getTable" :privileges=privileges :mode=mode :type=type :customType=customType :showMode=showMode />
|
<dataset-group-selector-tree :privileges="privileges" :mode="mode" :type="type" :custom-type="customType" :show-mode="showMode" @getTable="getTable" />
|
||||||
</de-aside-container>
|
</de-aside-container>
|
||||||
<de-main-container>
|
<de-main-container>
|
||||||
<dataset-table-data :table="table" />
|
<dataset-table-data :table="table" />
|
||||||
|
Loading…
Reference in New Issue
Block a user