diff --git a/src/assets/scss/modules/visual/duoyuanfenxi.scss b/src/assets/scss/modules/visual/duoyuanfenxi.scss index 222a39cd4..12032815a 100644 --- a/src/assets/scss/modules/visual/duoyuanfenxi.scss +++ b/src/assets/scss/modules/visual/duoyuanfenxi.scss @@ -76,7 +76,7 @@ position: relative; height: 100%; .tb { - height: calc(100% - 50px); + height: calc(100% - 40px); overflow-y: auto; @include scrollBar; /deep/ .table-status { diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 43a4c7bb8..c19f811cf 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -48,7 +48,7 @@ - 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/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index bbdb0db2c..5f4a3c763 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -2,6 +2,12 @@
+ 补全一户一码信息 导出 + @click="handleExportOpen">导出 批量删除 - 导出一户一档 + @click="handleExportYihuyidang()">导出一户一档 -->
@@ -183,6 +189,31 @@ @dialogOk="addFormOk"> + +
+ 导出房屋数据 + 导出一户一档 + 导出一户一码 +
+ + 取 消 + + +
+
@@ -208,6 +239,9 @@ export default { tableLoading: true, showImportBtn: false,//是否显示操作按钮,根据登录人所属组织判断 + roleList: [],//角色列表 + showYhymInfo: false, // 是否显示补全一户一码信息按钮 + yhymLoading: false, agencyObj: {},//树所选的组织对象 @@ -225,7 +259,9 @@ export default { fileName: "", uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import', yihuyidangDisabled: false, - + yihuyimaDisabled: false, + exportBtn: false, + dialogVisible: false // 导出 } }, components: { @@ -246,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 @@ -330,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 @@ -486,7 +556,11 @@ export default { // this.download(res.data, '1.png') }) }, - //导出表格 + // 导出按钮点击事件 + handleExportOpen () { + this.dialogVisible = true + }, + //导出表格 以前是导出 现在改成导出房屋数据 async handleExport () { let title = this.agencyObj.label title = title + '—小区列表' @@ -512,6 +586,10 @@ export default { }, + handleClose(done) { + this.dialogVisible = false + }, + // 下载文件 download (data, downFileName) { if (!data) { @@ -613,6 +691,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) { diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 0c1f73415..bc9194c8e 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -40,6 +40,25 @@
+
+ + + + +
+ + 下载 +
+
- @@ -136,260 +155,260 @@ diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 4f87e3f31..7fd7efe6e 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -102,7 +102,7 @@ width="90"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/modules/cabaseinfo/caloudong.vue b/src/views/modules/cabaseinfo/caloudong.vue new file mode 100644 index 000000000..5a07d25f6 --- /dev/null +++ b/src/views/modules/cabaseinfo/caloudong.vue @@ -0,0 +1,155 @@ + + + diff --git a/src/views/modules/cabaseinfo/capingfang-add-or-update.vue b/src/views/modules/cabaseinfo/capingfang-add-or-update.vue new file mode 100644 index 000000000..754226597 --- /dev/null +++ b/src/views/modules/cabaseinfo/capingfang-add-or-update.vue @@ -0,0 +1,251 @@ + + + diff --git a/src/views/modules/cabaseinfo/capingfang.vue b/src/views/modules/cabaseinfo/capingfang.vue new file mode 100644 index 000000000..694043076 --- /dev/null +++ b/src/views/modules/cabaseinfo/capingfang.vue @@ -0,0 +1,155 @@ + + + diff --git a/src/views/modules/cabaseinfo/carental-add-or-update.vue b/src/views/modules/cabaseinfo/carental-add-or-update.vue new file mode 100644 index 000000000..793cbb8f4 --- /dev/null +++ b/src/views/modules/cabaseinfo/carental-add-or-update.vue @@ -0,0 +1,204 @@ + + + diff --git a/src/views/modules/cabaseinfo/carental.vue b/src/views/modules/cabaseinfo/carental.vue new file mode 100644 index 000000000..0980e8039 --- /dev/null +++ b/src/views/modules/cabaseinfo/carental.vue @@ -0,0 +1,156 @@ + + + diff --git a/src/views/modules/cabaseinfo/caresident-add-or-update.vue b/src/views/modules/cabaseinfo/caresident-add-or-update.vue new file mode 100644 index 000000000..4383f1d75 --- /dev/null +++ b/src/views/modules/cabaseinfo/caresident-add-or-update.vue @@ -0,0 +1,216 @@ + + + diff --git a/src/views/modules/cabaseinfo/caresident.vue b/src/views/modules/cabaseinfo/caresident.vue new file mode 100644 index 000000000..0cba7cd8b --- /dev/null +++ b/src/views/modules/cabaseinfo/caresident.vue @@ -0,0 +1,147 @@ + + + diff --git a/src/views/modules/cabaseinfo/carotators-add-or-update.vue b/src/views/modules/cabaseinfo/carotators-add-or-update.vue new file mode 100644 index 000000000..eaf0bed8c --- /dev/null +++ b/src/views/modules/cabaseinfo/carotators-add-or-update.vue @@ -0,0 +1,309 @@ + + + diff --git a/src/views/modules/cabaseinfo/carotators.vue b/src/views/modules/cabaseinfo/carotators.vue new file mode 100644 index 000000000..c171dad8d --- /dev/null +++ b/src/views/modules/cabaseinfo/carotators.vue @@ -0,0 +1,141 @@ + + + diff --git a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue index b7a365607..5cabb481a 100644 --- a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue +++ b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue @@ -3,7 +3,7 @@
- - + @@ -56,19 +56,19 @@
- - - - - - - - - - - - - + + + + + + + + + + + + + { if (res.code !== 0) { return this.$message.error(res.msg) } else { console.log('获取查询详情成功', res.data) // this.optionsA = res.data + // console.log(this.optionsA); this.optionsA.push(res.data) - this.dataForm.agencyId = res.data.agencyId - this.dataForm.level = res.data.level - this.getDataList() + this.dataForm.agencyId = res.data.objectId + this.dataForm.level = res.data.objectType } }) .catch(() => { 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 + } }); }, diff --git a/src/views/modules/visual/communityGovern/duoyuanDialog.vue b/src/views/modules/visual/communityGovern/duoyuanDialog.vue new file mode 100644 index 000000000..dfb584ae0 --- /dev/null +++ b/src/views/modules/visual/communityGovern/duoyuanDialog.vue @@ -0,0 +1,335 @@ + + + + + + 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 @@ +