|
@ -389,7 +389,7 @@ export default { |
|
|
disabledDate: startDisabledDate |
|
|
disabledDate: startDisabledDate |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showFeedback: true, |
|
|
showFeedback: false, |
|
|
serviceOptions: [], |
|
|
serviceOptions: [], |
|
|
serviceOptiondList: [], |
|
|
serviceOptiondList: [], |
|
|
policyList: [], |
|
|
policyList: [], |
|
@ -399,7 +399,9 @@ export default { |
|
|
|
|
|
|
|
|
policyId: '', |
|
|
policyId: '', |
|
|
showPersonList: false, |
|
|
showPersonList: false, |
|
|
ruleList: [] |
|
|
ruleList: [], |
|
|
|
|
|
|
|
|
|
|
|
firstInitMap: true, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -416,10 +418,15 @@ export default { |
|
|
components: { personList }, |
|
|
components: { personList }, |
|
|
async mounted () { |
|
|
async mounted () { |
|
|
this.startLoading() |
|
|
this.startLoading() |
|
|
this.initMap() |
|
|
|
|
|
|
|
|
|
|
|
this.getDictOptions(); |
|
|
this.getDictOptions(); |
|
|
this.getPolicyList(); |
|
|
this.getPolicyList(); |
|
|
this.$refs.ref_form_feedback.resetFields(); |
|
|
if (this.showFeedback) { |
|
|
|
|
|
this.initMap() |
|
|
|
|
|
this.$refs.ref_form_feedback.resetFields(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (this.formType === 'add') { |
|
|
if (this.formType === 'add') { |
|
|
this.$refs.ref_form.resetFields(); |
|
|
this.$refs.ref_form.resetFields(); |
|
|
await this.loadScopeTree() |
|
|
await this.loadScopeTree() |
|
@ -537,6 +544,13 @@ export default { |
|
|
handleChangeFeedback (val) { |
|
|
handleChangeFeedback (val) { |
|
|
this.showFeedback = val |
|
|
this.showFeedback = val |
|
|
|
|
|
|
|
|
|
|
|
if (this.firstInitMap) { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.initMap() |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -797,6 +811,7 @@ export default { |
|
|
|
|
|
|
|
|
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义 |
|
|
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义 |
|
|
initMap () { |
|
|
initMap () { |
|
|
|
|
|
|
|
|
// 定义地图中心点坐标 |
|
|
// 定义地图中心点坐标 |
|
|
var center = new window.TMap.LatLng(36.0722275, 120.38945519) |
|
|
var center = new window.TMap.LatLng(36.0722275, 120.38945519) |
|
|
// 定义map变量,调用 TMap.Map() 构造函数创建地图 |
|
|
// 定义map变量,调用 TMap.Map() 构造函数创建地图 |
|
@ -823,6 +838,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.handleMoveCenter() |
|
|
this.handleMoveCenter() |
|
|
this.convert() |
|
|
this.convert() |
|
|
|
|
|
|
|
|
|
|
|
this.firstInitMap = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setMarker (lat, lng) { |
|
|
setMarker (lat, lng) { |
|
|