diff --git a/.env.development b/.env.development index 2ad1156b..b3e49ab5 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ NODE_ENV=development -VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api -# VUE_APP_API_SERVER = http://192.168.1.140/api +# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api +VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = http://192.168.51.36:8080/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api VUE_APP_NODE_ENV=dev diff --git a/.env.production.sit b/.env.production.sit index de86de77..b0c600ea 100644 --- a/.env.production.sit +++ b/.env.production.sit @@ -1,5 +1,5 @@ NODE_ENV=production -VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api -# VUE_APP_API_SERVER = http://192.168.1.140/api +# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api +VUE_APP_API_SERVER = http://192.168.1.140/api VUE_APP_NODE_ENV=prod:sit VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file diff --git a/public/index.html b/public/index.html index 99efda61..be512c57 100644 --- a/public/index.html +++ b/public/index.html @@ -36,8 +36,8 @@ <% if (process.env.VUE_APP_NODE_ENV==='dev' ) { %> diff --git a/src/assets/scss/modules/visual/processAnalyze.scss b/src/assets/scss/modules/visual/processAnalyze.scss index 3a3a0f23..cb6eb627 100644 --- a/src/assets/scss/modules/visual/processAnalyze.scss +++ b/src/assets/scss/modules/visual/processAnalyze.scss @@ -87,9 +87,9 @@ .g-r { text-align: center; - margin: 40px 19px 20px; - width: calc(100vw - 60px - 800px); - height: calc(100vh - 160px - 20px); + margin: 20px 19px 20px; + width: calc(100vw - 40px - 800px); + height: calc(100vh - 180px - 20px); } } @@ -172,40 +172,10 @@ } .g-r { - .tb { + .m-map { position: relative; - height: calc(100vh - 220px); - overflow-y: auto; - @include scrollBar; - - .m-pagination { - position: absolute; - box-sizing: border-box; - right: 0; - bottom: 0; - - width: 100%; - height: 40px; - display: flex; - justify-content: flex-end; - - /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active { - background: #0266d1; - color: #000d3f; - } - - /deep/ .el-pagination .el-pager li { - background: #002e74; - } - - /deep/ .el-pagination .btn-prev { - background: #002e74; - } - - /deep/ .el-pagination .btn-next { - background: #002e74; - } - } + height: 100%; + width: 100%; } } diff --git a/src/views/modules/visual/communityGovern/processAnalyze.vue b/src/views/modules/visual/communityGovern/processAnalyze.vue index 10f8da5d..beae8fdc 100644 --- a/src/views/modules/visual/communityGovern/processAnalyze.vue +++ b/src/views/modules/visual/communityGovern/processAnalyze.vue @@ -54,13 +54,10 @@
-
-
- -
- -
+
@@ -107,28 +104,12 @@ export default { { value: 735, name: '已结案', color: '#3DDA83' }, ], - //voting 已转项目:shift_project 已关闭:closed,全部:all - stateArray: [ - { - label: '全部', - value: 'all' - }, - { - label: '表决中', - value: 'voting' - }, - { - label: '已转项目', - value: 'shift_project' - }, - { - label: '已关闭', - value: 'closed' - }, - ], dateId: '', agencyId: '', + status: 'pending',//状态:待处理 pending,结案closed + agencyInfo: {}, + projectList: [], casOptions: [], agencyIdArray: [], @@ -163,12 +144,34 @@ export default { }, async getApiData () { - await this.getAgencylist()//获取组织级别 + await this.getWorkUserInfo() + // await this.getAgencylist()//获取组织级别 await this.getProjectTotal() + await this.loadProjectlist() await this.getLine() // await this.getTable(); }, + // 获取当前管理员信息 + getWorkUserInfo () { + const url = '/epmetuser/customerstaff/staffbasicinfo' + let params = {} + window.app.ajax.post( + url, + params, + (data, rspMsg) => { + this.agencyInfo = data + this.agencyInfo.latitude = 36.072227 + this.agencyInfo.longitude = 120.389455 + this.agencyInfo.level = 'street' + }, + (rspMsg, data) => { + this.$message.error(rspMsg) + } + ) + + }, + async getAgencylist () { const url = '/gov/org/customeragency/agencylist' // const url = 'http://yapi.elinkservice.cn/mock/102/gov/org/agency/agencylist' @@ -229,6 +232,67 @@ export default { } }, + //加载项目 + async loadProjectlist () { + // const url = "/data/aggregator/project/projectstatuslist"; + const url = "http://yapi.elinkservice.cn/mock/245/data/aggregator/project/projectstatuslist"; + let params = { + agencyId: '', + dateId: this.dateId, + status: this.status + }; + + const { data, code, msg } = await requestPost(url, params); + + + if (code === 0) { + + + // this.projectList = [...data] + + this.projectList = [ + { + agencyId: '', + projectId: '', + origin: '', + status: '', + title: '南宁第二网格南宁第二网格', + latitude: 36.072227, + longitude: 120.389455, + }, + { + agencyId: '', + projectId: '', + origin: '', + status: '', + latitude: 36.072227, + longitude: 120.389455, + title: "南宁第二网格", + }, + { + agencyId: '', + projectId: '', + origin: '', + status: '', + id: "2a278c0ceb863359d263fda7aabf6742", + latitude: 36.072227, + longitude: 120.389455, + title: "南宁第一网格", + } + ] + let iconUrlArray = [ + 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png', + 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a775d15e62374350b80e5cdf1912a4eb.png', + 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/884efcf6d6b44224a7fda599dd1b14cb.png' + ] + //mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray + this.$refs.map.loadMap(this.agencyInfo, null, null, this.projectList, iconUrlArray) + + } else { + this.$message.error(msg); + } + }, + pieInitOk (dom) { console.log('pie准备好了') this.pieChartS = dom diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 4dfac221..541bd376 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -1,15 +1,12 @@