fix: duplicate图表时去掉一些参数
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -105,6 +105,7 @@ export default {
|
||||
label: this.$t('overall.name'),
|
||||
prop: 'name',
|
||||
show: true,
|
||||
minWidth: 150,
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('asset.manageIp'),
|
||||
|
||||
Reference in New Issue
Block a user