+ :class="current == index ? 'active-item' : ''" @click="handleTabs(item, index)">
{{ item.content }}
{{ item.reportTime }}
@@ -219,7 +219,7 @@ export default {
}
.list-wr {
display: flex;
- padding: 0 32px;
+ // padding: 0 32px;
}
.list-left {
@@ -230,9 +230,13 @@ export default {
flex-shrink: 0;
border-right: 1px dashed #1257c9;
overflow: auto;
+ .active-item {
+ border: 1px solid #0063FE !important;
+ box-shadow: 0px 0px 10px #0063fe inset;
+ }
.left-item {
- padding: 10px 0;
- border-right: 1px dashed #1257c9;
+ padding: 10px 0px 10px 10px;
+ // border-right: 1px dashed #1257c9;
cursor: pointer;
.item-title {
font-size: 16px;
From 7d1cf800773705af5a3e91dd0f09fd84ce26392f Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Thu, 9 Jun 2022 17:36:11 +0800
Subject: [PATCH 08/20] bug
---
src/views/modules/visual/communityParty/gridParty.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue
index 0f51c6fa0..4be1b3cc1 100644
--- a/src/views/modules/visual/communityParty/gridParty.vue
+++ b/src/views/modules/visual/communityParty/gridParty.vue
@@ -149,6 +149,7 @@ export default {
async mounted() {
await nextTick(100);
// await this.getAgencyList()
+ await this.getWorkUserInfo()
this.agencyId = this.$store.state.user.agencyId
this.getEduCount(this.$store.state.user.agencyId) // 饼状统计图
this.getEduList() // 左下角列表数据
@@ -164,7 +165,6 @@ export default {
require('../../../../assets/img/shuju/measure/other.png')
]
await this.loadOrgData()
- await this.getWorkUserInfo()
// this.loadMap()
this.getMapData()
// this.isfirstInit = false
@@ -489,7 +489,7 @@ export default {
if (!data.level) {
this.agencyInfo.level = 'street'
}
-
+ this.agencyInfo.agencyLevel = this.agencyInfo.level
},
(rspMsg, data) => {
this.$message.error(rspMsg)
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 09/20] 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)
From 427d2eda06f4ea761b7079519331c49aee992219 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Fri, 10 Jun 2022 15:38:29 +0800
Subject: [PATCH 10/20] dd
---
src/views/modules/base/resi.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue
index e290da0d5..5700c7756 100644
--- a/src/views/modules/base/resi.vue
+++ b/src/views/modules/base/resi.vue
@@ -856,7 +856,7 @@ export default {
// console.log('')
}
})
- if (partyInfo.length > 0 && childGroup.tableName == 'ic_party_member') {
+ if (partyInfo && partyInfo.length > 0 && childGroup.tableName == 'ic_party_member') {
list.push({...childGroup, formInfo: partyInfo[0] })
} else list.push(childGroup)
From f4fb833f56435780c9a95fed4b3652ff6511bc6f Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Fri, 10 Jun 2022 17:25:47 +0800
Subject: [PATCH 11/20] dd
---
src/views/modules/visual/communityParty/options.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/modules/visual/communityParty/options.js b/src/views/modules/visual/communityParty/options.js
index a22fd586d..a969472cc 100644
--- a/src/views/modules/visual/communityParty/options.js
+++ b/src/views/modules/visual/communityParty/options.js
@@ -1,11 +1,11 @@
export function pieOption (_charts) {
- const center= ['50%', '50%']
+ const center= ['60%', '50%']
return {
title: {
text: '0',
top: 125,
- left: 196,
+ left: 235,
textAlign: 'center',
textStyle: {
width: '100%',
@@ -87,8 +87,8 @@ export function pieOption (_charts) {
alignTo: 'edge',
// formatter: '{a|{c}}\n\n{name|{b}}',
formatter: '{a|{c}}\n{r|}\n{name|{b}}',
- minMargin: 5,
- edgeDistance: '10%',
+ // minMargin: 5,
+ edgeDistance: 20,
lineHeight: 15,
color: '#fff',
fontSize: 12,
@@ -114,13 +114,13 @@ export function pieOption (_charts) {
labelLine: {
show: false,
smooth: 0.2,
- length: 30,
- length2: 0,
+ length: 20,
+ length2: 10,
maxSurfaceAngle: 80
},
labelLayout: function (params) {
- const isLeft = params.labelRect.x < _charts.getWidth() / 2;
+ const isLeft = params.labelRect.x < _charts.getWidth() / 3;
const points = params.labelLinePoints;
// Update the end point.
if (points) {
From dac24f7a2b29c6b7dd422a992728fee4666be15d Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 09:59:27 +0800
Subject: [PATCH 12/20] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=EF=BC=88=E5=9C=B0=E5=9B=BE=EF=BC=8C=E5=9B=BE=E8=A1=A8=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/visual/communityParty/community.vue | 12 ++++++++----
src/views/modules/visual/communityParty/party.vue | 2 ++
.../modules/visual/components/screen-map/index.vue | 6 +++---
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue
index 9ff87022c..c25cd60aa 100644
--- a/src/views/modules/visual/communityParty/community.vue
+++ b/src/views/modules/visual/communityParty/community.vue
@@ -360,6 +360,8 @@ export default {
// this.pieEduOptions.series[1].width = 400
this.clickEduPie(0)
let fun = params => {
+ console.log('params------c', params)
+ if (params.seriesIndex == 0 || params.seriesIndex == 2) return
this.clickEduPie(params.dataIndex)
}
this.$refs.eduChart.handleClick(fun)
@@ -368,6 +370,7 @@ export default {
},
clickEduPie (seriesIndex) {
+
let _code = ''
let isClick = false
this.partyItem.forEach((element, index) => {
@@ -517,10 +520,11 @@ export default {
if (code === 0) {
this.showMap = false
this.unitTotal = data.total
+ this.unitTableData = []
this.unitTableData = data.list.map((item, index) => {
return {
...item,
- index: index + 1
+ urlIndex: index
}
})
this.unitTableData.forEach(item => {
@@ -693,7 +697,7 @@ export default {
icon: require('../../../../assets/img/shuju/measure/lxzz.png')
},
2: {
- color: 'rgba(80, 194, 237, 1)',
+ color: '#50C2ED',
icon: require('../../../../assets/img/shuju/measure/qydw.png')
},
3: {
@@ -701,7 +705,7 @@ export default {
icon: require('../../../../assets/img/shuju/measure/jgzs.png')
},
4: {
- color: '#50C2ED',
+ color: '#0189d5',
icon: require('../../../../assets/img/shuju/measure/other.png')
},
5: {
@@ -713,7 +717,7 @@ export default {
icon: require('../../../../assets/img/shuju/measure/jijin.png')
},
7: {
- color: '#0189d5',
+ color: '#C015C3', //
icon: require('../../../../assets/img/shuju/measure/qita.png')
}
diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue
index b5b0e541a..d7ab9eb24 100644
--- a/src/views/modules/visual/communityParty/party.vue
+++ b/src/views/modules/visual/communityParty/party.vue
@@ -311,6 +311,7 @@ export default {
this.pieAgeOptions = pieOption(this.pieAgeChartS)
this.clickAgePie(0)
let fun = params => {
+ if (params.seriesIndex == 0 || params.seriesIndex == 2) return
this.clickAgePie(params.dataIndex)
}
this.$refs.ageChart.handleClick(fun)
@@ -359,6 +360,7 @@ export default {
// this.pieEduOptions.series[1].width = 400
this.clickEduPie(0)
let fun = params => {
+ if (params.seriesIndex == 0 || params.seriesIndex == 2) return
this.clickEduPie(params.dataIndex)
}
this.$refs.eduChart.handleClick(fun)
diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue
index 1ccb4d138..bfa9f23ee 100644
--- a/src/views/modules/visual/components/screen-map/index.vue
+++ b/src/views/modules/visual/components/screen-map/index.vue
@@ -355,7 +355,7 @@ const vueGis = {
loadPolIcon (feature) {
polIconSource.clear()
let polyIconFeatures = [];
- console.log('feature-----', feature)
+ // console.log('feature-----', feature)
feature.forEach(oneIcon => {
var extent = boundingExtent(oneIcon.getGeometry().getCoordinates()[0]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
@@ -372,7 +372,7 @@ const vueGis = {
id: oneIcon.id_
}
});
- console.log('oneIcon----ddd', oneIcon)
+ // console.log('oneIcon----ddd', oneIcon)
let polyIconStyle = new Style({
image: new Icon({
// anchor: [0.5, 0.5],
@@ -408,7 +408,7 @@ const vueGis = {
info: { ...oneIcon }
}
});
- console.log('oneIcon----', oneIcon)
+ // console.log('oneIcon----', this.iconUrlArray[oneIcon.urlIndex])
let iconStyle = new Style({
image: new Icon({
// anchor: [0.5, 0.5],
From ac30b06d2b5631bc0c55022ade975fb5f2e4aacf Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 11:56:52 +0800
Subject: [PATCH 13/20] dd
---
src/views/modules/communityParty/members/crateForm.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/communityParty/members/crateForm.vue b/src/views/modules/communityParty/members/crateForm.vue
index 11775d811..c06c503f3 100644
--- a/src/views/modules/communityParty/members/crateForm.vue
+++ b/src/views/modules/communityParty/members/crateForm.vue
@@ -239,8 +239,9 @@ export default {
handler(val) {
if (Object.keys(val).length > 0) {
this.form = { ...val }
- if (val.icResiUserId) this.isAuto = true
+ if (val.icResiUserId || val.icResiUser) this.isAuto = true
console.log('val----------in', val)
+ console.log('isAuto----------in', this.isAuto)
this.partyOrgs = val.orgPids.split(':')
console.log('partyOrgs-----', this.partyOrgs)
this.partymenberid = val.id
From bfb49ae3fb4c51c9c3c3c8720c79ee88c8df7f31 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 12:38:29 +0800
Subject: [PATCH 14/20] dd
---
.../modules/visual/communityParty/community.vue | 6 +++++-
src/views/modules/visual/communityParty/party.vue | 12 ++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue
index c25cd60aa..50c7c96c3 100644
--- a/src/views/modules/visual/communityParty/community.vue
+++ b/src/views/modules/visual/communityParty/community.vue
@@ -361,7 +361,11 @@ export default {
this.clickEduPie(0)
let fun = params => {
console.log('params------c', params)
- if (params.seriesIndex == 0 || params.seriesIndex == 2) return
+ if (params.seriesIndex == 0 || params.seriesIndex == 2) {
+ this.unitType = ''
+ this.getUnitList(this.agencyId)
+ return
+ }
this.clickEduPie(params.dataIndex)
}
this.$refs.eduChart.handleClick(fun)
diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue
index d7ab9eb24..3309ae0b1 100644
--- a/src/views/modules/visual/communityParty/party.vue
+++ b/src/views/modules/visual/communityParty/party.vue
@@ -311,7 +311,11 @@ export default {
this.pieAgeOptions = pieOption(this.pieAgeChartS)
this.clickAgePie(0)
let fun = params => {
- if (params.seriesIndex == 0 || params.seriesIndex == 2) return
+ if (params.seriesIndex == 0 || params.seriesIndex == 2) {
+ this.ageCode = ''
+ this.getAgeList()
+ return
+ }
this.clickAgePie(params.dataIndex)
}
this.$refs.ageChart.handleClick(fun)
@@ -360,7 +364,11 @@ export default {
// this.pieEduOptions.series[1].width = 400
this.clickEduPie(0)
let fun = params => {
- if (params.seriesIndex == 0 || params.seriesIndex == 2) return
+ if (params.seriesIndex == 0 || params.seriesIndex == 2) {
+ this.eduCode = ''
+ this.getEduList()
+ return
+ }
this.clickEduPie(params.dataIndex)
}
this.$refs.eduChart.handleClick(fun)
From 405660c0558327d14900e43ceee55354558ee28c Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Mon, 13 Jun 2022 13:22:19 +0800
Subject: [PATCH 15/20] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=85=9A=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/partymember/lookMember.vue | 531 +++++++++++++++++--
1 file changed, 477 insertions(+), 54 deletions(-)
diff --git a/src/views/modules/partymember/lookMember.vue b/src/views/modules/partymember/lookMember.vue
index ee42fadc9..92259bd3a 100644
--- a/src/views/modules/partymember/lookMember.vue
+++ b/src/views/modules/partymember/lookMember.vue
@@ -1,15 +1,126 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -123,68 +267,347 @@
From fcec3fa4f5067568c9ca6951c79f9207752ffe46 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 14:15:58 +0800
Subject: [PATCH 16/20] dd
---
src/views/components/resiForm.vue | 34 ++++++++++++-------
.../communityParty/members/crateForm.vue | 11 +++---
2 files changed, 28 insertions(+), 17 deletions(-)
diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue
index db3d6ac9f..505fe55c0 100644
--- a/src/views/components/resiForm.vue
+++ b/src/views/components/resiForm.vue
@@ -297,18 +297,27 @@ export default {
let initForm = (obj, arr) => {
let _form = {}
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
- }
+ // if (Object.keys(obj).length > 0) {
+ // for(const n in obj) {
+ // if (obj[n] == null) obj[n] = ''
+ // }
+ // _form = { ...obj }
+ // return _form
+ // }
+ const len = Object.keys(obj).length
arr.forEach(item => {
-
- if (item.multiSelect) _form[item.columnName] = []
- else if (item.itemType == 'radio' && item.defaultValue == '0') _form[item.columnName] = item.defaultValue
- else _form[item.columnName] = ''
+ if (len) {
+ if (obj[item.columnName]) {
+ _form[item.columnName] = obj[item.columnName]
+ item.isChange = true
+ }
+
+ } else {
+ if (item.multiSelect) _form[item.columnName] = []
+ else if (item.itemType == 'radio' && item.defaultValue == '0') _form[item.columnName] = item.defaultValue
+ else _form[item.columnName] = ''
+ }
+
// if (item.optionSourceType === 'remote') {
// this.getOptionsLists(item.optionSourceValue).then(res => {
@@ -343,9 +352,10 @@ export default {
let rules = initRules(this.formList)
console.log('rulessss', rules)
let tempFormList = [ ...this.formList ].map(item => {
+ const isChange = (item.itemType == 'radio' && item.defaultValue == '0') && true
return {
...item,
- isChange: (item.itemType == 'radio' && item.defaultValue == '0') ? true : false
+ isChange: isChange || item.isChange || false
}
})
let constForm = {
diff --git a/src/views/modules/communityParty/members/crateForm.vue b/src/views/modules/communityParty/members/crateForm.vue
index c06c503f3..7076fadac 100644
--- a/src/views/modules/communityParty/members/crateForm.vue
+++ b/src/views/modules/communityParty/members/crateForm.vue
@@ -6,7 +6,7 @@
0) {
- const i = val.length - 1
- this.form.sszb = val[i]
- } else this.form.sszb = ''
+ // if (val.length > 0) {
+ // const i = val.length - 1
+ // this.form.sszb = val[i]
+ // } else this.form.sszb = ''
},
handleValidBlur(n) {
if (!isCard(this.form.idCard)) return
From 4aeec192ce67a273953362021f9ef6133b2d123d Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 14:24:57 +0800
Subject: [PATCH 17/20] dd
---
src/views/modules/communityParty/members/crateForm.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/modules/communityParty/members/crateForm.vue b/src/views/modules/communityParty/members/crateForm.vue
index 7076fadac..9b0a5f0b9 100644
--- a/src/views/modules/communityParty/members/crateForm.vue
+++ b/src/views/modules/communityParty/members/crateForm.vue
@@ -1,7 +1,7 @@
From 08c8df88fcc6d3cc2ba8bf2a63abc42b87510821 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 15:14:06 +0800
Subject: [PATCH 18/20] dd
---
.../icpartymemberpayrecorddetail.vue | 24 +++++++++++++++----
.../partymember/icpartymemberpoint.vue | 19 ++++++++++++---
.../modules/visual/communityParty/party.vue | 3 ++-
3 files changed, 38 insertions(+), 8 deletions(-)
diff --git a/src/views/modules/partymember/icpartymemberpayrecorddetail.vue b/src/views/modules/partymember/icpartymemberpayrecorddetail.vue
index 6ac74f3d2..c785eae2c 100644
--- a/src/views/modules/partymember/icpartymemberpayrecorddetail.vue
+++ b/src/views/modules/partymember/icpartymemberpayrecorddetail.vue
@@ -4,13 +4,28 @@
-
+ clearable /> -->
+
@@ -44,13 +59,14 @@
-
+
@@ -237,7 +253,7 @@
},
// 获取党组织列表
getOrgList() {
- return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: localStorage.getItem('agencyId')}}).then(({data: res}) => {
+ return this.$http.get('/resi/partymember/icPartyOrg/getSearchTreelist', {params: {agencyId: localStorage.getItem('agencyId')}}).then(({data: res}) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
diff --git a/src/views/modules/partymember/icpartymemberpoint.vue b/src/views/modules/partymember/icpartymemberpoint.vue
index 6180d89cb..310d1e328 100644
--- a/src/views/modules/partymember/icpartymemberpoint.vue
+++ b/src/views/modules/partymember/icpartymemberpoint.vue
@@ -10,8 +10,9 @@
>
@@ -241,17 +244,27 @@ export default {
this.currentPage = val
this.getDataList()
},
+ deepArrTOnull(arr) {
+ let a = []
+ a = arr.map(item => {
+ return {
+ ...item,
+ children: (item.children.length > 0 && this.deepArrTOnull(item.children) )|| null
+ }
+ })
+ return a
+ },
// 获取党组织列表
getOrgList() {
return this.$http
- .get('/resi/partymember/icPartyOrg/getTreelist', {
+ .get('/resi/partymember/icPartyOrg/getSearchTreelist', {
params: { agencyId: localStorage.getItem('agencyId') }
})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
- this.orgList = res.data
+ this.orgList = this.deepArrTOnull(res.data)
})
.catch(() => {})
},
diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue
index 3309ae0b1..49a84ac4a 100644
--- a/src/views/modules/visual/communityParty/party.vue
+++ b/src/views/modules/visual/communityParty/party.vue
@@ -753,7 +753,8 @@ export default {
async getPartyOggList(node, resolve) {
// const url = "/gov/org/customeragency/staffinagencylist";
// const url = '/gov/org/customeragency/agencygridtree'
- const url = '/resi/partymember/icPartyOrg/getTreelist'
+ // const url = '/resi/partymember/icPartyOrg/getTreelist'
+ const url ='/resi/partymember/icPartyOrg/getSearchTreelist'
let params = {
agencyId: this.$store.state.user.agencyId,
};
From 8a8d504db3e0468d40525cf668f9fc0551f3bdf8 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 13 Jun 2022 16:43:22 +0800
Subject: [PATCH 19/20] dd
---
src/views/modules/communityParty/members/crateForm.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/communityParty/members/crateForm.vue b/src/views/modules/communityParty/members/crateForm.vue
index 9b0a5f0b9..8f8ac56df 100644
--- a/src/views/modules/communityParty/members/crateForm.vue
+++ b/src/views/modules/communityParty/members/crateForm.vue
@@ -188,7 +188,8 @@ export default {
partymenberid: '',
partyProps: {
label: 'partyOrgName',
- value: 'id'
+ value: 'id',
+ emitPath: false
},
zwList: [
{
From b23130d5cb2241722ae2eb2d71dbc10959aefec0 Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Mon, 13 Jun 2022 16:47:17 +0800
Subject: [PATCH 20/20] bug
---
.../partymember/icpartyorg-add-or-update.vue | 100 +++++++++++-------
.../modules/partymember/icpartyorgtree.vue | 10 +-
2 files changed, 66 insertions(+), 44 deletions(-)
diff --git a/src/views/modules/partymember/icpartyorg-add-or-update.vue b/src/views/modules/partymember/icpartyorg-add-or-update.vue
index 1a2676e75..7453fdaac 100644
--- a/src/views/modules/partymember/icpartyorg-add-or-update.vue
+++ b/src/views/modules/partymember/icpartyorg-add-or-update.vue
@@ -8,7 +8,7 @@
@keyup.enter.native="dataFormSubmitHandle()"
:label-width="$i18n.locale === 'en-US' ? '120px' : '100px'">
-
+
-
+
+
+
+
@@ -129,7 +133,8 @@
staffId:'',
orgPidName: '',
agencyName:'',
- pid: ''
+ pid: '',
+ sjdzzName: '' // 新增下级上级党组织名字
},
orgListVisible: false,
agencyListVisible:false,
@@ -151,27 +156,40 @@
this.agencyId = localStorage.getItem('agencyId')
this.dataForm.customerId = localStorage.getItem('customerId')
this.dataForm.staffId = localStorage.getItem('staffId')
+ //设置党组织类型
+
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
this.dataForm.latitude = ''
- //设置党组织类型
- this.setPartyOrgType()
- this.getOrgList().then(() => {
- if (this.dataForm.id) {
- this.getInfo()
- } else {
- this.initMap()
- if(this.dataForm.orgId) {
- this.dataForm.mySelectOrg = this.dataForm.orgId
- this.dataForm.orgPid = this.dataForm.orgId
- this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ':' + this.dataForm.orgId : this.dataForm.orgId
- console.log(this.dataForm.orgPid)
- console.log(this.dataForm.orgPids)
- } else {
- this.dataForm.mySelectOrg = ''
+ if (this.dataForm.id) {
+ this.getInfo()
+ } else {
+ this.initMap()
+ if(this.dataForm.orgId) {
+ this.dataForm.mySelectOrg = this.dataForm.orgId
+ this.dataForm.orgPid = this.dataForm.orgId
+ this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ':' + this.dataForm.orgId : this.dataForm.orgId
+ this.dataForm.partyOrgType = this.dataForm._partyOrgType
+ if (this.dataForm.partyOrgType === '0') { // 党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部
+ this.dataForm.partyOrgType = '1'
+ } else if (this.dataForm.partyOrgType === '1') {
+ this.dataForm.partyOrgType = '2'
+ } else if (this.dataForm.partyOrgType === '2') {
+ this.dataForm.partyOrgType = '3'
+ } else if (this.dataForm.partyOrgType === '3') {
+ this.dataForm.partyOrgType = '4'
+ } else if (this.dataForm.partyOrgType === '4') {
+ this.dataForm.partyOrgType = '5'
}
+ console.log(this.dataForm.orgPid)
+ console.log(this.dataForm.orgPids)
+ // this.getOrgList()
+ } else {
+ this.dataForm.mySelectOrg = ''
}
- })
+ }
+
+ this.setPartyOrgType()
})
},
//设置组织类型
@@ -216,30 +234,37 @@
]
}
},
+ // 选中行政组织
+ changeAgencyOrg () {
+ console.log(this.dataForm.agencyId)
+ this.getOrgList()
+ },
// 选中组织类型 组织类型为支部时不需要选择行政组织
changePartyOrgType(value){
if(value != '5'){ // 支部
this.dataForm.agencyId = ''
this.dataForm.agencyPids = ''
}
- this.$http.get('/gov/org/customeragency/getOrgTreeByUserAndType', {params: {agencyId: this.agencyId, orgType:value}}).then(({data: res}) => {
- if (res.code !== 0) {
- return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败')
- }
- this.agencyOrgList = this.removeEmptyChildren(res.data)
- }).catch(() => {})
+ //根据组织类型获取行政组织
+ this.getInfoAgencyLisy()
+ // this.$http.get('/gov/org/customeragency/getOrgTreeByUserAndType', {params: {agencyId: this.agencyId, orgType:value}}).then(({data: res}) => {
+ // if (res.code !== 0) {
+ // return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败')
+ // }
+ // this.agencyOrgList = this.removeEmptyChildren(res.data)
+ // }).catch(() => {})
},
// 获取党组织列表
getOrgList() {
- return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: this.agencyId, orgPid: this.dataForm.id ? this.dataForm.pid : ''}}).then(({data: res}) => {
+ this.$http.get('/resi/partymember/icPartyOrg/getParentOrgList', {params: {agencyId: this.dataForm.agencyId, partyOrgType: this.dataForm.partyOrgType}}).then(({data: res}) => {
if (res.code !== 0) {
return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败')
}
this.orgList = this.removeEmptyChildren(res.data)
- this.orgList.unshift({
- partyOrgName: '一级组织',
- id: '0'
- });
+ // this.orgList.unshift({
+ // partyOrgName: '一级组织',
+ // id: '0'
+ // });
}).catch(() => {
})
},
@@ -282,23 +307,20 @@
this.dataForm.mySelectOrg = this.dataForm.orgPid
// 行政组织
this.dataForm.agencyId = this.dataForm.agencyId
+ //根据组织类型获取行政组织
+ this.getInfoAgencyLisy()
+ this.getOrgList()
+ console.log(':::::', JSON.stringify(this.dataForm))
this.initMap()
}).catch(() => {
})
-
- //根据组织类型获取行政组织
- this.getInfoAgencyLisy()
},
getInfoAgencyLisy(){
- this.$http.get('/gov/org/customeragency/getOrgTreeByUserAndType',
- {params:
- {agencyId: this.agencyId,
- orgType:this.dataForm.partyOrgType}
- }).then(({data: res}) => {
+ this.$http.get('/gov/org/customeragency/getOrgTreeByUserAndType', {params: {agencyId: this.agencyId, orgType: this.dataForm.partyOrgType}}).then(({data: res}) => {
if (res.code !== 0) {
return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败')
}
- this.agencyOrgList = res.data
+ this.agencyOrgList = this.removeEmptyChildren(res.data)
}).catch(() => {
})
},
diff --git a/src/views/modules/partymember/icpartyorgtree.vue b/src/views/modules/partymember/icpartyorgtree.vue
index ff1acebd8..6c8db18d2 100644
--- a/src/views/modules/partymember/icpartyorgtree.vue
+++ b/src/views/modules/partymember/icpartyorgtree.vue
@@ -24,12 +24,12 @@
size="small"
class="div-table-button--detail">{{'查看党员'}}
新增下级
修改
@@ -106,8 +106,7 @@
this.tableLoading = false
},
// 新增 / 修改
- addOrUpdateHandle (id, orgId, orgPids, pid) {
- console.log('pid:::::', pid)
+ addOrUpdateHandle (id, orgId, orgPids, pid, partyOrgType, partyOrgName) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.dataForm.id = id
@@ -115,7 +114,8 @@
this.$refs.addOrUpdate.dataForm.orgId = orgId // 党组织
this.$refs.addOrUpdate.dataForm.orgPids = orgPids
this.$refs.addOrUpdate.dataForm.pid = pid
-
+ this.$refs.addOrUpdate.dataForm._partyOrgType = partyOrgType
+ this.$refs.addOrUpdate.dataForm.sjdzzName = partyOrgName
this.$refs.addOrUpdate.init()
})
},