Browse Source

党员管理,联建分析

shibei_master
13176889840 3 years ago
parent
commit
4f3cd27f5c
  1. 2
      src/views/main-shuju/main.vue
  2. 8
      src/views/modules/communityParty/members/cpts/points.vue
  3. 37
      src/views/modules/communityParty/members/crateForm.vue
  4. 94
      src/views/modules/communityParty/members/index.vue
  5. 63
      src/views/modules/visual/communityParty/community.vue
  6. 257
      src/views/modules/visual/communityParty/unitInfo.vue

2
src/views/main-shuju/main.vue

@ -134,7 +134,7 @@ export default {
<style lang="scss">
.info-h {
height: calc(100vh - 320px);
overflow: auto;
// overflow: auto;
}
.info-scroll {
&::-webkit-scrollbar {

8
src/views/modules/communityParty/members/cpts/points.vue

@ -80,13 +80,13 @@ export default {
year: '',
quarter: '',
basePoint: '',
baseOptions: '',
baseOptions: [],
reviewPoint: '',
reviewOptions: '',
reviewOptions: [],
inspirePoint: '',
inspireOptions: '',
inspireOptions: [],
warnPoint: '',
warnOptions: '',
warnOptions: [],
},
formItemWd: '500px',
quarterList: [

37
src/views/modules/communityParty/members/crateForm.vue

@ -4,15 +4,12 @@
class="form-wr">
<div class="flex-div">
<el-form-item label="所属党组织" prop="sszb" class="wd50">
<el-select v-model="form.sszb" filterable
:disabled="disabled" placeholder="请选择" class="input-width" clearable>
<el-option
v-for="item in eduList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-cascader
v-model="form.sszb"
:options="optionsG"
:props="partyProps"
clearable
@change="handlePartyChange"></el-cascader>
</el-form-item>
<el-form-item label="党员中心户" prop="isDyzxh" class="wd50">
<el-radio-group v-model="form.isDyzxh">
@ -156,6 +153,12 @@ export default {
pointsInfo,
record
},
props: {
partyList: {
type: Array,
default: () => []
}
},
data() {
let checkMObile = (rule, value, callback) => {
if (value === '') {
@ -182,6 +185,10 @@ export default {
disabled: false,
isAuto: false,
formItemWd: '100%',
partyProps: {
label: 'partyOrgName',
value: 'partyOrgCode'
},
zwList: [
{
label: '普通党员',
@ -233,6 +240,9 @@ export default {
this.formItemWd = w.clientWidth + 'px'
},
methods: {
handlePartyChange(val) {
console.log('val------pp', val)
},
handleValidBlur(n) {
if (!isCard(this.form.idCard)) return
const { age } = computedCard(this.form.idCard)
@ -260,12 +270,17 @@ export default {
agencyId: this.$store.state.user.agencyId
}
await this.$http
.post('/epmetuser/icresiuser/checkuser', params)
.post('/epmetuser/icresiuser/getUserByIdCard', params)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
this.form.address = res.data
const { address, icResiUserId } = res.data
if (icResiUserId) {
this.form.address = address
this.isAuto = true
}
}
})
.catch(err => {

94
src/views/modules/communityParty/members/index.vue

@ -5,14 +5,20 @@
<el-form ref="searchForm" :inline="true" :model="searchForm" size="small" label-width="100px" class="demo-form-inline">
<div>
<el-form-item label="所属党组织" prop="partyOrgId">
<el-select v-model="searchForm.partyOrgId" filterable placeholder="请选择" clearable>
<!-- <el-select v-model="searchForm.partyOrgId" filterable placeholder="请选择" clearable>
<el-option
v-for="item in optionsG"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-option> -->
</el-select>
<el-cascader
v-model="searchForm.partyOrgId"
:options="optionsG"
:props="partyProps"
clearable
@change="handlePartyChange"></el-cascader>
</el-form-item>
<el-form-item label="姓名" prop="name">
<el-input v-model="searchForm.name" placeholder="请输入" class="input-width" clearable></el-input>
@ -30,12 +36,8 @@
<div>
<el-form-item label="流动党员" prop="isLd">
<el-select v-model="searchForm.isLd" filterable placeholder="请选择" clearable>
<el-option
v-for="item in optionsC"
:key="item.categoryId"
:label="item.categoryName"
:value="item.categoryId">
</el-option>
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
<el-form-item label="流动党员证号" prop="ldzh">
@ -44,42 +46,30 @@
<el-form-item label="职务" prop="partyZw">
<el-select v-model="searchForm.partyZw" filterable placeholder="请选择" clearable>
<el-option
v-for="item in optionsC"
:key="item.categoryId"
:label="item.categoryName"
:value="item.categoryId">
v-for="item in zwList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="是否缴费" prop="isPay">
<el-select v-model="searchForm.isPay" filterable placeholder="请选择" clearable>
<el-option
v-for="item in optionsC"
:key="item.categoryId"
:label="item.categoryName"
:value="item.categoryId">
</el-option>
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
<el-form-item label="党员中心户" prop="isDyzxh">
<el-select v-model="searchForm.isDyzxh" filterable placeholder="请选择" clearable>
<el-option
v-for="item in optionsC"
:key="item.categoryId"
:label="item.categoryName"
:value="item.categoryId">
</el-option>
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
</div>
<el-form-item label="免学习" prop="isMxx">
<el-select v-model="searchForm.isMxx" filterable placeholder="请选择" clearable>
<el-option
v-for="item in optionsC"
:key="item.categoryId"
:label="item.categoryName"
:value="item.categoryId">
</el-option>
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
<el-form-item label="最近一次缴费时间"
@ -304,7 +294,7 @@
:close-on-click-modal="false"
:before-close="handlerCancle"
>
<crate-form />
<crate-form :partyList="optionsG" />
</el-dialog>
</div>
@ -353,6 +343,24 @@ export default {
value: 2
}
],
zwList: [
{
label: '普通党员',
value: '0'
},
{
label: '支部书记',
value: '1'
},
{
label: '支部委员',
value: '2'
},
{
label: '党委委员',
value: '3'
},
],
demandOptions: [],
tableHeader: [
{
@ -401,6 +409,10 @@ export default {
rdsjEndDate: '',
payStatrDate: '',
payEndDate: ''
},
partyProps: {
label: 'partyOrgName',
value: 'partyOrgCode'
}
}
},
@ -422,7 +434,7 @@ export default {
// this.getCateList('addorupdate')
// }, 200)
this.getTableData()
// this.getGridList('query')
this.getGridList('query')
// this.getGridList('addorupdate')
// this.getCateList('query')
// this.getCateList('addorupdate')
@ -450,6 +462,9 @@ export default {
this.currentPage = val
this.getTableData()
},
handlePartyChange(val) {
console.log('val------pp', val)
},
handleFilterSpan(row, item) {
let _val = ''
if (item.options && item.options.length > 0) {
@ -772,21 +787,30 @@ export default {
console.log('user---ppp', user)
// addorupdate query
await this.$http
.post('/gov/org/customergrid/gridoption', { agencyId: agencyId || user.agencyId, purpose: type })
.get('/resi/partymember/icPartyOrg/getTreelist', { agencyId: agencyId || user.agencyId, })
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取查询详情成功', res.data)
if (type === 'query') this.optionsG = res.data
else this.optionsEditG = res.data
this.optionsG = this.deepArrTOnull(res.data)
}
})
.catch(() => {
return this.$message.error('网络错误')
})
},
deepArrTOnull(arr) {
let a = []
a = arr.map(item => {
return {
...item,
children: (item.children.length > 0 && this.deepArrTOnull(item.children) )|| null
}
})
return a
},
async getCateList(type) {
const { user } = await this.$store.state
console.log('user---ppp', user)

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

@ -179,7 +179,8 @@
:info="detailInfo"
@close="showedMoreInfo = false" />
<unit-info v-if="showedUnitMoreInfo" v-fixed
:info="unitdetailInfo"
:list="unitAclist"
ref="unitdetailInfo"
@close="showedUnitMoreInfo = false" />
</div>
</template>
@ -216,7 +217,7 @@ export default {
headerTypeList: [
{ title: "序号", coulmn: 'index' },
{ title: "单位名称", coulmn: 'unitName' },
{ title: "单位类型", coulmn: 'typeName' },
{ title: "单位类型", coulmn: 'type' },
],
headerStyle: [
{
@ -279,7 +280,8 @@ export default {
orgData: [],
orgId: '',
orgLevel: '',
parentPolygon: []
parentPolygon: [],
unitAclist: []
};
},
async mounted () {
@ -437,8 +439,35 @@ export default {
this.getList(this.agencyId);
this.getCateCount(this.agencyId)
},
//
//
async getAcList (agencyId, unitId) {
const url = "/heart/icpartyactivity/activitylist"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list"
let params = {
pageNo: 1,
pageSize: 9999,
agencyId,
unitId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.unitAclist = data.list && data.list.map((item, index) => {
return {
...item,
index: index + 1
}
})
if (this.unitAclist.length > 0) this.showedUnitMoreInfo = true
else this.$message.warning('该单位还没有活动')
} else {
this.$message.error(msg)
}
},
//
async getList (agencyId) {
this.visibleLoading = true
@ -496,7 +525,11 @@ export default {
//false
this.loadMap()
this.$nextTick(() => {
this.loadMap()
this.$forceUpdate()
})
// this.isfirstInit = false
} else {
this.$message.error(msg)
}
@ -689,11 +722,16 @@ export default {
const _arr = val[val.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency' : 'grid'
this.agencyId = _arr[0]
this.orgId = _arr[0]
this.orgLevel = orgType
this.unitType = ''
this.getList(_arr[0])
await this.getCateType(_arr[0])
await this.loadOrgData()
this.agencyInfo = { ...this.orgData }
console.log('agencyInfo-----', this.agencyInfo)
this.getUnitList(_arr[0])
this.getMapUnitList(_arr[0])
// this.getMapUnitList(_arr[0])
this.getCateCount(_arr[0])
}
@ -863,7 +901,7 @@ export default {
console.log('this.unitTableData', this.unitTableData)
this.$refs.map.loadMap(this.agencyInfo, this.parentPolygon, polIconUrlArray, this.unitTableData, this.iconUrlArray, null)
} else {
this.$refs.map.refreshMap(null, this.unitMapList)
this.$refs.map.refreshMap(this.agencyInfo, this.unitTableData)
}
},
@ -878,10 +916,15 @@ export default {
await this.getDetail(val.id)
this.showedMoreInfo = true
},
handleUnitLook(val) {
async handleUnitLook(val) {
this.unitdetailId = val.id
// await this.getDetail(val.id)
this.showedUnitMoreInfo = true
// this.showedUnitMoreInfo = true
await this.getAcList(this.agencyId, val.id)
this.$nextTick(() => {
console.log('this.$refs', this.$refs['unitdetailInfo'])
this.$refs['unitdetailInfo'].getDetail(this.unitAclist[0].id)
})
},
handleSelectChange (val) {

257
src/views/modules/visual/communityParty/unitInfo.vue

@ -13,14 +13,15 @@
<!-- <div class="list-title">需求内容</div> -->
<div class="list-wr info-h">
<div class="list-left info-scroll">
<div class="left-item left-item-on">
<div class="item-title">帮扶老人帮扶老人帮扶老人帮扶老人帮扶老人帮扶老人</div>
<div class="item-time">2022-05-20 09:09</div>
<div v-for="(item, index) in list" :key="item.id" class="left-item"
:class="current == index &&'left-item-on'" @click="handleTabs(item, index)">
<div class="item-title">{{ item.title }}</div>
<div class="item-time">{{ item.activityTime }}</div>
</div>
<div class="left-item">
<!-- <div class="left-item">
<div class="item-title">帮扶老人帮扶老人</div>
<div class="item-time">2022-05-20 09:09</div>
</div>
</div> -->
</div>
<div class="list-right list-wr info-scroll">
<div class="list">
@ -112,11 +113,14 @@ export default {
type: Array,
default: () => [],
},
gridName: {
type: {
type: String,
default: "",
},
agencyId: {
type: String,
default: "",
},
info: Object
},
components: {
@ -126,219 +130,9 @@ export default {
data() {
return {
fieldList: [],
groupList: [],
groupIndex: 0,
startGroupIndex: 0,
// info: {},
allInfo: {},
xiaoquList: [],
louList: [],
danyuanList: [],
homeList: [],
demandList: [
{
categoryName: '辨明服务',
categoryCode: '1',
showItem: false,
projectList: [
{
title: '不知道写了什么哈哈哈',
status: 'closed',
projectId: '1'
},
{
title: '罗里吧嗦写了什么哈哈哈',
status: 'closed',
projectId: '2'
},
{
title: '胡说八道写了什么哈哈哈',
status: 'closed',
projectId: '1=3'
},
{
title: '费眼飞鱼不知道写了什么哈哈哈',
status: 'closed',
projectId: '1=4'
},
{
title: '狗屁不通不知道写了什么哈哈哈',
status: 'closed',
projectId: '5'
},
{
title: '啦啦啦不知道写了什么哈哈哈',
status: 'closed',
projectId: '6'
}
]
},
{
categoryName: '辨明服务',
categoryCode: '1',
showItem: false,
projectList: [
{
title: '不知道写了什么哈哈哈',
status: 'closed',
projectId: '1'
},
{
title: '罗里吧嗦写了什么哈哈哈',
status: 'closed',
projectId: '2'
},
{
title: '胡说八道写了什么哈哈哈',
status: 'closed',
projectId: '1=3'
},
{
title: '费眼飞鱼不知道写了什么哈哈哈',
status: 'closed',
projectId: '1=4'
},
{
title: '狗屁不通不知道写了什么哈哈哈',
status: 'closed',
projectId: '5'
},
{
title: '啦啦啦不知道写了什么哈哈哈',
status: 'closed',
projectId: '6'
}
]
},
{
categoryName: '辨明服务',
categoryCode: '1',
showItem: false,
projectList: [
{
title: '不知道写了什么哈哈哈',
status: 'closed',
projectId: '1'
},
{
title: '罗里吧嗦写了什么哈哈哈',
status: 'closed',
projectId: '2'
},
{
title: '胡说八道写了什么哈哈哈',
status: 'closed',
projectId: '1=3'
},
{
title: '费眼飞鱼不知道写了什么哈哈哈',
status: 'closed',
projectId: '1=4'
},
{
title: '狗屁不通不知道写了什么哈哈哈',
status: 'closed',
projectId: '5'
},
{
title: '啦啦啦不知道写了什么哈哈哈',
status: 'closed',
projectId: '6'
}
]
}
],
userLists: [
{
homeId: '1',
icUserId: '1',
icUserName: '沾上干'
},
{
homeId: '2',
icUserId: '2',
icUserName: '李四'
},
{
homeId: '3',
icUserId: '3',
icUserName: '王五哈哈'
}
],
userName: '王亚男哈',
eventList: [
{
categoryName: '辨明服务',
categoryCode: '1',
projectList: [
{
title: '不知道写了什么哈哈哈',
status: 'closed',
projectId: '1'
},
{
title: '罗里吧嗦写了什么哈哈哈',
status: 'closed',
projectId: '2'
},
{
title: '胡说八道写了什么哈哈哈',
status: 'closed',
projectId: '1=3'
},
{
title: '费眼飞鱼不知道写了什么哈哈哈',
status: 'closed',
projectId: '1=4'
},
{
title: '狗屁不通不知道写了什么哈哈哈',
status: 'closed',
projectId: '5'
},
{
title: '啦啦啦不知道写了什么哈哈哈',
status: 'closed',
projectId: '6'
}
]
},
{
categoryName: '水煮鱼辨明服务辨明服务',
categoryCode: '4',
projectList: [
{
title: '熟煮雨不知道写了什么哈哈哈',
status: 'pending',
projectId: '4'
}
]
},
{
categoryName: '开心麻花',
categoryCode: '2',
projectList: [
{
title: '不知道开心麻花写了什么哈哈哈',
status: 'closed',
projectId: '1'
}
]
},
{
categoryName: '酸菜鱼',
categoryCode: '3',
projectList: [
{
title: '不知道酸菜鱼写了什么哈哈哈',
status: 'pending',
projectId: '3'
}
]
}
],
list: [],
current: 0,
info: {}
};
},
@ -350,6 +144,28 @@ export default {
handleClose() {
this.$emit("close");
},
handleTabs(item, index) {
this.current = index
this.getDetail(item.id)
},
async getDetail (id) {
const _id = this.list[0].id
const url = "/heart/icpartyactivity/detail"
let params = {
id: id || _id
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.info = data
this.info.serviceMatterNameShow = data.serviceMatterNameList.join(',')
this.info.unitNameShow = data.unitNameList.join(',')
} else {
this.$message.error(msg)
}
},
}
};
</script>
@ -434,6 +250,7 @@ export default {
.list-right {
flex: 1;
height: 100%;
overflow: auto;
}

Loading…
Cancel
Save