NEZ-1923 perf : 增加旧版本当中的参数

This commit is contained in:
likexuan
2022-06-16 13:55:45 +08:00
parent 11d7a6ce08
commit e0669f38e9
2 changed files with 62 additions and 15 deletions

View File

@@ -198,8 +198,6 @@ export default {
unit: ''
},
schedule: {
stime: '',
etime: '',
repeat: 0,
nums: [],
type: 0
@@ -392,6 +390,28 @@ export default {
},
edit (u) {
this.panel = Object.assign({}, u)
if (!this.panel.param.report) {
this.panel = {
...u,
param: {
report: {
enable: false,
range: {
unit: ''
},
schedule: {
type: '0',
repeat: 1,
nums: [],
stime: '',
etime: ''
},
receivers: []
},
chartShare: 'none'
}
}
}
this.rightBox.panel.show = true
},
toAdd () {
@@ -414,7 +434,8 @@ export default {
stime: '',
etime: '',
nums: [],
type: 0 + ''
type: 0 + '',
repeat: 1
}
},
chartShare: 'none'