Browse Source

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

shibei_master
dai 4 years ago
parent
commit
e5c5ac43be
  1. 4
      .env.development
  2. 4
      public/index.html
  3. 2
      src/assets/scss/modules/visual/issue-info.scss
  4. 7
      src/assets/scss/modules/visual/resibuzz.scss
  5. 2
      src/views/modules/base/community/buildTable.vue
  6. 2
      src/views/modules/base/community/communityTable.vue
  7. 8
      src/views/modules/base/community/roomTable.vue
  8. 2
      src/views/modules/communityParty/elegant/index.vue
  9. 14
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  10. 23
      src/views/modules/visual/communityGovern/distributionAnalyze.vue
  11. 3
      src/views/modules/visual/communityGovern/processAnalyze.vue
  12. 11
      src/views/modules/visual/communityGovern/resibuzz.vue
  13. 13
      src/views/modules/visual/communityGovern/typeAnalyze.vue
  14. 170
      src/views/modules/visual/communityParty/community.vue
  15. 80
      src/views/modules/visual/communityParty/party.vue
  16. 14
      src/views/modules/visual/components/screen-map/index.vue
  17. 6
      src/views/modules/visual/components/screen-table/index.vue
  18. 4
      src/views/modules/visual/heart/index.vue
  19. 2
      src/views/modules/visual/measure/service.vue
  20. 59
      src/views/modules/visual/measure/volunteer.vue
  21. 13
      src/views/modules/workSys/mapConfig.vue

4
.env.development

@ -1,7 +1,9 @@
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 = 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_NODE_ENV=dev
#项目根路径

4
public/index.html

@ -40,8 +40,8 @@
<script>
window.SITE_CONFIG['apiURL'] = 'http://192.168.1.140/api'
// window.SITE_CONFIG['apiURL'] = 'https://epmet-test.elinkservice.cn/api'
// window.SITE_CONFIG['apiURL'] = 'http://118.190.150.119:41080/api'
// window.SITE_CONFIG['apiURL'] = 'https://epmet-dev.elinkservice.cn/api'
// window.SITE_CONFIG['apiURL'] = 'http://118.190.150.119:41080/api'
// window.SITE_CONFIG['apiURL'] = 'https://epmet-dev.elinkservice.cn/api'
</script>
<% } %>
<!-- 集成测试环境 dev -->

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

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

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

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

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

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

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

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

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

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

2
src/views/modules/communityParty/elegant/index.vue

@ -120,7 +120,7 @@
</el-card>
<el-dialog
title="居民需求分类"
title="党员风采"
:visible.sync="dialogVisible"
width="40%"
append-to-body

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

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

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

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

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

@ -424,7 +424,8 @@ export default {
loadMap () {
if (this.isfirstInit) {
//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 {
this.$refs.map.refreshMap(null, this.projectList)
}

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

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

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

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

170
src/views/modules/visual/communityParty/community.vue

@ -6,13 +6,20 @@
src="../../../../assets/img/shuju/title-tip.png" />
<div class="title-label">
区域化党建
<el-cascader
v-model="selectAgency"
:options="propTree"
:props="{ checkStrictly: true }"
:show-all-levels="false"
clearable
@change="handleCascader">
</el-cascader>
</div>
</div>
<div class="second-title">
<div class="second-title-label">党建单位分类统计</div>
<div class="second-select">
<el-select v-model="serviceMatter"
clearable
placeholder="请选择"
@change="handleSelectChange"
@clear="handleSelectChange">
@ -31,6 +38,7 @@
end-placeholder="结束日期"
prefix-icon="el-icon-caret-bottom"
value-format="yyyy-MM-dd HH:mm:ss"
:clearable="false"
:default-time="['00:00:00', '23:59:59']"
>
</el-date-picker>
@ -135,7 +143,7 @@ export default {
{ title: "区域化党建单位名称", coulmn: 'unitName' },
{ title: "活动标题", coulmn: 'title' },
{ title: "活动地址", coulmn: 'address' },
{ title: "服务事项", coulmn: 'serviceMatter' },
{ title: "服务事项", coulmn: 'serviceMatterName' },
{ title: "服务人数", coulmn: 'peopleCount' },
{ title: "活动时间", coulmn: 'activityTime' }
],
@ -147,13 +155,15 @@ export default {
value2: '',
timeRange: '',
visibleLoading: true,
serviceMatter: '',
serviceMatter: 'all',
pageNo: 1,
pageSize: 10,
total: 0,
activeIndex: 0,
activeLevel: "1",
selectAgency: '',
unitList: [],
propTree: [],
partyItem: [
{
name: '楼宇党建',
@ -231,33 +241,37 @@ export default {
async mounted () {
const { user } = this.$store.state
this.agencyId = user.agencyId
console.log('agencyId-------', this.agencyId)
this.initTime()
await nextTick(100);
await this.getAgencyList()
this.loadUnit()
this.getList();
this.getCateCount()
this.getCateType()
this.getList(this.agencyId)
this.getCateCount(this.agencyId)
this.getCateType(this.agencyId)
await this.getWorkUserInfo()
await this.getMapUnitList()
await this.getMapUnitList(this.agencyId)
},
watch: {
timeRange(val) {
console.log('val-www', val)
this.getList();
this.getList(this.agencyId);
}
},
methods: {
//
async getList () {
async getList (agencyId) {
this.visibleLoading = true
const url = "/heart/icpartyactivity/activitylist"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list"
let params = {
agencyId: this.agencyId,
agencyId,
pageSize: this.pageSize,
pageNo: this.pageNo,
serviceMatter: this.serviceMatter,
serviceMatter: this.serviceMatter == 'all' ? '' : this.serviceMatter,
startTime: this.timeRange && this.timeRange[0] || '',
endTime: this.timeRange && this.timeRange[1] || ''
}
@ -277,12 +291,61 @@ export default {
}
this.visibleLoading = false
},
async getCateCount () {
async getAgencyList() {
// const url = "/gov/org/customeragency/staffinagencylist";
// const url = '/gov/org/customeragency/agencygridtree'
const url = '/gov/org/customeragency/staffinagencylist'
// let params = {
// agencyId: this.$store.state.user.agencyId,
// };
const { data, code, msg } = await requestPost(url);
if (code === 0) {
console.log('data-org----o', data)
let { agencyList, subAgencyList } = data
this.selectAgency = [`${agencyList.agencyId}-${agencyList.level}`]
let arr = []
agencyList.subAgencyList = subAgencyList
arr.push(agencyList)
this.propTree = arr && this.getTreeData(arr)
} else {
this.$message.error(msg)
}
},
getTreeData(data){
if (!Array.isArray(data)) return []
let arr = data.map(item => {
let _item = {}
if (item.subAgencyList) {
if (item.subAgencyList.length === 0) {
_item = {
label: item.agencyName,
value: item.agencyId + '-' + item.level,
level: item.level,
children: undefined
}
} else _item = {
label: item.agencyName,
value: item.agencyId + '-' + item.level,
level: item.level,
children: this.getTreeData(item.subAgencyList)}
} else {
_item = {
label: item.agencyName,
value: item.agencyId + '-' + item.level,
level: item.level,
}
}
return _item
})
return arr
},
async getCateCount (agencyId) {
const url = "/heart/icpartyactivity/statistics"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list"
let params = {
agencyId: this.agencyId
agencyId
}
const { data, code, msg } = await requestPost(url, params)
@ -293,12 +356,12 @@ export default {
this.$message.error(msg)
}
},
async getCateType () {
async getCateType (agencyId) {
const url = "/heart/icpartyunit/typestatistics"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list"
let params = {
agencyId: this.agencyId
agencyId
}
const { data, code, msg } = await requestPost(url, params)
@ -352,7 +415,37 @@ export default {
this.$message.error(msg)
}
},
handleCascader(val) {
console.log('val-vvv', val)
if (val.length > 0) {
const _arr = val[val.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.getList(_arr[0])
this.getMapUnitList(_arr[0])
this.getCateCount(_arr[0])
this.getCateType(_arr[0])
}
},
initTime() {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
console.log('time-rtt', this.timeFormat(start), this.timeFormat(end))
this.timeRange = [this.timeFormat(start), this.timeFormat(end)]
},
timeFormat(date) {
if (!date || typeof date === 'string') {
return false
}
var y = date.getFullYear() //
var m = date.getMonth() + 1 //
if (m < 10) m = '0' + m
var d = date.getDate() //
if (d < 10) d = '0' + d
return y + '-' + m + '-' + d + ' 00:00:00'
},
async loadUnit () {
const url = "/heart/icresidemanddict/subcodelist"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/option"
@ -365,7 +458,10 @@ export default {
if (code === 0) {
this.unitList = data
this.unitList.unshift({
label: '全部',
value: 'all'
})
} else {
this.$message.error(msg)
}
@ -419,27 +515,33 @@ export default {
// },
//
async getMapUnitList () {
async getMapUnitList (agencyId) {
const url = "/heart/icpartyunit/distribution"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/distribution"
let params = {
agencyId: this.agencyId
agencyId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
// this.unitMapList = data
this.unitMapList = this.unitMapList1
console.log('unitMapList----data', data)
this.unitMapList = data.map((item, index) => {
return {
...item,
urlIndex: index
}
})
// this.unitMapList = this.unitMapList1
console.log('unitMapList----', this.unitMapList)
this.unitMapList.forEach(item => {
if (item.type === '党建楼宇') {
if (item.type === '楼宇党建') {
item.urlIndex = 0
} else if (item.type === '两新党建') {
} else if (item.type === '两新组织') {
item.urlIndex = 1
} else if (item.type === '区单位') {
} else if (item.type === '区单位党建') {
item.urlIndex = 2
} else if (item.type === '机关直属部门') {
item.urlIndex = 3
@ -492,7 +594,7 @@ export default {
this.showedMoreInfo = true
},
handleSelectChange () {
handleSelectChange (val) {
this.getList();
},
pageSizeChangeHandleNew (val) {
@ -562,8 +664,22 @@ export default {
margin-right: 6px;
}
.title-label {
font-size: 16px;
font-size: 20px;
font-weight: 800;
::v-deep .el-input {
width: 180px;
margin-left: 10px;
.el-input__inner {
font-size: 18px;
font-weight: 800;
color: #fff;
background: transparent;
border: 0;
}
.el-icon-arrow-down::before {
content: "\e790";
}
}
}
::v-deep .el-dropdown {
font-size: 16px;

80
src/views/modules/visual/communityParty/party.vue

@ -40,7 +40,7 @@
<div class="echarts-tips echarts-tips-wd50">
<div class="tips-lists">
<div v-for="(item, index) in ageItem" :key="index" class="tips-items">
<div class="tips-items-title" :class="'tips-items-title' + item.value">
<div class="tips-items-title" :class="'tips-items-title' + item.code">
{{ item.name }}
</div>
<div class="tips-items-num">
@ -59,6 +59,7 @@
:tableData="ageList"
:visibleLoading="visibleLoading"
:operate="false"
@row="handleClickRow"
></screen-table>
<div class="pagination">
<el-pagination
@ -100,6 +101,7 @@
:tableData="eduList"
:visibleLoading="visibleLoading"
:operate="false"
@row="handleClickRow"
></screen-table>
<div class="pagination">
<el-pagination
@ -323,7 +325,7 @@ export default {
this.clickEduPie(params.dataIndex)
}
this.$refs.eduChart.handleClick(fun)
this.noInit = true
// this.noInit = true
// option && this.$refs.pieChart.setOption(option);
},
@ -454,9 +456,18 @@ export default {
},
clickAgePie (seriesIndex) {
let _code = ''
let isClick = false
console.log('seriesIndex---', seriesIndex)
this.ageItem.forEach((element, index) => {
if (index === seriesIndex) {
_code = element.code
if (!this.noInit) isClick = false
else {
element.isClick = !element.isClick
isClick = element.isClick
}
element.label = {
show: true,
@ -470,6 +481,7 @@ export default {
};
console.log('zlcm', element)
} else {
element.isClick = false
element.label = {
show: false,
@ -492,16 +504,25 @@ export default {
if (this.noInit) {
const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.getAgeList(_arr[0], orgType, _code)
console.log('zlcm---isClick', isClick)
this.getAgeList(_arr[0], orgType, isClick && _code || '')
}
this.noInit = true
},
clickEduPie (seriesIndex) {
let _code = ''
let isClick = false
this.eduItem.forEach((element, index) => {
if (index === seriesIndex) {
_code = element.code
if (!this.noEduInit) isClick = false
else {
element.isClick = !element.isClick
isClick = element.isClick
}
element.label = {
show: true,
@ -515,6 +536,7 @@ export default {
};
console.log('zlcm')
} else {
element.isClick = false
element.label = {
show: false,
@ -538,7 +560,7 @@ export default {
const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.getEduList(_arr[0], orgType, _code)
this.getEduList(_arr[0], orgType, isClick && _code || '')
}
this.noEduInit = true
@ -552,10 +574,37 @@ export default {
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.ageItem = data.map(item => {
const colorList = [
{
name: '50岁以下',
value: 1,
color: '#FAC126'
}, {
name: '50-59岁',
value: 2,
color: '#3DDA83'
}, {
name: '60-69岁',
value: 3,
color: '#A800FF'
}, {
name: '70-79岁',
value: 4,
color: '#2865FA'
}, {
name: '80岁以上',
value: 5,
color: '#00DAD2'
}
]
this.ageItem = data.map((item, index) => {
return {
...item,
name: item.label
name: item.label,
isClick: false,
itemStyle: {
color: colorList[index].color
}
}
})
data.forEach(item => {
@ -576,7 +625,8 @@ export default {
this.eduItem = data.map(item => {
return {
...item,
name: item.label
name: item.label,
isClick: false
}
})
data.forEach(item => {
@ -679,6 +729,12 @@ export default {
})
return arr
},
handleClickRow(val) {
console.log('click-row----', val)
this.$router.push({
path: `/main-shuju/visual-basicinfo-people/${val.userId}`,
});
},
handleCascader(val) {
console.log('val-vvv', val)
const _arr = val[val.length - 1].split('-')
@ -912,18 +968,18 @@ export default {
padding-left: 6px;
font-size: 16px;
color: #EFF0F1;
background: url('../../../../assets/img/shuju/measure/zi@2x.png') no-repeat left bottom;
background: url('../../../../assets/img/shuju/measure/huang@2x.png') no-repeat left bottom;
&1 {
background: url('../../../../assets/img/shuju/measure/huang@2x.png') no-repeat left bottom;
background: url('../../../../assets/img/shuju/measure/lv@2x.png') no-repeat left bottom;
}
&2 {
background: url('../../../../assets/img/shuju/measure/lan@2x.png') no-repeat left bottom;
background: url('../../../../assets/img/shuju/measure/zi@2x.png') no-repeat left bottom;
}
&3 {
background: url('../../../../assets/img/shuju/measure/lanlv@2x.png') no-repeat left bottom;
background: url('../../../../assets/img/shuju/measure/lan@2x.png') no-repeat left bottom;
}
&4 {
background: url('../../../../assets/img/shuju/measure/lv@2x.png') no-repeat left bottom;
background: url('../../../../assets/img/shuju/measure/lanlv@2x.png') no-repeat left bottom;
}
}
.tips-items-num {

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

6
src/views/modules/visual/components/screen-table/index.vue

@ -22,6 +22,7 @@
class="table-body-tr"
v-for="(value, index) in tableData"
:key="index"
@click.stop="handleClickRow(value)"
>
<div
class="td"
@ -201,6 +202,9 @@ export default {
look(val) {
console.log('look-----l', val)
this.$emit('look', val)
},
handleClickRow(val) {
this.$emit('row', val)
}
},
};
@ -250,6 +254,8 @@ export default {
.td {
text-align: center;
width: calc(100% / 5);
box-sizing: border-box;
padding: 0 15px;
cursor: pointer;
overflow: hidden;
white-space: nowrap;

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

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

2
src/views/modules/visual/measure/service.vue

@ -179,7 +179,7 @@ export default {
{ title: "上报人", coulmn: 'reportUserName' },
{ title: "上报时间", coulmn: 'reportTime' },
{ title: "需求人", coulmn: 'demandUserName' },
{ title: "服务方", coulmn: 'serviceName' },
{ title: "服务方", coulmn: 'serviceShowName' },
{ title: "服务时间", coulmn: 'wantServiceTime' },
],
categoryList: [],

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

@ -1,16 +1,16 @@
<template>
<div class="warning-box">
<cpt-card >
<cpt-card>
<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">
<el-cascader
v-model="selectAgency"
:options="propTree"
:props="{ checkStrictly: true }"
:show-all-levels="false"
clearable
@change="handleCascader">
<el-cascader v-model="selectAgency"
:options="propTree"
:props="{ checkStrictly: true }"
:show-all-levels="false"
clearable
@change="handleCascader">
</el-cascader>
</div>
</div>
@ -18,7 +18,7 @@
<cpt-card class="card-wr">
<div class="card-title">
<img class="title-icon"
src="../../../../assets/img/shuju/title-tip.png" />
src="../../../../assets/img/shuju/title-tip.png" />
<div class="title-label">
志愿者服务情况
</div>
@ -43,7 +43,7 @@
<div class="echart-wr">
<!-- <div class="echart-cicle"></div> -->
<div id="echartService"
class="echart-org"></div>
class="echart-org"></div>
</div>
</div>
@ -69,7 +69,7 @@
<div class="echart-wr">
<!-- <div class="echart-cicle"></div> -->
<div id="echartCount"
class="echart-org"></div>
class="echart-org"></div>
</div>
</div>
@ -80,7 +80,7 @@
<cpt-card class="card-wr card-wr-map">
<div class="card-title">
<img class="title-icon"
src="../../../../assets/img/shuju/title-tip.png" />
src="../../../../assets/img/shuju/title-tip.png" />
<div class="title-label">
多元化治理平面图
</div>
@ -97,11 +97,11 @@
<div class="map-tips">
<div class="map-tips-item"
v-for="item in legendArray"
:key="item.optionValue">
v-for="item in legendArray"
:key="item.optionValue">
<img class="title-icon"
:src="item.url" />
:src="item.url" />
<div class="map-tips-label">{{item.optionLabel}}</div>
</div>
@ -351,7 +351,7 @@ export default {
this.$message.error(msg)
}
},
async getAgencyList() {
async getAgencyList () {
// const url = "/gov/org/customeragency/staffinagencylist";
// const url = '/gov/org/customeragency/agencygridtree'
const url = '/gov/org/customeragency/staffinagencylist'
@ -372,25 +372,26 @@ export default {
this.$message.error(msg)
}
},
getTreeData(data){
getTreeData (data) {
if (!Array.isArray(data)) return []
let arr = data.map(item => {
let _item = {}
if (item.subAgencyList) {
if (item.subAgencyList.length === 0) {
_item = {
_item = {
label: item.agencyName,
value: item.agencyId + '-' + item.level,
level: item.level,
children: undefined
children: undefined
}
} else _item = {
} else _item = {
label: item.agencyName,
value: item.agencyId + '-' + item.level,
level: item.level,
children: this.getTreeData(item.subAgencyList)}
children: this.getTreeData(item.subAgencyList)
}
} else {
_item = {
_item = {
label: item.agencyName,
value: item.agencyId + '-' + item.level,
level: item.level,
@ -497,16 +498,16 @@ export default {
},
handleCascader(val) {
handleCascader (val) {
console.log('val-vvv', val)
if (val.length > 0) {
const _arr = val[val.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
const orgType = _arr[1] !== 'grid' ? 'agency' : 'grid'
// this.getServicePie(_arr[0], orgType)
this.getPie(_arr[0])
this.getMapUnitList(_arr[0])
}
},
//
loadMap () {
@ -514,7 +515,7 @@ export default {
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
this.$refs.map.loadMap(this.agencyInfo, null, null, this.distributionsList, this.iconUrlArray, null)
} else {
this.$refs.map.refreshMap(null, this.unitMapList)
this.$refs.map.refreshMap(null, this.distributionsList)
}
},
@ -641,7 +642,7 @@ export default {
.title-label {
font-size: 16px;
font-weight: 800;
::v-deep .el-input {
width: 180px;
.el-input__inner {
@ -652,7 +653,7 @@ export default {
border: 0;
}
.el-icon-arrow-down::before {
content: "\e790";
content: "\e790";
}
}
}

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

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

Loading…
Cancel
Save