From 9f73a5eb33aaabcf443c618625e735ffcf0f3bc0 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 24 May 2021 17:46:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20duplicate=E5=9B=BE=E8=A1=A8=E6=97=B6?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=80=E4=BA=9B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-list.vue | 6 ++++++ .../src/components/common/table/asset/assetTable.vue | 1 + 2 files changed, 7 insertions(+) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 8a334cb9c..5f2b26992 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -1611,6 +1611,9 @@ export default { if (chart) { const copyChart = { ...chart } delete copyChart.id + delete copyChart.pid + delete copyChart.varId + delete copyChart.varType copyChart.name = 'Copy_' + copyChart.name this.$emit('on-edit-chart', copyChart) } @@ -1619,6 +1622,9 @@ export default { if (chart) { const copyChart = { ...chart } delete copyChart.id + delete copyChart.pid + delete copyChart.varId + delete copyChart.varType copyChart.name = 'Copy_' + copyChart.name this.$emit('on-edit-chart', copyChart) } diff --git a/nezha-fronted/src/components/common/table/asset/assetTable.vue b/nezha-fronted/src/components/common/table/asset/assetTable.vue index 2d010db40..484497f57 100644 --- a/nezha-fronted/src/components/common/table/asset/assetTable.vue +++ b/nezha-fronted/src/components/common/table/asset/assetTable.vue @@ -105,6 +105,7 @@ export default { label: this.$t('overall.name'), prop: 'name', show: true, + minWidth: 150, sortable: 'custom' }, { label: this.$t('asset.manageIp'),