From 1eb59a3fd6ef3137064b9d488162c9de5ac2391e Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 7 Mar 2023 16:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20ESLint=E3=80=91src/views/system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/views/system/DataLogList.vue | 8 ++-- jero-web/src/views/system/DepartList.vue | 28 ++++++------- jero-web/src/views/system/DepartListSync.vue | 41 +++++++++---------- jero-web/src/views/system/DepartUserList.vue | 6 +-- jero-web/src/views/system/DictDeleteList.vue | 2 +- jero-web/src/views/system/DictItemList.vue | 4 +- jero-web/src/views/system/DictList.vue | 6 +-- jero-web/src/views/system/LogList.vue | 16 ++++---- .../src/views/system/NewPermissionList.vue | 12 +++--- .../views/system/PermissionDataRuleList.vue | 6 +-- jero-web/src/views/system/PermissionList.vue | 12 +++--- jero-web/src/views/system/QuartzJobList.vue | 18 ++++---- jero-web/src/views/system/RoleList.vue | 2 +- jero-web/src/views/system/RoleUserList.vue | 25 +++++------ .../src/views/system/SysAnnouncementList.vue | 34 +++++++-------- jero-web/src/views/system/SysCategoryList.vue | 18 ++++---- .../src/views/system/SysCheckRuleList.vue | 7 +++- jero-web/src/views/system/SysFillRuleList.vue | 2 +- .../src/views/system/SysGatewayRouteList.vue | 6 +-- .../src/views/system/SysUserOnlineList.vue | 2 +- jero-web/src/views/system/TenantList.vue | 2 +- .../src/views/system/UserAnnouncementList.vue | 22 +++++----- jero-web/src/views/system/UserList.vue | 39 +++++++++--------- 23 files changed, 159 insertions(+), 159 deletions(-) diff --git a/jero-web/src/views/system/DataLogList.vue b/jero-web/src/views/system/DataLogList.vue index f877a3db..967497fa 100644 --- a/jero-web/src/views/system/DataLogList.vue +++ b/jero-web/src/views/system/DataLogList.vue @@ -50,7 +50,7 @@ @change="handleTableChange" > - + @@ -111,10 +111,10 @@ export default { }, methods: { handleCompare: function () { - if (!this.selectionRows || this.selectionRows.length != 2) { + if (!this.selectionRows || this.selectionRows.length !== 2) { this.openNotifIcon('请选择两条数据') return false - } else if (this.selectionRows[0].dataId != this.selectionRows[1].dataId) { + } else if (this.selectionRows[0].dataId !== this.selectionRows[1].dataId) { this.openNotifIcon('请选择相同的数据库表和数据ID进行比较') return false } else { @@ -134,5 +134,5 @@ export default { diff --git a/jero-web/src/views/system/DepartList.vue b/jero-web/src/views/system/DepartList.vue index 1443d509..f1de8208 100644 --- a/jero-web/src/views/system/DepartList.vue +++ b/jero-web/src/views/system/DepartList.vue @@ -28,7 +28,7 @@ { @@ -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 } }, diff --git a/jero-web/src/views/system/DepartListSync.vue b/jero-web/src/views/system/DepartListSync.vue index 58b8422d..b3affb43 100644 --- a/jero-web/src/views/system/DepartListSync.vue +++ b/jero-web/src/views/system/DepartListSync.vue @@ -29,7 +29,7 @@ { queryDepartTreeSync({ pid: treeNode.dataRef.id }).then((res) => { if (res.success) { // 判断chidlren是否为空,并修改isLeaf属性值 - if (res.result.length == 0) { + if (res.result.length === 0) { treeNode.dataRef.isLeaf = true return } else { @@ -316,8 +316,8 @@ export default { }) resolve() }) - // 保存全部部门信息,方便后面搜索使用 - that.departTreeAll = that.departTree + // 保存全部部门 信息,方便后面搜索使用 + // that.departTreeAll = that.departTree }, refresh () { this.loading = true @@ -342,7 +342,7 @@ export default { }, // 右键点击下拉框改变事件 dropStatus (visible) { - if (visible == false) { + if (visible === false) { this.dropTrigger = '' } }, @@ -358,11 +358,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 + ' 条数据,以及子节点数据吗?', @@ -432,11 +432,7 @@ export default { }, // 触发onSelect事件时,为部门树右侧的form表单赋值 setValuesToForm (record) { - if (record.orgCategory == '1') { - this.orgCategoryDisabled = true - } else { - this.orgCategoryDisabled = false - } + this.orgCategoryDisabled = (record.orgCategory + '') === '1' this.$nextTick(() => { this.model = cloneObject(record) }) @@ -462,7 +458,7 @@ export default { this.currSelected.receiptTriggerType = value }, submitCurrForm () { - this.$refs.form.validate((ok, err) => { + this.$refs.form.validate((ok) => { if (ok) { if (!this.currSelected.id) { this.$message.warning('请点击选择要修改部门!') @@ -486,7 +482,7 @@ export default { this.model = this.currSelected }, nodeSettingFormSubmit () { - this.$refs.form.validate((ok, err) => { + this.$refs.form.validate((ok) => { if (ok) { console.log('Received values of form: ', this.model) } @@ -496,10 +492,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('请先点击选中上级部门!') @@ -513,7 +509,7 @@ export default { } }, handleDelete () { - var that = this + const that = this this.$confirm({ title: '确认删除', content: '确定要删除此部门以及子节点数据吗?', @@ -575,9 +571,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 } }, @@ -597,6 +593,7 @@ export default { if (!value || new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(value)) { callback() } else { + // eslint-disable-next-line standard/no-callback-literal callback('您的手机号码格式不正确!') } }, diff --git a/jero-web/src/views/system/DepartUserList.vue b/jero-web/src/views/system/DepartUserList.vue index 0035d589..721a48f0 100644 --- a/jero-web/src/views/system/DepartUserList.vue +++ b/jero-web/src/views/system/DepartUserList.vue @@ -22,7 +22,7 @@ /> -
+

您的部门下暂无有效部门信息

普通员工暂无此权限

@@ -109,7 +109,7 @@ export default { this.$refs.DeptUserInfo.currentDeptId = '' }, loadTree () { - var that = this + const that = this that.treeData = [] that.departTree = [] queryMyDepartTreeList().then((res) => { @@ -199,5 +199,5 @@ export default { } diff --git a/jero-web/src/views/system/DictDeleteList.vue b/jero-web/src/views/system/DictDeleteList.vue index ed1aa1b1..c4279580 100644 --- a/jero-web/src/views/system/DictDeleteList.vue +++ b/jero-web/src/views/system/DictDeleteList.vue @@ -115,7 +115,7 @@ export default {
), centered: false, onOk: () => { - var that = this + const that = this deleteAction('/sys/dict/deletePhysic/' + id).then((res) => { if (res.success) { this.$message.success(res.message) diff --git a/jero-web/src/views/system/DictItemList.vue b/jero-web/src/views/system/DictItemList.vue index d05cab24..0c0dc83b 100644 --- a/jero-web/src/views/system/DictItemList.vue +++ b/jero-web/src/views/system/DictItemList.vue @@ -170,7 +170,7 @@ export default { // update--begin--autor:wangshuai-----date:20191204------for:清空总条数 teambition JT-113------ this.ipagination.total = 0 // update--end--autor:wangshuai-----date:20191204------for:清空总条数 teambition JT-113------ - var param = Object.assign({}, this.queryParam) + const param = Object.assign({}, this.queryParam) param.dictId = this.dictId param.field = this.getQueryField() param.pageNo = this.ipagination.current @@ -207,7 +207,7 @@ export default { // update--begin--autor:wangshuai-----date:20191204------for:系统管理 数据字典禁用和正常区别开,添加背景颜色 teambition JT-22------ // 增加样式方法返回值 getRowClassname (record) { - if (record.status == 0) { + if ((record.status + '') === '0') { return 'data-rule-invalid' } } diff --git a/jero-web/src/views/system/DictList.vue b/jero-web/src/views/system/DictList.vue index d3faa0fc..fa8512b6 100644 --- a/jero-web/src/views/system/DictList.vue +++ b/jero-web/src/views/system/DictList.vue @@ -148,7 +148,7 @@ export default { }, methods: { getQueryParams () { - var param = Object.assign({}, this.queryParam, this.isorter) + const param = Object.assign({}, this.queryParam, this.isorter) param.field = this.getQueryField() param.pageNo = this.ipagination.current param.pageSize = this.ipagination.pageSize @@ -170,7 +170,7 @@ export default { }, // 重置字典类型搜索框的内容 searchReset () { - var that = this + const that = this that.queryParam.dictName = '' that.queryParam.dictCode = '' that.loadData(this.ipagination.current) @@ -204,5 +204,5 @@ export default { } diff --git a/jero-web/src/views/system/LogList.vue b/jero-web/src/views/system/LogList.vue index 4a7779aa..f51daad9 100644 --- a/jero-web/src/views/system/LogList.vue +++ b/jero-web/src/views/system/LogList.vue @@ -59,12 +59,12 @@ :loading="loading" @change="handleTableChange"> -
+
请求方法:{{ record.method }}
请求参数:{{ record.requestParam }}
- + @@ -178,7 +178,7 @@ export default { }, methods: { getQueryParams () { - var param = Object.assign({}, this.queryParam, this.isorter) + const param = Object.assign({}, this.queryParam, this.isorter) param.field = this.getQueryField() param.pageNo = this.ipagination.current param.pageSize = this.ipagination.pageSize @@ -192,8 +192,8 @@ export default { // 重置 searchReset () { - var that = this - var logType = that.queryParam.logType + const that = this + const logType = that.queryParam.logType that.queryParam = {} // 清空查询区域参数 that.queryParam.logType = logType that.loadData(this.ipagination.current) @@ -201,10 +201,10 @@ export default { // 日志类型 callback (key) { // 动态添加操作类型列 - if (key == 2) { + if ((key + '') === '2') { this.tabKey = '2' this.columns.splice(7, 0, this.operateColumn) - } else if (this.columns.length == 9) { + } else if (this.columns.length === 9) { this.tabKey = '1' this.columns.splice(7, 1) } @@ -225,5 +225,5 @@ export default { } diff --git a/jero-web/src/views/system/NewPermissionList.vue b/jero-web/src/views/system/NewPermissionList.vue index f5b4b77e..44b70b44 100644 --- a/jero-web/src/views/system/NewPermissionList.vue +++ b/jero-web/src/views/system/NewPermissionList.vue @@ -43,13 +43,13 @@ - 详情 + 详情 - 添加下级 + 添加下级 - 数据规则 + 数据规则 @@ -96,11 +96,11 @@ const columns = [ dataIndex: 'menuType', key: 'menuType', customRender: function (text) { - if (text == 0) { + if ((text + '') === '0') { return '菜单' - } else if (text == 1) { + } else if ((text + '') === '1') { return '菜单' - } else if (text == 2) { + } else if ((text + '') === '2') { return '按钮/权限' } else { return text diff --git a/jero-web/src/views/system/PermissionDataRuleList.vue b/jero-web/src/views/system/PermissionDataRuleList.vue index 16e8ae7d..e2da5c86 100644 --- a/jero-web/src/views/system/PermissionDataRuleList.vue +++ b/jero-web/src/views/system/PermissionDataRuleList.vue @@ -123,7 +123,7 @@ export default { } const that = this this.dataSource = [] - var params = this.getQueryParams()// 查询条件 + const params = this.getQueryParams()// 查询条件 getPermissionRuleList(params).then((res) => { if (res.success) { that.dataSource = res.result @@ -146,7 +146,7 @@ export default { this.$refs.modalForm.title = '新增' }, searchQuery () { - var params = this.getQueryParams() + const params = this.getQueryParams() params.permissionId = this.permId queryPermissionRule(params).then((res) => { if (res.success) { @@ -172,7 +172,7 @@ export default { } }, getRowClassname (record) { - if (record.status != 1) { + if ((record.status + '') !== '1') { return 'data-rule-invalid' } } diff --git a/jero-web/src/views/system/PermissionList.vue b/jero-web/src/views/system/PermissionList.vue index 3371be96..ddf1bc50 100644 --- a/jero-web/src/views/system/PermissionList.vue +++ b/jero-web/src/views/system/PermissionList.vue @@ -43,13 +43,13 @@ - 详情 + 详情 - 添加下级 + 添加下级 - 数据规则 + 数据规则 @@ -96,11 +96,11 @@ const columns = [ dataIndex: 'menuType', key: 'menuType', customRender: function (text) { - if (text == 0) { + if ((text + '') === '0') { return '菜单' - } else if (text == 1) { + } else if ((text + '') === '1') { return '菜单' - } else if (text == 2) { + } else if ((text + '') === '2') { return '按钮/权限' } else { return text diff --git a/jero-web/src/views/system/QuartzJobList.vue b/jero-web/src/views/system/QuartzJobList.vue index f550e9b9..8201ab05 100644 --- a/jero-web/src/views/system/QuartzJobList.vue +++ b/jero-web/src/views/system/QuartzJobList.vue @@ -75,8 +75,8 @@ - 启动 - 停止 + 启动 + 停止 @@ -95,8 +95,8 @@
@@ -210,7 +210,7 @@ export default { // TODO 筛选 if (Object.keys(sorter).length > 0) { this.isorter.column = sorter.field - this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc' + this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc' } // 这种筛选方式只支持单选 @@ -223,7 +223,7 @@ export default { this.loadData() }, pauseJob: function (record) { - var that = this + const that = this // 暂停定时任务 this.$confirm({ title: '确认暂停', @@ -242,7 +242,7 @@ export default { }) }, resumeJob: function (record) { - var that = this + const that = this // 恢复定时任务 this.$confirm({ title: '确认启动', @@ -261,7 +261,7 @@ export default { }) }, executeImmediately (record) { - var that = this + const that = this // 立即执行定时任务 this.$confirm({ title: '确认提示', @@ -283,5 +283,5 @@ export default { } diff --git a/jero-web/src/views/system/RoleList.vue b/jero-web/src/views/system/RoleList.vue index 2b22bf81..d4dfa633 100644 --- a/jero-web/src/views/system/RoleList.vue +++ b/jero-web/src/views/system/RoleList.vue @@ -188,5 +188,5 @@ export default { } diff --git a/jero-web/src/views/system/RoleUserList.vue b/jero-web/src/views/system/RoleUserList.vue index fd3d6e32..65002bb3 100644 --- a/jero-web/src/views/system/RoleUserList.vue +++ b/jero-web/src/views/system/RoleUserList.vue @@ -89,7 +89,7 @@ - +
@@ -115,7 +115,7 @@
-
+
新增用户 已有用户 @@ -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() diff --git a/jero-web/src/views/system/SysAnnouncementList.vue b/jero-web/src/views/system/SysAnnouncementList.vue index 4ac14e63..ba8ae592 100644 --- a/jero-web/src/views/system/SysAnnouncementList.vue +++ b/jero-web/src/views/system/SysAnnouncementList.vue @@ -68,23 +68,23 @@ @change="handleTableChange"> - 编辑 + 编辑 - + 更多 - + 删除 - + 发布 - + 撤销 @@ -152,9 +152,9 @@ export default { align: 'center', dataIndex: 'msgCategory', customRender: function (text) { - if (text == '1') { + if ((text + '') === '1') { return '通知公告' - } else if (text == '2') { + } else if ((text + '') === '2') { return '系统消息' } else { return text @@ -181,11 +181,11 @@ export default { align: 'center', dataIndex: 'priority', customRender: function (text) { - if (text == 'L') { + if ((text + '') === 'L') { return '低' - } else if (text == 'M') { + } else if ((text + '') === 'M') { return '中' - } else if (text == 'H') { + } else if ((text + '') === 'H') { return '高' } else { return text @@ -197,9 +197,9 @@ export default { align: 'center', dataIndex: 'msgType', customRender: function (text) { - if (text == 'USER') { + if ((text + '') === 'USER') { return '指定用户' - } else if (text == 'ALL') { + } else if ((text + '') === 'ALL') { return '全体用户' } else { return text @@ -211,11 +211,11 @@ export default { align: 'center', dataIndex: 'sendStatus', customRender: function (text) { - if (text == 0) { + if ((text + '') === '0') { return '未发布' - } else if (text == 1) { + } else if ((text + '') === '1') { return '已发布' - } else if (text == 2) { + } else if ((text + '') === '2') { return '已撤销' } else { return text @@ -265,7 +265,7 @@ export default { // 执行发布操作 releaseData: function (id) { console.log(id) - var that = this + const that = this doReleaseData({ id: id }).then((res) => { if (res.success) { that.$message.success(res.message) @@ -277,7 +277,7 @@ export default { }, // 执行撤销操作 reovkeData: function (id) { - var that = this + const that = this doReovkeData({ id: id }).then((res) => { if (res.success) { that.$message.success(res.message) diff --git a/jero-web/src/views/system/SysCategoryList.vue b/jero-web/src/views/system/SysCategoryList.vue index 132dadf5..1125cfe1 100644 --- a/jero-web/src/views/system/SysCategoryList.vue +++ b/jero-web/src/views/system/SysCategoryList.vue @@ -114,19 +114,19 @@ export default { // 列表项是否可选择 rowSelection: { selectedRowKeys: _this.selectedRowKeys, - onChange: (selectedRowKeys) => _this.selectedRowKeys = selectedRowKeys + onChange: (selectedRowKeys) => (_this.selectedRowKeys = selectedRowKeys) } } } }, methods: { loadData (arg) { - if (arg == 1) { + if (arg === 1) { this.ipagination.current = 1 } this.loading = true const params = this.getQueryParams() - return new Promise((resolve) => { + return new Promise(() => { getAction(this.url.list, params).then(res => { if (res.success) { const result = res.result @@ -152,7 +152,7 @@ export default { if (result && result.length > 0) { return result.map(item => { // 判断是否标记了带有子节点 - if (item[this.hasChildrenField] == '1') { + if ((item[this.hasChildrenField] + '') === '1') { const loadChild = { id: item.id + '_loadChild', name: 'loading...', isLoading: true } item.children = [loadChild] } @@ -201,7 +201,7 @@ export default { editOk (formData, arr) { if (arr && arr.length > 0) { for (let i = 0; i < arr.length; i++) { - if (arr[i].id == formData.id) { + if (arr[i].id === formData.id) { arr[i] = formData break } else { @@ -238,9 +238,11 @@ export default { } else { row.children = '' row.hasChildrenField = '0' + // eslint-disable-next-line prefer-promise-reject-errors reject() } } else { + // eslint-disable-next-line prefer-promise-reject-errors reject() } }) @@ -249,7 +251,7 @@ export default { getFormDataById (id, arr) { if (arr && arr.length > 0) { for (let i = 0; i < arr.length; i++) { - if (arr[i].id == id) { + if (arr[i].id === id) { this.parentFormData = arr[i] } else { this.getFormDataById(id, arr[i].children) @@ -281,7 +283,7 @@ export default { getExpandKeysByPid (pid, arr, all) { if (pid && arr && arr.length > 0) { for (let i = 0; i < arr.length; i++) { - if (arr[i].id == pid) { + if (arr[i].id === pid) { this.subExpandedKeys.push(arr[i].id) this.getExpandKeysByPid(arr[i].pid, all, all) } else { @@ -332,5 +334,5 @@ export default { } diff --git a/jero-web/src/views/system/SysCheckRuleList.vue b/jero-web/src/views/system/SysCheckRuleList.vue index 86cc8535..b18d2753 100644 --- a/jero-web/src/views/system/SysCheckRuleList.vue +++ b/jero-web/src/views/system/SysCheckRuleList.vue @@ -116,7 +116,12 @@ import SysCheckRuleTestModal from './modules/SysCheckRuleTestModal' export default { name: 'SysCheckRuleList', mixins: [JeroListMixin], - components: { SysCheckRuleModal, SysCheckRuleTestModal, JEllipsis }, + components: { + SysCheckRuleModal, + SysCheckRuleTestModal, + // eslint-disable-next-line vue/no-unused-components + JEllipsis + }, data () { return { description: '编码校验规则管理页面', diff --git a/jero-web/src/views/system/SysFillRuleList.vue b/jero-web/src/views/system/SysFillRuleList.vue index 8d1bef5b..5b29106f 100644 --- a/jero-web/src/views/system/SysFillRuleList.vue +++ b/jero-web/src/views/system/SysFillRuleList.vue @@ -183,5 +183,5 @@ export default { } diff --git a/jero-web/src/views/system/SysGatewayRouteList.vue b/jero-web/src/views/system/SysGatewayRouteList.vue index aebe64bc..be9d3a8a 100644 --- a/jero-web/src/views/system/SysGatewayRouteList.vue +++ b/jero-web/src/views/system/SysGatewayRouteList.vue @@ -17,9 +17,9 @@ :loading="loading" class="j-table-force-nowrap" @change="handleTableChange"> - - 禁用 - 正常 + + 禁用 + 正常 编辑 diff --git a/jero-web/src/views/system/SysUserOnlineList.vue b/jero-web/src/views/system/SysUserOnlineList.vue index 9df4ceae..e1942d51 100644 --- a/jero-web/src/views/system/SysUserOnlineList.vue +++ b/jero-web/src/views/system/SysUserOnlineList.vue @@ -41,7 +41,7 @@ class="j-table-force-nowrap" @change="handleTableChange"> -