Browse Source

bug

feature
jiangyy 3 years ago
parent
commit
be4aa1e540
  1. 9
      src/views/modules/shequzhili/csgltc/csgl.vue
  2. 8
      src/views/modules/shequzhili/csgltc/csglDetail.vue
  3. 10
      src/views/modules/shequzhili/ggfwtc/ggfw.vue
  4. 4
      src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue

9
src/views/modules/shequzhili/csgltc/csgl.vue

@ -367,9 +367,14 @@ export default {
},
handleDetail (row) {
this.detailShow = true
// this.detailShow = true
// this.$nextTick(() => {
// this.$refs.ref_detail.initForm(row)
// })
this.formTitle = '详情'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_detail.initForm(row)
this.$refs.ref_form.initForm('detail', row.icCityManagementId)
})
},

8
src/views/modules/shequzhili/csgltc/csglDetail.vue

@ -5,6 +5,7 @@
<el-form ref="ref_form"
:inline="true"
:model="formData"
:disabled="formType==='detail'"
class="form">
<el-form-item label="场所名称:"
@ -89,9 +90,7 @@ export default {
},
components: {},
async mounted () {
if (!map) {
this.initMap()
}
},
@ -106,6 +105,9 @@ export default {
this.startLoading()
this.formData = { ...row }
console.log(map)
if (!map) {
this.initMap()
}
map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
this.setMarker(this.formData.latitude, this.formData.longitude)

10
src/views/modules/shequzhili/ggfwtc/ggfw.vue

@ -387,9 +387,15 @@ export default {
},
handleDetail (row) {
this.detailShow = true
// this.detailShow = true
// this.$nextTick(() => {
// this.$refs.ref_detail.initForm(row)
// })
this.formTitle = '详情'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_detail.initForm(row)
this.$refs.ref_form.initForm('detail', row.icPublicServiceId)
})
},

4
src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue

@ -104,6 +104,10 @@ export default {
async initForm (row) {
this.startLoading()
this.formData = { ...row }
debugger
if (!map) {
this.initMap()
}
map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
this.setMarker(this.formData.latitude, this.formData.longitude)

Loading…
Cancel
Save