【fix ESLint】src/views/system/modules

This commit is contained in:
danshihao
2023-03-07 14:23:25 +08:00
parent 0e41300963
commit 9e05297813
33 changed files with 179 additions and 183 deletions
@@ -122,7 +122,7 @@ export default {
if (valid) {
that.confirmLoading = true
let httpurl = ''
let method = ''
let method
if (!this.model.id) {
httpurl += this.url.add
method = 'post'
@@ -151,14 +151,10 @@ export default {
this.close()
},
initRuleCondition () {
if (this.model.ruleConditions && this.model.ruleConditions == 'USE_SQL_RULES') {
this.showRuleColumn = false
} else {
this.showRuleColumn = true
}
this.showRuleColumn = !(this.model.ruleConditions && this.model.ruleConditions === 'USE_SQL_RULES')
},
handleChangeRuleCondition (val) {
if (val == 'USE_SQL_RULES') {
if (val === 'USE_SQL_RULES') {
this.model.ruleColumn = ''
this.showRuleColumn = false
} else {