From 22113dbe74a05e51b66db805fe69a2b5b19efd74 Mon Sep 17 00:00:00 2001 From: tianq Date: Mon, 17 Apr 2023 09:52:48 +0800 Subject: [PATCH 01/12] radio --- src/views/modules/census/census-residentList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index 345177447..85dc95010 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -44,7 +44,7 @@
{{ item.name }}
{{ item.value }}
-
{{ item.value / 100 }}%
+
{{ item.radio }}%
@@ -73,7 +73,7 @@
{{ item.name }}
{{ item.value }}
-
{{ item.value / 100 }}%
+
{{ item.radio }}%
From 60f5337f8b50a56a8a49847f45af66274c970941 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 17 Apr 2023 10:34:24 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E5=B9=B4=E9=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 21dfab753..fb4b098a7 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -409,7 +409,10 @@ export default { queryType: { AGENCY_ID: "like", }, - ageObj: {}, + ageObj: { + start:"", + end:"" + }, }; }, computed: { @@ -538,6 +541,7 @@ export default { } else { let temp = []; for (let i in this.ageObj) { + if(this.ageObj[i]==null) this.ageObj[i] = '' temp.push(this.ageObj[i]); } let arr4 = [ From 1b4bc1a511792ac5bf1551ecc09b85cfc79aef8c Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 17 Apr 2023 17:09:31 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90?= =?UTF-8?q?=E6=89=80=E5=B1=9E=E7=BB=84=E7=BB=87=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=8A=9F=E8=83=BD=E5=8E=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-accountActiveList.vue | 1 - src/views/modules/census/census-accountList.vue | 1 - src/views/modules/census/census-houseList.vue | 2 +- src/views/modules/census/census-nineList.vue | 2 +- src/views/modules/census/census-orgStatusList.vue | 1 - src/views/modules/census/census-residentList.vue | 2 +- 6 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 1da18b91e..53a1a5e39 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -11,7 +11,6 @@ v-model="formData.orgId" :options="orgOptions" :props="orgOptionProps" - clearable :show-all-levels="false" @change="handleChangeAgency" /> diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index 56ea1cbfe..7f5a48e75 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -11,7 +11,6 @@ v-model="formData.orgId" :options="orgOptions" :props="orgOptionProps" - clearable @change="handleChangeAgency" :show-all-levels="false" /> diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index cbe1bd72b..f2f6f0d3a 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -8,7 +8,7 @@ Date: Tue, 18 Apr 2023 14:51:46 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E7=BB=84=E7=BB=87=E5=8A=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-orgStatusList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index e113d03d8..fba39d254 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -194,7 +194,7 @@ export default { startDate: '', endDate: '' }, - + cateOptions: [], eventTypeCheck: [], pageNo: 1, @@ -355,7 +355,7 @@ export default { } const url = '/gov/org/customeragency/getAgencyCountList'; - let params = { agencyId: agencyId }; + let params = { agencyId: agencyId, timeStart: this.formData.startDate, timeEnd: this.formData.endDate }; const { data, code, msg } = await requestGet(url, params); if (code === 0) { From 8c7750d7d3c49d6bf994d3113917ed58a0473c2c Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 14:52:08 +0800 Subject: [PATCH 05/12] 1 --- src/views/modules/census/census-orgStatusList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index fba39d254..8fb02dcab 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -356,7 +356,7 @@ export default { const url = '/gov/org/customeragency/getAgencyCountList'; let params = { agencyId: agencyId, timeStart: this.formData.startDate, timeEnd: this.formData.endDate }; - const { data, code, msg } = await requestGet(url, params); + const { data, code, msg } = await requestPost(url, params); if (code === 0) { data.map(item => { From 01810e989fdcd99490e83ec7774839faf198a0e7 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 15:39:51 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E5=85=9A=E5=91=98=E7=94=BB=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityParty/dyhx/party.vue | 90 ++++++++++++------- 1 file changed, 60 insertions(+), 30 deletions(-) diff --git a/src/views/modules/communityParty/dyhx/party.vue b/src/views/modules/communityParty/dyhx/party.vue index 90e9eb8a5..f6c347768 100644 --- a/src/views/modules/communityParty/dyhx/party.vue +++ b/src/views/modules/communityParty/dyhx/party.vue @@ -220,13 +220,20 @@ export default { return { orgOptions: [], //组织 orgOptionProps: { - //组织 multiple: false, - value: 'agencyId', - label: 'agencyName', - children: 'subAgencyList', - emitPath: false, - checkStrictly: true + value: 'id', + label: 'partyOrgName', + children: 'children', + checkStrictly: true, + emitPath: false + + //组织 + // multiple: false, + // value: 'agencyId', + // label: 'agencyName', + // children: 'subAgencyList', + // emitPath: false, + // checkStrictly: true }, pieInitState: false, pieInitState2: false, @@ -297,7 +304,9 @@ export default { await nextTick(100); await this.getOrgTreeList(); // await this.getPartyOggList(); - + console.log(this.$store.state); + this.user = this.$store.state.user; + this.agencyId = this.user.agencyId; this.getAgeCount(); this.getEduCount(); this.getAgeList(); @@ -309,8 +318,10 @@ export default { methods: { handleChangeAgency(val) { let obj = this.$refs['myCascader'].getCheckedNodes()[0].data; + console.log('obj', obj); if (obj) { - this.orgType = obj.level === 'grid' ? 'grid' : 'agency'; + // this.orgType = obj.level === 'grid' ? 'grid' : 'agency'; + // this.orgType = obj.level } else { this.orgType = ''; } @@ -748,27 +759,46 @@ export default { this.visibleLoading = false; }, - getOrgTreeList() { - const { user } = this.$store.state; - this.$http - .post('/gov/org/customeragency/agencygridtree', {}) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg); - } else { - console.log('获取组织树成功', res.data); - // let { agencyList, subAgencyList } = res.data; - // const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]; - // this.orgOptions = this.deepTree(_arr); - this.orgOptions = []; - this.orgOptions.push(res.data); + async getOrgTreeList() { + function deleteChildren(arr) { + let childs = arr; + for (let i = childs.length; i--; i > 0) { + if (childs[i].children) { + if (childs[i].children.length) { + this.deleteChildren(childs[i].children); + } else { + delete childs[i].children; + } } - }) - .catch(() => { - return this.$message.error('网络错误'); - }); - }, + } + return arr; + } + const { user } = this.$store.state; + const url = '/resi/partymember/icPartyOrg/getSearchTreelist'; + let params = { + agencyId: user.agencyId + }; + + const { data, code, msg } = await requestGet(url, params); + console.log('data-orgparty----o', data); + if (code === 0) { + this.orgOptions = data; + this.changeKey(this.orgOptions); + } else { + } + }, + changeKey(arr) { + for (var i = 0; i < arr.length; i++) { + arr[i].value = arr[i].userId; + arr[i].label = arr[i].userName; + if (arr[i].children.length) { + this.changeKey(arr[i].children); + } else { + delete arr[i].children; + } + } + }, jumpDetail(val) { this.memberDialog = false; this.$router.push({ @@ -822,10 +852,10 @@ export default { edu: '/epmetuser/icresiuser/partymembereducationlist/export' }; const _arr = this.selectAgency[this.selectAgency.length - 1].split('-'); - const orgType = _arr[1] !== 'grid' ? 'agency' : 'grid'; + let params = { - orgId: _arr[0], - orgType: orgType, + orgId: this.orgId, + orgType: this.orgType, code: type == 'age' ? this.ageCode : this.eduCode }; // .post('epmetuser/icresiuser/exportExcel', params) From 79ed705612a058dd1cf9b71ed22c37c9cf06e0e7 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 16:03:45 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../census/census-accountActiveList.vue | 12 +- .../modules/census/census-accountList.vue | 16 + src/views/modules/census/census-houseList.vue | 13 + src/views/modules/census/census-nineList.vue | 8 + .../modules/census/census-orgStatusList.vue | 7 + .../modules/census/census-residentList.vue | 11 +- .../modules/communityParty/dyhx/party.vue | 8 +- .../modules/communityParty/dyhx/party1.vue | 1007 ++++++++++++++ .../modules/communityParty/dyhx/party22.vue | 1184 +++++++++++++++++ 9 files changed, 2261 insertions(+), 5 deletions(-) create mode 100644 src/views/modules/communityParty/dyhx/party1.vue create mode 100644 src/views/modules/communityParty/dyhx/party22.vue diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 53a1a5e39..9a265a0e7 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -39,6 +39,7 @@ > 查询 + 重置 @@ -222,6 +223,12 @@ export default { this.getCountLevel(); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + }, handleSizeChange(val) { this.pageSize = val; window.localStorage.setItem('pageSize', val); @@ -255,7 +262,8 @@ export default { this.orgId = this.formData.orgId; } console.log(this.formData); - this.pageNo = 1;this.pageNo2 = 1; + this.pageNo = 1; + this.pageNo2 = 1; this.getTableData(); this.getTableData2(); this.getCountLevel(); @@ -394,7 +402,7 @@ export default { this.tableLoading2 = false; if (code === 0) { this.total2 = data.total || 0; - console.log(this.total2) + console.log(this.total2); this.tableData2 = data.list ? data.list.map(item => { return item; diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index 7f5a48e75..e09471031 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -39,6 +39,7 @@ > 查询 + 重置
@@ -268,6 +269,12 @@ export default { // this.getPie(); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + }, handleSearch(val) { let tmp = this.formData.orgId; if (!(tmp && typeof tmp != 'undefined' && tmp != 0 && tmp != null)) { @@ -619,4 +626,13 @@ export default { .cur { cursor: pointer; } +.diy-button--output { + width: 100px; + height: 38px; + + background: #feb349; + box-shadow: 0px 2px 6px 0px rgba(198, 122, 16, 0.31); + border-radius: 6px; + color: #fff; +} diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index f2f6f0d3a..5fa1d1027 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -40,6 +40,7 @@ > 查询 + 重置
@@ -191,6 +192,7 @@ export default { return time.getTime() > nowData; }; return { + optionData:{}, dialogVisible: false, detailId: '', detailData: {}, @@ -265,6 +267,15 @@ export default { this.getOrgTreeList(); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + this.orgId = this.optionData.agencyId; + this.orgIdPath = this.optionData.orgIdPath; + this.orgType = this.optionData.level; + }, show(row) { this.dialogVisible = true; this.pageType = 'view'; @@ -703,6 +714,7 @@ export default { // const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]; // this.orgOptions = this.deepTree(_arr); this.orgOptions = []; + this.optionData=data; this.orgOptions.push(data); this.orgId = data.agencyId; this.orgIdPath = data.orgIdPath; @@ -837,6 +849,7 @@ export default { border-radius: 6px; color: #fff; } + .div_search { .item_width_2 { width: 200px; diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 5ac08a2e8..4d9bf832d 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -18,6 +18,7 @@ 查询 + 重置 @@ -208,6 +209,13 @@ export default { this.getPie(); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + this.orgType = ''; + }, show(row) { this.dialogVisible = true; this.pageType = 'view'; diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index 8fb02dcab..302860480 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -44,6 +44,7 @@ 查询 + 重置
@@ -253,6 +254,12 @@ export default { // this.getPie(); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + }, handleSearch(val) { this.getTableData(); this.getsubData(); diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index f3bf142bc..5a6d3d2b9 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -18,6 +18,7 @@ 查询 + 重置
@@ -73,7 +74,7 @@
{{ item.name }}
{{ item.value }}
-
{{ item.radio }}%
+
{{ item.radio }}%
@@ -239,6 +240,13 @@ export default { this.getsubData2(); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + this.orgType = ''; + }, show(row) { this.dialogVisible = true; this.pageType = 'view'; @@ -870,5 +878,4 @@ export default { border-radius: 6px; color: #fff; } - diff --git a/src/views/modules/communityParty/dyhx/party.vue b/src/views/modules/communityParty/dyhx/party.vue index f6c347768..144c89093 100644 --- a/src/views/modules/communityParty/dyhx/party.vue +++ b/src/views/modules/communityParty/dyhx/party.vue @@ -15,8 +15,8 @@ @change="handleChangeAgency" >
- 查询 + 重置 @@ -316,6 +316,12 @@ export default { // this.getGridList('query'); }, methods: { + resetForm() { + for (const n in this.formData) { + if (typeof this.formData[n] == 'object') this.formData[n] = []; + else this.formData[n] = ''; + } + }, handleChangeAgency(val) { let obj = this.$refs['myCascader'].getCheckedNodes()[0].data; console.log('obj', obj); diff --git a/src/views/modules/communityParty/dyhx/party1.vue b/src/views/modules/communityParty/dyhx/party1.vue new file mode 100644 index 000000000..0c9ddb806 --- /dev/null +++ b/src/views/modules/communityParty/dyhx/party1.vue @@ -0,0 +1,1007 @@ + + + + + diff --git a/src/views/modules/communityParty/dyhx/party22.vue b/src/views/modules/communityParty/dyhx/party22.vue new file mode 100644 index 000000000..93ed4b792 --- /dev/null +++ b/src/views/modules/communityParty/dyhx/party22.vue @@ -0,0 +1,1184 @@ + + + + + + From 60acd1b659b017e7c42880f99d241650f2e826d1 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 16:24:50 +0800 Subject: [PATCH 08/12] jumper --- .../census/census-accountActiveList.vue | 4 ++-- .../modules/census/census-accountList.vue | 19 ++++++++++--------- src/views/modules/census/census-houseList.vue | 4 ++-- src/views/modules/census/census-nineList.vue | 6 +++--- .../modules/census/census-orgStatusList.vue | 2 +- .../modules/census/census-residentList.vue | 4 ++-- .../modules/communityParty/dyhx/party.vue | 4 ++-- 7 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 9a265a0e7..8b6824d77 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -78,7 +78,7 @@ :current-page.sync="pageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="parseInt(pageSize)" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total" > @@ -114,7 +114,7 @@ :current-page.sync="pageNo2" :page-sizes="[10, 20, 50, 100, 200]" :page-size="parseInt(pageSize2)" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total2" > diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index e09471031..e3def8b78 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -99,9 +99,9 @@ > - + - + @@ -120,25 +120,25 @@ - + @@ -148,7 +148,7 @@ :current-page.sync="pageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="parseInt(pageSize)" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total" > @@ -394,7 +394,7 @@ export default { async getCountLevel() { const url = '/gov/org/staffLoginLog/count-level'; - // const url = 'http://yapi.elinkservice.cn/mock/356/gov/org/staffLoginLog/count-level'; + let param = { ...this.formData }; const { data, code, msg } = await requestPost(url, param); console.log('getCountLeveldata', data); @@ -408,13 +408,14 @@ export default { this.tableLoading = true; const url = '/gov/org/staffLoginLog/community-count'; - // const url = 'http://yapi.elinkservice.cn/mock/356/gov/org/staffLoginLog/community-count'; + const { pageSize, pageNo, formData } = this; const { data, code, msg } = await requestPost(url, { pageSize, pageNo, isPage: true, + dataRange:"exclude_zero", ...formData }); diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index 5fa1d1027..ed995c358 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -143,7 +143,7 @@ :current-page.sync="pageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="parseInt(pageSize)" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total" > @@ -291,7 +291,7 @@ export default { }, async getTableData() { this.tableLoading = true; - // const url = '/gov/org/staffLoginLog/community-count'; + const url = '/gov/org/ichouse/getHousePictureList'; const { pageSize, pageNo, formData } = this; diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 4d9bf832d..a91044925 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -27,7 +27,7 @@
九小场所分析
- +
@@ -244,7 +244,7 @@ export default { async getTableData() { this.tableLoading = true; const url = '/gov/org/enterprise/list'; - // const url = 'http://yapi.elinkservice.cn/mock/356/gov/org/staffLoginLog/community-count'; + const { pageSize, pageNo, formData } = this; const { data, code, msg } = await requestPost(url, { diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index 302860480..2d5e37e62 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -128,7 +128,7 @@ :current-page.sync="pageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="parseInt(pageSize)" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total" > diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index 5a6d3d2b9..b78323ccf 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -117,7 +117,7 @@ :current-page.sync="pageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="parseInt(pageSize)" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total" > @@ -268,7 +268,7 @@ export default { }, async getTableData() { this.tableLoading = true; - // const url = '/gov/org/staffLoginLog/community-count'; + const url = '/epmetuser/icresiuser/portrayal-list'; const { pageSize, pageNo, formData } = this; diff --git a/src/views/modules/communityParty/dyhx/party.vue b/src/views/modules/communityParty/dyhx/party.vue index 144c89093..022a6b75d 100644 --- a/src/views/modules/communityParty/dyhx/party.vue +++ b/src/views/modules/communityParty/dyhx/party.vue @@ -92,7 +92,7 @@ :current-page.sync="agePageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="agePageSize" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="ageTotal" > @@ -168,7 +168,7 @@ :current-page.sync="pageNo" :page-sizes="[10, 20, 50, 100, 200]" :page-size="pageSize" - layout="sizes, prev, pager, next, total" + layout="sizes, prev, pager, next, total,jumper" :total="total" > From 523a704720e96e0cbb37dd10cfd934fb3d456080 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 16:34:05 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../census/census-accountActiveList.vue | 2 +- .../modules/census/census-accountList.vue | 59 ++++++++++++++++--- .../modules/census/census-residentList.vue | 4 +- 3 files changed, 53 insertions(+), 12 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 8b6824d77..4dd5df7f1 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -291,7 +291,7 @@ export default { async handleExport(type) { const url = '/gov/org/staffLoginLog/accountActivityInfo-export'; - const { data, code, msg } = await requestPost(url, param); + // const { data, code, msg } = await requestPost(url, param); axios({ url: window.SITE_CONFIG['apiURL'] + url, diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index e3def8b78..1c664b4e9 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -99,9 +99,9 @@ > - + - +
@@ -120,25 +120,32 @@
- + +
+ 导出 +
@@ -275,6 +282,41 @@ export default { else this.formData[n] = ''; } }, + async handleExport() { + const url = '/gov/org/staffLoginLog/community-count-export'; + + // const { data, code, msg } = await requestPost(url, param); + + axios({ + url: window.SITE_CONFIG['apiURL'] + url, + method: 'post', + data: { + orgId: this.orgId, + level: this.orgType, + startDate: this.formData.startDate, + endDate: this.formData.endDate + }, + responseType: 'blob' + }) + .then(res => { + let fileName = window.decodeURI(res.headers['content-disposition'].split(';')[1].split('=')[1]); + console.log('filename', fileName); + let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }); + var url = window.URL.createObjectURL(blob); + var aLink = document.createElement('a'); + aLink.style.display = 'none'; + aLink.href = url; + aLink.setAttribute('download', fileName); + document.body.appendChild(aLink); + aLink.click(); + document.body.removeChild(aLink); //下载完成移除元素 + window.URL.revokeObjectURL(url); //释放掉blob对象 + }) + .catch(err => { + console.log('获取导出情失败', err); + return this.$message.error('网络错误'); + }); + }, handleSearch(val) { let tmp = this.formData.orgId; if (!(tmp && typeof tmp != 'undefined' && tmp != 0 && tmp != null)) { @@ -394,7 +436,7 @@ export default { async getCountLevel() { const url = '/gov/org/staffLoginLog/count-level'; - + let param = { ...this.formData }; const { data, code, msg } = await requestPost(url, param); console.log('getCountLeveldata', data); @@ -408,14 +450,13 @@ export default { this.tableLoading = true; const url = '/gov/org/staffLoginLog/community-count'; - const { pageSize, pageNo, formData } = this; const { data, code, msg } = await requestPost(url, { pageSize, pageNo, isPage: true, - dataRange:"exclude_zero", + dataRange: 'exclude_zero', ...formData }); diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index b78323ccf..296019fcb 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -86,7 +86,7 @@
- 导出 + 导出
Date: Tue, 18 Apr 2023 16:37:27 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-houseList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index ed995c358..e0de5e16c 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -233,7 +233,7 @@ export default { pieInitState2: false, pieOption: [], pieOption2: [], - color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], + color: ['#3C94FE', '#22C1C3', '#F0D915', '#FE6252', '#A17AFA', '#A19FFF', '#6FC364', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], chartData: [], chartData2: [], pieData: [], From 80a134c0fadd8b04d7285a67f59b24a64b9893a9 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 17:12:10 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../census/census-accountActiveList.vue | 9 + .../modules/census/census-accountList.vue | 9 + src/views/modules/census/census-houseList.vue | 54 ++--- src/views/modules/census/census-nineList.vue | 22 ++- .../modules/census/census-orgStatusList.vue | 9 + .../modules/census/census-residentList.vue | 45 +++-- .../modules/communityParty/dyhx/party.vue | 186 +++++++++--------- 7 files changed, 189 insertions(+), 145 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 4dd5df7f1..16c58cc89 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -497,4 +497,13 @@ export default { border-radius: 6px; color: #fff; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index 1c664b4e9..8b1772342 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -677,4 +677,13 @@ export default { border-radius: 6px; color: #fff; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index e0de5e16c..ebb956575 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -48,8 +48,8 @@
房屋用途统计
- - +
+
- - +
+
-
+
-
{{ item.name }}
+
{{ index }}{{ item.name }}
{{ item.value }}
-
{{ item.radio }}%
+
{{ item.radio }}%
- - +
+
房屋状态统计
- - +
+
- - +
+
@@ -99,13 +99,13 @@
{{ item.name }}
{{ item.value }}
-
{{ item.radio }}%
+
{{ item.radio }}%
- - +
+
@@ -192,7 +192,7 @@ export default { return time.getTime() > nowData; }; return { - optionData:{}, + optionData: {}, dialogVisible: false, detailId: '', detailData: {}, @@ -233,7 +233,8 @@ export default { pieInitState2: false, pieOption: [], pieOption2: [], - color: ['#3C94FE', '#22C1C3', '#F0D915', '#FE6252', '#A17AFA', '#A19FFF', '#6FC364', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], + color1: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#FEB349', '#FE6252', '#F0D915', '#5DC7F0'], + color2: ['#3C94FE', '#22C1C3', '#F0D915', '#FE6252', '#A17AFA', '#A19FFF', '#6FC364', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], chartData: [], chartData2: [], pieData: [], @@ -291,7 +292,7 @@ export default { }, async getTableData() { this.tableLoading = true; - + const url = '/gov/org/ichouse/getHousePictureList'; const { pageSize, pageNo, formData } = this; @@ -448,7 +449,7 @@ export default { color: '#fff' } }, - color: this.color, + color: this.color1, title: { text: this.pieData.total, subtext: '总数', @@ -552,7 +553,7 @@ export default { color: '#fff' } }, - color: this.color, + color: this.color2, title: { text: this.pieData2.total, subtext: '总数', @@ -714,7 +715,7 @@ export default { // const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]; // this.orgOptions = this.deepTree(_arr); this.orgOptions = []; - this.optionData=data; + this.optionData = data; this.orgOptions.push(data); this.orgId = data.agencyId; this.orgIdPath = data.orgIdPath; @@ -909,4 +910,13 @@ export default { border-radius: 6px; color: #fff; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index a91044925..53731d513 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -26,8 +26,8 @@
九小场所分析
- - +
+
- - +
+
@@ -50,8 +50,8 @@
- - +
+
@@ -244,7 +244,6 @@ export default { async getTableData() { this.tableLoading = true; const url = '/gov/org/enterprise/list'; - const { pageSize, pageNo, formData } = this; const { data, code, msg } = await requestPost(url, { @@ -669,4 +668,13 @@ export default { border-radius: 6px; color: #fff; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index 2d5e37e62..02bb76907 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -570,4 +570,13 @@ export default { .cur { cursor: pointer; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index 296019fcb..2e334d7f4 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -26,18 +26,18 @@
居民年龄统计
- - -
+
+
+ -
- - + +
+
@@ -50,23 +50,23 @@
- - +
+
居民学历统计
- - -
+
+
+ -
- - + +
+
@@ -79,8 +79,8 @@
- - +
+
@@ -268,7 +268,7 @@ export default { }, async getTableData() { this.tableLoading = true; - + const url = '/epmetuser/icresiuser/portrayal-list'; const { pageSize, pageNo, formData } = this; @@ -872,10 +872,19 @@ export default { .diy-button--output { width: 100px; height: 38px; -z-index: 99; + z-index: 99; background: #feb349; box-shadow: 0px 2px 6px 0px rgba(198, 122, 16, 0.31); border-radius: 6px; color: #fff; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} diff --git a/src/views/modules/communityParty/dyhx/party.vue b/src/views/modules/communityParty/dyhx/party.vue index 022a6b75d..7b42fb08f 100644 --- a/src/views/modules/communityParty/dyhx/party.vue +++ b/src/views/modules/communityParty/dyhx/party.vue @@ -24,8 +24,8 @@
党员年龄统计
- - +
+
- - +
+
@@ -48,60 +48,51 @@
- - -
-
- 导出 -
-
- - - +
+ > +
+
+
+ 导出 +
+ + + - - + + - + - - - - + + + +
- -
- +
党员学历统计
- - +
+
- - +
+
@@ -124,55 +115,45 @@
- - -
-
- 导出 -
-
- - - +
+
+
+
+ 导出 +
+ + + - - + + - + - - - - + + + + - -
-
+
@@ -1039,4 +1020,13 @@ export default { border-radius: 6px; color: #fff; } +.flex { + display: flex; + .width1 { + width: 220px; + } + .flex1 { + flex: 1; + } +} From 02cc51b10a96b17cd6fb16ae8ed7b6e316c7d960 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 18 Apr 2023 17:28:23 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-houseList.vue | 2 +- src/views/modules/census/census-nineList.vue | 2 +- src/views/modules/census/census-residentList.vue | 2 +- src/views/modules/communityParty/dyhx/party.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index ebb956575..ede0515de 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -233,7 +233,7 @@ export default { pieInitState2: false, pieOption: [], pieOption2: [], - color1: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#FEB349', '#FE6252', '#F0D915', '#5DC7F0'], + color1: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915','#FEB349', '#FE6252', '#F44230', '#5DC7F0'], color2: ['#3C94FE', '#22C1C3', '#F0D915', '#FE6252', '#A17AFA', '#A19FFF', '#6FC364', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], chartData: [], chartData2: [], diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 53731d513..e1b728725 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -178,7 +178,7 @@ export default { pieInitState2: false, pieOption: [], pieOption2: [], - color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], + color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915','#FEB349', '#FE6252', '#F44230', '#5DC7F0'], chartData: {}, placeType: '', pieData: [] diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index 2e334d7f4..cbe450483 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -201,7 +201,7 @@ export default { pieInitState2: false, pieOption: [], pieOption2: [], - color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], + color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915','#FEB349', '#FE6252', '#F44230', '#5DC7F0'], chartData: [], chartData2: [], pieData: [], diff --git a/src/views/modules/communityParty/dyhx/party.vue b/src/views/modules/communityParty/dyhx/party.vue index 7b42fb08f..a1f546fb5 100644 --- a/src/views/modules/communityParty/dyhx/party.vue +++ b/src/views/modules/communityParty/dyhx/party.vue @@ -220,7 +220,7 @@ export default { pieInitState2: false, pieOption: [], pieOption2: [], - color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], + color: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#F0D915','#FEB349', '#FE6252', '#F44230', '#5DC7F0'], chartData: [], chartData2: [], pieData: [],