stjdydayou 4 سال پیش
والد
کامیت
fe8279bd5f

+ 24 - 14
src/views/bz/base/holidayVillage/DialogForm.vue

@@ -11,7 +11,7 @@
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="名称">
-                <el-input v-model="form.name"/>
+                <el-input v-model="form.baseDataInfo.name"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -34,17 +34,17 @@
             </el-upload>
           </el-form-item>
           <el-form-item label="地址">
-            <el-input v-model="form.address"/>
+            <el-input v-model="form.baseDataInfo.address"/>
           </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="联系人">
-                <el-input v-model="form.contacts"/>
+                <el-input v-model="form.baseDataInfo.contacts"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="联系电话">
-                <el-input v-model="form.contactNumber"/>
+                <el-input v-model="form.baseDataInfo.contactNumber"/>
               </el-form-item>
             </el-col>
           </el-row>
@@ -56,7 +56,7 @@
         </el-col>
       </el-row>
       <el-form-item label="简介">
-        <el-input v-model="form.brief" type="textarea" rows="10"/>
+        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10"/>
       </el-form-item>
     </el-form>
     <div slot="footer" class="dialog-footer">
@@ -79,7 +79,9 @@ export default {
       visible: false,
       isLoading: false,
       listAllAuthorities: [],
-      form: {},
+      form: {
+        baseDataInfo: {}
+      },
       fileList: [],
       map: null,
       marker: null,
@@ -99,15 +101,22 @@ export default {
       this.visible = true
       this.isLoading = false
       this.fileList = []
+      this.form = {
+        baseDataInfo: {}
+      }
+      if (data && data.baseDataInfo) {
+        const baseDataInfo = data.baseDataInfo
+        if (baseDataInfo.litpics) {
+          baseDataInfo.litpics.forEach(o => {
+            this.fileList.push({ url: o })
+          })
+        }
 
-      if (data.litpics) {
-        data.litpics.forEach(o => {
-          this.fileList.push({ url: o })
-        })
+        this.lng = baseDataInfo?.lng
+        this.lat = baseDataInfo?.lat
+
+        this.form = Object.assign({}, data)
       }
-      this.form = Object.assign({}, data)
-      this.lng = data.lng
-      this.lat = data.lat
     },
     aMapClick(e) {
       this.lng = e.lnglat.lng
@@ -119,7 +128,8 @@ export default {
         litpics.push(o.url)
       })
       this.isLoading = true
-      const param = { ...this.form, lng: this.lng, lat: this.lat, litpics }
+      const param = { ...this.form, baseDataInfo: { ...this.form.baseDataInfo, lng: this.lng, lat: this.lat, litpics } }
+      console.log(param)
       if (this.form.id) {
         updateById(this.form.id, param).then(() => {
           this.visible = false

+ 8 - 8
src/views/bz/base/holidayVillage/index.vue

@@ -30,19 +30,19 @@
     >
       <el-table-column type="selection" width="55"/>
       <el-table-column label="ID" prop="id" width="150"/>
-      <el-table-column label="名称" prop="name"/>
+      <el-table-column label="名称" prop="baseDataInfo.name"/>
+      <el-table-column label="营业时间" prop="businessHours"/>
       <el-table-column label="缩略图" width="80">
         <template slot-scope="scope">
-          {{ scope.row.litpics.length }}张
+          {{ scope.row.baseDataInfo.litpics.length }}张
         </template>
       </el-table-column>
-      <el-table-column label="简介" prop="brief"/>
-      <el-table-column label="地址" prop="address"/>
-      <el-table-column label="联系人" prop="contacts"/>
-      <el-table-column label="联系电话" prop="contactNumber"/>
-      <el-table-column label="位置信息">
+      <el-table-column label="地址" prop="baseDataInfo.address"/>
+      <el-table-column label="联系人" prop="baseDataInfo.contacts" width="150"/>
+      <el-table-column label="联系电话" prop="baseDataInfo.contactNumber" width="150"/>
+      <el-table-column label="位置信息" width="200">
         <template slot-scope="scope">
-          [ {{ scope.row.lng }}, {{ scope.row.lat }} ]
+          [ {{ scope.row.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
         </template>
       </el-table-column>
       <el-table-column label="操作" width="70" fixed="right">

+ 26 - 16
src/views/bz/base/homeStay/DialogForm.vue

@@ -11,12 +11,12 @@
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="名称">
-                <el-input v-model="form.name"/>
+                <el-input v-model="form.baseDataInfo.name"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="开放时间">
-                <el-input v-model="form.businessHours"/>
+              <el-form-item label="客户数量">
+                <el-input-number v-model="form.totalRoomCount"/>
               </el-form-item>
             </el-col>
           </el-row>
@@ -34,17 +34,17 @@
             </el-upload>
           </el-form-item>
           <el-form-item label="地址">
-            <el-input v-model="form.address"/>
+            <el-input v-model="form.baseDataInfo.address"/>
           </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="联系人">
-                <el-input v-model="form.contacts"/>
+                <el-input v-model="form.baseDataInfo.contacts"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="联系电话">
-                <el-input v-model="form.contactNumber"/>
+                <el-input v-model="form.baseDataInfo.contactNumber"/>
               </el-form-item>
             </el-col>
           </el-row>
@@ -56,7 +56,7 @@
         </el-col>
       </el-row>
       <el-form-item label="简介">
-        <el-input v-model="form.brief" type="textarea" rows="10"/>
+        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10"/>
       </el-form-item>
     </el-form>
     <div slot="footer" class="dialog-footer">
@@ -79,7 +79,9 @@ export default {
       visible: false,
       isLoading: false,
       listAllAuthorities: [],
-      form: {},
+      form: {
+        baseDataInfo: {}
+      },
       fileList: [],
       map: null,
       marker: null,
@@ -99,15 +101,22 @@ export default {
       this.visible = true
       this.isLoading = false
       this.fileList = []
+      this.form = {
+        baseDataInfo: {}
+      }
+      if (data && data.baseDataInfo) {
+        const baseDataInfo = data.baseDataInfo
+        if (baseDataInfo.litpics) {
+          baseDataInfo.litpics.forEach(o => {
+            this.fileList.push({ url: o })
+          })
+        }
 
-      if (data.litpics) {
-        data.litpics.forEach(o => {
-          this.fileList.push({ url: o })
-        })
+        this.lng = baseDataInfo?.lng
+        this.lat = baseDataInfo?.lat
+
+        this.form = Object.assign({}, data)
       }
-      this.form = Object.assign({}, data)
-      this.lng = data.lng
-      this.lat = data.lat
     },
     aMapClick(e) {
       this.lng = e.lnglat.lng
@@ -119,7 +128,8 @@ export default {
         litpics.push(o.url)
       })
       this.isLoading = true
-      const param = { ...this.form, lng: this.lng, lat: this.lat, litpics }
+      const param = { ...this.form, baseDataInfo: { ...this.form.baseDataInfo, lng: this.lng, lat: this.lat, litpics } }
+      console.log(param)
       if (this.form.id) {
         updateById(this.form.id, param).then(() => {
           this.visible = false

+ 7 - 8
src/views/bz/base/homeStay/index.vue

@@ -30,19 +30,18 @@
     >
       <el-table-column type="selection" width="55"/>
       <el-table-column label="ID" prop="id" width="150"/>
-      <el-table-column label="名称" prop="name"/>
+      <el-table-column label="名称" prop="baseDataInfo.name"/>
       <el-table-column label="缩略图" width="80">
         <template slot-scope="scope">
-          {{ scope.row.litpics.length }}张
+          {{ scope.row.baseDataInfo.litpics.length }}张
         </template>
       </el-table-column>
-      <el-table-column label="简介" prop="brief"/>
-      <el-table-column label="地址" prop="address"/>
-      <el-table-column label="联系人" prop="contacts"/>
-      <el-table-column label="联系电话" prop="contactNumber"/>
-      <el-table-column label="位置信息">
+      <el-table-column label="地址" prop="baseDataInfo.address"/>
+      <el-table-column label="联系人" prop="baseDataInfo.contacts"/>
+      <el-table-column label="联系电话" prop="baseDataInfo.contactNumber"/>
+      <el-table-column label="位置信息" width="200">
         <template slot-scope="scope">
-          [ {{ scope.row.lng }}, {{ scope.row.lat }} ]
+          [ {{ scope.row.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
         </template>
       </el-table-column>
       <el-table-column label="操作" width="70" fixed="right">

+ 35 - 28
src/views/bz/base/hotel/DialogForm.vue

@@ -8,23 +8,20 @@
     <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
       <el-row :gutter="24">
         <el-col :span="12">
-          <el-form-item label="名称">
-            <el-input v-model="form.name"/>
-          </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
-              <el-form-item label="开放时间">
-                <el-input v-model="form.businessHours"/>
+              <el-form-item label="名称">
+                <el-input v-model="form.baseDataInfo.name" />
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="等级">
                 <el-select v-model="form.grade" placeholder="请选择" clearable>
-                  <el-option label="一星" value="ONE_STAR"/>
-                  <el-option label="二星" value="TWO_STAR"/>
-                  <el-option label="三星" value="THREE_STAR"/>
-                  <el-option label="四星" value="FOUR_STAR"/>
-                  <el-option label="五星" value="FIVE_STAR"/>
+                  <el-option label="一星" value="ONE_STAR" />
+                  <el-option label="二星" value="TWO_STAR" />
+                  <el-option label="三星" value="THREE_STAR" />
+                  <el-option label="四星" value="FOUR_STAR" />
+                  <el-option label="五星" value="FIVE_STAR" />
                 </el-select>
               </el-form-item>
             </el-col>
@@ -39,33 +36,33 @@
               :on-success="uploadSuccess"
               :auto-upload="true"
             >
-              <i slot="default" class="el-icon-plus"/>
+              <i slot="default" class="el-icon-plus" />
             </el-upload>
           </el-form-item>
           <el-form-item label="地址">
-            <el-input v-model="form.address"/>
+            <el-input v-model="form.baseDataInfo.address" />
           </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="联系人">
-                <el-input v-model="form.contacts"/>
+                <el-input v-model="form.baseDataInfo.contacts" />
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="联系电话">
-                <el-input v-model="form.contactNumber"/>
+                <el-input v-model="form.baseDataInfo.contactNumber" />
               </el-form-item>
             </el-col>
           </el-row>
         </el-col>
         <el-col :span="12">
           <el-form-item label="标注位置">
-            <a-map-marker id="amapcontainer" :position="[lng, lat]" @click="aMapClick"/>
+            <a-map-marker id="amapcontainer" :position="[lng, lat]" @click="aMapClick" />
           </el-form-item>
         </el-col>
       </el-row>
       <el-form-item label="简介">
-        <el-input v-model="form.brief" type="textarea" rows="10"/>
+        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
       </el-form-item>
     </el-form>
     <div slot="footer" class="dialog-footer">
@@ -88,7 +85,9 @@ export default {
       visible: false,
       isLoading: false,
       listAllAuthorities: [],
-      form: {},
+      form: {
+        baseDataInfo: {}
+      },
       fileList: [],
       map: null,
       marker: null,
@@ -108,18 +107,26 @@ export default {
       this.visible = true
       this.isLoading = false
       this.fileList = []
-
-      if (data.litpics) {
-        data.litpics.forEach(o => {
-          this.fileList.push({ url: o })
-        })
+      this.form = {
+        baseDataInfo: {}
       }
-      this.form = Object.assign({}, data)
-      if (this.form.grade) {
-        this.form.grade = this.form.grade.name
+
+      if (data && data.baseDataInfo) {
+        const baseDataInfo = data.baseDataInfo
+        if (baseDataInfo.litpics) {
+          baseDataInfo.litpics.forEach(o => {
+            this.fileList.push({ url: o })
+          })
+        }
+        this.lng = baseDataInfo?.lng
+        this.lat = baseDataInfo?.lat
+
+        this.form = Object.assign({}, data)
+
+        if (this.form.grade) {
+          this.form.grade = this.form.grade.name
+        }
       }
-      this.lng = data.lng
-      this.lat = data.lat
     },
     aMapClick(e) {
       this.lng = e.lnglat.lng
@@ -131,7 +138,7 @@ export default {
         litpics.push(o.url)
       })
       this.isLoading = true
-      const param = { ...this.form, lng: this.lng, lat: this.lat, litpics }
+      const param = { ...this.form, baseDataInfo: { ...this.form.baseDataInfo, lng: this.lng, lat: this.lat, litpics }}
       console.log(param)
       if (this.form.id) {
         updateById(this.form.id, param).then(() => {

+ 6 - 7
src/views/bz/base/hotel/index.vue

@@ -38,20 +38,19 @@
     >
       <el-table-column type="selection" width="55"/>
       <el-table-column label="ID" prop="id" width="150"/>
-      <el-table-column label="名称" prop="name"/>
+      <el-table-column label="名称" prop="baseDataInfo.name"/>
       <el-table-column label="等级" prop="grade.text" width="80"/>
       <el-table-column label="缩略图" width="80">
         <template slot-scope="scope">
-          {{ scope.row.litpics.length }}张
+          {{ scope.row.baseDataInfo.litpics.length }}张
         </template>
       </el-table-column>
-      <el-table-column label="简介" prop="brief"/>
-      <el-table-column label="地址" prop="address"/>
-      <el-table-column label="联系人" prop="contacts"/>
-      <el-table-column label="联系电话" prop="contactNumber"/>
+      <el-table-column label="地址" prop="baseDataInfo.address"/>
+      <el-table-column label="联系人" prop="baseDataInfo.contacts"/>
+      <el-table-column label="联系电话" prop="baseDataInfo.contactNumber"/>
       <el-table-column label="位置信息" width="200">
         <template slot-scope="scope">
-          [ {{ scope.row.lng }}, {{ scope.row.lat }} ]
+          [ {{ scope.row.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
         </template>
       </el-table-column>
 

+ 29 - 21
src/views/bz/base/scenery/DialogForm.vue

@@ -8,13 +8,10 @@
     <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
       <el-row :gutter="24">
         <el-col :span="12">
-          <el-form-item label="名称">
-            <el-input v-model="form.name"/>
-          </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
-              <el-form-item label="开放时间">
-                <el-input v-model="form.businessHours"/>
+              <el-form-item label="名称">
+                <el-input v-model="form.baseDataInfo.name"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -43,17 +40,17 @@
             </el-upload>
           </el-form-item>
           <el-form-item label="地址">
-            <el-input v-model="form.address"/>
+            <el-input v-model="form.baseDataInfo.address"/>
           </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="联系人">
-                <el-input v-model="form.contacts"/>
+                <el-input v-model="form.baseDataInfo.contacts"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="联系电话">
-                <el-input v-model="form.contactNumber"/>
+                <el-input v-model="form.baseDataInfo.contactNumber"/>
               </el-form-item>
             </el-col>
           </el-row>
@@ -65,7 +62,7 @@
         </el-col>
       </el-row>
       <el-form-item label="简介">
-        <el-input v-model="form.brief" type="textarea" rows="10"/>
+        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10"/>
       </el-form-item>
     </el-form>
     <div slot="footer" class="dialog-footer">
@@ -88,7 +85,9 @@ export default {
       visible: false,
       isLoading: false,
       listAllAuthorities: [],
-      form: {},
+      form: {
+        baseDataInfo: {}
+      },
       fileList: [],
       map: null,
       marker: null,
@@ -108,18 +107,26 @@ export default {
       this.visible = true
       this.isLoading = false
       this.fileList = []
-
-      if (data.litpics) {
-        data.litpics.forEach(o => {
-          this.fileList.push({ url: o })
-        })
+      this.form = {
+        baseDataInfo: {}
       }
-      this.form = Object.assign({}, data)
-      if (this.form.grade) {
-        this.form.grade = this.form.grade.name
+
+      if (data && data.baseDataInfo) {
+        const baseDataInfo = data.baseDataInfo
+        if (baseDataInfo.litpics) {
+          baseDataInfo.litpics.forEach(o => {
+            this.fileList.push({ url: o })
+          })
+        }
+        this.lng = baseDataInfo?.lng
+        this.lat = baseDataInfo?.lat
+
+        this.form = Object.assign({}, data)
+
+        if (this.form.grade) {
+          this.form.grade = this.form.grade.name
+        }
       }
-      this.lng = data.lng
-      this.lat = data.lat
     },
     aMapClick(e) {
       this.lng = e.lnglat.lng
@@ -131,7 +138,8 @@ export default {
         litpics.push(o.url)
       })
       this.isLoading = true
-      const param = { ...this.form, lng: this.lng, lat: this.lat, litpics }
+
+      const param = { ...this.form, baseDataInfo: { ...this.form.baseDataInfo, lng: this.lng, lat: this.lat, litpics } }
       console.log(param)
       if (this.form.id) {
         updateById(this.form.id, param).then(() => {

+ 6 - 7
src/views/bz/base/scenery/index.vue

@@ -38,20 +38,19 @@
     >
       <el-table-column type="selection" width="55"/>
       <el-table-column label="ID" prop="id" width="150"/>
-      <el-table-column label="名称" prop="name"/>
+      <el-table-column label="名称" prop="baseDataInfo.name"/>
       <el-table-column label="等级" prop="grade.text" width="80"/>
       <el-table-column label="缩略图" width="80">
         <template slot-scope="scope">
-          {{ scope.row.litpics.length }}张
+          {{ scope.row.baseDataInfo.litpics.length }}张
         </template>
       </el-table-column>
-      <el-table-column label="简介" prop="brief"/>
-      <el-table-column label="地址" prop="address"/>
-      <el-table-column label="联系人" prop="contacts"/>
-      <el-table-column label="联系电话" prop="contactNumber"/>
+      <el-table-column label="地址" prop="baseDataInfo.address"/>
+      <el-table-column label="联系人" prop="baseDataInfo.contacts" width="150"/>
+      <el-table-column label="联系电话" prop="baseDataInfo.contactNumber" width="150"/>
       <el-table-column label="位置信息" width="200">
         <template slot-scope="scope">
-          [ {{ scope.row.lng }}, {{ scope.row.lat }} ]
+          [ {{ scope.row.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
         </template>
       </el-table-column>
 

+ 24 - 15
src/views/bz/base/tourist/DialogForm.vue

@@ -11,12 +11,12 @@
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="名称">
-                <el-input v-model="form.name"/>
+                <el-input v-model="form.baseDataInfo.name"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="开放时间">
-                <el-input v-model="form.businessHours"/>
+              <el-form-item label="导游数量">
+                <el-input-number v-model="form.totalTourGuidesCount"/>
               </el-form-item>
             </el-col>
           </el-row>
@@ -34,17 +34,17 @@
             </el-upload>
           </el-form-item>
           <el-form-item label="地址">
-            <el-input v-model="form.address"/>
+            <el-input v-model="form.baseDataInfo.address"/>
           </el-form-item>
           <el-row :gutter="24">
             <el-col :span="12">
               <el-form-item label="联系人">
-                <el-input v-model="form.contacts"/>
+                <el-input v-model="form.baseDataInfo.contacts"/>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="联系电话">
-                <el-input v-model="form.contactNumber"/>
+                <el-input v-model="form.baseDataInfo.contactNumber"/>
               </el-form-item>
             </el-col>
           </el-row>
@@ -56,7 +56,7 @@
         </el-col>
       </el-row>
       <el-form-item label="简介">
-        <el-input v-model="form.brief" type="textarea" rows="10"/>
+        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10"/>
       </el-form-item>
     </el-form>
     <div slot="footer" class="dialog-footer">
@@ -99,15 +99,22 @@ export default {
       this.visible = true
       this.isLoading = false
       this.fileList = []
+      this.form = {
+        baseDataInfo: {}
+      }
+      if (data && data.baseDataInfo) {
+        const baseDataInfo = data.baseDataInfo
+        if (baseDataInfo.litpics) {
+          baseDataInfo.litpics.forEach(o => {
+            this.fileList.push({ url: o })
+          })
+        }
 
-      if (data.litpics) {
-        data.litpics.forEach(o => {
-          this.fileList.push({ url: o })
-        })
+        this.lng = baseDataInfo?.lng
+        this.lat = baseDataInfo?.lat
+
+        this.form = Object.assign({}, data)
       }
-      this.form = Object.assign({}, data)
-      this.lng = data.lng
-      this.lat = data.lat
     },
     aMapClick(e) {
       this.lng = e.lnglat.lng
@@ -119,7 +126,9 @@ export default {
         litpics.push(o.url)
       })
       this.isLoading = true
-      const param = { ...this.form, lng: this.lng, lat: this.lat, litpics }
+
+      const param = { ...this.form, baseDataInfo: { ...this.form.baseDataInfo, lng: this.lng, lat: this.lat, litpics } }
+      console.log(param)
       if (this.form.id) {
         updateById(this.form.id, param).then(() => {
           this.visible = false

+ 7 - 8
src/views/bz/base/tourist/index.vue

@@ -30,19 +30,18 @@
     >
       <el-table-column type="selection" width="55"/>
       <el-table-column label="ID" prop="id" width="150"/>
-      <el-table-column label="名称" prop="name"/>
+      <el-table-column label="名称" prop="baseDataInfo.name"/>
       <el-table-column label="缩略图" width="80">
         <template slot-scope="scope">
-          {{ scope.row.litpics.length }}张
+          {{ scope.row.baseDataInfo.litpics.length }}张
         </template>
       </el-table-column>
-      <el-table-column label="简介" prop="brief"/>
-      <el-table-column label="地址" prop="address"/>
-      <el-table-column label="联系人" prop="contacts"/>
-      <el-table-column label="联系电话" prop="contactNumber"/>
-      <el-table-column label="位置信息">
+      <el-table-column label="地址" prop="baseDataInfo.address"/>
+      <el-table-column label="联系人" prop="baseDataInfo.contacts"/>
+      <el-table-column label="联系电话" prop="baseDataInfo.contactNumber"/>
+      <el-table-column label="位置信息" width="200">
         <template slot-scope="scope">
-          [ {{ scope.row.lng }}, {{ scope.row.lat }} ]
+          [ {{ scope.row.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
         </template>
       </el-table-column>
       <el-table-column label="操作" width="70" fixed="right">

+ 3 - 4
src/views/bz/base/venue/DialogForm.vue

@@ -101,6 +101,9 @@ export default {
       this.visible = true
       this.isLoading = false
       this.fileList = []
+      this.form = {
+        baseDataInfo: {}
+      }
       if (data && data.baseDataInfo) {
         const baseDataInfo = data.baseDataInfo
         if (baseDataInfo.litpics) {
@@ -113,10 +116,6 @@ export default {
         this.lat = baseDataInfo?.lat
 
         this.form = Object.assign({}, data)
-      } else {
-        this.form = {
-          baseDataInfo: {}
-        }
       }
     },
     aMapClick(e) {

+ 1 - 1
src/views/bz/base/venue/index.vue

@@ -41,7 +41,7 @@
       <el-table-column label="地址" prop="baseDataInfo.address"/>
       <el-table-column label="联系人" prop="baseDataInfo.contacts" width="150"/>
       <el-table-column label="联系电话" prop="baseDataInfo.contactNumber" width="150"/>
-      <el-table-column label="位置信息">
+      <el-table-column label="位置信息" width="200">
         <template slot-scope="scope">
           [ {{ scope.row.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
         </template>