|
|
@@ -425,14 +425,23 @@ export default {
|
|
|
* @date : 2022/6/21 16:16
|
|
|
*/
|
|
|
setCheckRow(it, row) {
|
|
|
- console.log( 'setCheckRow',it, row)
|
|
|
- if (!this.batchKeysPage.includes(it[this.selectKey])) {
|
|
|
- this.batchKeysPage.push(it[this.selectKey]);
|
|
|
- this.batchRowsPage.push(it)
|
|
|
- this.$refs['table-select'].batchKeys = this.batchKeysPage;
|
|
|
- this.$refs['table-select'].batchRows = [...this.batchRowsPage];
|
|
|
+ if(typeof it !== 'object'){
|
|
|
+ if (!this.batchKeysPage.includes(it)) {
|
|
|
+ this.batchKeysPage.push(it);
|
|
|
+ this.batchRowsPage.push(row)
|
|
|
+ this.$refs['table-select'].batchKeys = this.batchKeysPage;
|
|
|
+ this.$refs['table-select'].batchRows = [...this.batchRowsPage];
|
|
|
+ }
|
|
|
+ this.$refs['table-select'].setCheckboxRow(row);
|
|
|
+ }else{
|
|
|
+ if (!this.batchKeysPage.includes(it[this.selectKey])) {
|
|
|
+ this.batchKeysPage.push(it[this.selectKey]);
|
|
|
+ this.batchRowsPage.push(it)
|
|
|
+ this.$refs['table-select'].batchKeys = this.batchKeysPage;
|
|
|
+ this.$refs['table-select'].batchRows = [...this.batchRowsPage];
|
|
|
+ }
|
|
|
+ this.$refs['table-select'].setCheckboxRow(row);
|
|
|
}
|
|
|
- this.$refs['table-select'].$refs['table'].setCheckboxRow(row, true);
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 放大镜点击事件
|