【fix ESLint】src/views/system

This commit is contained in:
danshihao
2023-03-07 16:22:21 +08:00
parent 586837f1f6
commit 1eb59a3fd6
23 changed files with 159 additions and 159 deletions
+12 -16
View File
@@ -28,7 +28,7 @@
<a-dropdown :trigger="[this.dropTrigger]" @visibleChange="dropStatus">
<span style="user-select: none">
<a-tree
checkable
:checkable="true"
multiple
@select="onSelect"
@check="onCheck"
@@ -258,7 +258,7 @@ export default {
this.refresh()
},
loadTree () {
var that = this
const that = this
that.treeData = []
that.departTree = []
queryDepartTreeList().then((res) => {
@@ -306,7 +306,7 @@ export default {
},
// 右键点击下拉框改变事件
dropStatus (visible) {
if (visible == false) {
if (visible === false) {
this.dropTrigger = ''
}
},
@@ -322,11 +322,11 @@ export default {
if (this.checkedKeys.length <= 0) {
this.$message.warning('请选择一条记录!')
} else {
var ids = ''
for (var a = 0; a < this.checkedKeys.length; a++) {
let ids = ''
for (let a = 0; a < this.checkedKeys.length; a++) {
ids += this.checkedKeys[a] + ','
}
var that = this
const that = this
this.$confirm({
title: '确认删除',
content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据,以及子节点数据吗?',
@@ -396,11 +396,7 @@ export default {
},
// 触发onSelect事件时,为部门树右侧的form表单赋值
setValuesToForm (record) {
if (record.orgCategory == '1') {
this.orgCategoryDisabled = true
} else {
this.orgCategoryDisabled = false
}
this.orgCategoryDisabled = (record.orgCategory + '') === '1'
},
getCurrSelectedTitle () {
return !this.currSelected.title ? '' : this.currSelected.title
@@ -455,10 +451,10 @@ export default {
this.$refs.sysDirectiveModal.show()
},
handleAdd (num) {
if (num == 1) {
if (num === 1) {
this.$refs.departModal.add()
this.$refs.departModal.title = '新增'
} else if (num == 2) {
} else if (num === 2) {
const key = this.currSelected.key
if (!key) {
this.$message.warning('请先点击选中上级部门!')
@@ -472,7 +468,7 @@ export default {
}
},
handleDelete () {
var that = this
const that = this
this.$confirm({
title: '确认删除',
content: '确定要删除此部门以及子节点数据吗?',
@@ -532,9 +528,9 @@ export default {
this.checkedKeys = []
},
switchCheckStrictly (v) {
if (v == 1) {
if (v === 1) {
this.checkStrictly = false
} else if (v == 2) {
} else if (v === 2) {
this.checkStrictly = true
}
},