From 3d22f692829f0c2bef0cacf3d5ced364fa26cce6 Mon Sep 17 00:00:00 2001 From: tianqian <277562116@qq.com> Date: Sat, 1 Jul 2023 11:42:51 +0800 Subject: [PATCH 1/3] bug --- src/views/dataBoard/sida/cpts/fw05zc.vue | 300 ++++++++++-------- .../dataBoard/sida/cpts/fwBarOption04.js | 2 +- .../dataBoard/sida/cpts/fwBarOption05.js | 3 +- src/views/dataBoard/sida/zy/gonggongList.vue | 9 +- .../dataBoard/sida/zy/peopleRes-detail.vue | 5 +- 5 files changed, 176 insertions(+), 143 deletions(-) diff --git a/src/views/dataBoard/sida/cpts/fw05zc.vue b/src/views/dataBoard/sida/cpts/fw05zc.vue index a9fc225bd..a76b748ca 100644 --- a/src/views/dataBoard/sida/cpts/fw05zc.vue +++ b/src/views/dataBoard/sida/cpts/fw05zc.vue @@ -1,135 +1,165 @@ - - - - - + + + + + \ No newline at end of file diff --git a/src/views/dataBoard/sida/cpts/fwBarOption04.js b/src/views/dataBoard/sida/cpts/fwBarOption04.js index 96baaff12..013854630 100644 --- a/src/views/dataBoard/sida/cpts/fwBarOption04.js +++ b/src/views/dataBoard/sida/cpts/fwBarOption04.js @@ -43,7 +43,7 @@ export function pieOption() { alignWithLabel: true }, axisLabel: { - interval: 1, + interval: 0, show: true, textStyle: { color: 'rgba(255,255,255,0.85)', //更改坐标轴文字颜色 diff --git a/src/views/dataBoard/sida/cpts/fwBarOption05.js b/src/views/dataBoard/sida/cpts/fwBarOption05.js index b742c545a..73eebb827 100644 --- a/src/views/dataBoard/sida/cpts/fwBarOption05.js +++ b/src/views/dataBoard/sida/cpts/fwBarOption05.js @@ -43,7 +43,7 @@ export function pieOption() { alignWithLabel: true }, axisLabel: { - interval: 3, + interval:0, // rotate: 40, show: true, textStyle: { @@ -75,6 +75,7 @@ export function pieOption() { }, }], series: [{ + realtimeSort: true, name: '指派服务数', type: 'bar', barWidth: 12, diff --git a/src/views/dataBoard/sida/zy/gonggongList.vue b/src/views/dataBoard/sida/zy/gonggongList.vue index 05741880c..6a7ff6b8b 100644 --- a/src/views/dataBoard/sida/zy/gonggongList.vue +++ b/src/views/dataBoard/sida/zy/gonggongList.vue @@ -1,5 +1,6 @@ - + \ No newline at end of file diff --git a/src/views/dataBoard/sida/wt/hiddenDanger-detail.vue b/src/views/dataBoard/sida/wt/hiddenDanger-detail.vue index 0ac1e2d26..1b337b0dd 100644 --- a/src/views/dataBoard/sida/wt/hiddenDanger-detail.vue +++ b/src/views/dataBoard/sida/wt/hiddenDanger-detail.vue @@ -810,8 +810,11 @@ this.getInfo(); }, gettab() { - this.info.group_rental.forEach(item => { - this.getUserInfo(item.user_id); + + let users=this.info.group_rental.split(","); + console.log("this.info.group_rental",users) + users.forEach(item => { + this.getUserInfo(item); }); }, getUserInfo(id) { @@ -864,7 +867,7 @@ this.title = '群租房详情'; queryParam.room_id = this.detailId; } else if (this.detailType == '发现问题') { - url = 'group_tenant_info'; + url = 'hidden_danger_info'; this.title = '发现问题详情'; queryParam.hidden_danger_id = this.detailId; } diff --git a/src/views/dataBoard/sida/zy/placeRes-detail.vue b/src/views/dataBoard/sida/zy/placeRes-detail.vue index 0f099debc..55785beaa 100644 --- a/src/views/dataBoard/sida/zy/placeRes-detail.vue +++ b/src/views/dataBoard/sida/zy/placeRes-detail.vue @@ -54,96 +54,113 @@ - + \ No newline at end of file From 8bd28e24547dc7bf66982ed42026ea6d15803789 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 3 Jul 2023 14:23:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=94=BF=E7=AD=96=E6=89=BE=E4=BA=BA/?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/roomDetail.vue | 2 +- src/views/modules/base/community/roomForm.vue | 2 +- .../communityService/policy/policyList.vue | 72 ++++++++++++++++++- 3 files changed, 71 insertions(+), 5 deletions(-) diff --git a/src/views/modules/base/community/roomDetail.vue b/src/views/modules/base/community/roomDetail.vue index f23bff00e..a6b8bcada 100644 --- a/src/views/modules/base/community/roomDetail.vue +++ b/src/views/modules/base/community/roomDetail.vue @@ -187,7 +187,7 @@ export default { async loadHouseInfo () { const url = - "/actual/base/communityHouse/getHouseDeatilById/" + this.houseId; + "/actual/base/communityHouse/getMaskedHouseDeatilById/" + this.houseId; let params = {}; const { data, code, msg } = await requestPost(url, params); diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 370b0a9e0..68d18acfa 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -269,7 +269,7 @@ export default { async loadHouseInfo () { - const url = "/actual/base/communityHouse/getHouseDeatilById/" + this.houseId + const url = "/actual/base/communityHouse/getClearHouseDeatilById/" + this.houseId let params = {} const { data, code, msg } = await requestPost(url, params) diff --git a/src/views/modules/communityService/policy/policyList.vue b/src/views/modules/communityService/policy/policyList.vue index ec8937302..12e12f850 100644 --- a/src/views/modules/communityService/policy/policyList.vue +++ b/src/views/modules/communityService/policy/policyList.vue @@ -41,6 +41,7 @@ placeholder="请输入" size="small" class="u-item-width-normal" + clearable /> @@ -121,6 +122,12 @@ > 导出 + 批量删除 @@ -363,6 +370,30 @@ export default { this.getTableData(); }, methods: { + deleteBatch () { + if (this.selection.length > 0) { + this.$confirm("确认删除选择的楼栋?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }) + .then(() => { + this.delPolicy() + }) + .catch(err => { + if (err == "cancel") { + // this.$message({ + // type: "info", + // message: "已取消删除" + // }); + } + + }); + } else { + this.$message.warning('请先选择要删除的楼栋') + } + }, + handleSearch(val) { console.log(this.formData); this.pageNo = 1; @@ -445,7 +476,7 @@ export default { }, async handleChu() { //导出改接口-政策找人 - // const url = "/governance/commonDemand/export"; + const url = "/governance/policy/policyExport"; const {pageSize, pageNo, formData} = this; axios({ url: window.SITE_CONFIG["apiURL"] + url, @@ -487,7 +518,22 @@ export default { type: "warning", }) .then(() => { - this.delPolicy(); + this.$http + .post("/governance/policy/deletePolicy", [row.id]) + .then(({ data: res }) => { + console.log("row2", row); + if (res.code !== 0) { + return this.$message.error(res.msg); + } else { + console.log("row3", row); + this.$message.success("删除成功"); + this.getTableData(); + } + }) + .catch((err) => { + console.log("row4", err); + return this.$message.error("网络错误"); + }); }) .catch((err) => { if (err == "cancel") { @@ -511,6 +557,26 @@ export default { this.$message.error("操作失败!"); } }, + //写好的批量删除直接用 + // async delPolicy() { + // if (this.selection.length === 0) + // return this.$message.error("请选择之后进行操作"); + // let policyIds = this.selection.map((item) => item.id); + // this.$http + // .post("/governance/policy/deletePolicy", policyIds) + // .then(({ data: res }) => { + // if (res.code !== 0) { + // return this.$message.error(res.msg); + // } else { + // this.$message.success("删除成功"); + // this.getTableData(); + // } + // }) + // .catch((err) => { + // console.log("row4", err); + // return this.$message.error("网络错误"); + // }); + // }, selectAll(selection) { this.selection = selection; if (selection.length > 0) {