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