fix: 1、修复detection下拉面板点击空白处,地址栏的eventId未被清除的问题;2、完善policy交互流程
This commit is contained in:
@@ -229,6 +229,9 @@ export default {
|
||||
},
|
||||
editObj: {
|
||||
type: Object
|
||||
},
|
||||
isComplete: {
|
||||
type: Boolean
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -258,6 +261,11 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
isComplete (newVal) {
|
||||
if (!newVal) {
|
||||
this.onContinue()
|
||||
}
|
||||
}
|
||||
},
|
||||
data () {
|
||||
@@ -374,6 +382,7 @@ export default {
|
||||
if (response.status === 200) {
|
||||
this.libraryList = _.get(response, 'data.data.list', []).filter(l => l.isBuiltIn === 0)
|
||||
} else {
|
||||
console.error(response.data.message)
|
||||
this.libraryList = []
|
||||
if (response.data.message) {
|
||||
this.$message.error(response.data.message)
|
||||
@@ -485,7 +494,10 @@ export default {
|
||||
this.thresholdRuleObj.filterList.splice(i, 1)
|
||||
},
|
||||
/** 点击继续,展开第三步 */
|
||||
onContinue () {
|
||||
onContinue (e) {
|
||||
if (e) {
|
||||
delete this.indicatorRuleObj.ruleNoContinue
|
||||
}
|
||||
this.$refs.form.validate(valid => {
|
||||
if (valid) {
|
||||
if (this.mySettingObj.ruleType === detectionRuleType.indicator) {
|
||||
|
||||
Reference in New Issue
Block a user