stjdydayou 4 år sedan
förälder
incheckning
f82294ca74

+ 2 - 2
src/router/index.js

@@ -40,14 +40,14 @@ export const asyncRoutes = [
       {
         path: 'passenger',
         name: 'EquipmentPassenger',
-        component: () => import('@/views/passenger/equipment'),
+        component: () => import('@/views/equipment/passenger'),
         meta: { title: '客流数据采集', authorities: ['equipment.passenger.find'] }
       },
       {
         path: 'equipment/detail/:id',
         name: 'PassengerEquipmentDetail',
         hidden: true,
-        component: () => import('@/views/passenger/equipment/Detail'),
+        component: () => import('@/views/equipment/passenger/Detail'),
         meta: { title: '客流数据采集详情' }
       }
     ]

+ 0 - 156
src/views/bz/base/holidayVillage/DialogForm.vue

@@ -1,156 +0,0 @@
-<template>
-  <el-dialog
-    v-if="visible"
-    :title="form.id?'编辑度假村':'新建度假村'"
-    :visible.sync="visible"
-    width="1200px"
-  >
-    <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
-      <el-row :gutter="24">
-        <el-col :span="12">
-          <el-row :gutter="24">
-            <el-col :span="12">
-              <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-input v-model="form.businessHours" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-form-item label="图片">
-            <el-upload
-              :file-list="fileList"
-              action="#"
-              list-type="picture-card"
-              name="fileData"
-              :http-request="uploaderHandle"
-              :on-success="uploadSuccess"
-              :on-remove="handleRemove"
-              :auto-upload="true"
-            >
-              <i slot="default" class="el-icon-plus" />
-            </el-upload>
-          </el-form-item>
-          <el-form-item label="地址">
-            <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.baseDataInfo.contacts" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="联系电话">
-                <el-input v-model="form.baseDataInfo.contactNumber" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-col>
-        <el-col :span="12">
-          <el-form-item label="标注位置">
-            <tencent-map id="amapcontainer" :position="[lat,lng]" @click="mapClick" />
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-form-item label="简介">
-        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="visible = false">取 消</el-button>
-      <el-button type="primary" @click="handleSubmit">确 定</el-button>
-    </div>
-  </el-dialog>
-</template>
-
-<script>
-
-import { uploaderHandle } from '@/api/upload'
-import { save, updateById } from '@/api/bz/base/holidayVillage'
-import TencentMap from '@/components/TencentMap'
-
-export default {
-  components: { TencentMap },
-  data() {
-    return {
-      visible: false,
-      isLoading: false,
-      listAllAuthorities: [],
-      form: {
-        baseDataInfo: {}
-      },
-      fileList: [],
-      map: null,
-      marker: null,
-      lng: null,
-      lat: null
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    uploaderHandle,
-    handleRemove(file, fileList) {
-      this.fileList = fileList
-    },
-    uploadSuccess(res, file, fileList) {
-      file.url = res.url
-      this.fileList = fileList
-    },
-    open(data) {
-      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 })
-          })
-        }
-
-        this.lng = baseDataInfo?.lng
-        this.lat = baseDataInfo?.lat
-
-        this.form = Object.assign({}, data)
-      }
-    },
-    mapClick(e) {
-      console.log(e)
-      this.lng = e.latLng.lng
-      this.lat = e.latLng.lat
-    },
-    handleSubmit() {
-      const litpics = []
-      this.fileList.forEach(o => {
-        litpics.push(o.url)
-      })
-      this.isLoading = true
-      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
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      } else {
-        save(param).then(res => {
-          this.visible = false
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      }
-    }
-  }
-}
-</script>

+ 0 - 115
src/views/bz/base/holidayVillage/index.vue

@@ -1,115 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryForm" inline size="small">
-      <el-form-item label="关键词">
-        <el-input v-model="queryForm.keyword" placeholder="关键词" />
-      </el-form-item>
-    </el-form>
-    <el-row class="action-bar-container" type="flex" justify="end">
-      <el-button type="primary" size="small" @click.native="fetchData">查询</el-button>
-      <el-button-group>
-        <el-button v-permission="['bz.base.venue.add']" size="small" @click.native="$refs.dialogForm.open({})">
-          新建
-        </el-button>
-        <el-button v-permission="['bz.base.venue.delete']" size="small" @click.native="deleteByIds(multipleSelection)">
-          删除
-        </el-button>
-      </el-button-group>
-    </el-row>
-    <el-table
-      v-loading="isLoading"
-      :data="pageData.records"
-      border
-      fit
-      highlight-current-row
-      @selection-change="selectionChange"
-    >
-      <el-table-column type="selection" width="55" />
-      <el-table-column label="ID" prop="id" width="150" />
-      <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.baseDataInfo.litpics.length }}张
-        </template>
-      </el-table-column>
-      <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.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" width="70" fixed="right">
-        <template slot-scope="scope">
-          <el-button v-permission="['app.key.edit']" type="text" @click.native="$refs.dialogForm.open(scope.row)">编辑</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination
-      class="pagination-container"
-      background
-      layout="prev, pager, next"
-      :total="pageData.total"
-      :page-size="pageData.pageSize"
-      @current-change="paginationChange"
-    />
-    <dialog-form ref="dialogForm" @ok="fetchData" />
-  </div>
-</template>
-
-<script>
-import { findPage, deleteByIds } from '@/api/bz/base/holidayVillage'
-import { dateTimeFormatter } from '@/utils/formater'
-import DialogForm from './DialogForm'
-
-export default {
-  components: { DialogForm },
-  data() {
-    return {
-      queryForm: {},
-      isLoading: true,
-      pageData: {},
-      currentPage: 1,
-      multipleSelection: []
-    }
-  },
-  created() {
-    this.fetchData()
-  },
-  methods: {
-    dateTimeFormatter,
-    selectionChange(val) {
-      const temp = []
-      val.forEach(o => {
-        temp.push(o.id)
-      })
-      this.multipleSelection = temp
-    },
-    deleteByIds(ids) {
-      this.$confirm('确认要删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        deleteByIds(ids).then(() => {
-          this.fetchData()
-        })
-      })
-    },
-    paginationChange(val) {
-      this.currentPage = val
-      this.fetchData()
-    },
-    fetchData() {
-      this.isLoading = true
-      findPage({ ...this.queryForm, current: this.currentPage })
-        .then((response) => {
-          this.pageData = response
-        })
-        .finally(() => (this.isLoading = false))
-    }
-  }
-}
-</script>

+ 0 - 155
src/views/bz/base/homeStay/DialogForm.vue

@@ -1,155 +0,0 @@
-<template>
-  <el-dialog
-    v-if="visible"
-    :title="form.id?'编辑民宿':'新建民宿'"
-    :visible.sync="visible"
-    width="1200px"
-  >
-    <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
-      <el-row :gutter="24">
-        <el-col :span="12">
-          <el-row :gutter="24">
-            <el-col :span="12">
-              <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-input-number v-model="form.totalRoomCount" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-form-item label="图片">
-            <el-upload
-              :file-list="fileList"
-              action="#"
-              list-type="picture-card"
-              name="fileData"
-              :http-request="uploaderHandle"
-              :on-success="uploadSuccess"
-              :on-remove="handleRemove"
-              :auto-upload="true"
-            >
-              <i slot="default" class="el-icon-plus" />
-            </el-upload>
-          </el-form-item>
-          <el-form-item label="地址">
-            <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.baseDataInfo.contacts" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="联系电话">
-                <el-input v-model="form.baseDataInfo.contactNumber" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-col>
-        <el-col :span="12">
-          <el-form-item label="标注位置">
-            <tencent-map id="amapcontainer" :position="[lat,lng]" @click="mapClick" />
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-form-item label="简介">
-        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="visible = false">取 消</el-button>
-      <el-button type="primary" @click="handleSubmit">确 定</el-button>
-    </div>
-  </el-dialog>
-</template>
-
-<script>
-
-import { uploaderHandle } from '@/api/upload'
-import { save, updateById } from '@/api/bz/base/homeStay'
-import TencentMap from '@/components/TencentMap'
-
-export default {
-  components: { TencentMap },
-  data() {
-    return {
-      visible: false,
-      isLoading: false,
-      listAllAuthorities: [],
-      form: {
-        baseDataInfo: {}
-      },
-      fileList: [],
-      map: null,
-      marker: null,
-      lng: null,
-      lat: null
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    uploaderHandle,
-    handleRemove(file, fileList) {
-      this.fileList = fileList
-    },
-    uploadSuccess(res, file, fileList) {
-      file.url = res.url
-      this.fileList = fileList
-    },
-    open(data) {
-      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 })
-          })
-        }
-
-        this.lng = baseDataInfo?.lng
-        this.lat = baseDataInfo?.lat
-
-        this.form = Object.assign({}, data)
-      }
-    },
-    mapClick(e) {
-      this.lng = e.latLng.lng
-      this.lat = e.latLng.lat
-    },
-    handleSubmit() {
-      const litpics = []
-      this.fileList.forEach(o => {
-        litpics.push(o.url)
-      })
-      this.isLoading = true
-      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
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      } else {
-        save(param).then(res => {
-          this.visible = false
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      }
-    }
-  }
-}
-</script>

+ 0 - 114
src/views/bz/base/homeStay/index.vue

@@ -1,114 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryForm" inline size="small">
-      <el-form-item label="关键词">
-        <el-input v-model="queryForm.keyword" placeholder="关键词" />
-      </el-form-item>
-    </el-form>
-    <el-row class="action-bar-container" type="flex" justify="end">
-      <el-button type="primary" size="small" @click.native="fetchData">查询</el-button>
-      <el-button-group>
-        <el-button v-permission="['bz.base.venue.add']" size="small" @click.native="$refs.dialogForm.open({})">
-          新建
-        </el-button>
-        <el-button v-permission="['bz.base.venue.delete']" size="small" @click.native="deleteByIds(multipleSelection)">
-          删除
-        </el-button>
-      </el-button-group>
-    </el-row>
-    <el-table
-      v-loading="isLoading"
-      :data="pageData.records"
-      border
-      fit
-      highlight-current-row
-      @selection-change="selectionChange"
-    >
-      <el-table-column type="selection" width="55" />
-      <el-table-column label="ID" prop="id" width="150" />
-      <el-table-column label="名称" prop="baseDataInfo.name" />
-      <el-table-column label="缩略图" width="80">
-        <template slot-scope="scope">
-          {{ scope.row.baseDataInfo.litpics.length }}张
-        </template>
-      </el-table-column>
-      <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.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" width="70" fixed="right">
-        <template slot-scope="scope">
-          <el-button v-permission="['app.key.edit']" type="text" @click.native="$refs.dialogForm.open(scope.row)">编辑</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination
-      class="pagination-container"
-      background
-      layout="prev, pager, next"
-      :total="pageData.total"
-      :page-size="pageData.pageSize"
-      @current-change="paginationChange"
-    />
-    <dialog-form ref="dialogForm" @ok="fetchData" />
-  </div>
-</template>
-
-<script>
-import { findPage, deleteByIds } from '@/api/bz/base/homeStay'
-import { dateTimeFormatter } from '@/utils/formater'
-import DialogForm from './DialogForm'
-
-export default {
-  components: { DialogForm },
-  data() {
-    return {
-      queryForm: {},
-      isLoading: true,
-      pageData: {},
-      currentPage: 1,
-      multipleSelection: []
-    }
-  },
-  created() {
-    this.fetchData()
-  },
-  methods: {
-    dateTimeFormatter,
-    selectionChange(val) {
-      const temp = []
-      val.forEach(o => {
-        temp.push(o.id)
-      })
-      this.multipleSelection = temp
-    },
-    deleteByIds(ids) {
-      this.$confirm('确认要删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        deleteByIds(ids).then(() => {
-          this.fetchData()
-        })
-      })
-    },
-    paginationChange(val) {
-      this.currentPage = val
-      this.fetchData()
-    },
-    fetchData() {
-      this.isLoading = true
-      findPage({ ...this.queryForm, current: this.currentPage })
-        .then((response) => {
-          this.pageData = response
-        })
-        .finally(() => (this.isLoading = false))
-    }
-  }
-}
-</script>

+ 0 - 170
src/views/bz/base/hotel/DialogForm.vue

@@ -1,170 +0,0 @@
-<template>
-  <el-dialog
-    v-if="visible"
-    :title="form.id?'编辑酒店':'新建酒店'"
-    :visible.sync="visible"
-    width="1200px"
-  >
-    <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
-      <el-row :gutter="24">
-        <el-col :span="12">
-          <el-row :gutter="24">
-            <el-col :span="12">
-              <el-form-item label="名称">
-                <el-input v-model="form.baseDataInfo.name" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="6">
-              <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-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="6">
-              <el-form-item label="客房数">
-                <el-input v-model="form.totalRoomCount" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-form-item label="图片">
-            <el-upload
-              :file-list="fileList"
-              action="#"
-              list-type="picture-card"
-              name="fileData"
-              :http-request="uploaderHandle"
-              :on-success="uploadSuccess"
-              :on-remove="handleRemove"
-              :auto-upload="true"
-            >
-              <i slot="default" class="el-icon-plus" />
-            </el-upload>
-          </el-form-item>
-          <el-form-item label="地址">
-            <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.baseDataInfo.contacts" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="联系电话">
-                <el-input v-model="form.baseDataInfo.contactNumber" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-col>
-        <el-col :span="12">
-          <el-form-item label="标注位置">
-            <tencent-map id="amapcontainer" :position="[lat,lng]" @click="mapClick" />
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-form-item label="简介">
-        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="visible = false">取 消</el-button>
-      <el-button type="primary" @click="handleSubmit">确 定</el-button>
-    </div>
-  </el-dialog>
-</template>
-
-<script>
-
-import { uploaderHandle } from '@/api/upload'
-import { save, updateById } from '@/api/bz/base/hotel'
-import TencentMap from '@/components/TencentMap'
-
-export default {
-  components: { TencentMap },
-  data() {
-    return {
-      visible: false,
-      isLoading: false,
-      listAllAuthorities: [],
-      form: {
-        baseDataInfo: {}
-      },
-      fileList: [],
-      map: null,
-      marker: null,
-      lng: null,
-      lat: null
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    uploaderHandle,
-    handleRemove(file, fileList) {
-      this.fileList = fileList
-    },
-    uploadSuccess(res, file, fileList) {
-      file.url = res.url
-      this.fileList = fileList
-    },
-    open(data) {
-      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 })
-          })
-        }
-        this.lng = baseDataInfo?.lng
-        this.lat = baseDataInfo?.lat
-
-        this.form = Object.assign({}, data)
-
-        if (this.form.grade) {
-          this.form.grade = this.form.grade.name
-        }
-      }
-    },
-    mapClick(e) {
-      this.lng = e.latLng.lng
-      this.lat = e.latLng.lat
-    },
-    handleSubmit() {
-      const litpics = []
-      this.fileList.forEach(o => {
-        litpics.push(o.url)
-      })
-      this.isLoading = true
-      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
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      } else {
-        save(param).then(res => {
-          this.visible = false
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      }
-    }
-  }
-}
-</script>

+ 0 - 125
src/views/bz/base/hotel/index.vue

@@ -1,125 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryForm" inline size="small">
-      <el-form-item label="关键词">
-        <el-input v-model="queryForm.keyword" placeholder="关键词" />
-      </el-form-item>
-      <el-form-item label="等级">
-        <el-select v-model="queryForm.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-select>
-      </el-form-item>
-    </el-form>
-    <el-row class="action-bar-container" type="flex" justify="end">
-      <el-button type="primary" size="small" @click.native="fetchData">查询</el-button>
-      <el-button-group>
-        <el-button v-permission="['bz.base.venue.add']" size="small" @click.native="$refs.dialogForm.open({})">
-          新建
-        </el-button>
-        <el-button v-permission="['bz.base.venue.delete']" size="small" @click.native="deleteByIds(multipleSelection)">
-          删除
-        </el-button>
-      </el-button-group>
-    </el-row>
-    <el-table
-      v-loading="isLoading"
-      :data="pageData.records"
-      border
-      fit
-      highlight-current-row
-      @selection-change="selectionChange"
-    >
-      <el-table-column type="selection" width="55" />
-      <el-table-column label="ID" prop="id" width="150" />
-      <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.baseDataInfo.litpics.length }}张
-        </template>
-      </el-table-column>
-      <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.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
-        </template>
-      </el-table-column>
-
-      <el-table-column label="操作" width="70" fixed="right">
-        <template slot-scope="scope">
-          <el-button v-permission="['app.key.edit']" type="text" @click.native="$refs.dialogForm.open(scope.row)">编辑</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination
-      class="pagination-container"
-      background
-      layout="prev, pager, next"
-      :total="pageData.total"
-      :page-size="pageData.pageSize"
-      @current-change="paginationChange"
-    />
-    <dialog-form ref="dialogForm" @ok="fetchData" />
-  </div>
-</template>
-
-<script>
-import { deleteByIds, findPage } from '@/api/bz/base/hotel'
-import { dateTimeFormatter } from '@/utils/formater'
-import DialogForm from './DialogForm'
-
-export default {
-  components: { DialogForm },
-  data() {
-    return {
-      queryForm: {},
-      isLoading: true,
-      pageData: {},
-      currentPage: 1,
-      multipleSelection: []
-    }
-  },
-  created() {
-    this.fetchData()
-  },
-  methods: {
-    dateTimeFormatter,
-    selectionChange(val) {
-      const temp = []
-      val.forEach(o => {
-        temp.push(o.id)
-      })
-      this.multipleSelection = temp
-    },
-    deleteByIds(ids) {
-      this.$confirm('确认要删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        deleteByIds(ids).then(() => {
-          this.fetchData()
-        })
-      })
-    },
-    paginationChange(val) {
-      this.currentPage = val
-      this.fetchData()
-    },
-    fetchData() {
-      this.isLoading = true
-      findPage({ ...this.queryForm, current: this.currentPage })
-        .then((response) => {
-          this.pageData = response
-        })
-        .finally(() => (this.isLoading = false))
-    }
-  }
-}
-</script>

+ 0 - 166
src/views/bz/base/scenery/DialogForm.vue

@@ -1,166 +0,0 @@
-<template>
-  <el-dialog
-    v-if="visible"
-    :title="form.id?'编辑景区':'新建景区'"
-    :visible.sync="visible"
-    width="1200px"
-  >
-    <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
-      <el-row :gutter="24">
-        <el-col :span="12">
-          <el-row :gutter="24">
-            <el-col :span="12">
-              <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="A" value="A" />
-                  <el-option label="AA" value="AA" />
-                  <el-option label="AAA" value="AAA" />
-                  <el-option label="AAAA" value="AAAA" />
-                  <el-option label="AAAAA" value="AAAAA" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-form-item label="图片">
-            <el-upload
-              :file-list="fileList"
-              action="#"
-              list-type="picture-card"
-              name="fileData"
-              :http-request="uploaderHandle"
-              :on-success="uploadSuccess"
-              :on-remove="handleRemove"
-              :auto-upload="true"
-            >
-              <i slot="default" class="el-icon-plus" />
-            </el-upload>
-          </el-form-item>
-          <el-form-item label="地址">
-            <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.baseDataInfo.contacts" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="联系电话">
-                <el-input v-model="form.baseDataInfo.contactNumber" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-col>
-        <el-col :span="12">
-          <el-form-item label="标注位置">
-            <tencent-map id="amapcontainer" :position="[lat,lng]" @click="mapClick" />
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-form-item label="简介">
-        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="visible = false">取 消</el-button>
-      <el-button type="primary" @click="handleSubmit">确 定</el-button>
-    </div>
-  </el-dialog>
-</template>
-
-<script>
-
-import { uploaderHandle } from '@/api/upload'
-import { save, updateById } from '@/api/bz/base/scenery'
-import TencentMap from '@/components/TencentMap'
-
-export default {
-  components: { TencentMap },
-  data() {
-    return {
-      visible: false,
-      isLoading: false,
-      listAllAuthorities: [],
-      form: {
-        baseDataInfo: {}
-      },
-      fileList: [],
-      map: null,
-      marker: null,
-      lng: null,
-      lat: null
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    uploaderHandle,
-    handleRemove(file, fileList) {
-      this.fileList = fileList
-    },
-    uploadSuccess(res, file, fileList) {
-      file.url = res.url
-      this.fileList = fileList
-    },
-    open(data) {
-      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 })
-          })
-        }
-        this.lng = baseDataInfo?.lng
-        this.lat = baseDataInfo?.lat
-
-        this.form = Object.assign({}, data)
-
-        if (this.form.grade) {
-          this.form.grade = this.form.grade.name
-        }
-      }
-    },
-    mapClick(e) {
-      this.lng = e.latLng.lng
-      this.lat = e.latLng.lat
-    },
-    handleSubmit() {
-      const litpics = []
-      this.fileList.forEach(o => {
-        litpics.push(o.url)
-      })
-      this.isLoading = true
-
-      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
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      } else {
-        save(param).then(res => {
-          this.visible = false
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      }
-    }
-  }
-}
-</script>

+ 0 - 125
src/views/bz/base/scenery/index.vue

@@ -1,125 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryForm" inline size="small">
-      <el-form-item label="关键词">
-        <el-input v-model="queryForm.keyword" placeholder="关键词" />
-      </el-form-item>
-      <el-form-item label="等级">
-        <el-select v-model="queryForm.grade" placeholder="请选择" clearable>
-          <el-option label="A" value="A" />
-          <el-option label="AA" value="AA" />
-          <el-option label="AAA" value="AAA" />
-          <el-option label="AAAA" value="AAAA" />
-          <el-option label="AAAAA" value="AAAAA" />
-        </el-select>
-      </el-form-item>
-    </el-form>
-    <el-row class="action-bar-container" type="flex" justify="end">
-      <el-button type="primary" size="small" @click.native="fetchData">查询</el-button>
-      <el-button-group>
-        <el-button v-permission="['bz.base.venue.add']" size="small" @click.native="$refs.dialogForm.open({})">
-          新建
-        </el-button>
-        <el-button v-permission="['bz.base.venue.delete']" size="small" @click.native="deleteByIds(multipleSelection)">
-          删除
-        </el-button>
-      </el-button-group>
-    </el-row>
-    <el-table
-      v-loading="isLoading"
-      :data="pageData.records"
-      border
-      fit
-      highlight-current-row
-      @selection-change="selectionChange"
-    >
-      <el-table-column type="selection" width="55" />
-      <el-table-column label="ID" prop="id" width="150" />
-      <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.baseDataInfo.litpics.length }}张
-        </template>
-      </el-table-column>
-      <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.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
-        </template>
-      </el-table-column>
-
-      <el-table-column label="操作" width="70" fixed="right">
-        <template slot-scope="scope">
-          <el-button v-permission="['app.key.edit']" type="text" @click.native="$refs.dialogForm.open(scope.row)">编辑</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination
-      class="pagination-container"
-      background
-      layout="prev, pager, next"
-      :total="pageData.total"
-      :page-size="pageData.pageSize"
-      @current-change="paginationChange"
-    />
-    <dialog-form ref="dialogForm" @ok="fetchData" />
-  </div>
-</template>
-
-<script>
-import { deleteByIds, findPage } from '@/api/bz/base/scenery'
-import { dateTimeFormatter } from '@/utils/formater'
-import DialogForm from './DialogForm'
-
-export default {
-  components: { DialogForm },
-  data() {
-    return {
-      queryForm: {},
-      isLoading: true,
-      pageData: {},
-      currentPage: 1,
-      multipleSelection: []
-    }
-  },
-  created() {
-    this.fetchData()
-  },
-  methods: {
-    dateTimeFormatter,
-    selectionChange(val) {
-      const temp = []
-      val.forEach(o => {
-        temp.push(o.id)
-      })
-      this.multipleSelection = temp
-    },
-    deleteByIds(ids) {
-      this.$confirm('确认要删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        deleteByIds(ids).then(() => {
-          this.fetchData()
-        })
-      })
-    },
-    paginationChange(val) {
-      this.currentPage = val
-      this.fetchData()
-    },
-    fetchData() {
-      this.isLoading = true
-      findPage({ ...this.queryForm, current: this.currentPage })
-        .then((response) => {
-          this.pageData = response
-        })
-        .finally(() => (this.isLoading = false))
-    }
-  }
-}
-</script>

+ 0 - 154
src/views/bz/base/tourist/DialogForm.vue

@@ -1,154 +0,0 @@
-<template>
-  <el-dialog
-    v-if="visible"
-    :title="form.id?'编辑旅行社':'新建旅行社'"
-    :visible.sync="visible"
-    width="1200px"
-  >
-    <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
-      <el-row :gutter="24">
-        <el-col :span="12">
-          <el-row :gutter="24">
-            <el-col :span="12">
-              <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-input-number v-model="form.totalTourGuidesCount" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-form-item label="图片">
-            <el-upload
-              :file-list="fileList"
-              action="#"
-              list-type="picture-card"
-              name="fileData"
-              :http-request="uploaderHandle"
-              :on-success="uploadSuccess"
-              :on-remove="handleRemove"
-              :auto-upload="true"
-            >
-              <i slot="default" class="el-icon-plus" />
-            </el-upload>
-          </el-form-item>
-          <el-form-item label="地址">
-            <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.baseDataInfo.contacts" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="联系电话">
-                <el-input v-model="form.baseDataInfo.contactNumber" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-col>
-        <el-col :span="12">
-          <el-form-item label="标注位置">
-            <tencent-map id="amapcontainer" :position="[lat,lng]" @click="mapClick" />
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-form-item label="简介">
-        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="visible = false">取 消</el-button>
-      <el-button type="primary" @click="handleSubmit">确 定</el-button>
-    </div>
-  </el-dialog>
-</template>
-
-<script>
-
-import { uploaderHandle } from '@/api/upload'
-import { save, updateById } from '@/api/bz/base/tourist'
-import TencentMap from '@/components/TencentMap'
-
-export default {
-  components: { TencentMap },
-  data() {
-    return {
-      visible: false,
-      isLoading: false,
-      listAllAuthorities: [],
-      form: {},
-      fileList: [],
-      map: null,
-      marker: null,
-      lng: null,
-      lat: null
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    uploaderHandle,
-    handleRemove(file, fileList) {
-      this.fileList = fileList
-    },
-    uploadSuccess(res, file, fileList) {
-      file.url = res.url
-      this.fileList = fileList
-    },
-    open(data) {
-      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 })
-          })
-        }
-
-        this.lng = baseDataInfo?.lng
-        this.lat = baseDataInfo?.lat
-
-        this.form = Object.assign({}, data)
-      }
-    },
-    mapClick(e) {
-      this.lng = e.latLng.lng
-      this.lat = e.latLng.lat
-    },
-    handleSubmit() {
-      const litpics = []
-      this.fileList.forEach(o => {
-        litpics.push(o.url)
-      })
-      this.isLoading = true
-
-      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
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      } else {
-        save(param).then(res => {
-          this.visible = false
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      }
-    }
-  }
-}
-</script>

+ 0 - 114
src/views/bz/base/tourist/index.vue

@@ -1,114 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryForm" inline size="small">
-      <el-form-item label="关键词">
-        <el-input v-model="queryForm.keyword" placeholder="关键词" />
-      </el-form-item>
-    </el-form>
-    <el-row class="action-bar-container" type="flex" justify="end">
-      <el-button type="primary" size="small" @click.native="fetchData">查询</el-button>
-      <el-button-group>
-        <el-button v-permission="['bz.base.venue.add']" size="small" @click.native="$refs.dialogForm.open({})">
-          新建
-        </el-button>
-        <el-button v-permission="['bz.base.venue.delete']" size="small" @click.native="deleteByIds(multipleSelection)">
-          删除
-        </el-button>
-      </el-button-group>
-    </el-row>
-    <el-table
-      v-loading="isLoading"
-      :data="pageData.records"
-      border
-      fit
-      highlight-current-row
-      @selection-change="selectionChange"
-    >
-      <el-table-column type="selection" width="55" />
-      <el-table-column label="ID" prop="id" width="150" />
-      <el-table-column label="名称" prop="baseDataInfo.name" />
-      <el-table-column label="缩略图" width="80">
-        <template slot-scope="scope">
-          {{ scope.row.baseDataInfo.litpics.length }}张
-        </template>
-      </el-table-column>
-      <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.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" width="70" fixed="right">
-        <template slot-scope="scope">
-          <el-button v-permission="['app.key.edit']" type="text" @click.native="$refs.dialogForm.open(scope.row)">编辑</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination
-      class="pagination-container"
-      background
-      layout="prev, pager, next"
-      :total="pageData.total"
-      :page-size="pageData.pageSize"
-      @current-change="paginationChange"
-    />
-    <dialog-form ref="dialogForm" @ok="fetchData" />
-  </div>
-</template>
-
-<script>
-import { findPage, deleteByIds } from '@/api/bz/base/tourist'
-import { dateTimeFormatter } from '@/utils/formater'
-import DialogForm from './DialogForm'
-
-export default {
-  components: { DialogForm },
-  data() {
-    return {
-      queryForm: {},
-      isLoading: true,
-      pageData: {},
-      currentPage: 1,
-      multipleSelection: []
-    }
-  },
-  created() {
-    this.fetchData()
-  },
-  methods: {
-    dateTimeFormatter,
-    selectionChange(val) {
-      const temp = []
-      val.forEach(o => {
-        temp.push(o.id)
-      })
-      this.multipleSelection = temp
-    },
-    deleteByIds(ids) {
-      this.$confirm('确认要删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        deleteByIds(ids).then(() => {
-          this.fetchData()
-        })
-      })
-    },
-    paginationChange(val) {
-      this.currentPage = val
-      this.fetchData()
-    },
-    fetchData() {
-      this.isLoading = true
-      findPage({ ...this.queryForm, current: this.currentPage })
-        .then((response) => {
-          this.pageData = response
-        })
-        .finally(() => (this.isLoading = false))
-    }
-  }
-}
-</script>

+ 0 - 155
src/views/bz/base/venue/DialogForm.vue

@@ -1,155 +0,0 @@
-<template>
-  <el-dialog
-    v-if="visible"
-    :title="form.id?'编辑场馆':'新建场馆'"
-    :visible.sync="visible"
-    width="1200px"
-  >
-    <el-form v-loading="isLoading" :model="form" label-width="100px" label-position="top">
-      <el-row :gutter="24">
-        <el-col :span="12">
-          <el-row :gutter="24">
-            <el-col :span="12">
-              <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-input v-model="form.businessHours" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-form-item label="图片">
-            <el-upload
-              :file-list="fileList"
-              action="#"
-              list-type="picture-card"
-              name="fileData"
-              :http-request="uploaderHandle"
-              :on-success="uploadSuccess"
-              :on-remove="handleRemove"
-              :auto-upload="true"
-            >
-              <i slot="default" class="el-icon-plus" />
-            </el-upload>
-          </el-form-item>
-          <el-form-item label="地址">
-            <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.baseDataInfo.contacts" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="联系电话">
-                <el-input v-model="form.baseDataInfo.contactNumber" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-col>
-        <el-col :span="12">
-          <el-form-item label="标注位置">
-            <tencent-map id="amapcontainer" :position="[lat,lng]" @click="mapClick" />
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-form-item label="简介">
-        <el-input v-model="form.baseDataInfo.brief" type="textarea" rows="10" />
-      </el-form-item>
-    </el-form>
-    <div slot="footer" class="dialog-footer">
-      <el-button @click="visible = false">取 消</el-button>
-      <el-button type="primary" @click="handleSubmit">确 定</el-button>
-    </div>
-  </el-dialog>
-</template>
-
-<script>
-
-import { uploaderHandle } from '@/api/upload'
-import { save, updateById } from '@/api/bz/base/venue'
-import TencentMap from '@/components/TencentMap'
-
-export default {
-  components: { TencentMap },
-  data() {
-    return {
-      visible: false,
-      isLoading: false,
-      listAllAuthorities: [],
-      form: {
-        baseDataInfo: {}
-      },
-      fileList: [],
-      map: null,
-      marker: null,
-      lng: null,
-      lat: null
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    uploaderHandle,
-    handleRemove(file, fileList) {
-      this.fileList = fileList
-    },
-    uploadSuccess(res, file, fileList) {
-      file.url = res.url
-      this.fileList = fileList
-    },
-    open(data) {
-      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 })
-          })
-        }
-
-        this.lng = baseDataInfo?.lng
-        this.lat = baseDataInfo?.lat
-
-        this.form = Object.assign({}, data)
-      }
-    },
-    mapClick(e) {
-      this.lng = e.latLng.lng
-      this.lat = e.latLng.lat
-    },
-    handleSubmit() {
-      const litpics = []
-      this.fileList.forEach(o => {
-        litpics.push(o.url)
-      })
-      this.isLoading = true
-      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
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      } else {
-        save(param).then(res => {
-          this.visible = false
-          this.$emit('ok')
-        }).finally(() => {
-          this.isLoading = false
-        })
-      }
-    }
-  }
-}
-</script>

+ 0 - 116
src/views/bz/base/venue/index.vue

@@ -1,116 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-form :model="queryForm" inline size="small">
-      <el-form-item label="关键词">
-        <el-input v-model="queryForm.keyword" placeholder="关键词" />
-      </el-form-item>
-    </el-form>
-    <el-row class="action-bar-container" type="flex" justify="end">
-      <el-button type="primary" size="small" @click.native="fetchData">查询</el-button>
-      <el-button-group>
-        <el-button v-permission="['bz.base.venue.add']" size="small" @click.native="$refs.dialogForm.open({})">
-          新建
-        </el-button>
-        <el-button v-permission="['bz.base.venue.delete']" size="small" @click.native="deleteByIds(multipleSelection)">
-          删除
-        </el-button>
-      </el-button-group>
-    </el-row>
-    <el-table
-      v-loading="isLoading"
-      :data="pageData.records"
-      border
-      fit
-      highlight-current-row
-      @selection-change="selectionChange"
-    >
-      <el-table-column type="selection" width="55" />
-      <el-table-column label="ID" prop="id" width="150" />
-      <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.baseDataInfo.litpics.length }}张
-        </template>
-      </el-table-column>
-      <!--      <el-table-column label="简介" prop="baseDataInfo.brief"/>-->
-      <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.baseDataInfo.lng }}, {{ scope.row.baseDataInfo.lat }} ]
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" width="70" fixed="right">
-        <template slot-scope="scope">
-          <el-button v-permission="['app.key.edit']" type="text" @click.native="$refs.dialogForm.open(scope.row)">编辑</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <el-pagination
-      class="pagination-container"
-      background
-      layout="prev, pager, next"
-      :total="pageData.total"
-      :page-size="pageData.pageSize"
-      @current-change="paginationChange"
-    />
-    <dialog-form ref="dialogForm" @ok="fetchData" />
-  </div>
-</template>
-
-<script>
-import { deleteByIds, findPage } from '@/api/bz/base/venue'
-import { dateTimeFormatter } from '@/utils/formater'
-import DialogForm from './DialogForm'
-
-export default {
-  components: { DialogForm },
-  data() {
-    return {
-      queryForm: {},
-      isLoading: true,
-      pageData: {},
-      currentPage: 1,
-      multipleSelection: []
-    }
-  },
-  created() {
-    this.fetchData()
-  },
-  methods: {
-    dateTimeFormatter,
-    selectionChange(val) {
-      const temp = []
-      val.forEach(o => {
-        temp.push(o.id)
-      })
-      this.multipleSelection = temp
-    },
-    deleteByIds(ids) {
-      this.$confirm('确认要删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        deleteByIds(ids).then(() => {
-          this.fetchData()
-        })
-      })
-    },
-    paginationChange(val) {
-      this.currentPage = val
-      this.fetchData()
-    },
-    fetchData() {
-      this.isLoading = true
-      findPage({ ...this.queryForm, current: this.currentPage })
-        .then((response) => {
-          this.pageData = response
-        })
-        .finally(() => (this.isLoading = false))
-    }
-  }
-}
-</script>

+ 0 - 0
src/views/passenger/equipment/Detail.vue → src/views/equipment/passenger/Detail.vue


+ 0 - 0
src/views/passenger/equipment/DialogForm.vue → src/views/equipment/passenger/DialogForm.vue


+ 0 - 0
src/views/passenger/equipment/index.vue → src/views/equipment/passenger/index.vue