Browse Source

Merge branch 'dev-chaxun' into dev

shibei_master
jiangyy 4 years ago
parent
commit
dd615fc7e5
  1. 2
      src/views/components/resiChangeRecord.vue
  2. 29
      src/views/modules/visual/communityParty/party.vue

2
src/views/components/resiChangeRecord.vue

@ -26,7 +26,7 @@
label="变更前" label="变更前"
width="230"> width="230">
</el-table-column> </el-table-column>
<el-table-column prop="afterChanegName" <el-table-column prop="afterChangeName"
header-align="center" header-align="center"
align="center" align="center"
label="变更后" label="变更后"

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

@ -46,7 +46,7 @@
<screen-table <screen-table
:headerList="headerList" :headerList="headerList"
:tableData="ageList" :tableData="ageList"
:visibleLoading="visibleLoading" :visibleLoading="visibleAgeLoading"
:operate="false" :operate="false"
@row="handleClickRow" @row="handleClickRow"
></screen-table> ></screen-table>
@ -153,7 +153,10 @@ export default {
eduTotalCount: 0, eduTotalCount: 0,
propTree: [], propTree: [],
value2: '', value2: '',
visibleAgeLoading: true,
visibleLoading: true, visibleLoading: true,
agencyId: '',
orgType: '',
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
agePageNo: 1, agePageNo: 1,
@ -596,6 +599,7 @@ export default {
} }
} }
}) })
this.ageTotalCount = 0
data.forEach(item => { data.forEach(item => {
this.ageTotalCount += Number(item.value) this.ageTotalCount += Number(item.value)
}) })
@ -618,6 +622,7 @@ export default {
isClick: false isClick: false
} }
}) })
this.eduTotalCount = 0
data.forEach(item => { data.forEach(item => {
this.eduTotalCount += Number(item.value) this.eduTotalCount += Number(item.value)
}) })
@ -627,7 +632,7 @@ export default {
}, },
async getAgeList(orgId, orgType, _code) { async getAgeList(orgId, orgType, _code) {
this.visibleLoading = true this.visibleAgeLoading = true
const url = "/epmetuser/icresiuser/partymemberagelist"; const url = "/epmetuser/icresiuser/partymemberagelist";
let params = { let params = {
orgId, orgId,
@ -649,9 +654,10 @@ export default {
this.$message.error(msg) this.$message.error(msg)
} }
// if (_code == 0 || _code) this.noInit = true // if (_code == 0 || _code) this.noInit = true
this.visibleLoading = false this.visibleAgeLoading = false
}, },
async getEduList(orgId, orgType, _code) { async getEduList(orgId, orgType, _code) {
this.visibleLoading = true
const url = "/epmetuser/icresiuser/partymembereducationlist"; const url = "/epmetuser/icresiuser/partymembereducationlist";
let params = { let params = {
orgId, orgId,
@ -672,6 +678,7 @@ export default {
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
this.visibleLoading = false
}, },
async getAgencyList(node, resolve) { async getAgencyList(node, resolve) {
// const url = "/gov/org/customeragency/staffinagencylist"; // const url = "/gov/org/customeragency/staffinagencylist";
@ -683,6 +690,8 @@ export default {
if (code === 0) { if (code === 0) {
console.log('data-org----o', data) console.log('data-org----o', data)
this.selectAgency = [`${data.agencyId}-${data.level}`] this.selectAgency = [`${data.agencyId}-${data.level}`]
this.orgType = data.level
this.agencyId = data.agencyId
let arr = [] let arr = []
arr.push(data) arr.push(data)
this.propTree = arr && this.getTreeData(arr) this.propTree = arr && this.getTreeData(arr)
@ -728,6 +737,12 @@ export default {
console.log('val-vvv', val) console.log('val-vvv', val)
const _arr = val[val.length - 1].split('-') const _arr = val[val.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.agencyId = _arr[0]
this.orgType = orgType
this.noInit = false
this.noEduInit = false
this.getAgeCount(_arr[0], orgType)
this.getEduCount(_arr[0], orgType)
this.getAgeList(_arr[0], orgType) this.getAgeList(_arr[0], orgType)
this.getEduList(_arr[0], orgType) this.getEduList(_arr[0], orgType)
}, },
@ -742,20 +757,20 @@ export default {
pageSizeChangeHandleAge(val) { pageSizeChangeHandleAge(val) {
this.agePageNo = 1 this.agePageNo = 1
this.agePageSize = val this.agePageSize = val
this.getAgeList() this.getAgeList(this.agencyId, this.orgType)
}, },
pageCurrentChangeHandleAge (val) { pageCurrentChangeHandleAge (val) {
this.agePageSize = val this.agePageSize = val
this.getAgeList() this.getAgeList(this.agencyId, this.orgType)
}, },
pageSizeChangeHandleNew(val) { pageSizeChangeHandleNew(val) {
this.pageNo = 1; this.pageNo = 1;
this.pageSize = val; this.pageSize = val;
this.getEduList() this.getEduList(this.agencyId, this.orgType)
}, },
pageCurrentChangeHandleNew(val) { pageCurrentChangeHandleNew(val) {
this.pageNo = val; this.pageNo = val;
this.getEduList() this.getEduList(this.agencyId, this.orgType)
}, },
}, },
}; };

Loading…
Cancel
Save