NEZ-807 fix: 标签关闭 提示功能

This commit is contained in:
@changcode
2021-07-05 14:43:47 +08:00
parent 6718e194d0
commit d33f6ff598
29 changed files with 164 additions and 4 deletions

View File

@@ -125,12 +125,13 @@
import bus from '@/libs/bus'
import { sameLabels } from '@/components/common/js/constants'
// import selectAlertSilence from '../alert/selectAlertSilence'
import editRigthBox from '../mixin/editRigthBox'
export default {
name: 'alertSilenceBox',
components: {
// selectAlertSilence
},
mixins: [editRigthBox],
props: {
alertSilence: Object
},
@@ -139,6 +140,9 @@ export default {
deep: true,
immediate: true,
handler (n, o) {
if (n.id) {
this.isEdit = true
}
const obj = JSON.parse(JSON.stringify(n))
if (obj.ruleId == -1) {
obj.ruleId = null