Browse Source

Merge branch 'feature/dev_party_mange' into dev

feature
YUJT 3 years ago
parent
commit
abfcfb19b7
  1. 1
      src/views/modules/partymember/icpartyorg-add-or-update.vue
  2. 4
      src/views/modules/visual/communityParty/community.vue
  3. 20
      src/views/modules/visual/communityParty/gridParty.vue

1
src/views/modules/partymember/icpartyorg-add-or-update.vue

@ -157,6 +157,7 @@
this.agencyId = localStorage.getItem('agencyId')
this.dataForm.customerId = localStorage.getItem('customerId')
this.dataForm.staffId = localStorage.getItem('staffId')
this.keyWords = ''
//
this.$nextTick(() => {

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

@ -301,7 +301,7 @@ export default {
this.getCateCount(this.agencyId)
await this.getWorkUserInfo()
// await this.getWorkUserInfo()
// await this.getMapUnitList(this.agencyId)
},
watch: {
@ -613,7 +613,7 @@ export default {
if (code === 0) {
this.orgData = data
this.agencyInfo = data
this.orgId = this.orgData.id
this.orgLevel = this.orgData.level
this.parentPolygon = []

20
src/views/modules/visual/communityParty/gridParty.vue

@ -149,7 +149,6 @@ 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() //
@ -167,6 +166,7 @@ export default {
await this.loadOrgData()
// this.loadMap()
this.getMapData()
await this.getWorkUserInfo()
// this.isfirstInit = false
// end
},
@ -483,16 +483,26 @@ export default {
params,
(data, rspMsg) => {
this.agencyInfo = data
if (!data.latitude) {
if (this.orgData.longitude) { // mapOrg
this.agencyInfo.longitude = this.orgData.longitude
}
if (this.orgData.latitude) { // mapOrg
this.agencyInfo.latitude = this.orgData.latitude
}
if (this.orgData.level) { // mapOrg
this.agencyInfo.agencyLevel = this.orgData.agencyLevel
}
if (!this.agencyInfo.latitude) {
this.agencyInfo.latitude = 36.072227
}
if (!data.longitude) {
if (!this.agencyInfo.longitude) {
this.agencyInfo.longitude = 120.389455
}
if (!data.level) {
if (!this.agencyInfo.level) {
this.agencyInfo.level = 'street'
}
this.agencyInfo.agencyLevel = this.agencyInfo.level
// this.agencyInfo.agencyLevel = this.agencyInfo.level
// console.log(JSON.stringify(this.agencyInfo))
},
(rspMsg, data) => {
this.$message.error(rspMsg)

Loading…
Cancel
Save