From ea05399a9841903ba97a30008786048d0771b040 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 30 Aug 2022 16:42:15 +0800 Subject: [PATCH 01/11] bug --- .../communityParty/regionalParty/units.vue | 8 ++++---- src/views/modules/shequzhili/csgltc/csgl.vue | 2 +- .../modules/shequzhili/csgltc/csglDetail.vue | 7 ++++++- src/views/modules/shequzhili/ggfwtc/ggfw.vue | 2 +- .../modules/shequzhili/ggfwtc/ggfwDetail.vue | 16 +++++++++++++--- src/views/modules/shequzhili/ggfwtc/ggfwForm.vue | 4 ++-- 6 files changed, 27 insertions(+), 12 deletions(-) diff --git a/src/views/modules/communityParty/regionalParty/units.vue b/src/views/modules/communityParty/regionalParty/units.vue index 23db7d00e..f5eb946e4 100644 --- a/src/views/modules/communityParty/regionalParty/units.vue +++ b/src/views/modules/communityParty/regionalParty/units.vue @@ -166,18 +166,18 @@ label="在职党员数" width="100"> - - - --> + { this.$refs.ref_form.initForm('add', null) }) diff --git a/src/views/modules/shequzhili/csgltc/csglDetail.vue b/src/views/modules/shequzhili/csgltc/csglDetail.vue index f47ae68d7..3fa98185e 100644 --- a/src/views/modules/shequzhili/csgltc/csglDetail.vue +++ b/src/views/modules/shequzhili/csgltc/csglDetail.vue @@ -89,7 +89,10 @@ export default { }, components: {}, async mounted () { - await this.initMap() + if (!map) { + this.initMap() + } + }, methods: { @@ -102,6 +105,7 @@ export default { async initForm (row) { this.startLoading() this.formData = { ...row } + console.log(map) map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude)) this.setMarker(this.formData.latitude, this.formData.longitude) @@ -111,6 +115,7 @@ export default { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap () { + console.log('initMap') // 定义地图中心点坐标 let { latitude, longitude } = this.$store.state.user; console.log('lat' + latitude + ',lon' + longitude) diff --git a/src/views/modules/shequzhili/ggfwtc/ggfw.vue b/src/views/modules/shequzhili/ggfwtc/ggfw.vue index f1c7e7fad..2407527a9 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfw.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfw.vue @@ -411,7 +411,7 @@ export default { handleAdd () { this.formTitle = '新增' - this.formShow = 'edit' + this.formShow = true this.$nextTick(() => { this.$refs.ref_form.initForm('add', null) }) diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue index 5a45beb7e..1fae810b8 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue @@ -88,7 +88,10 @@ export default { }, components: {}, mounted () { - this.initMap() + if (!map) { + this.initMap() + } + }, methods: { @@ -110,8 +113,14 @@ export default { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap () { + let { latitude, longitude } = this.$store.state.user; + console.log('lat' + latitude + ',lon' + longitude) + if (!latitude || latitude == "" || latitude == "0") { + latitude = 39.9088810666821; + longitude = 116.39743841556731; + } // 定义地图中心点坐标 - var center = new window.TMap.LatLng(36.0722275, 120.38945519) + var center = new window.TMap.LatLng(latitude, longitude); // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 @@ -135,7 +144,8 @@ export default { this.handleMoveCenter() }) this.handleMoveCenter() - this.convert() + console.log('initMap') + // this.convert() }, setMarker (lat, lng) { diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue index 11ccaa900..9bfc646b1 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue @@ -301,8 +301,8 @@ export default { map.on('panend', () => { this.handleMoveCenter() }) - // this.handleMoveCenter() - this.convert() + this.handleMoveCenter() + // this.convert() }, setMarker (lat, lng) { From be4aa1e5402bfb12bc8df41c03ee3b4bc9260e51 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 30 Aug 2022 16:55:32 +0800 Subject: [PATCH 02/11] bug --- src/views/modules/shequzhili/csgltc/csgl.vue | 9 +++++++-- src/views/modules/shequzhili/csgltc/csglDetail.vue | 8 +++++--- src/views/modules/shequzhili/ggfwtc/ggfw.vue | 10 ++++++++-- src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue | 4 ++++ 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/views/modules/shequzhili/csgltc/csgl.vue b/src/views/modules/shequzhili/csgltc/csgl.vue index 917cfa86c..e092c32c3 100644 --- a/src/views/modules/shequzhili/csgltc/csgl.vue +++ b/src/views/modules/shequzhili/csgltc/csgl.vue @@ -367,9 +367,14 @@ export default { }, handleDetail (row) { - this.detailShow = true + // this.detailShow = true + // this.$nextTick(() => { + // this.$refs.ref_detail.initForm(row) + // }) + this.formTitle = '详情' + this.formShow = true this.$nextTick(() => { - this.$refs.ref_detail.initForm(row) + this.$refs.ref_form.initForm('detail', row.icCityManagementId) }) }, diff --git a/src/views/modules/shequzhili/csgltc/csglDetail.vue b/src/views/modules/shequzhili/csgltc/csglDetail.vue index 3fa98185e..047a5c602 100644 --- a/src/views/modules/shequzhili/csgltc/csglDetail.vue +++ b/src/views/modules/shequzhili/csgltc/csglDetail.vue @@ -5,6 +5,7 @@ { + // this.$refs.ref_detail.initForm(row) + // }) + + this.formTitle = '详情' + this.formShow = true this.$nextTick(() => { - this.$refs.ref_detail.initForm(row) + this.$refs.ref_form.initForm('detail', row.icPublicServiceId) }) }, diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue index 1fae810b8..7888dad9f 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue @@ -104,6 +104,10 @@ export default { async initForm (row) { this.startLoading() this.formData = { ...row } + debugger + if (!map) { + this.initMap() + } map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude)) this.setMarker(this.formData.latitude, this.formData.longitude) From 01393bae102e014f64e99e0e6581f7d31aeef4b4 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 31 Aug 2022 09:15:12 +0800 Subject: [PATCH 03/11] 111 --- .../visual/command/cpts/yantai-sidemenu1.vue | 309 ++++++ .../visual/command/cpts/yantai-sidemenu2.vue | 309 ++++++ src/views/modules/visual/command/index.vue | 88 +- src/views/modules/visual/command/indexOld.vue | 881 ++++++++++++++++++ 4 files changed, 1568 insertions(+), 19 deletions(-) create mode 100644 src/views/modules/visual/command/cpts/yantai-sidemenu1.vue create mode 100644 src/views/modules/visual/command/cpts/yantai-sidemenu2.vue create mode 100644 src/views/modules/visual/command/indexOld.vue diff --git a/src/views/modules/visual/command/cpts/yantai-sidemenu1.vue b/src/views/modules/visual/command/cpts/yantai-sidemenu1.vue new file mode 100644 index 000000000..84987fb13 --- /dev/null +++ b/src/views/modules/visual/command/cpts/yantai-sidemenu1.vue @@ -0,0 +1,309 @@ + + + + + diff --git a/src/views/modules/visual/command/cpts/yantai-sidemenu2.vue b/src/views/modules/visual/command/cpts/yantai-sidemenu2.vue new file mode 100644 index 000000000..ab06949f2 --- /dev/null +++ b/src/views/modules/visual/command/cpts/yantai-sidemenu2.vue @@ -0,0 +1,309 @@ + + + + + diff --git a/src/views/modules/visual/command/index.vue b/src/views/modules/visual/command/index.vue index 56017d830..d135daabf 100644 --- a/src/views/modules/visual/command/index.vue +++ b/src/views/modules/visual/command/index.vue @@ -160,17 +160,36 @@
-
- - 指挥调度 -
+
+ -
- +
@@ -215,7 +234,8 @@ import { requestPost } from "@/js/dai/request"; import People from "@/views/modules/visual/basicinfo/people"; import cptCard from "@/views/modules/visual/cpts/card"; import gridMap from "@/views/modules/visual/command/cpts/map"; -import sidemenu from "@/views/modules/visual/command/cpts/sidemenu"; +import sidemenu1 from "@/views/modules/visual/command/cpts/yantai-sidemenu1"; +import sidemenu2 from "@/views/modules/visual/command/cpts/yantai-sidemenu2"; import sidemenuLeft from "@/views/modules/visual/command/cpts/sidemenu-left"; import ScreenLoading from "@/views/modules/visual/cpts/loading"; @@ -267,7 +287,8 @@ export default { cptCard, ScreenLoading, gridMap, - sidemenu, + sidemenu1, + sidemenu2, sidemenuLeft, eventInfo, serviceInfo, @@ -297,8 +318,8 @@ export default { selUserId: "", dotList: [], - categoryKeys: [], - coverageTypes: [], + categoryKeys: [[], []], + coverageTypes: [[], []], dotIcoList: { anzhibangjiao: require("@/assets/img/shuju/command/ico/anzhibangjiao.png"), @@ -550,7 +571,36 @@ export default { console.log(obj); }, - handleChangeMenu(list) { + handleChangeMenu1(list) { + console.log("handleChangeMenu", list); + let categoryKeys = []; + let coverageTypes = []; + list.forEach((item) => { + if (item.selected) { + coverageTypes.push(item.coverageType); + } + item.categories.forEach((subitem) => { + if (subitem.selected) { + coverageTypes.push(item.coverageType); + categoryKeys.push(subitem.categoryKey); + } + }); + + item.placeTypesInAnalysis.forEach((subitem) => { + subitem.categories.forEach((subitem2) => { + if (subitem2.selected) { + categoryKeys.push(subitem2.categoryKey); + coverageTypes.push(subitem2.coverageType); + } + }); + }); + }); + this.categoryKeys[0] = [...new Set(categoryKeys)]; + this.coverageTypes[0] = [...new Set(coverageTypes)]; + this.requestMapDot(); + }, + + handleChangeMenu2(list) { console.log("handleChangeMenu", list); let categoryKeys = []; let coverageTypes = []; @@ -574,8 +624,8 @@ export default { }); }); }); - this.categoryKeys = [...new Set(categoryKeys)]; - this.coverageTypes = [...new Set(coverageTypes)]; + this.categoryKeys[1] = [...new Set(categoryKeys)]; + this.coverageTypes[1] = [...new Set(coverageTypes)]; this.requestMapDot(); }, @@ -585,8 +635,8 @@ export default { let params = { orgId: this.orgId, orgType: "agency", - coverageTypes: this.coverageTypes, - categoryKeys: this.categoryKeys, + coverageTypes: [...this.coverageTypes[0], ...this.coverageTypes[1]], + categoryKeys: [...this.categoryKeys[0], ...this.categoryKeys[1]], isPage: false, }; diff --git a/src/views/modules/visual/command/indexOld.vue b/src/views/modules/visual/command/indexOld.vue new file mode 100644 index 000000000..56017d830 --- /dev/null +++ b/src/views/modules/visual/command/indexOld.vue @@ -0,0 +1,881 @@ + + + + + From 792e7ce6d29d2bbe94059ad35cf3b2f697a86e29 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 31 Aug 2022 09:16:20 +0800 Subject: [PATCH 04/11] 11 --- .../scss/modules/visual/commandOld.scss | 320 ++++++++++++++++++ 1 file changed, 320 insertions(+) create mode 100644 src/assets/scss/modules/visual/commandOld.scss diff --git a/src/assets/scss/modules/visual/commandOld.scss b/src/assets/scss/modules/visual/commandOld.scss new file mode 100644 index 000000000..ee0138343 --- /dev/null +++ b/src/assets/scss/modules/visual/commandOld.scss @@ -0,0 +1,320 @@ +@import "../../c/config"; +@import "../../c/function"; +@import "./c/common"; + +.m-crumb { + margin-left: 10px; + height: 40px; + line-height: 35px; + .router_line { + width: 212px; + height: 1px; + border: 1px solid #ffffff; + opacity: 0.09; + /* opacity: 0.09; */ + } + .div_router { + font-size: 16px; + font-weight: bold; + + .router_parents { + color: #a0c3d9; + + .arrow { + padding: 0 5px; + } + } + .router_parents:hover { + cursor: pointer; + } + + .router_child { + color: #ffffff; + } + } +} + +.g-cnt { + display: flex; + + /deep/ .ol-viewport { + border-radius: 5px; + } + + /deep/ .ol-overlaycontainer-stopevent { + display: none; + } +} + +.m-map { + box-sizing: border-box; + width: 100%; + height: calc(825px - 15px); + color: #fff; + position: relative; +} + +.m-mapmenu { + position: absolute; + z-index: 100; + left: 20px; + top: 20px; +} + +.m-search { + position: absolute; + z-index: 4; + left: 0; + right: 0; + top: 30px; + width: 630px; + margin: 0 auto; + + .input { + width: 100%; + background-color: #fff; + border-radius: 8px; + display: flex; + align-items: center; + overflow: hidden; + border: 1px solid #5aafff; + box-shadow: 0px 4px 8px 0px rgba(147, 147, 147, 0.26); + + > input { + width: 400px; + border: none; + line-height: 45px; + font-size: 18px; + font-family: PingFang SC; + font-weight: 400; + color: #333333; + } + + .i-search { + margin: 0 16px; + width: 24px; + height: 24px; + } + + .i-close { + margin-left: 15px; + opacity: 0.2; + width: 20px; + cursor: pointer; + } + + .btn { + margin-left: auto; + width: 120px; + height: 53px; + line-height: 53px; + background: #0082fb; + border-radius: 0px 8px 8px 0px; + color: #fff; + text-align: center; + font-size: 22px; + font-family: PingFang SC; + font-weight: 500; + color: #ffffff; + cursor: pointer; + } + } + + .result { + position: relative; + box-sizing: border-box; + padding: 0 15px; + width: 509px; + background: rgba(#020340, 0.58); + border-radius: 8px; + .result-item { + position: relative; + padding: 12px 0; + border-bottom: 1px solid rgba(#fff, 0.2); + + .result-panel { + position: absolute; + box-sizing: border-box; + padding: 15px; + left: 509px - 10px; + top: 0; + width: 500px; + background: rgba(#020340, 0.58); + border-radius: 8px; + } + + .result-type { + margin-bottom: 10px; + font-size: 20px; + line-height: 30px; + font-family: PingFang SC; + font-weight: bold; + color: #00f0ff; + } + + .result-more { + position: absolute; + right: 0; + top: 20px; + width: 50px; + height: 22px; + text-align: center; + line-height: 22px; + background: #dd8d02; + border-radius: 2px; + font-size: 14px; + font-family: PingFang SC; + font-weight: 400; + color: #ffffff; + cursor: pointer; + } + + .result-li { + line-height: 28px; + font-size: 16px; + font-family: PingFang SC; + font-weight: 400; + color: #ffffff; + cursor: pointer; + @include toe; + i { + margin-right: 5px; + } + span { + width: 100%; + } + } + } + } +} + +.m-sidemenu { + margin-left: 20px; + width: 360px; + height: calc(825px - 15px); + + .title { + margin-bottom: 10px; + padding: 4px 0; + font-size: 22px; + font-family: PingFang SC; + font-weight: 800; + color: #ffffff; + display: flex; + align-items: center; + + img { + display: block; + margin-right: 5px; + } + span { + display: block; + } + } + + .list { + margin-right: -8px; + height: calc(825px - 120px); + overflow-y: auto; + overflow-x: hidden; + @include scrollBar; + } +} + +.m-sidebar { + position: absolute; + right: 0; + top: 50px; + z-index: 1000; + width: 370px; + height: 470px; + overflow: hidden; + pointer-events: none; + + .wrap { + display: flex; + justify-content: flex-start; + align-items: center; + background-color: rgba(rgb(173, 173, 173), 0); + transform: translateX(-5px); + transition: all ease 1s; + border-radius: 4px; + pointer-events: auto; + } + + .wrap-hidden { + transform: translateX(339px); + } + + .div_agency_list { + width: 320px; + height: 470px; + color: #fff; + background: url("../../../img/modules/visual/box-2.png") no-repeat center; + background-size: 100% 100%; + padding: 45px 20px 35px 20px; + + .agency_main { + height: 100%; + position: relative; + } + + .agency_main { + /deep/ .el-scrollbar__wrap { + overflow-x: hidden !important; + } + } + + .no-data-img { + text-align: center; + margin-top: 50px; + margin-left: 15px; + } + .agency_list { + .agency_item { + // height: 60px; + padding: 15px 0; + font-size: 17px; + font-family: PingFang SC; + font-weight: 400; + color: #ffffff; + // line-height: 50px; + padding-left: 12px; + display: flex; + flex-direction: row; + align-items: center; + // padding-top: 15px; + + .agency_item_name { + // line-height: 20px; + } + } + + .agency_item_on { + background: #08216c; + border-radius: 2px; + } + + .agency_item:hover { + cursor: pointer; + background-color: #011168; + border-radius: 4px 0 0 4px; + border: none; + box-shadow: 0 0 10px inset #1a5afd; + border-radius: 2px; + } + } + } + + .arrow_tip { + margin-right: -2px; + margin-left: 10px; + > img { + width: 22px; + height: 176px; + } + } + .arrow_tip:hover { + cursor: pointer; + } +} From 7fafe606751acf4bde73910cdc24e01e4ca2fc88 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 31 Aug 2022 09:37:45 +0800 Subject: [PATCH 05/11] 1111 --- .env.development | 3 ++- src/assets/scss/modules/visual/command.scss | 11 +++++++++-- src/views/modules/shequzhili/csgltc/csglForm.vue | 8 ++++++-- src/views/modules/shequzhili/ggfwtc/ggfwForm.vue | 6 ++++-- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.env.development b/.env.development index fd937c0d6..af4564f4b 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,7 @@ NODE_ENV=development # VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api -VUE_APP_API_SERVER = http://192.168.1.140/api +# VUE_APP_API_SERVER = http://192.168.1.140/api +VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api # VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api diff --git a/src/assets/scss/modules/visual/command.scss b/src/assets/scss/modules/visual/command.scss index ee0138343..d827e4cb4 100644 --- a/src/assets/scss/modules/visual/command.scss +++ b/src/assets/scss/modules/visual/command.scss @@ -193,6 +193,13 @@ width: 360px; height: calc(825px - 15px); + .menu { + position: relative; + width: 100%; + margin-bottom: 20px; + // height: calc((825px - 15px - 20px) / 2); + } + .title { margin-bottom: 10px; padding: 4px 0; @@ -212,9 +219,9 @@ } } - .list { + .wrap { margin-right: -8px; - height: calc(825px - 120px); + height: calc(825px - 45px); overflow-y: auto; overflow-x: hidden; @include scrollBar; diff --git a/src/views/modules/shequzhili/csgltc/csglForm.vue b/src/views/modules/shequzhili/csgltc/csglForm.vue index 4d3fe5195..cdde575ea 100644 --- a/src/views/modules/shequzhili/csgltc/csglForm.vue +++ b/src/views/modules/shequzhili/csgltc/csglForm.vue @@ -157,8 +157,8 @@ export default { areaCovered: '',//占地面积 capacity: 0,//容纳人数 address: '', //详细地址 - longitude: 36.0722275, //经度 - latitude: 120.38945519, //纬度 + longitude: null, //经度 + latitude: null, //纬度 principal: '', mobile: '' }, @@ -292,11 +292,15 @@ export default { initMap () { // 定义地图中心点坐标 let { latitude, longitude } = this.$store.state.user; + console.log('lat' + latitude + ',lon' + longitude) if (!latitude || latitude == "" || latitude == "0") { latitude = 39.9088810666821; longitude = 116.39743841556731; } + + this.formData.latitude = latitude + this.formData.longitude = longitude // 定义地图中心点坐标 var center = new window.TMap.LatLng(latitude, longitude); // var center = new window.TMap.LatLng(36.52799, 120.7553) diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue index 9bfc646b1..ceeb3ab97 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue @@ -138,8 +138,8 @@ export default { areaCovered: '',//占地面积 capacity: '',//容纳人数 address: '', //详细地址 - longitude: 36.0722275, //经度 - latitude: 120.38945519, //纬度 + longitude: null, //经度 + latitude: null, //纬度 principal: '', mobile: '' }, @@ -277,6 +277,8 @@ export default { latitude = 39.9088810666821; longitude = 116.39743841556731; } + this.formData.latitude = latitude + this.formData.longitude = longitude // 定义地图中心点坐标 var center = new window.TMap.LatLng(latitude, longitude); // 定义map变量,调用 TMap.Map() 构造函数创建地图 From 29b02c3f5910ed5b77916ebc9a903bada48c29af Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Fri, 2 Sep 2022 11:16:06 +0800 Subject: [PATCH 06/11] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityParty/crateForm.vue | 431 ++++++++++++++++++ .../modules/visual/communityParty/party.vue | 73 ++- 2 files changed, 498 insertions(+), 6 deletions(-) create mode 100644 src/views/modules/visual/communityParty/crateForm.vue diff --git a/src/views/modules/visual/communityParty/crateForm.vue b/src/views/modules/visual/communityParty/crateForm.vue new file mode 100644 index 000000000..86ed68e07 --- /dev/null +++ b/src/views/modules/visual/communityParty/crateForm.vue @@ -0,0 +1,431 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue index 826333519..f318f3eef 100644 --- a/src/views/modules/visual/communityParty/party.vue +++ b/src/views/modules/visual/communityParty/party.vue @@ -131,6 +131,18 @@
+ + +
@@ -140,6 +152,7 @@ import screenTable from "../components/screen-table/index"; import cptCard from "@/views/modules/visual/cpts/card"; import nextTick from "dai-js/tools/nextTick"; import screenEchartsFrame from "../components/screen-echarts-frame"; +import crateForm from './crateForm.vue'; import { pieOption } from './options' import * as echarts from 'echarts'; @@ -148,10 +161,15 @@ export default { components: { cptCard, screenTable, - screenEchartsFrame + screenEchartsFrame, + crateForm }, data() { return { + memberDialog: false, + disabled: true, + memberDetailInfo: {}, + optionsG: [], headerList: [ { title: "序号", coulmn: 'index' }, { title: "姓名", coulmn: 'name' }, @@ -289,7 +307,32 @@ export default { // this.initChartType() }, + async created() { + this.getGridList('query') + }, methods: { + handleSearch () { + this.memberDialog = false + }, + handlerCancle () { + this.memberDialog = false + }, + async getGridList(type, agencyId) { + const { user } = await this.$store.state + // addorupdate query + await this.$http + .get('/resi/partymember/icPartyOrg/getSearchTreelist', { params: {agencyId: agencyId || user.agencyId} }) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + this.optionsG = this.deepArrTOnull(res.data) + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, pieInitOk (dom) { console.log('pie准备好了', dom) this.pieAgeChartS = dom @@ -719,14 +762,32 @@ export default { return arr }, handleClickRow(val) { - console.log('click-row----', val) - if (!val.icResiUser) { - return this.$message.warning('该党员居民信息未完善') - } + this.getDetail(val.userId) + this.memberDialog = true + }, + jumpDetail (val) { + this.memberDialog = false this.$router.push({ - path: `/main-shuju/visual-basicinfo-people/${val.icResiUser}`, + path: `/main-shuju/visual-basicinfo-people/${val}`, }); }, + getDetail(id) { + let params = { + id, + } + this.$http + .post(`/resi/partymember/icPartyMember/${id}`) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + this.memberDetailInfo = { ...res.data } + } + }) + .catch((err) => { + return this.$message.error('网络错误') + }) + }, handleCascader(val) { console.log('val-vvv', val) const _arr = val[val.length - 1].split('-') From 39973e940acfd6840811e68679790cd93cec0356 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Fri, 2 Sep 2022 13:29:08 +0800 Subject: [PATCH 07/11] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/communityParty/crateForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/visual/communityParty/crateForm.vue b/src/views/modules/visual/communityParty/crateForm.vue index 86ed68e07..35f50f53a 100644 --- a/src/views/modules/visual/communityParty/crateForm.vue +++ b/src/views/modules/visual/communityParty/crateForm.vue @@ -95,7 +95,7 @@
- 取消 + 取消 Date: Mon, 5 Sep 2022 16:35:27 +0800 Subject: [PATCH 08/11] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E5=92=8C=E7=96=AB?= =?UTF-8?q?=E8=8B=97=E7=9A=84info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/visual/command/cpts/popup.vue | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/src/views/modules/visual/command/cpts/popup.vue b/src/views/modules/visual/command/cpts/popup.vue index b10e8d182..6a0042412 100644 --- a/src/views/modules/visual/command/cpts/popup.vue +++ b/src/views/modules/visual/command/cpts/popup.vue @@ -150,6 +150,62 @@
+
+
核酸检测点信息
+
+ 检测点名称: + {{ info.name || "--" }} +
+
+ 所属组织: + {{ info.orgName || "--" }} +
+
+ 服务时间: + {{ info.serveTime || "--" }} +
+
+ 咨询电话: + {{ info.mobile || "--" }} +
+
+ 地      址: + {{ info.address || "--" }} +
+
+
+
疫苗接种点信息
+
+ 接种点名称: + {{ info.name || "--" }} +
+
+ 接种时间: + {{ info.inoculationDate || "--" }} +
+                + 上午{{ info.moStartTime || "--" }}至{{info.moEndTime || '--'}}  +    下午{{ info.afStartTime || "--" }}至{{info.afEndTime || '--'}} +
+
+
+ 咨询电话: + {{ info.mobile || "--" }} +
+
+ 地      址: + {{ info.address || "--" }} +
+
+
难点痛点
@@ -550,6 +606,14 @@ export default { //来自企事业查询的 await this.loadEnterprisePartrol(item); } + if (placeType === "vaccine_point") { + //来疫苗查询的 + await this.loadVaccinePoint(item); + } + if (placeType === "nucleic_point") { + //来核酸查询的 + await this.loadHesuanPoint(item); + } this.placeType = item.placeType; this.srcItem = item; this.hidden = false; @@ -769,6 +833,34 @@ export default { this.$message.error(msg); } }, + async loadVaccinePoint(info) { + const url = "/epmetuser/icPointVaccinesInoculation/" + info.id; + // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/enterprise/detail" + + const { data, code, msg } = await requestPost(url); + + if (code === 0) { + // debugger + + this.info = JSON.parse(JSON.stringify(data)); + } else { + this.$message.error(msg); + } + }, + async loadHesuanPoint(info) { + const url = "/epmetuser/icPointNucleicMonitoring/" + info.id; + // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/enterprise/detail" + + const { data, code, msg } = await requestPost(url); + + if (code === 0) { + // debugger + + this.info = JSON.parse(JSON.stringify(data)); + } else { + this.$message.error(msg); + } + }, async loadGroupRent(info) { const url = "/gov/org/ichouse/" + info.id; From 7a69c369b609512d9988e33fcbd5d6ce6e50d7c0 Mon Sep 17 00:00:00 2001 From: jianjun Date: Mon, 5 Sep 2022 17:00:03 +0800 Subject: [PATCH 09/11] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E5=92=8C=E7=96=AB?= =?UTF-8?q?=E8=8B=97=E7=9A=84info=20=E5=8A=A0=E4=B8=AA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/command/cpts/popup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/visual/command/cpts/popup.vue b/src/views/modules/visual/command/cpts/popup.vue index 6a0042412..5c95edf03 100644 --- a/src/views/modules/visual/command/cpts/popup.vue +++ b/src/views/modules/visual/command/cpts/popup.vue @@ -190,7 +190,7 @@
接种时间: {{ info.inoculationDate || "--" }} -
+
               上午{{ info.moStartTime || "--" }}至{{info.moEndTime || '--'}}     下午{{ info.afStartTime || "--" }}至{{info.afEndTime || '--'}} From 5ca0a953c56263fec2c40eca1f6ce769301c0b1e Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 6 Sep 2022 15:38:52 +0800 Subject: [PATCH 10/11] =?UTF-8?q?=E5=8F=AF=E8=A7=86=E5=8C=96=E5=85=9A?= =?UTF-8?q?=E5=91=98=E4=BF=A1=E6=81=AF=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityParty/crateForm.vue | 286 ++++++++-------- .../modules/visual/communityParty/party.vue | 306 +++++++++--------- 2 files changed, 302 insertions(+), 290 deletions(-) diff --git a/src/views/modules/visual/communityParty/crateForm.vue b/src/views/modules/visual/communityParty/crateForm.vue index 35f50f53a..ff37c1c27 100644 --- a/src/views/modules/visual/communityParty/crateForm.vue +++ b/src/views/modules/visual/communityParty/crateForm.vue @@ -1,121 +1,113 @@