jiangyy 3 years ago
parent
commit
2fa0baea92
  1. 25
      src/views/modules/communityService/fuwujilu/addForm.vue

25
src/views/modules/communityService/fuwujilu/addForm.vue

@ -389,7 +389,7 @@ export default {
disabledDate: startDisabledDate
},
showFeedback: true,
showFeedback: false,
serviceOptions: [],
serviceOptiondList: [],
policyList: [],
@ -399,7 +399,9 @@ export default {
policyId: '',
showPersonList: false,
ruleList: []
ruleList: [],
firstInitMap: true,
}
},
@ -416,10 +418,15 @@ export default {
components: { personList },
async mounted () {
this.startLoading()
this.initMap()
this.getDictOptions();
this.getPolicyList();
this.$refs.ref_form_feedback.resetFields();
if (this.showFeedback) {
this.initMap()
this.$refs.ref_form_feedback.resetFields();
}
if (this.formType === 'add') {
this.$refs.ref_form.resetFields();
await this.loadScopeTree()
@ -537,6 +544,13 @@ export default {
handleChangeFeedback (val) {
this.showFeedback = val
if (this.firstInitMap) {
this.$nextTick(() => {
this.initMap()
})
}
},
@ -797,6 +811,7 @@ export default {
// init
initMap () {
//
var center = new window.TMap.LatLng(36.0722275, 120.38945519)
// map TMap.Map()
@ -823,6 +838,8 @@ export default {
})
this.handleMoveCenter()
this.convert()
this.firstInitMap = false
},
setMarker (lat, lng) {

Loading…
Cancel
Save