| | |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row,index}" slot="menu"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-view" |
| | | @click="handleDetail(row)">详情 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-drawer |
| | | title="地图详情" |
| | | :visible.sync="isDetail" |
| | | :append-to-body="true" |
| | | size="60%" |
| | | direction="rtl" |
| | | :before-close="handleClose"> |
| | | <map-box v-if="isDetail" :is-detail="isDetail" :route-range="routeRange"></map-box> |
| | | </el-drawer> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getPage, getDetails, add, update, remove} from "@/api/securityManage/securityManage"; |
| | | import {mapGetters} from "vuex"; |
| | | import MapBox from "@/components/map/mapBox"; |
| | | |
| | | export default { |
| | | components: {MapBox}, |
| | | data() { |
| | | return { |
| | | form: {}, |
| | |
| | | }, |
| | | ] |
| | | }, |
| | | data: [] |
| | | data: [], |
| | | isDetail:false, |
| | | routeRange:"", |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | this.$refs.crud.toggleSelection(); |
| | | }); |
| | | }, |
| | | handleDetail(row){ |
| | | this.routeRange = row.position |
| | | this.isDetail = true |
| | | }, |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getDetails(this.form.id).then(res => { |