Merge branch 'dev-3.6' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.7
This commit is contained in:
@@ -236,7 +236,7 @@ export default {
|
|||||||
disabled: false
|
disabled: false
|
||||||
}, {
|
}, {
|
||||||
name: this.$t('overall.acknowledge'),
|
name: this.$t('overall.acknowledge'),
|
||||||
type: 'selectString',
|
type: 'select',
|
||||||
label: 'ack',
|
label: 'ack',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
disabled: false
|
disabled: false
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ export default {
|
|||||||
const config = this.obj.configs.find(c => c.type === 'logs')
|
const config = this.obj.configs.find(c => c.type === 'logs')
|
||||||
const hasLog = config && config.enable === 1
|
const hasLog = config && config.enable === 1
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{ prop: 'dashboardTab', name: this.$t('overall.detail') },
|
{ prop: 'dashboardTab', name: this.$t('overall.dashboard') },
|
||||||
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
|
{ prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
|
||||||
{ prop: 'endpointQuery', name: this.$t('overall.metrics') }
|
{ prop: 'endpointQuery', name: this.$t('overall.metrics') }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -597,7 +597,15 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.editChart = obj
|
if (obj.elements && obj.elements.length) {
|
||||||
|
obj.elements.forEach((item, index) => {
|
||||||
|
item.orderNum = index
|
||||||
|
delete item.seq
|
||||||
|
delete item.buildIn
|
||||||
|
delete item.chartId
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.editChart = this.$loadsh.cloneDeep(obj)
|
||||||
this.oldData = this.$loadsh.cloneDeep(obj)
|
this.oldData = this.$loadsh.cloneDeep(obj)
|
||||||
if (this.stableTime) {
|
if (this.stableTime) {
|
||||||
clearTimeout(this.stableTime)
|
clearTimeout(this.stableTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user