| | |
| | | <div class="app-container"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="showMap ? 12 : 24" :xs="24"> |
| | | <AppTable ref="AppTable" selection :showDeptSearch="false" :url="'device/towers/list'" :tableColumns="tableColumns" |
| | | :tableFilter="tableFilter" @clickRow="clickRow"> |
| | | <AppTable ref="AppTable" selection :showDeptSearch="false" :url="'tower/point/list'" :tableColumns="tableColumns" |
| | | :tableFilter="tableFilter"> |
| | | <template #operatorBox="{ row }"> |
| | | <el-button type="primary" plain icon="el-icon-plus" size="mini" |
| | | @click="handleAdd">新增模型</el-button> |
| | | @click="handleAdd">新增模板</el-button> |
| | | </template> |
| | | <template #operator="{ row }"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" |
| | | @click="handleUpdate(row)">修改</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" |
| | | @click="handleDelete(row)">删除</el-button> |
| | | </template> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <shootPointDialog v-if="showDialog" @close="close"></shootPointDialog> |
| | | <shootPointDialog @on-submit="$refs.AppTable.getData()" v-if="showDialog" @close="close"></shootPointDialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import CesiumMap from "../../../utils/components/cesium-map.vue"; |
| | | export default { |
| | | name: "towers", |
| | | dicts: ['model_type'], |
| | | dicts: ['model_typpe'], |
| | | components: { |
| | | shootPointDialog, |
| | | CesiumMap |
| | |
| | | handleExport() { |
| | | this.$refs.AppTable.exportExcel() |
| | | }, |
| | | clickRow(row){ |
| | | console.log(row) |
| | | this.showMap =true |
| | | }, |
| | | // clickRow(row){ |
| | | // console.log(row) |
| | | // this.showMap =true |
| | | // }, |
| | | close(){ |
| | | this.showDialog =false |
| | | this |
| | | } |
| | | }, |
| | | }; |