From 79cc1724a1e8350e9d75d3a43a51a87b5cb14ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 14 Aug 2024 17:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scss/modules/management/list-main.scss | 2 +- .../modules/base/smartExport/Records.vue | 4 + .../base/smartExport/exportSetting.vue | 288 --------- src/views/modules/base/smartExport/exset.vue | 595 +++++++++++++++++ src/views/modules/base/smartExport/index.vue | 604 ++++++------------ 5 files changed, 796 insertions(+), 697 deletions(-) delete mode 100644 src/views/modules/base/smartExport/exportSetting.vue create mode 100644 src/views/modules/base/smartExport/exset.vue diff --git a/src/assets/scss/modules/management/list-main.scss b/src/assets/scss/modules/management/list-main.scss index fbc44d3f7..2d5997897 100644 --- a/src/assets/scss/modules/management/list-main.scss +++ b/src/assets/scss/modules/management/list-main.scss @@ -5,7 +5,7 @@ .m-search { padding: 24px 10px 10px; - // box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); + box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); background: #FFFFFF; box-shadow: 0px 6px 16px 0px rgba(0,0,0,0.08), 0px 3px 6px -4px rgba(0,0,0,0.12); margin:20px 7px 7px; diff --git a/src/views/modules/base/smartExport/Records.vue b/src/views/modules/base/smartExport/Records.vue index 9cbc5f3b2..60cc14486 100644 --- a/src/views/modules/base/smartExport/Records.vue +++ b/src/views/modules/base/smartExport/Records.vue @@ -26,6 +26,10 @@ total: 0 } }, + created() { + console.log("Component created"); + // 其他逻辑 + }, methods: { open(row) { this.showDialog = true diff --git a/src/views/modules/base/smartExport/exportSetting.vue b/src/views/modules/base/smartExport/exportSetting.vue deleted file mode 100644 index ca02d39d8..000000000 --- a/src/views/modules/base/smartExport/exportSetting.vue +++ /dev/null @@ -1,288 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/base/smartExport/exset.vue b/src/views/modules/base/smartExport/exset.vue new file mode 100644 index 000000000..dec742f6f --- /dev/null +++ b/src/views/modules/base/smartExport/exset.vue @@ -0,0 +1,595 @@ + + + \ No newline at end of file diff --git a/src/views/modules/base/smartExport/index.vue b/src/views/modules/base/smartExport/index.vue index 2a3e28d2f..87b91b37e 100644 --- a/src/views/modules/base/smartExport/index.vue +++ b/src/views/modules/base/smartExport/index.vue @@ -79,246 +79,8 @@ -
- - - - - - +
+
@@ -340,174 +102,178 @@ import { mapGetters } from "vuex"; import Records from "./Records.vue" import axios from "axios"; - import exportSetting from "./exportSetting.vue" + import exset from "./exset.vue" // import smartImportInfo from "./cpts/smartImportInfo"; export default { data() { return { + exportList: [], form: { - name: '', - mobile: '', - updateCategory:null, - satisfactionNum:null, - idNum: '', - birthdayStart: '', - birthdayEnd: '', - ageStart: '', - ageEnd: '', - integrityScoreFrom: null,//居民信息完整度はじめ - integrityScoreTo: null,//居民信息完整度end - identity:null, - gender: '', - cultureLevel: '', - localResidenceFlag: '', - householdSituation: '', - nation: '', - agencyId: '', - buildId: '', - homeId: '', - unitId: '', - gridId: '', - villageId: '', - attentionCrowds: [], - healthStatus: [], - nationality: '', - resiHouseRel: '', - partyFlag: '', - updateTimeStart: '', - updateTimeEnd: '', - specialCategoryCodes: [], - remark: '', - level: '', - orgType: '' - }, - categoryAllList:[ - { - label:'群众', - value:'partyFlag0', - },{ - label:'流动人员', - value:'FLOATING_FLAG', - },{ - label:'党员', - value:'partyFlag1', - },{ - label:'共青团员', - value:'partyFlag2', - },{ - label:'残疾人', - value:'DISABILITY_FLAG', - },{ - label:'大病', - value:'SERIOUS_ILLNESS_FLAG', - },{ - label:'慢病', - value:'CHRONIC_DISEASE_FLAG', - },{ - label:'老年人', - value:'OLD_PEOPLE_FLAG', - children:[ + name: '', + mobile: '', + updateCategory: null, + satisfactionNum: null, + idNum: '', + birthdayStart: '', + birthdayEnd: '', + ageStart: '', + ageEnd: '', + integrityScoreFrom: null,//居民信息完整度はじめ + integrityScoreTo: null,//居民信息完整度end + identity: null, + gender: '', + cultureLevel: '', + localResidenceFlag: '', + householdSituation: '', + nation: '', + agencyId: '', + buildId: '', + homeId: '', + unitId: '', + gridId: '', + villageId: '', + attentionCrowds: [], + healthStatus: [], + nationality: '', + resiHouseRel: '', + partyFlag: '', + updateTimeStart: '', + updateTimeEnd: '', + specialCategoryCodes: [], + remark: '', + level: '', + orgType: '' + }, + categoryAllList: [ { - label: "失能老人", - value: "DISABLED_FLAG", + label: '群众', + value: 'partyFlag0', }, { - label: "空巢老人", - value: "EMPTY_NESTER_FLAG", - }, - { - label: "失智老人", - value: "DEMENTED_FLAG", - }, - { - label: "独居老人", - value: "LIVE_ALONE_FLAG", - }, - { - label: "普通老年人", - value: "OLD_PEOPLE_FLAG", + label: '流动人员', + value: 'FLOATING_FLAG', + }, { + label: '党员', + value: 'partyFlag1', + }, { + label: '共青团员', + value: 'partyFlag2', + }, { + label: '残疾人', + value: 'DISABILITY_FLAG', + }, { + label: '大病', + value: 'SERIOUS_ILLNESS_FLAG', + }, { + label: '慢病', + value: 'CHRONIC_DISEASE_FLAG', + }, { + label: '老年人', + value: 'OLD_PEOPLE_FLAG', + children: [ + { + label: "失能老人", + value: "DISABLED_FLAG", + }, { + label: "空巢老人", + value: "EMPTY_NESTER_FLAG", + }, + { + label: "失智老人", + value: "DEMENTED_FLAG", + }, + { + label: "独居老人", + value: "LIVE_ALONE_FLAG", + }, + { + label: "普通老年人", + value: "OLD_PEOPLE_FLAG", + } + ] + }, { + label: '低保人员', + value: 'SUBSISTENCE_ALLOWANCE_FLAG', + }, { + label: '退役军人', + value: 'VETERAN_FLAG', + }, { + label: '保障房人员', + value: 'ENSURE_HOUSE_FLAG', + }, { + label: '育龄妇女', + value: 'FERTILE_WOMAN_FLAG', + }, { + label: '特扶人员', + value: 'SPECIAL_SUPPORT_FLAG', + }, { + label: "留守儿童", + value: "LBC_FLAG", + children: null + }, { + label: "艾滋病人员", + value: "AIDS_FLAG", + children: null + }, { + label: '失业人员', + value: 'UNEMPLOYED_FLAG', + }, { + label: '新阶层人士', + value: 'NEW_STRATUM_FLAG', + }, { + label: "新就业群体", + value: "NEG_FLAG", + "children": null + }, { + label: '安置帮教人员', + value: 'anzhibangjiao', + }, { + label: '吸毒人员', + value: 'xidurenyuan', + }, { + label: '社区矫正人员', + value: 'shequjiaozheng', + }, { + label: '不良青少年', + value: 'buliangqingshaonian', + }, { + label: '肇事肇祸精神障碍患者', + value: 'zhaoshizhaohuojingshenbing', + }, { + label: '邪教人员', + value: 'xiejiaorenyuan', + }, { + label: '信访人员', + value: 'xinfangrenyaun', + }, { + label: '统战人员', + value: 'tongzhanrenyuan', + }, { + label: '志愿者', + value: 'VOLUNTEER_FLAG', + }, { + label: '网格员', + value: 'GRID_MEMBER_FLAG', + }, { + label: '楼长', + value: 'BUILDING_CHIEF_FLAG', + }, { + label: '单元长', + value: 'UNIT_CHIEF_FLAG', + }, { + label: '公益岗', + value: 'PUBLIC_WELFARE_FLAG', } - ] - },{ - label:'低保人员', - value:'SUBSISTENCE_ALLOWANCE_FLAG', - },{ - label:'退役军人', - value:'VETERAN_FLAG', - },{ - label:'保障房人员', - value:'ENSURE_HOUSE_FLAG', - },{ - label:'育龄妇女', - value:'FERTILE_WOMAN_FLAG', - },{ - label:'特扶人员', - value:'SPECIAL_SUPPORT_FLAG', - },{ - label: "留守儿童", - value: "LBC_FLAG", - children: null - },{ - label: "艾滋病人员", - value: "AIDS_FLAG", - children: null - },{ - label:'失业人员', - value:'UNEMPLOYED_FLAG', - },{ - label:'新阶层人士', - value:'NEW_STRATUM_FLAG', - },{ - label: "新就业群体", - value: "NEG_FLAG", - "children": null - },{ - label:'安置帮教人员', - value:'anzhibangjiao', - },{ - label:'吸毒人员', - value:'xidurenyuan', - },{ - label:'社区矫正人员', - value:'shequjiaozheng', - },{ - label:'不良青少年', - value:'buliangqingshaonian', - },{ - label:'肇事肇祸精神障碍患者', - value:'zhaoshizhaohuojingshenbing', - },{ - label:'邪教人员', - value:'xiejiaorenyuan', - },{ - label:'信访人员', - value:'xinfangrenyaun', - },{ - label:'统战人员', - value:'tongzhanrenyuan', - },{ - label:'志愿者', - value:'VOLUNTEER_FLAG', - },{ - label:'网格员', - value:'GRID_MEMBER_FLAG', - },{ - label:'楼长', - value:'BUILDING_CHIEF_FLAG', - },{ - label:'单元长', - value:'UNIT_CHIEF_FLAG', - },{ - label:'公益岗', - value:'PUBLIC_WELFARE_FLAG', - } - ], - showDialog:false, - SearchData:[], - tableName:"", - createPre:"", - dateTime:"", + ], + showDialog: false, + SearchData: { + tableName: "", + createPre: "", + dateTime: "", + + }, + tableLoading: false, searchH: 170, tableData: [], @@ -518,18 +284,18 @@ pageSize: window.localStorage.getItem("pageSize") || 20, total: 1, pageType: "list", // 列表list 新增add 详情detail - + dicts: { - import_status:[], - resident_category_import:[], + import_status: [], + resident_category_import: [], }, //字典对象 - - fileCode:null, - taskId:null, - processStatus:null, + + fileCode: null, + taskId: null, + processStatus: null, }; }, - components: {Records,exportSetting}, + components: {exset,Records,}, computed: { maxTableHeight() { const h = this.clientHeight - this.searchH - 330 + this.iframeHeight; @@ -541,6 +307,7 @@ watch: {}, async created() { await this.getDicts(); + await this.getExportList() }, mounted() { this.getTableData(); @@ -588,8 +355,8 @@ // 调出新增组件 async handleAdd() { - this.pageType = "set"; - this.fileCode = null; + this.pageType="set" + }, // 查看详情触发事件 async handleDetail(row) { @@ -680,6 +447,27 @@ this.pageNo = 1; this.getTableData(); }, + //导出字段 + async getExportList() { + const url = "/oper/customize/icformitemgroup/list"; + let params = { + formCode: "resident_base_info,community_info", + display:1 + }; + const { data, code, msg } = await requestPost(url, params); + if (code === 0) { + data.forEach((item) => { + (async (id) => { + // item.queryItemList = await this.getExportChildList(id) + item.queryItemList = []; + })(item.id); + }); + this.exportList = [...data]; + console.log(this.exportList,"dflksh kjfn jks"); + } else { + this.$message.error(msg); + } + }, }, props: {},