|
|
@ -10,8 +10,7 @@ |
|
|
|
:options="propTree" |
|
|
|
:props="{ checkStrictly: true }" |
|
|
|
:show-all-levels="false" |
|
|
|
:getCheckedNodes="getCheckedNodes" |
|
|
|
clearable |
|
|
|
:getCheckedNodes="getCheckedNodes" |
|
|
|
@change="handleCascader"> |
|
|
|
</el-cascader> |
|
|
|
</div> |
|
|
@ -166,8 +165,9 @@ export default { |
|
|
|
] |
|
|
|
await this.loadOrgData() |
|
|
|
await this.getWorkUserInfo() |
|
|
|
this.loadMap() |
|
|
|
this.isfirstInit = false |
|
|
|
// this.loadMap() |
|
|
|
this.getMapData() |
|
|
|
// this.isfirstInit = false |
|
|
|
// 地图相关end |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -189,7 +189,6 @@ export default { |
|
|
|
// }; |
|
|
|
const { data, code, msg } = await requestPost(url); |
|
|
|
if (code === 0) { |
|
|
|
console.log('data-org----o', data) |
|
|
|
this.selectAgency = [`${data.agencyId}-${data.level}`] |
|
|
|
this.orgType = data.level |
|
|
|
this.agencyId = data.agencyId |
|
|
@ -230,7 +229,6 @@ export default { |
|
|
|
}, |
|
|
|
// 组织点击事件 |
|
|
|
async handleCascader(val) { |
|
|
|
console.log('val-vvv', val) |
|
|
|
const _arr = val[val.length - 1].split('-') |
|
|
|
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' |
|
|
|
this.agencyId = _arr[0] |
|
|
@ -238,7 +236,6 @@ export default { |
|
|
|
this.orgType = orgType |
|
|
|
this.noEduInit = false |
|
|
|
this.agencyInfo = { ...this.orgData } |
|
|
|
console.log('agencyInfo-----', this.agencyInfo) |
|
|
|
this.eduCode = '' |
|
|
|
await this.loadOrgData() |
|
|
|
this.getEduCount(_arr[0]) |
|
|
@ -342,7 +339,6 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
console.log('zlcm') |
|
|
|
} else { |
|
|
|
element.isClick = false |
|
|
|
element.label = { |
|
|
@ -400,7 +396,6 @@ export default { |
|
|
|
this.visibleLoading = false |
|
|
|
}, |
|
|
|
pieInitOks (dom) { |
|
|
|
console.log('pies准备好了', dom) |
|
|
|
this.pieEduChartS = dom |
|
|
|
// this.pieInitState = true |
|
|
|
}, |
|
|
@ -424,7 +419,6 @@ export default { |
|
|
|
this.showedUnitMoreInfo = true |
|
|
|
this.unitAclist = data.list |
|
|
|
this.$nextTick(() => { |
|
|
|
console.log(this.unitAclist[0].demandRecId) |
|
|
|
this.$refs['unitdetailInfo'].getDetail(this.unitAclist[0].demandRecId) |
|
|
|
}) |
|
|
|
} else { |
|
|
@ -511,10 +505,11 @@ export default { |
|
|
|
window.app.ajax.post( |
|
|
|
url, |
|
|
|
params, |
|
|
|
(data, rspMsg) => { |
|
|
|
(data, rspMsg) => { |
|
|
|
this.unitMapList = data |
|
|
|
this.isfirstInit = false |
|
|
|
this.loadMap() |
|
|
|
this.isfirstInit = false |
|
|
|
this.$refs.map.handleClosePopup() |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.$message.error(rspMsg) |
|
|
@ -526,9 +521,7 @@ export default { |
|
|
|
this.userId = '' |
|
|
|
const featureInfo = feature.values_.properties.info |
|
|
|
this.userId = feature.values_.properties.info.id |
|
|
|
console.log('feature.values_.properties.info:::', JSON.stringify(feature.values_.properties.info)) |
|
|
|
let coordinate = [featureInfo.longitude, featureInfo.latitude] |
|
|
|
console.log(feature.values_.properties.info) |
|
|
|
let showData = ` |
|
|
|
<div style='font-size:16px; color:#FFFFFF;'>个人信息</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:10px'>姓名: |
|
|
@ -557,7 +550,6 @@ export default { |
|
|
|
}, |
|
|
|
lookMore(e) { |
|
|
|
this.userId = this.userId |
|
|
|
console.log('userId:', this.userId) |
|
|
|
this.showedMoreInfo = true |
|
|
|
} |
|
|
|
}, |
|
|
|