|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
/*
|
|
|
|
|
* @Author: your name
|
|
|
|
|
* @Date: 2021-10-27 15:29:37
|
|
|
|
|
* @LastEditTime: 2021-10-27 19:37:22
|
|
|
|
|
* @LastEditTime: 2021-10-28 10:36:57
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
|
* @FilePath: /data-show/src/views/IndustryDataExport/tableEvent.js
|
|
|
|
@ -69,8 +69,12 @@ export default {
|
|
|
|
|
onChange(val, type) {
|
|
|
|
|
this.noClick = true;
|
|
|
|
|
if (type === "quDao") {
|
|
|
|
|
this.qdIndeterminate = !!this.quDao.length && this.quDao.length < this.plainOptions.length;
|
|
|
|
|
this.qdCheckAll = this.quDao.length === this.plainOptions.length;
|
|
|
|
|
this.form.sQuDao = this.quDao.toString();
|
|
|
|
|
} else if (type === "qingGan") {
|
|
|
|
|
this.qgIndeterminate = !!this.qingGan.length && this.qingGan.length < this.plainOptions3.length;
|
|
|
|
|
this.qgCheckAll = this.qingGan.length === this.plainOptions3.length;
|
|
|
|
|
this.doFormQS(this.qingGan);
|
|
|
|
|
}
|
|
|
|
|
this.form.iPageIndex = 1;
|
|
|
|
@ -184,6 +188,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 导出数据
|
|
|
|
|
exportExcel() {
|
|
|
|
|
if (this.execlForm.iNum) {
|
|
|
|
|
this.mergeForm();
|
|
|
|
@ -195,5 +200,43 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 点击渠道全部的效果
|
|
|
|
|
onCheckAllChangeQd(e) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
this.plainOptions.forEach(ele => {
|
|
|
|
|
let value = ele.value;
|
|
|
|
|
arr.push(value)
|
|
|
|
|
})
|
|
|
|
|
Object.assign(this, {
|
|
|
|
|
quDao: e.target.checked ? arr : [],
|
|
|
|
|
qdIndeterminate: false,
|
|
|
|
|
qdCheckAll: e.target.checked,
|
|
|
|
|
});
|
|
|
|
|
this.form.sQuDao = this.quDao.toString();
|
|
|
|
|
this.form.iPageIndex = 1;
|
|
|
|
|
this.pagination.current = 1;
|
|
|
|
|
Promise.all([this.getList(), this.getTable()]).then(() => {
|
|
|
|
|
this.noClick = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 点击调性全部的方法
|
|
|
|
|
onCheckAllChangeQg(e) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
this.plainOptions3.forEach(ele => {
|
|
|
|
|
let value = ele.value;
|
|
|
|
|
arr.push(value)
|
|
|
|
|
})
|
|
|
|
|
Object.assign(this, {
|
|
|
|
|
qingGan: e.target.checked ? arr : [],
|
|
|
|
|
qgIndeterminate: false,
|
|
|
|
|
qgCheckAll: e.target.checked,
|
|
|
|
|
});
|
|
|
|
|
this.doFormQS(this.qingGan);
|
|
|
|
|
this.form.iPageIndex = 1;
|
|
|
|
|
this.pagination.current = 1;
|
|
|
|
|
Promise.all([this.getList(), this.getTable()]).then(() => {
|
|
|
|
|
this.noClick = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|