From 18aad33112d1337033d6dac8d5915643196a0ad9 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 21 May 2021 14:02:41 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-653=20fix:=20=E6=9C=89=E4=BA=9B=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E4=B8=8D=E8=83=BDresize=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/charts/chart-list.vue | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index c2154a7fb..dd001b54f 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -675,21 +675,9 @@ export default { this.dataList.forEach((item, index) => { this.setChartSize(item, index)// 设置该图表宽度 this.$set(item, 'from', params.from) - if (param.from == fromRoute.asset) { - if (item.type == 'assetInfo') { - this.$set(item, 'draggable', true) - this.$set(item, 'resizable', true) - } - } else if (param.from == fromRoute.project) { - if (item.type == 'projectInfo') { - this.$set(item, 'draggable', true) - this.$set(item, 'resizable', true) - } - } else if (!param.from) { - this.$set(item, 'draggable', true) - this.$set(item, 'resizable', true) - this.$set(item, 'editable', true) - } + this.$set(item, 'draggable', true) + this.$set(item, 'resizable', true) + this.$set(item, 'editable', true) if (!item.isLoaded) { // 获得当前显示在浏览器的图表,从后台获取数据 const chartBox = document.getElementById('chart-' + item.id)