From 25ff0cb2821af40d3057a133e85ee854a3facdca Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 18 May 2022 10:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E6=B4=BB=E5=8A=A8=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 16 + .../visual/communityParty/community.vue | 35 +- .../visual/communityParty/unitInfo.vue | 467 ++++++++++++++++++ 3 files changed, 516 insertions(+), 2 deletions(-) create mode 100644 src/views/modules/visual/communityParty/unitInfo.vue diff --git a/src/main.js b/src/main.js index 296c9448..90e2269f 100644 --- a/src/main.js +++ b/src/main.js @@ -70,6 +70,22 @@ Vue.use(Element, { i18n: (key, value) => i18n.t(key, value), }); +// 弹窗底部滚动问题 弹窗需配合v-if使用 +Vue.directive('fixed', { + inserted() { + let scrollTop = document.body.scrollTop || document.documentElement.scrollTop + document.body.style.cssText += 'position:fixed;width:100%;top:-' + scrollTop + 'px;' + }, + unbind () { + let body = document.body + body.style.position = '' + let top = body.style.top + document.body.scrollTop = document.documentElement.scrollTop = -parseInt(top) + body.style.top = '' + } +}) + + // 挂载全局 Vue.prototype.$http = http; // Vue.prototype.$getDictLabel = getDictLabel diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index b0caff31..4ae9bbe2 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -62,11 +62,13 @@
- + @look="handleUnitLook"> @@ -180,6 +185,7 @@ import screenTable from "../components/screen-table/index"; import cptCard from "@/views/modules/visual/cpts/card"; import nextTick from "dai-js/tools/nextTick"; import dialogInfo from './dialogInfo.vue' +import unitInfo from './unitInfo.vue' import screenMap from "@/views/modules/visual/components/screen-map"; import screenEchartsFrame from "../components/screen-echarts-frame"; import { pieOption } from './options' @@ -190,6 +196,7 @@ export default { cptCard, screenTable, dialogInfo, + unitInfo, screenMap, screenEchartsFrame }, @@ -197,8 +204,25 @@ export default { return { showedMoreInfo: false, + showedUnitMoreInfo: true, tableLoading: false, warningList: [], + headerTypeList: [ + { title: "序号", coulmn: 'index' }, + { title: "单位名称", coulmn: 'unitName' }, + { title: "单位类型", coulmn: 'address' }, + ], + headerStyle: [ + { + 'width': '60px' + }, + { + 'min-width': '160px' + }, + { + 'width': '160px' + } + ], headerList: [ { title: "序号", coulmn: 'index' }, { title: "活动标题", coulmn: 'title' }, @@ -212,6 +236,7 @@ export default { // [1,'商丘路社区第一网格','商丘路小区','2号楼','杨颖、王平、刘佳敏、丁辉、杨萍'], ], detailId: '', + unitdetailId: '', agencyId: '', value2: '', timeRange: '', @@ -233,6 +258,7 @@ export default { unitMapList: [], detailInfo: {}, + unitdetailInfo: {}, pieEduChartSs: null, pieEduOptions: null, eduList: [], @@ -762,6 +788,11 @@ export default { await this.getDetail(val.id) this.showedMoreInfo = true }, + handleUnitLook(val) { + this.unitdetailId = val.id + // await this.getDetail(val.id) + this.showedUnitMoreInfo = true + }, handleSelectChange (val) { this.getList(this.agencyId); diff --git a/src/views/modules/visual/communityParty/unitInfo.vue b/src/views/modules/visual/communityParty/unitInfo.vue new file mode 100644 index 00000000..1dbdb4f2 --- /dev/null +++ b/src/views/modules/visual/communityParty/unitInfo.vue @@ -0,0 +1,467 @@ + + + + + +