From a687ef97e3d1c0275a4a09493163fdd4664d82ab Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 6 Jun 2022 09:17:36 +0800 Subject: [PATCH 01/19] =?UTF-8?q?=E6=88=BF=E4=B8=BB=E7=94=B5=E8=AF=9D?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/community.vue | 2 +- src/views/modules/base/community/roomForm.vue | 504 +++++++++--------- .../modules/base/community/roomTable.vue | 2 +- 3 files changed, 254 insertions(+), 254 deletions(-) diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 43a4c7bb8..434728447 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -48,7 +48,7 @@ - - @@ -136,260 +136,260 @@ diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 4f87e3f31..c2fef85e4 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -102,7 +102,7 @@ width="90"> Date: Mon, 6 Jun 2022 15:14:26 +0800 Subject: [PATCH 02/19] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/community.vue | 4 +- .../visual/components/screen-map/index.vue | 40 +++++++++---------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 434728447..c19f811cf 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -269,7 +269,7 @@ export default { await this.loadOrgData() await this.loadTree() - await this.loadOpenNode() + // await this.loadOpenNode() await this.$refs['ref_communityTable'].loadTable(true, this.selTreeObj) if (this.treeData.length > 0) { @@ -347,6 +347,8 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { + this.openNodes = [] + this.openNodes.push(data[0].id) this.treeData = data if (!isRefresh && data.length > 0) { diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index bf2870126..54d0204de 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -32,7 +32,7 @@ class="ol-popup-closer"> - 更多>>>> @@ -107,9 +107,9 @@ let polygonColorArray = [ 'rgba(183, 185, 0, 0.16)' ]; - //icon文字样式 +//icon文字样式 let createTextStyle = function (feature) { - + if (iconTextsStyle) { let iconTextsStyles = { ...iconTextsStyle } iconTextsStyles.text = feature.values_ && feature.values_.name || feature.name @@ -224,11 +224,11 @@ const vueGis = { // iconArrays.forEach(item => { // console.log(item.type, item.urlIndex, item.latitude, item.longitude) // }); - + //初始化地图 this.initMap() - + if (this.showPolIconLayer) { console.log('showPolIconLayer++++++++++++++++++++++', this.showPolIconLayer) //初始化多边形标注图层 @@ -242,7 +242,7 @@ const vueGis = { //加载当前园区的标注 this.loadPolygon() } - + if (this.showIconLayer) { //初始化icon图层 @@ -262,14 +262,14 @@ const vueGis = { //刷新地图 async refreshMap (mapInfo, polygonArray, iconArrays) { this.mapInfo = mapInfo - this.polygonArray = [] + this.polygonArray = [] this.polygonArray = polygonArray this.iconArrays = iconArrays iconSource.clear() polygonSource.clear() polIconSource.clear() this.initPolIconLayer() - + if (this.showPolygonLayer) { this.initPolygonLayer() //加载当前园区的标注 @@ -287,7 +287,7 @@ const vueGis = { } this.setMapLocation() // gaodeMapLayer.getSource().changed() - + }, //加载区域多边形 @@ -305,7 +305,7 @@ const vueGis = { oneData = { type: 'Feature', - + properties: { ...polygonItem }, geometry: { type: 'Polygon', @@ -345,7 +345,7 @@ const vueGis = { if (this.showPolIconLayer) { this.loadPolIcon(feature) } - + } @@ -549,9 +549,9 @@ const vueGis = { } mapView.setZoom(this.zoom); - + }, - firstCentermap() { + firstCentermap () { if (this.mapInfo.longitude && this.mapInfo.latitude) { this.centerPoint = [] this.centerPoint.push(this.mapInfo.longitude) @@ -743,14 +743,14 @@ const vueGis = { this.overlay.getElement().parentNode.parentNode.style.display = 'block' content.innerHTML = showData; this.overlay.setPosition(coordinate); - //把 overlay 显示到指定的 x,y坐标 - + //把 overlay 显示到指定的 x,y坐标 + }, // 关闭弹窗 - handleClosePopup() { - this.overlay.setPosition(undefined); - document.getElementById("popup-closer").blur(); - return false; + handleClosePopup () { + this.overlay.setPosition(undefined); + document.getElementById("popup-closer").blur(); + return false; }, //取随机数 @@ -895,7 +895,7 @@ export default vueGis; .popup-content { width: 300px; } -.popup-goMore{ +.popup-goMore { margin: 20px 0; } .ol-popup-closer:after { From 6ad7505d2ac8b51b9b4cde4851563b243cf87068 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Mon, 6 Jun 2022 15:21:54 +0800 Subject: [PATCH 03/19] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/communityTable.vue | 80 +++++++++++++++++-- 1 file changed, 75 insertions(+), 5 deletions(-) diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index 5eb4596f7..147411a2f 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -66,7 +66,7 @@ 导出 + @click="handleExportOpen">导出 批量删除 - 导出一户一档 + @click="handleExportYihuyidang()">导出一户一档 --> @@ -183,6 +183,31 @@ @dialogOk="addFormOk"> + +
+ 导出房屋数据 + 导出一户一档 + 导出一户一码 +
+ + 取 消 + 确 定 + +
+ @@ -225,7 +250,9 @@ export default { fileName: "", uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import', yihuyidangDisabled: false, - + yihuyimaDisabled: false, + exportBtn: false, + dialogVisible: false // 导出 } }, components: { @@ -486,7 +513,11 @@ export default { // this.download(res.data, '1.png') }) }, - //导出表格 + // 导出按钮点击事件 + handleExportOpen () { + this.dialogVisible = true + }, + //导出表格 以前是导出 现在改成导出房屋数据 async handleExport () { let title = this.agencyObj.label title = title + '—小区列表' @@ -512,6 +543,10 @@ export default { }, + handleClose(done) { + this.dialogVisible = false + }, + // 下载文件 download (data, downFileName) { if (!data) { @@ -609,6 +644,41 @@ export default { }, + // 导出一户一码 + + handleExportYihuyima () { + this.exportBtn = true + this.yihuyimaDisabled = true + let title = this.agencyObj.label + title = title + '-一户一码' + let url = "/gov/org/house/downloadZip" + + + let params = { + level: this.agencyObj.level, + id: this.agencyObj.id + } + + + + app.ajax.exportFilePost( + url, + params, + (data, rspMsg) => { + + this.download(data, title + '.Zip') + this.exportBtn = false + this.yihuyimaDisabled = false + }, + (rspMsg, data) => { + this.exportBtn = false + this.yihuyimaDisabled = false + this.$message.error(rspMsg); + } + ); + }, + + // 上传文件之前的钩子 beforeUpload (file, type) { From e460c1ef1cca55e15f7c70798c66227b0ee07d81 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Tue, 7 Jun 2022 09:18:35 +0800 Subject: [PATCH 04/19] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/community/roomForm.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 0c1f73415..4f5e75f81 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -40,6 +40,19 @@ + + + + +
+ + 下载 +
Date: Tue, 7 Jun 2022 09:36:57 +0800 Subject: [PATCH 05/19] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/community/roomForm.vue | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 4f5e75f81..6d0abc1fe 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -40,18 +40,20 @@ - - - - -
- - 下载 +
+ + + + +
+ + 下载 +
Date: Tue, 7 Jun 2022 17:02:59 +0800 Subject: [PATCH 06/19] 111 --- .../modules/communityService/fuwujilu/addForm.vue | 12 ++++++------ .../shequzhili/event/cpts/process-form-demand.vue | 11 ++++++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/modules/communityService/fuwujilu/addForm.vue b/src/views/modules/communityService/fuwujilu/addForm.vue index 69c6f42b2..8cb7c9c7e 100644 --- a/src/views/modules/communityService/fuwujilu/addForm.vue +++ b/src/views/modules/communityService/fuwujilu/addForm.vue @@ -122,10 +122,10 @@ style="display: block"> @@ -175,10 +175,10 @@ style="display: block"> diff --git a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue index 3423c3d89..795668e7e 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue @@ -470,9 +470,14 @@ export default { handleServiceChange (type, val) { if (val === "social_org") { - if (type === "add") this.getServiceuserList(val, "add_demand"); - else this.getServiceuserList(val, "query_demand"); - } else this.getServiceuserList(val, ""); + if (type === "add") { + this.getServiceuserList(val, "add_demand"); + } else { + this.getServiceuserList(val, "query_demand"); + } + } else { + this.getServiceuserList(val, ""); + } }, async getServiceuserList (serviceType, query) { From b1a27989479916b6e07967b12014738facb097e2 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Tue, 7 Jun 2022 17:39:05 +0800 Subject: [PATCH 07/19] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E4=B8=80=E6=88=B7?= =?UTF-8?q?=E4=B8=80=E7=A0=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/communityTable.vue | 47 ++++++++++++++++++- src/views/modules/base/community/roomForm.vue | 2 +- 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index 147411a2f..43a90947e 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -2,6 +2,12 @@
+ 补全一户一码信息 取 消 - 确 定 + @@ -233,6 +239,9 @@ export default { tableLoading: true, showImportBtn: false,//是否显示操作按钮,根据登录人所属组织判断 + roleList: [],//角色列表 + showYhymInfo: false, // 是否显示补全一户一码信息按钮 + yhymLoading: false, agencyObj: {},//树所选的组织对象 @@ -273,7 +282,13 @@ export default { async loadTable (fromTree, treeObj) { console.log(111, this.staffAgencyId) - + // 是否显示补全一户一码信息按钮 + this.roleList = localStorage.getItem('roleList') + if (this.roleList.indexOf('root_manager') > -1 || this.roleList.indexOf('manager') > -1) { + this.showYhymInfo = true + } else { + this.showYhymInfo = false + } this.tableLoading = true if (fromTree) { this.agencyObj = treeObj @@ -357,6 +372,34 @@ export default { }) }, + // 补全一户一码点击事件 + async handleYhymInfo () { + this.yhymLoading = true + const url = "/gov/org/house/createBatchHouseCodeAndUrl" + + let params = {} + + const { data, code, msg } = await requestPost(url, params) + + if (code === 0) { + this.yhymLoading = false + this.$message({ + type: "success", + message: "删除成功" + }); + } else if (code > 8000) { + this.yhymLoading = false + this.$message({ + showClose: true, + message: msg, + duration: 0 + }) + } else { + this.yhymLoading = false + this.$message.error(msg) + } + }, + handleEdit (row) { this.formTitle = '修改小区' this.formShow = true diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 6d0abc1fe..9786631f8 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -50,7 +50,7 @@ v-model="dataForm.houseCode"> -
+ From d53be79e37861a803946bc8151243e9e64658821 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Tue, 7 Jun 2022 18:00:40 +0800 Subject: [PATCH 08/19] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/community/communityTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index 43a90947e..1c50a46c6 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -385,7 +385,7 @@ export default { this.yhymLoading = false this.$message({ type: "success", - message: "删除成功" + message: "批量生成成功" }); } else if (code > 8000) { this.yhymLoading = false From 9235a43f4fdb42a7507686eb8bb2408f185103ee Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 8 Jun 2022 11:05:00 +0800 Subject: [PATCH 09/19] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/shequzhili/event/cpts/add.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index 3bc967854..b53caf480 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -312,6 +312,7 @@ export default { //地图相关 keyWords: '', + isFirst: true,//地图是否首次加载,首次加载不给地址赋值 //图片相关 oss/file/uploadvariedfile dialogImageUrl: 'oss/file/uploadvariedfile', @@ -620,7 +621,7 @@ export default { this.handleMoveCenter() }) this.handleMoveCenter() - this.convert() + // this.convert() }, setMarker (lat, lng) { @@ -699,8 +700,14 @@ export default { geocoder .getAddress({ location: location }) // 将给定的坐标位置转换为地址 .then((result) => { - this.formData.address = result.result.address - // 显示搜索到的地址 + + if (!this.isFirst) {//再次查询时再赋值 + this.formData.address = result.result.address + } + + if (this.isFirst) { + this.isFirst = false + } }); }, From c16e84f48cc798b8f979f0f28411357362ab9428 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 8 Jun 2022 13:41:53 +0800 Subject: [PATCH 10/19] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8D=A2=E8=A1=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/fuwuxiangmu/cpts/edit.vue | 10 +++++----- .../modules/communityService/fuwuzuzhi/cpts/edit.vue | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue b/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue index 26cbf4e3a..3331aa6df 100644 --- a/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue +++ b/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue @@ -29,7 +29,7 @@ > -
{{ fmData.serviceCategory || "--" }}
+
{{ fmData.serviceCategory || "--" }}
-
{{ fmData.serviceName || "--" }}
+
{{ fmData.serviceName || "--" }}
-
{{ fmData.serviceContent || "--" }}
+
{{ fmData.serviceContent || "--" }}
-
{{ fmData.policyLevelName || "--" }}
+
{{ fmData.policyLevelName || "--" }}
-
{{ fmData.policyGround || "--" }}
+
{{ fmData.policyGround || "--" }}
-
{{ fmData.serviceTypeName }}
+
{{ fmData.serviceTypeName }}
-
{{ fmData.orgName || "--" }}
+
{{ fmData.orgName || "--" }}
-
{{ fmData.orgDescribe || "--" }}
+
{{ fmData.orgDescribe || "--" }}
-
{{ fmData.principalName || "--" }}
+
{{ fmData.principalName || "--" }}
-
{{ fmData.principalMobile || "--" }}
+
{{ fmData.principalMobile || "--" }}
-
{{ fmData.remark || "--" }}
+
{{ fmData.remark || "--" }}
From ded6d48f9c70bbd2ebbc1f19befcb25268b388c3 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Wed, 8 Jun 2022 14:51:48 +0800 Subject: [PATCH 11/19] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../duoyuanfuwu/duoyuanDialog.vue | 9 +++++++- .../duoyuanfuwu/duoyuanfuwufenxi.vue | 21 ++++++++++++------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue index eef1de189..dfb584ae0 100644 --- a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue +++ b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue @@ -21,6 +21,7 @@
+