fix: 修复底部弹框 panel chartBox弹出错误问题

This commit is contained in:
@changcode
2021-12-21 18:36:22 +08:00
parent 409f911771
commit 3e749ce70c

View File

@@ -19,8 +19,9 @@
</el-input> </el-input>
</div> </div>
<pick-time ref="pickTime" v-model="searchTime" :refresh-data-func="dateChange" :use-chart-unit="false"></pick-time> <pick-time ref="pickTime" v-model="searchTime" :refresh-data-func="dateChange" :use-chart-unit="false"></pick-time>
<button id="asset-create-asset" v-has="'panel_chart_add'" :title="$t('overall.createChart')" class="top-tool-btn margin-r-10" @click.stop="addChart"> <button id="panel-add-chart" v-has="'panel_chart_add'" :title="$t('overall.createChart')" class="top-tool-btn margin-r-10"
<i class="nz-icon nz-icon-create-square"></i> type="button" @click="addChart">
<i class="nz-icon-create-square nz-icon"></i>
</button> </button>
<top-tool-more-options <top-tool-more-options
:delete-objs="batchDeleteObjs" :delete-objs="batchDeleteObjs"
@@ -302,7 +303,10 @@ export default {
/* 图表相关操作--start */ /* 图表相关操作--start */
addChart () { addChart () {
this.chart = this.newChart() this.chart = this.newChart()
this.rightBox.chart.show = true this.$store.dispatch('dispatchEditChart', {
chart: '',
type: 'add'
})
}, },
addChartByTemp () { addChartByTemp () {
this.chart = JSON.parse(JSON.stringify(this.blankChartTemp)) this.chart = JSON.parse(JSON.stringify(this.blankChartTemp))