From 3414299954e89e4c2f18ea72f77a3aafd76fb3b6 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Mon, 23 May 2022 17:07:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=85=9A=E5=BB=BA?= =?UTF-8?q?=E5=B9=B3=E9=9D=A2=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 + .../visual/communityParty/gridParty.vue | 736 ++++++++++++++++++ .../visual/communityParty/memberInfo.vue | 251 ++++++ .../visual/components/screen-map/index.vue | 15 +- 4 files changed, 1006 insertions(+), 1 deletion(-) create mode 100644 src/views/modules/visual/communityParty/gridParty.vue create mode 100644 src/views/modules/visual/communityParty/memberInfo.vue diff --git a/src/router/index.js b/src/router/index.js index bd3fbe5a..903016e6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -268,6 +268,11 @@ router.beforeEach((to, from, next) => { name: "社区党建", // url: "visual/basicinfo/basicInfoMain", children: [ + { + url: "/visual/communityParty/gridParty", + name: "网格党建平面图", + id: "5feawfwaefwa579", + }, { url: "/visual/communityParty/party", name: "党员信息统计", diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue new file mode 100644 index 00000000..fbe6af59 --- /dev/null +++ b/src/views/modules/visual/communityParty/gridParty.vue @@ -0,0 +1,736 @@ + + + + + + + diff --git a/src/views/modules/visual/communityParty/memberInfo.vue b/src/views/modules/visual/communityParty/memberInfo.vue new file mode 100644 index 00000000..55041b78 --- /dev/null +++ b/src/views/modules/visual/communityParty/memberInfo.vue @@ -0,0 +1,251 @@ + + + + + + diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 56692699..e1490b41 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -32,6 +32,8 @@ class="ol-popup-closer"> + 更多>>>> @@ -668,6 +670,7 @@ const vueGis = { var container = document.getElementById("popup"); var closer = document.getElementById("popup-closer"); var content = document.getElementById("popup-content"); + var goMore = document.getElementById("popup-goMore") ? document.getElementById("popup-goMore") : null // 创建一个弹窗 Overlay 对象 this.overlay = new Overlay({ @@ -690,6 +693,11 @@ const vueGis = { closer.blur(); return false; }; + if (goMore) { + goMore.onclick = function () { + _that.$emit('lookMore') + }; + } }, //注册地图点击事件 @@ -721,7 +729,12 @@ const vueGis = { }); }, - handleShowPopup (showData, coordinate) { + handleShowPopup (showData, coordinate, isShowMore) { + if (isShowMore) { + document.getElementById("popup-goMore").style.display = 'block' + } else { + document.getElementById("popup-goMore").style.display = 'none' + } console.log(this.overlay.getElement()) let content = document.getElementById("popup-content"); this.overlay.getElement().style.display = 'block' From 07f661906859cebec340e44538f0f2ae1b057202 Mon Sep 17 00:00:00 2001 From: Jackwang Date: Tue, 24 May 2022 15:57:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=85=9A=E5=91=98=E3=80=81=E7=BC=B4?= =?UTF-8?q?=E8=B4=B9=E8=AE=B0=E5=BD=95=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityParty/members/index.vue | 91 ++++++++++--------- .../icpartymemberpayrecorddetail.vue | 46 +++++++++- 2 files changed, 89 insertions(+), 48 deletions(-) diff --git a/src/views/modules/communityParty/members/index.vue b/src/views/modules/communityParty/members/index.vue index 7652d0fd..b5c67a72 100644 --- a/src/views/modules/communityParty/members/index.vue +++ b/src/views/modules/communityParty/members/index.vue @@ -107,32 +107,32 @@ - +
新增 - - + + + + + + + + + + + + + + + + + + + + {{ exportBtnTitle }} +
- + - @@ -417,7 +417,7 @@ export default { partyProps: { label: 'partyOrgName', value: 'id', - checkStrictly: true + checkStrictly: true } } }, @@ -444,17 +444,17 @@ export default { // this.getCateList('query') // this.getCateList('addorupdate') this.pageLoading = true - + // this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 280 + 'px' }, - + mounted() { - + this.$nextTick(() => { this.searchH = this.$refs.searchCard.$el.offsetHeight console.log('tableHeight', this.tableHeight) }) - + }, methods: { handleSizeChange(val) { @@ -540,11 +540,11 @@ export default { } }, async handleExportModule () { - let url = "/resi/partymember/icpartymemberstyle/import/template-download" - + let url = "/resi/partymember/icPartyMember/import/template-download" + let params = {} - + await this.$http({ method: 'POST', url, @@ -556,7 +556,7 @@ export default { if (res.headers["content-disposition"]) { let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) this.download(res.data, fileName) - + } else this.$message.error('下载失败') }) .catch(err => { @@ -573,7 +573,7 @@ export default { if(!fileType) { this.$message.error('上传文件只能是xls/xlsx格式!') } - + if (!isLt1M) { this.$message.error('上传文件大小不能超过 10MB!') } @@ -590,7 +590,7 @@ export default { const formData = new FormData() //FormData对象,添加参数只能通过append('key', value)的形式添加 formData.append('file', file.file) //添加文件对象 this.$http - .post('/resi/partymember/icpartymemberstyle/import', formData).then(res => { + .post('/resi/partymember/icPartyMember/import', formData).then(res => { console.log('res-up', res) if (res.data.code == 0 && res.data.msg == 'success') { // this.$message.success('导入成功') @@ -603,7 +603,7 @@ export default { file.onError() //上传失败的文件会从文件列表中删除 // this.$message.error('导入失败') }) - + this.importLoading = false this.importBtnTitle = '导入' this.$refs.upload.clearFiles() @@ -614,11 +614,12 @@ export default { let params = { agencyId: this.$store.state.user.agencyId, pageSize: 9999, - pageNo: this.currentPage + pageNo: this.currentPage, + ...this.searchForm } // .post('epmetuser/icresiuser/exportExcel', params) await axios({ - url: window.SITE_CONFIG['apiURL'] + '/resi/partymember/icpartymemberstyle/export', + url: window.SITE_CONFIG['apiURL'] + '/resi/partymember/icPartyMember/export', // url: 'epmetuser/icresiuser/exportExcel', method: 'post', data: params, @@ -685,7 +686,7 @@ export default { this.handleSearch() }, handleAdd() { - + this.dialogVisible = true }, @@ -703,7 +704,7 @@ export default { await this.getDetail(row.id) this.dialogVisible = true }, - + handleDel(row) { let params = { ids: [row.id] @@ -753,7 +754,7 @@ export default { return this.$message.error(res.msg) } else { console.log('获取查询详情成功', res.data) - + this.optionsG = this.deepArrTOnull(res.data) } }) @@ -786,7 +787,7 @@ export default { return this.$message.error(res.msg) } else { console.log('获取查询详情成功', res.data) - + if (type === 'query') this.optionsC = res.data else this.optionsEditC = res.data } @@ -819,7 +820,7 @@ export default { }) this.tableLoading = false } - + } } @@ -935,8 +936,8 @@ export default { text-align: center; } } - - + + .resi-btns { margin-top: 20px; diff --git a/src/views/modules/partymember/icpartymemberpayrecorddetail.vue b/src/views/modules/partymember/icpartymemberpayrecorddetail.vue index f6893f47..c45d7120 100644 --- a/src/views/modules/partymember/icpartymemberpayrecorddetail.vue +++ b/src/views/modules/partymember/icpartymemberpayrecorddetail.vue @@ -71,7 +71,7 @@
- {{ $t('export') }} + {{ $t('export') }}
@@ -111,8 +111,9 @@