Commit 56b79b8a authored by 姬鋆屾's avatar 姬鋆屾

tui

parent 8303f38f
...@@ -47,13 +47,14 @@ ...@@ -47,13 +47,14 @@
<el-checkbox <el-checkbox
v-for="(item, index) in setcolum" v-for="(item, index) in setcolum"
:key="index" :key="index"
:label="item.label" :label="item.prop"
> >
{{ item.label }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="mt20" style="text-align:right"> <div class="mt20" style="text-align:right">
<el-button>取消</el-button> <el-button @click="handleCancel">取消</el-button>
<el-button type="primary">确定</el-button> <el-button type="primary" @click="handleSubmit">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 导出记录查看 --> <!-- 导出记录查看 -->
...@@ -100,6 +101,16 @@ export default { ...@@ -100,6 +101,16 @@ export default {
this.initalArr = this.config.columns; this.initalArr = this.config.columns;
}, },
methods: { methods: {
// 表格设置弹窗取消操作
handleCancel() {
this.checkList = [];
this.isdialog = false;
},
// 表格设置提交操作
handleSubmit() {
this.doExport();
this.isdialog = false;
},
// 处理 // 处理
handleArr(arr, currentTime) { handleArr(arr, currentTime) {
console.log(currentTime); console.log(currentTime);
...@@ -172,6 +183,10 @@ export default { ...@@ -172,6 +183,10 @@ export default {
this.setcolum = this.config.columns.filter( this.setcolum = this.config.columns.filter(
(item) => item.label && item.prop (item) => item.label && item.prop
); );
this.setcolum = this.setcolum.filter(
(val) => val.prop !== "attendanceStaffStatEntities"
);
console.log(this.setcolum);
}, },
lookexportHis() { lookexportHis() {
this.drawerhistory = true; this.drawerhistory = true;
...@@ -188,6 +203,9 @@ export default { ...@@ -188,6 +203,9 @@ export default {
if (this.selection.length > 0) { if (this.selection.length > 0) {
params["idList"] = this.selection; params["idList"] = this.selection;
} }
if (this.checkList.length > 0) {
params["properties"] = this.checkList;
}
this.$download( this.$download(
"/attendance/stat/exportExcelExt", "/attendance/stat/exportExcelExt",
{ {
...@@ -195,7 +213,10 @@ export default { ...@@ -195,7 +213,10 @@ export default {
}, },
{ type: "excel" } { type: "excel" }
) )
.then(() => (this.isExport = false)) .then(() => {
this.isExport = false;
this.checkList = [];
})
.catch((error) => { .catch((error) => {
this.isExport = false; this.isExport = false;
this.$message.error(error.message); this.$message.error(error.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment