【fix ESLint】src/components/jero/modal

This commit is contained in:
zhaoxiao
2023-03-03 16:02:40 +08:00
parent 87111777f7
commit 1eded6b4fc
2 changed files with 11 additions and 11 deletions
@@ -717,7 +717,7 @@ export default {
case days.includes('L'):
// alert(days);
if (days.len == 1) {
if (days.len + '' === '1') {
day.cronEvery = '6'
day.cronLastSpecificDomDay = '1'
} else {
@@ -845,7 +845,7 @@ export default {
.ant-tabs-tab {
padding: 0 24px!important;
background-color: #f5f7fa!important;
margin-right: 0px!important;
margin-right: 0 !important;
border-radius: 0;
line-height: 38px;
border: 1px solid transparent!important;
@@ -250,7 +250,7 @@ export default {
this.dynamicParam = { ...dynamicTemp }
},
loadData (arg) {
if (arg == 1) {
if (arg === 1) {
this.table.pagination.current = 1
}
const params = this.getQueryParams()// 查询条件
@@ -289,9 +289,9 @@ export default {
},
handleChangeInTableSelect (selectedRowKeys, selectionRows) {
// update-begin-author:taoyan date:2020902 for:【issue】开源online的几个问题 LOWCOD-844
if (!selectedRowKeys || selectedRowKeys.length == 0) {
if (!selectedRowKeys || selectedRowKeys.length === 0) {
this.table.selectionRows = []
} else if (selectedRowKeys.length == selectionRows.length) {
} else if (selectedRowKeys.length === selectionRows.length) {
this.table.selectionRows = selectionRows
} else {
// 当两者长度不一的时候 需要判断
@@ -343,7 +343,7 @@ export default {
return false
}
}
if (!this.table.selectionRows || this.table.selectionRows.length == 0) {
if (!this.table.selectionRows || this.table.selectionRows.length === 0) {
this.$message.warning('请选择一条记录')
return false
}
@@ -382,7 +382,7 @@ export default {
let res = ''
Object.keys(record).forEach(key => {
// update-begin---author:liusq Date:20210203 forpop选择器列主键问题 issues/I29P9Q------------
if (key == 'id') {
if (key + '' === 'id') {
res = record[key] + res
} else {
res += record[key]
@@ -400,7 +400,7 @@ export default {
on: {
click: () => {
const rowKey = this.combineRowKey(record)
if (!this.table.selectedRowKeys || this.table.selectedRowKeys.length == 0) {
if (!this.table.selectedRowKeys || this.table.selectedRowKeys.length === 0) {
const arr1 = []; const arr2 = []
arr1.push(record)
arr2.push(rowKey)
@@ -411,9 +411,9 @@ export default {
this.table.selectedRowKeys.push(rowKey)
this.table.selectionRows.push(record)
} else {
const rowKey_index = this.table.selectedRowKeys.indexOf(rowKey)
this.table.selectedRowKeys.splice(rowKey_index, 1)
this.table.selectionRows.splice(rowKey_index, 1)
const rowKeyIndex = this.table.selectedRowKeys.indexOf(rowKey)
this.table.selectedRowKeys.splice(rowKeyIndex, 1)
this.table.selectionRows.splice(rowKeyIndex, 1)
}
}
}