Browse Source

Merge branch 'dev-shuju' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-shuju

shibei_master
13176889840 4 years ago
parent
commit
e85522e445
  1. 4
      .env.development
  2. 2
      src/assets/scss/modules/visual/issue-info.scss
  3. 7
      src/assets/scss/modules/visual/resibuzz.scss
  4. 2
      src/views/modules/base/community/buildTable.vue
  5. 2
      src/views/modules/base/community/communityTable.vue
  6. 8
      src/views/modules/base/community/roomTable.vue
  7. 14
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  8. 9
      src/views/modules/visual/communityGovern/distributionAnalyze.vue
  9. 3
      src/views/modules/visual/communityGovern/processAnalyze.vue
  10. 11
      src/views/modules/visual/communityGovern/resibuzz.vue
  11. 13
      src/views/modules/visual/communityGovern/typeAnalyze.vue
  12. 14
      src/views/modules/visual/components/screen-map/index.vue
  13. 4
      src/views/modules/visual/heart/index.vue
  14. 11
      src/views/modules/visual/measure/volunteer.vue
  15. 13
      src/views/modules/workSys/mapConfig.vue

4
.env.development

@ -1,7 +1,9 @@
NODE_ENV=development NODE_ENV=development
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/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.1.140/api
# VUE_APP_API_SERVER = http://192.168.51.36:8080/api
#家中开发连级的后端服务
# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api
# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api
VUE_APP_NODE_ENV=dev VUE_APP_NODE_ENV=dev
#项目根路径 #项目根路径

2
src/assets/scss/modules/visual/issue-info.scss

@ -74,7 +74,7 @@
display: flex; display: flex;
padding-left: 15px; padding-left: 15px;
.info-title-2 { .info-title-2 {
width: 90px; width: 100px;
flex: 0 0 1; flex: 0 0 1;
font-size: 14px; font-size: 14px;
} }

7
src/assets/scss/modules/visual/resibuzz.scss

@ -52,9 +52,10 @@
} }
} }
.status-select { .status-select {
position: absolute; margin-left: 10px;
top: 20px; // position: absolute;
right: 10px; // top: 20px;
// right: 10px;
} }
.second-select:last-child { .second-select:last-child {
margin-left: 0; margin-left: 0;

2
src/views/modules/base/community/buildTable.vue

@ -180,7 +180,7 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 220) return (this.clientHeight - 300)
}, },

2
src/views/modules/base/community/communityTable.vue

@ -185,7 +185,7 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 320) return (this.clientHeight - 300)
}, },
rowHeight () { rowHeight () {

8
src/views/modules/base/community/roomTable.vue

@ -63,6 +63,7 @@
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" :header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
v-loading="tableLoading" v-loading="tableLoading"
border border
:height="tableHeight"
style="width: 100%"> style="width: 100%">
<el-table-column prop="houseName" <el-table-column prop="houseName"
label="房屋名称" label="房屋名称"
@ -189,9 +190,12 @@ export default {
}, },
computed: { computed: {
rowHeight () { tableHeight () {
return (this.clientHeight - 200) + 'px'
return (this.clientHeight - 300)
}, },
...mapGetters(['clientHeight']) ...mapGetters(['clientHeight'])
}, },
methods: { methods: {

14
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -114,7 +114,7 @@ import BasicInfoCommunity from "./basicInfoCommunity";
import PeopleSearch from "./peopleSearch"; import PeopleSearch from "./peopleSearch";
import People from "./people"; import People from "./people";
import cptCard from "@/views/modules/visual/cpts/card"; import cptCard from "@/views/modules/visual/cpts/card";
var centerPointGlobal = [120.38945519, 36.0722275]
let loading;// let loading;//
@ -532,11 +532,15 @@ const vueGis = {
}, },
// //
setMapLocation () { setMapLocation () {
this.centerPoint = []
if (this.orgData.longitude && this.orgData.latitude) { if (this.orgData.longitude && this.orgData.latitude) {
this.centerPoint = []
this.centerPoint.push(this.orgData.longitude) this.centerPoint.push(this.orgData.longitude)
this.centerPoint.push(this.orgData.latitude) this.centerPoint.push(this.orgData.latitude)
} else {
this.centerPoint = centerPointGlobal
} }
this.setZoom(this.orgData.agencyLevel) this.setZoom(this.orgData.agencyLevel)
@ -545,11 +549,11 @@ const vueGis = {
// //
setZoom (agencyLevel) { setZoom (agencyLevel) {
if (agencyLevel === 'district') { if (agencyLevel === 'district') {
this.zoom = 14 this.zoom = 12
} else if (agencyLevel === 'street') { } else if (agencyLevel === 'street') {
this.zoom = 15 this.zoom = 13
} else if (agencyLevel === 'community') { } else if (agencyLevel === 'community') {
this.zoom = 16 this.zoom = 14
} }
}, },

9
src/views/modules/visual/communityGovern/distributionAnalyze.vue

@ -349,8 +349,9 @@ export default {
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
this.legendArray = [] this.legendArray = []
if (data.above) { if (data.under) {
this.under = data.under this.under = data.under
this.legendArray.push( this.legendArray.push(
{ {
@ -396,8 +397,7 @@ export default {
if (item.count < this.under || item.count === this.under) { if (item.count < this.under || item.count === this.under) {
item.color = this.colorArray[0] item.color = this.colorArray[0]
item.fillColor = this.colorFillArray[0] item.fillColor = this.colorFillArray[0]
} } else {
if (this.above) { if (this.above) {
if (item.count > this.under && item.count < this.above) { if (item.count > this.under && item.count < this.above) {
item.color = this.colorArray[1] item.color = this.colorArray[1]
@ -408,6 +408,9 @@ export default {
} }
} }
} }
}
break break
} }

3
src/views/modules/visual/communityGovern/processAnalyze.vue

@ -424,7 +424,8 @@ export default {
loadMap () { loadMap () {
if (this.isfirstInit) { if (this.isfirstInit) {
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray //mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
this.$refs.map.loadMap(this.agencyInfo, null, null, this.projectList, this.iconUrlArray, this.iconTextStyle, 3000) // this.$refs.map.loadMap(this.agencyInfo, null, null, this.projectList, this.iconUrlArray, this.iconTextStyle, 3000)
this.$refs.map.loadMap(this.agencyInfo, null, null, this.projectList, this.iconUrlArray, this.iconTextStyle)
} else { } else {
this.$refs.map.refreshMap(null, this.projectList) this.$refs.map.refreshMap(null, this.projectList)
} }

11
src/views/modules/visual/communityGovern/resibuzz.vue

@ -279,6 +279,7 @@ export default {
let params = { let params = {
orgId: this.orgId, orgId: this.orgId,
orgType: this.orgType, orgType: this.orgType,
status: this.status,
}; };
@ -405,8 +406,10 @@ export default {
}, },
handleChangeState (index) { async handleChangeState (index) {
this.getTable() await this.getApiData()
this.assignPieChart()
}, },
async handleChangeAgency (value) { async handleChangeAgency (value) {
@ -454,8 +457,8 @@ export default {
item.createdTime ? item.createdTime : '', item.createdTime ? item.createdTime : '',
item.issueOriginator ? item.issueOriginator : '', item.issueOriginator ? item.issueOriginator : '',
item.voteAccount ? item.voteAccount : '', item.voteAccount ? item.voteAccount : '',
item.supportCount ? item.supportCount : '', item.supportCount ? item.supportCount : 0,
item.oppositionCount ? item.oppositionCount : '', item.oppositionCount ? item.oppositionCount : 0,
{ type: "operate", list: ["查看"] }, { type: "operate", list: ["查看"] },
]; ];
}); });

13
src/views/modules/visual/communityGovern/typeAnalyze.vue

@ -2,7 +2,7 @@
<cpt-card> <cpt-card>
<div class="title"> <div class="title">
<img src="@/assets/img/shuju/title-tip.png" /> <img src="@/assets/img/shuju/title-tip.png" />
<span>事件分类分析</span> <span>项目分类分析</span>
<div class="second-select cascader"> <div class="second-select cascader">
@ -123,10 +123,7 @@ export default {
align: "center", align: "center",
width: "5%", width: "5%",
}, },
{
align: "center",
width: "10%",
},
{ {
align: "center", align: "center",
width: "10%", width: "10%",
@ -145,7 +142,7 @@ export default {
}, },
{ {
align: "center", align: "center",
width: "20%", width: "30%",
}, },
{ {
align: "center", align: "center",
@ -156,7 +153,7 @@ export default {
width: "10%", width: "10%",
}, },
], ],
header: ["序号", "项目编号", "类别", "反映渠道", "所属网格", "状态", "项目标题", "转成项目时间", "操作"], header: ["序号", "类别", "反映渠道", "所属网格", "状态", "项目标题", "转成项目时间", "操作"],
list: [], list: [],
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
@ -427,7 +424,7 @@ export default {
item.statusShow = item.status === 'pending' ? '待处理' : '已结案' item.statusShow = item.status === 'pending' ? '待处理' : '已结案'
return [ return [
{ type: "index" }, { type: "index" },
item.projectCode ? item.projectCode : '', // item.projectCode ? item.projectCode : '',
item.categoryNames.join(','), item.categoryNames.join(','),
item.originShow ? item.originShow : '', item.originShow ? item.originShow : '',
item.gridName ? item.gridName : '', item.gridName ? item.gridName : '',

14
src/views/modules/visual/components/screen-map/index.vue

@ -37,7 +37,7 @@ import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //Loading import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
var centerPointGlobal = [120.38945519, 36.0722275]
let loading;// let loading;//
@ -433,11 +433,15 @@ const vueGis = {
}, },
// //
setMapLocation () { setMapLocation () {
this.centerPoint = []
if (this.mapInfo.longitude && this.mapInfo.latitude) { if (this.mapInfo.longitude && this.mapInfo.latitude) {
this.centerPoint = []
this.centerPoint.push(this.mapInfo.longitude) this.centerPoint.push(this.mapInfo.longitude)
this.centerPoint.push(this.mapInfo.latitude) this.centerPoint.push(this.mapInfo.latitude)
} else {
this.centerPoint = centerPointGlobal
} }
this.setZoom(this.mapInfo.level) this.setZoom(this.mapInfo.level)
@ -446,11 +450,11 @@ const vueGis = {
// //
setZoom (level) { setZoom (level) {
if (level === 'district') { if (level === 'district') {
this.zoom = 14 this.zoom = 11
} else if (level === 'street') { } else if (level === 'street') {
this.zoom = 15 this.zoom = 12
} else if (level === 'community') { } else if (level === 'community') {
this.zoom = 16 this.zoom = 13
} }
}, },

4
src/views/modules/visual/heart/index.vue

@ -86,7 +86,7 @@ export default {
name: "heart", name: "heart",
data() { data() {
return { return {
agencyId: "", agencyId: this.$store.state.user.agencyId,
areaCode: "", areaCode: "",
monthId: dateFormat( monthId: dateFormat(
@ -202,7 +202,7 @@ export default {
handleSearch() {}, handleSearch() {},
async getApiData() { async getApiData() {
await this.getAgencyInfo(); //await this.getAgencyInfo();
this.getTb1(); this.getTb1();
this.getTb2(); this.getTb2();
this.getTb3(); this.getTb3();

11
src/views/modules/visual/measure/volunteer.vue

@ -2,10 +2,10 @@
<div class="warning-box"> <div class="warning-box">
<cpt-card> <cpt-card>
<div class="card-title"> <div class="card-title">
<img class="title-icon" src="../../../../assets/img/shuju/title-tip.png" /> <img class="title-icon"
src="../../../../assets/img/shuju/title-tip.png" />
<div class="title-label"> <div class="title-label">
<el-cascader <el-cascader v-model="selectAgency"
v-model="selectAgency"
:options="propTree" :options="propTree"
:props="{ checkStrictly: true }" :props="{ checkStrictly: true }"
:show-all-levels="false" :show-all-levels="false"
@ -388,7 +388,8 @@ export default {
label: item.agencyName, label: item.agencyName,
value: item.agencyId + '-' + item.level, value: item.agencyId + '-' + item.level,
level: item.level, level: item.level,
children: this.getTreeData(item.subAgencyList)} children: this.getTreeData(item.subAgencyList)
}
} else { } else {
_item = { _item = {
label: item.agencyName, label: item.agencyName,
@ -514,7 +515,7 @@ export default {
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray //mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
this.$refs.map.loadMap(this.agencyInfo, null, null, this.distributionsList, this.iconUrlArray, null) this.$refs.map.loadMap(this.agencyInfo, null, null, this.distributionsList, this.iconUrlArray, null)
} else { } else {
this.$refs.map.refreshMap(null, this.unitMapList) this.$refs.map.refreshMap(null, this.distributionsList)
} }
}, },

13
src/views/modules/workSys/mapConfig.vue

@ -67,7 +67,7 @@ import { Loading } from 'element-ui'; //引入Loading服务
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import { altKeyOnly, click, pointerMove } from 'ol/events/condition'; import { altKeyOnly, click, pointerMove } from 'ol/events/condition';
var centerPointGlobal = [120.38945519, 36.0722275]
let loading;// let loading;//
let x = 1500 let x = 1500
@ -374,11 +374,14 @@ const vueGis = {
}, },
// //
setMapLocation () { setMapLocation () {
this.centerPoint = []
if (this.orgData.longitude && this.orgData.latitude) { if (this.orgData.longitude && this.orgData.latitude) {
this.centerPoint = []
this.centerPoint.push(this.orgData.longitude) this.centerPoint.push(this.orgData.longitude)
this.centerPoint.push(this.orgData.latitude) this.centerPoint.push(this.orgData.latitude)
} else {
this.centerPoint = centerPointGlobal
} }
this.setZoom(this.orgData.agencyLevel) this.setZoom(this.orgData.agencyLevel)
@ -387,11 +390,11 @@ const vueGis = {
// //
setZoom (agencyLevel) { setZoom (agencyLevel) {
if (agencyLevel === 'district') { if (agencyLevel === 'district') {
this.zoom = 13 this.zoom = 12
} else if (agencyLevel === 'street') { } else if (agencyLevel === 'street') {
this.zoom = 14 this.zoom = 13
} else if (agencyLevel === 'community') { } else if (agencyLevel === 'community') {
this.zoom = 15 this.zoom = 14
} }
}, },

Loading…
Cancel
Save