@@ -148,7 +148,7 @@ export default {
},
async mounted() {
await nextTick(100);
- await this.getAgencyList()
+ // await this.getAgencyList()
this.agencyId = this.$store.state.user.agencyId
this.getEduCount(this.$store.state.user.agencyId) // 饼状统计图
this.getEduList() // 左下角列表数据
diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue
index bf2870126..af528b54c 100644
--- a/src/views/modules/visual/components/screen-map/index.vue
+++ b/src/views/modules/visual/components/screen-map/index.vue
@@ -622,9 +622,11 @@ const vueGis = {
map.addLayer(polygonLayer)
- map.addInteraction(select);
-
-
+ if (this.$route.path == '/main-shuju/visual-communityParty-gridParty' || this.$route.path == '/main-shuju/visual-communityParty-community') { // 2022.6.9 网格党建平面图 联建单位分析页面 点位点击以后会消失,屏蔽这段代码以后可以解决
+ console.log('去掉默认点击')
+ } else {
+ map.addInteraction(select);
+ }
},
//初始化多边形icon图层
From 1794d081d8badbea19330a03bf9974cb5adf2f64 Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Thu, 9 Jun 2022 14:46:10 +0800
Subject: [PATCH 07/12] bug 3025
---
src/views/modules/visual/communityParty/gridParty.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue
index 7fd851c88..0f51c6fa0 100644
--- a/src/views/modules/visual/communityParty/gridParty.vue
+++ b/src/views/modules/visual/communityParty/gridParty.vue
@@ -362,8 +362,8 @@ export default {
// this.$refs.pieChart.hideLoading()
this.$refs.eduChart.setOption(this.pieEduOptions)
if (this.noEduInit) {
- const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
- const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
+ // const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
+ // const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.pageNo = 1
this.pageSize = 10;
this.eduList = []
@@ -462,7 +462,7 @@ export default {
return {
...item,
color: "#00E5ED",
- fillColor: "rgba(0, 229, 237, 0.16)"
+ fillColor: "rgba(0, 229, 237, 0)"
}
})
From 522d00bca35b3637fca807000d53855eb42b9ff1 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Thu, 9 Jun 2022 15:34:28 +0800
Subject: [PATCH 08/12] dd
---
.../visual/communityParty/community.vue | 76 ++++++++++++++-----
.../visual/components/screen-map/index.vue | 6 +-
2 files changed, 59 insertions(+), 23 deletions(-)
diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue
index 79f533a5c..9ff87022c 100644
--- a/src/views/modules/visual/communityParty/community.vue
+++ b/src/views/modules/visual/communityParty/community.vue
@@ -523,8 +523,38 @@ export default {
index: index + 1
}
})
- const url = require('../../../../assets/img/shuju/measure/other.png')
- this.iconUrlArray = [url]
+ this.unitTableData.forEach(item => {
+
+ if (item.type === '楼宇党建') {
+ item.urlIndex = 0
+ } else if (item.type === '两新组织') {
+ item.urlIndex = 1
+ } else if (item.type === '区域单位党建') {
+ item.urlIndex = 2
+ } else if (item.type === '机关直属部门') {
+ item.urlIndex = 3
+ } else if (item.type === '社会团体') {
+ item.urlIndex = 4
+ } else if (item.type === '民办非企业单位') {
+ item.urlIndex = 5
+ } else if (item.type === '基金会') {
+ item.urlIndex = 6
+ } else if (item.type === '其他') {
+ item.urlIndex = 7
+ }
+ });
+ // const url = require('../../../../assets/img/shuju/measure/other.png')
+ // this.iconUrlArray = [url]
+ this.iconUrlArray = [
+ require('../../../../assets/img/shuju/measure/lxdj.png'),//楼宇党建
+ require('../../../../assets/img/shuju/measure/lxzz.png'),//两新组织
+ require('../../../../assets/img/shuju/measure/qydw.png'),//区域单位党建
+ require('../../../../assets/img/shuju/measure/jgzs.png'),//机关直属部门
+ require('../../../../assets/img/shuju/measure/other.png'),//社会团体
+ require('../../../../assets/img/shuju/measure/minban.png'),//民办
+ require('../../../../assets/img/shuju/measure/jijin.png'),//基金
+ require('../../../../assets/img/shuju/measure/qita.png')//其他
+ ]
this.showMap = true
//第一次加载完置为false
@@ -655,11 +685,11 @@ export default {
// this.cateInfo = data
const colorItem = {
0: {
- color: 'rgba(250, 32, 10, 1)',
+ color: '#FA200A',
icon: require('../../../../assets/img/shuju/measure/lxdj.png')
},
1: {
- color: 'rgba(251, 177, 4, 1)',
+ color: '#FBB104',
icon: require('../../../../assets/img/shuju/measure/lxzz.png')
},
2: {
@@ -667,12 +697,12 @@ export default {
icon: require('../../../../assets/img/shuju/measure/qydw.png')
},
3: {
- color: 'rgba(65, 181, 104, 1)',
+ color: '#41B568',
icon: require('../../../../assets/img/shuju/measure/jgzs.png')
},
4: {
- color: 'rgba(192, 21, 195, 1)',
- icon: require('../../../../assets/img/shuju/measure/qita.png')
+ color: '#50C2ED',
+ icon: require('../../../../assets/img/shuju/measure/other.png')
},
5: {
color: '#ee7801',
@@ -684,17 +714,21 @@ export default {
},
7: {
color: '#0189d5',
- icon: require('../../../../assets/img/shuju/measure/other.png')
+
+ icon: require('../../../../assets/img/shuju/measure/qita.png')
}
}
this.partyItem = data.map((item, index) => {
return {
...item,
- ...colorItem[index],
+ itemStyle: {
+ ...colorItem[item.code]
+ },
name: item.label,
isClick: false
}
})
+ console.log('this.partyItem----', this.partyItem)
this.totalCount = 0
data.forEach(item => {
this.totalCount += Number(item.value)
@@ -869,18 +903,18 @@ export default {
item.urlIndex = 7
}
});
- const url = require('../../../../assets/img/shuju/measure/other.png')
- // this.iconUrlArray = [
- // require('../../../../assets/img/shuju/measure/lxdj.png'),//楼宇党建
- // require('../../../../assets/img/shuju/measure/lxzz.png'),//两新组织
- // require('../../../../assets/img/shuju/measure/qydw.png'),//区域单位党建
- // require('../../../../assets/img/shuju/measure/jgzs.png'),//机关直属部门
- // require('../../../../assets/img/shuju/measure/qita.png'),//社会团体
- // require('../../../../assets/img/shuju/measure/minban.png'),//民办
- // require('../../../../assets/img/shuju/measure/jijin.png'),//基金
- // require('../../../../assets/img/shuju/measure/other.png')//其他
- // ]
- this.iconUrlArray = [url, url, url, url, url, url, url, url]
+ // const url = require('../../../../assets/img/shuju/measure/other.png')
+ this.iconUrlArray = [
+ require('../../../../assets/img/shuju/measure/lxdj.png'),//楼宇党建
+ require('../../../../assets/img/shuju/measure/lxzz.png'),//两新组织
+ require('../../../../assets/img/shuju/measure/qydw.png'),//区域单位党建
+ require('../../../../assets/img/shuju/measure/jgzs.png'),//机关直属部门
+ require('../../../../assets/img/shuju/measure/qita.png'),//社会团体
+ require('../../../../assets/img/shuju/measure/minban.png'),//民办
+ require('../../../../assets/img/shuju/measure/jijin.png'),//基金
+ require('../../../../assets/img/shuju/measure/other.png')//其他
+ ]
+ // this.iconUrlArray = [url, url, url, url, url, url, url, url]
//第一次加载完置为false
diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue
index af528b54c..1ccb4d138 100644
--- a/src/views/modules/visual/components/screen-map/index.vue
+++ b/src/views/modules/visual/components/screen-map/index.vue
@@ -372,7 +372,7 @@ const vueGis = {
id: oneIcon.id_
}
});
- // console.log('oneIcon----', oneIcon)
+ console.log('oneIcon----ddd', oneIcon)
let polyIconStyle = new Style({
image: new Icon({
// anchor: [0.5, 0.5],
@@ -408,12 +408,14 @@ const vueGis = {
info: { ...oneIcon }
}
});
+ console.log('oneIcon----', oneIcon)
let iconStyle = new Style({
image: new Icon({
// anchor: [0.5, 0.5],
// imgSize: [32, 32],
// scale: 0.5,
- src: oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex] || this.iconUrlArray[0]
+ // src: oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex] || this.iconUrlArray[0] || this.iconUrlArray[0]
+ src: (oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex]) || (oneIcon.index &&this.iconUrlArray[oneIcon.index]) || this.iconUrlArray[0]
}),
// text: createTextStyle(oneIcon)
});
From 796142c2668d44a24088ad99515f650913e5482a Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Thu, 9 Jun 2022 16:10:42 +0800
Subject: [PATCH 09/12] bug
---
.../modules/visual/communityParty/memberInfo.vue | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/modules/visual/communityParty/memberInfo.vue b/src/views/modules/visual/communityParty/memberInfo.vue
index 1b07df9c1..dedf9f32c 100644
--- a/src/views/modules/visual/communityParty/memberInfo.vue
+++ b/src/views/modules/visual/communityParty/memberInfo.vue
@@ -13,7 +13,7 @@
diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue
index 2664af1d8..fd1f74c04 100644
--- a/src/views/modules/shequzhili/event/eventList.vue
+++ b/src/views/modules/shequzhili/event/eventList.vue
@@ -169,7 +169,7 @@
width="80"
label="音频">
-
diff --git a/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue b/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
index 8e602feed..2aed96664 100644
--- a/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
+++ b/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
@@ -44,9 +44,13 @@
class="info-prop">
音频:
From d5c74cdcca0e49806d61667a0bd0b93eb85d10dc Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Fri, 10 Jun 2022 14:48:05 +0800
Subject: [PATCH 12/12] dd
---
src/views/components/editResi.vue | 2 +-
src/views/components/resiForm.vue | 31 ++++++++++++++++---
src/views/modules/base/resi.vue | 8 +++--
.../modules/communityParty/members/index.vue | 2 +-
4 files changed, 34 insertions(+), 9 deletions(-)
diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue
index 542b5841a..751bde6c1 100644
--- a/src/views/components/editResi.vue
+++ b/src/views/components/editResi.vue
@@ -348,7 +348,7 @@ export default {
_form = { ...obj }
// return _form
}
- const itemTypes = ['cascader', 'daterange', 'timerange']
+ const itemTypes = ['daterange', 'timerange']
arr.forEach(item => {
if (item.multiSelect || itemTypes.includes(item.itemType)) {
if (item.columnValue && item.columnValue.indexOf(',') > -1) _form[item.columnName] = item.columnValue.split(',')
diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue
index 5c5f6680d..db3d6ac9f 100644
--- a/src/views/components/resiForm.vue
+++ b/src/views/components/resiForm.vue
@@ -296,8 +296,11 @@ export default {
}
let initForm = (obj, arr) => {
let _form = {}
- console.log('formInfo---arr', arr)
+ console.log('formInfo---obj', obj)
if (Object.keys(obj).length > 0) {
+ for(const n in obj) {
+ if (obj[n] == null) obj[n] = ''
+ }
_form = { ...obj }
return _form
}
@@ -355,6 +358,8 @@ export default {
}
return {
openSearch: false,
+ isParty: false,
+ partyInfo: [],
fixedForm: {
GRID_ID: '',
VILLAGE_ID: '',
@@ -533,7 +538,10 @@ export default {
// console.log('columnName', item.columnName, columnName)
if (item.columnName === columnName && item.itemType === 'radio' && item.childGroup) {
console.log('columnName', item.columnName, columnName)
- this.$emit('changegroup', { value, childGroup: item.childGroup })
+ if (this.isParty) {
+ this.$emit('changegroup', { value, partyInfo: this.partyInfo, childGroup: item.childGroup })
+ } else this.$emit('changegroup', { value, childGroup: item.childGroup })
+
}
})
},
@@ -672,7 +680,7 @@ export default {
if (this.supportAdd) newForm = this.handlerMuscForm()
return newForm
},
- validateIdcard (idCard) {
+ validateIdcard (idCard, type) {
this.$http
.post('/epmetuser/icresiuser/getUserRoleByIdCard', { idCard })
.then(({ data: res }) => {
@@ -680,10 +688,23 @@ export default {
return this.$message.error(res.msg)
} else {
console.log('获取查询详情成功', res.data)
+
if (res.data.isVolunteer == '1') this.form.IS_VOLUNTEER = '1'
else this.form.IS_VOLUNTEER = '0'
- if (res.data.isPartyMember == '1') this.form.IS_PARTY = '1'
- else this.form.IS_PARTY = '0'
+
+ if (res.data.isPartyMember == '1') {
+ this.form.IS_PARTY = '1'
+ this.isParty = true
+ this.partyInfo = res.data.detail.ic_party_member
+ } else this.form.IS_PARTY = '0'
+
+ // if (type == 'vol') {
+ // this.isParty = false
+
+ // } else if (res.data.isPartyMember == '1' && val == 'party') {
+ // this.isParty = true
+ // }
+
}
})
.catch(() => {
diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue
index 10efef011..e290da0d5 100644
--- a/src/views/modules/base/resi.vue
+++ b/src/views/modules/base/resi.vue
@@ -202,6 +202,7 @@
:name="'group' + item.groupId">
@@ -832,7 +833,7 @@ export default {
},
async handleChangeGroup (val) {
console.log('changeguoprrrrr----', val)
- let { childGroup, value } = val
+ let { childGroup, value, partyInfo } = val
let hasT = false
let i = 0
@@ -855,7 +856,10 @@ export default {
// console.log('')
}
})
- list.push(childGroup)
+ if (partyInfo.length > 0 && childGroup.tableName == 'ic_party_member') {
+ list.push({...childGroup, formInfo: partyInfo[0] })
+ } else list.push(childGroup)
+
}
} else {
// console.log('changegroup----000', value)
diff --git a/src/views/modules/communityParty/members/index.vue b/src/views/modules/communityParty/members/index.vue
index 3077d9d71..55fae06d5 100644
--- a/src/views/modules/communityParty/members/index.vue
+++ b/src/views/modules/communityParty/members/index.vue
@@ -751,7 +751,7 @@ export default {
console.log('user---ppp', user)
// addorupdate query
await this.$http
- .get('/resi/partymember/icPartyOrg/getTreelist', { params: {agencyId: agencyId || user.agencyId} })
+ .get('/resi/partymember/icPartyOrg/getSearchTreelist', { params: {agencyId: agencyId || user.agencyId} })
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)