|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="bg-transparent flex resumption">
|
|
|
+ <div class="app-container">
|
|
|
<el-row :gutter="20">
|
|
|
<!--机构数据-->
|
|
|
<el-col :span="4" :xs="24">
|
|
|
@@ -412,7 +412,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { mapState, mapMutations } from "vuex";
|
|
|
+import {mapGetters } from "vuex";
|
|
|
// import { Message } from "element-ui";
|
|
|
import DialogDetail from "./dialog.detail";
|
|
|
import DialogScanRecord from "./dialog.scanrecord";
|
|
|
@@ -513,6 +513,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
+ selectedOrgName:null,
|
|
|
pageData: [],
|
|
|
columns: [
|
|
|
{ key: 0, label: `序号`, visible: true },
|
|
|
@@ -618,10 +619,10 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(["org", "loginUser"]),
|
|
|
+ ...mapGetters(["orgName"])
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapMutations([]),
|
|
|
+
|
|
|
getLabel,
|
|
|
toName(row) {
|
|
|
// const ymd = row.ymd;
|
|
|
@@ -654,7 +655,12 @@ export default {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- await api.exportResumptionRecord(this.queryParams);
|
|
|
+
|
|
|
+ this.download('/core/resumption/record/export', {
|
|
|
+ ...this.queryParams
|
|
|
+ }, `【${this.selectedOrgName}】-履职记录${new Date().getTime()}.xlsx`)
|
|
|
+
|
|
|
+ // await api.exportResumptionRecord(this.queryParams);
|
|
|
},
|
|
|
showDetail(row) {
|
|
|
this.$refs.detaildialog.show(row.resumptionId, row.name);
|
|
|
@@ -666,6 +672,7 @@ export default {
|
|
|
|
|
|
getDefaultKey(key) {
|
|
|
this.queryParams.orgId = key;
|
|
|
+ this.selectedOrgName=this.orgName;
|
|
|
this.getList();
|
|
|
this.loadRoles(key);
|
|
|
this.loadPlanList();
|
|
|
@@ -679,6 +686,7 @@ export default {
|
|
|
// 节点单击事件
|
|
|
clickTreeNode(data) {
|
|
|
this.queryParams.orgId = data.id;
|
|
|
+ this.selectedOrgName=data.name;
|
|
|
this.loadPlanList();
|
|
|
this.loadRoles();
|
|
|
this.getList();
|