【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
+13 -12
View File
@@ -89,7 +89,7 @@
<role-modal ref="modalForm" @ok="modalFormOk"></role-modal>
</a-card>
</a-col>
<a-col :md="rightColMd" :sm="24" v-if="this.rightcolval == 1">
<a-col :md="rightColMd" :sm="24" v-if="this.rightcolval === 1">
<a-card :bordered="false">
<div style="text-align: right;">
<a-icon type="close-circle" @click="hideUserList" />
@@ -115,7 +115,7 @@
</a-form>
</div>
<!-- 操作按钮区域 -->
<div class="table-operator" :md="24" :sm="24">
<div class="table-operator">
<a-button @click="handleAdd2" type="primary" icon="plus" style="margin-top: 16px">新增用户</a-button>
<!--<a-button @click="handleEdit2" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>-->
<a-button @click="handleAddUserRole" type="primary" icon="plus" style="margin-top: 16px">已有用户</a-button>
@@ -195,6 +195,7 @@ export default {
SelectUserModal,
RoleModal,
UserModal,
// eslint-disable-next-line vue/no-unused-components
moment
},
data () {
@@ -360,7 +361,7 @@ export default {
sqp.superQueryParams = encodeURI(this.superQueryParams2)
sqp.superQueryMatchType = this.superQueryMatchType2
}
var param = Object.assign(sqp, this.queryParam2, this.isorter2, this.filters2)
const param = Object.assign(sqp, this.queryParam2, this.isorter2, this.filters2)
param.field = this.getQueryField2()
param.pageNo = this.ipagination2.current
param.pageSize = this.ipagination2.pageSize
@@ -368,7 +369,7 @@ export default {
},
getQueryField2 () {
// TODO 字段权限控制
var str = 'id,'
let str = 'id,'
this.columns2.forEach(function (value) {
str += ',' + value.dataIndex
})
@@ -380,7 +381,7 @@ export default {
this.$refs.modalForm2.edit(record)
},
handleAdd2: function () {
if (this.currentRoleId == '') {
if (!this.currentRoleId) {
this.$message.error('请选择一个角色!')
} else {
this.$refs.modalForm2.roleDisabled = true
@@ -423,7 +424,7 @@ export default {
this.$message.error('请设置url.delete2属性!')
return
}
var that = this
const that = this
deleteAction(that.url.delete2, { roleId: this.currentRoleId, userId: id }).then((res) => {
if (res.success) {
that.$message.success(res.message)
@@ -441,11 +442,11 @@ export default {
if (this.selectedRowKeys2.length <= 0) {
this.$message.warning('请选择一条记录!')
} else {
var ids = ''
for (var a = 0; a < this.selectedRowKeys2.length; a++) {
let ids = ''
for (let a = 0; a < this.selectedRowKeys2.length; a++) {
ids += this.selectedRowKeys2[a] + ','
}
var that = this
const that = this
console.log(this.currentDeptId)
this.$confirm({
title: '确认删除',
@@ -468,7 +469,7 @@ export default {
const params = {}
params.roleId = this.currentRoleId
params.userIdList = []
for (var a = 0; a < data.length; a++) {
for (let a = 0; a < data.length; a++) {
params.userIdList.push(data[a])
}
console.log(params)
@@ -483,7 +484,7 @@ export default {
},
handleAddUserRole () {
if (this.currentRoleId == '') {
if (!this.currentRoleId) {
this.$message.error('请选择一个角色!')
} else {
this.$refs.selectUserModal.visible = true
@@ -517,7 +518,7 @@ export default {
// TODO 筛选
if (Object.keys(sorter).length > 0) {
this.isorter2.column = sorter.field
this.isorter2.order = sorter.order == 'ascend' ? 'asc' : 'desc'
this.isorter2.order = sorter.order === 'ascend' ? 'asc' : 'desc'
}
this.ipagination2 = pagination
this.loadData2()