From fdb7bf2a56fbf39c177b5b3dbc89efced8ceef9b Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 7 Jan 2022 17:14:33 +0800 Subject: [PATCH 1/5] =?UTF-8?q?UI=E5=90=8C=E6=84=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityParty/community.vue | 67 ++++++++++--------- .../modules/visual/communityParty/party.vue | 22 ++---- src/views/modules/visual/measure/service.vue | 13 ++-- .../modules/visual/measure/volunteer.vue | 9 +-- 4 files changed, 55 insertions(+), 56 deletions(-) diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index 0c2833d5..98ce1210 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -5,7 +5,7 @@
- 区域化党建 + 区域化党建   +
+
+ + + + +
+
+ + +
党建单位分类统计
-
- - - - -
-
- - -
+
@@ -664,6 +666,7 @@ export default { margin-right: 6px; } .title-label { + font-size: 20px; font-weight: 800; ::v-deep .el-input { @@ -673,8 +676,8 @@ export default { font-size: 18px; font-weight: 800; color: #fff; - background: transparent; - border: 0; + background: #06186d; + border: 1px solid #1a64cc; } .el-icon-arrow-down::before { content: "\e790"; @@ -710,8 +713,10 @@ export default { background: #2865fa; border-radius: 50%; } - .second-select { - margin: 0 10px 0 40px; + +} +.second-select { + margin: 0 10px 0 10px; ::v-deep .el-input { width: 180px; height: 36px; @@ -757,8 +762,6 @@ export default { .second-select:last-child { margin-left: 0; } -} - .box-wr { display: flex; box-sizing: border-box; diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue index 238e8160..7e0e1651 100644 --- a/src/views/modules/visual/communityParty/party.vue +++ b/src/views/modules/visual/communityParty/party.vue @@ -4,18 +4,7 @@
- + 党员信息统计  
+ 服务措施分析   
-
选择时间
+
@@ -191,7 +198,7 @@ export default { }, async mounted() { await this.loadAgency(); - // await this.getTableData(); + await this.getTableData(); }, methods: { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 @@ -371,6 +378,7 @@ export default { width: 25%; .list { .item { + position: relative; box-sizing: border-box; margin-bottom: 10px; border: 2px solid #6aa; @@ -383,6 +391,21 @@ export default { background-color: #ffffff; box-shadow: 0 0 10px #6aa; } + .item-btn { + position: absolute; + top: 5px; + right: 5px; + font-size: 14px; + color: rgb(235, 192, 4); + width: 50px; + line-height: 30px; + text-align: center; + cursor: pointer; + &:hover { + // text-decoration: underline; + color: rgb(250, 208, 23); + } + } .item-name { font-size: 16px; font-weight: bold; diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index d3c20609..ff4c47ea 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -345,7 +345,9 @@ export default { if (row) { this.dataForm = { ...this.dataForm, ...row }; this.societyId = this.dataForm.societyId; - map.setCenter(new TMap.LatLng(row.latitude, row.longitude)); + if (row.latitude && row.longitude) { + map.setCenter(new TMap.LatLng(row.latitude, row.longitude)); + } } }, diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index 508838f9..36adc798 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -284,31 +284,24 @@ export default { url: window.SITE_CONFIG["apiURL"] + "/heart/societyorg/import", method: "post", data: formData, - responseType: "blob", + // responseType: "blob", }) .then((res) => { this.importLoading = false; this.importBtnTitle = "excel导入"; - 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对象 + console.log("resresresresresresres", res); + this.getTableData(); + if (res.data.code == 0) { + return this.$message.success(res.data.data || '导入成功'); + } else { + return this.$message.error(res.data.msg); + } }) .catch((err) => { console.log("失败", err); - param.onError(); //上传失败的文件会从文件列表中删除 }); + this.$refs.upload.clearFiles(); }, handleSizeChange(val) { diff --git a/src/views/modules/communityService/sqzzz/cpts/edit.vue b/src/views/modules/communityService/sqzzz/cpts/edit.vue index d9537772..21da37de 100644 --- a/src/views/modules/communityService/sqzzz/cpts/edit.vue +++ b/src/views/modules/communityService/sqzzz/cpts/edit.vue @@ -209,6 +209,7 @@ import { mapGetters } from "vuex"; import { Loading } from "element-ui"; // 引入Loading服务 import { requestPost } from "@/js/dai/request"; +import formVltHelper from "dai-js/tools/formVltHelper"; var map; var search; @@ -389,6 +390,12 @@ export default { app.util.validateRule(messageObj); this.btnDisable = false; } else { + if (!formVltHelper.userOrMobile(this.dataForm.principalPhone)) { + return this.$message({ + type: "error", + message: "手机号格式有误", + }); + } this.submit(); } }); diff --git a/src/views/modules/communityService/sqzzz/index.vue b/src/views/modules/communityService/sqzzz/index.vue index a2c1a7d7..d22fbafa 100644 --- a/src/views/modules/communityService/sqzzz/index.vue +++ b/src/views/modules/communityService/sqzzz/index.vue @@ -252,31 +252,24 @@ export default { "/heart/iccommunityselforganization/importcommunityselforganization", method: "post", data: formData, - responseType: "blob", + // responseType: "blob", }) .then((res) => { this.importLoading = false; this.importBtnTitle = "excel导入"; - 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对象 + console.log("resresresresresresres", res); + this.getTableData(); + if (res.data.code == 0) { + return this.$message.success(res.data.data || '导入成功'); + } else { + return this.$message.error(res.data.msg); + } }) .catch((err) => { console.log("失败", err); - param.onError(); //上传失败的文件会从文件列表中删除 }); + this.$refs.upload.clearFiles(); }, handleSizeChange(val) { From 621cdb54a935e05381622fc69e3fcac41365bbcd Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 12 Jan 2022 09:35:13 +0800 Subject: [PATCH 3/5] youma --- .../visual/warning/components/screen-table/index.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/modules/visual/warning/components/screen-table/index.vue b/src/views/modules/visual/warning/components/screen-table/index.vue index 41c80f97..a4171708 100644 --- a/src/views/modules/visual/warning/components/screen-table/index.vue +++ b/src/views/modules/visual/warning/components/screen-table/index.vue @@ -23,7 +23,7 @@ :key="indexs" :style="tableContentStyle[indexs]" > - {{ item }} + {{ item }} 更多> - + {{ item }} @@ -180,6 +184,10 @@ export default { created() {}, methods: { + toUserInfo(uid) { + // this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); + }, + onClickMorePop(index) { this.visiblePopList.forEach((item, indexs) => { if (index == indexs) { From 423bf599aa8113e1a0267293bf8c8693ad305c62 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 12 Jan 2022 09:48:57 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=B1=85=E6=B0=91=E7=83=AD=E8=AE=AE?= =?UTF-8?q?=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/communityGovern/resibuzz.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/visual/communityGovern/resibuzz.vue b/src/views/modules/visual/communityGovern/resibuzz.vue index 92d1c819..1a5c7516 100644 --- a/src/views/modules/visual/communityGovern/resibuzz.vue +++ b/src/views/modules/visual/communityGovern/resibuzz.vue @@ -449,7 +449,7 @@ export default { this.tableList = data.list this.demand.list = data.list.map((item) => { return [ - { type: "index" }, + item.sort ? item.sort : '--', item.issueTitle ? item.issueTitle : '', item.suggestion ? item.suggestion : '', item.categoryName.join(','), From 09dae80888c93fdb0ebcbcd91247cf5fe7a6c5f4 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 13 Jan 2022 14:51:38 +0800 Subject: [PATCH 5/5] =?UTF-8?q?UI=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/measure/index.vue | 29 +++++++----- .../modules/visual/measure/volunteer.vue | 47 ++++++++++++++----- 2 files changed, 52 insertions(+), 24 deletions(-) diff --git a/src/views/modules/communityService/measure/index.vue b/src/views/modules/communityService/measure/index.vue index 66af8c1e..ac413f23 100644 --- a/src/views/modules/communityService/measure/index.vue +++ b/src/views/modules/communityService/measure/index.vue @@ -33,6 +33,19 @@ + +
+
+ + + + + + +
- - - - - - + 查询 - 重置 + 重置
@@ -1119,6 +1124,8 @@ export default {