fix: duplicate图表时去掉一些参数
This commit is contained in:
@@ -1611,6 +1611,9 @@ export default {
|
|||||||
if (chart) {
|
if (chart) {
|
||||||
const copyChart = { ...chart }
|
const copyChart = { ...chart }
|
||||||
delete copyChart.id
|
delete copyChart.id
|
||||||
|
delete copyChart.pid
|
||||||
|
delete copyChart.varId
|
||||||
|
delete copyChart.varType
|
||||||
copyChart.name = 'Copy_' + copyChart.name
|
copyChart.name = 'Copy_' + copyChart.name
|
||||||
this.$emit('on-edit-chart', copyChart)
|
this.$emit('on-edit-chart', copyChart)
|
||||||
}
|
}
|
||||||
@@ -1619,6 +1622,9 @@ export default {
|
|||||||
if (chart) {
|
if (chart) {
|
||||||
const copyChart = { ...chart }
|
const copyChart = { ...chart }
|
||||||
delete copyChart.id
|
delete copyChart.id
|
||||||
|
delete copyChart.pid
|
||||||
|
delete copyChart.varId
|
||||||
|
delete copyChart.varType
|
||||||
copyChart.name = 'Copy_' + copyChart.name
|
copyChart.name = 'Copy_' + copyChart.name
|
||||||
this.$emit('on-edit-chart', copyChart)
|
this.$emit('on-edit-chart', copyChart)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ export default {
|
|||||||
label: this.$t('overall.name'),
|
label: this.$t('overall.name'),
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
show: true,
|
show: true,
|
||||||
|
minWidth: 150,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}, {
|
}, {
|
||||||
label: this.$t('asset.manageIp'),
|
label: this.$t('asset.manageIp'),
|
||||||
|
|||||||
Reference in New Issue
Block a user