| | |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button icon="el-icon-view" :size="scope.size" :type="scope.type" @click="handleDetail(scope.row)">详 情</el-button> |
| | | <el-button icon="el-icon-edit" :size="scope.size" :type="scope.type" @click="$refs.crud.rowEdit(scope.row)">编 辑</el-button> |
| | | <el-button icon="el-icon-delete" :size="scope.size" :type="scope.type" @click="$refs.crud.rowDel(scope.row)">删 除</el-button> |
| | | <el-button |
| | | type="text" |
| | | icon="el-icon-circle-plus-outline" |
| | |
| | | <el-tag>{{row.deptCategoryName}}</el-tag> |
| | | </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> |
| | | |
| | |
| | | getDept, |
| | | getDeptTree |
| | | } from "@/api/system/dept"; |
| | | import {getDetail} from "@/api/deptPosition/deptPosition" |
| | | import {mapGetters} from "vuex"; |
| | | import website from '@/config/website'; |
| | | import MapBox from "@/components/map/mapBox"; |
| | | |
| | | export default { |
| | | components: {MapBox}, |
| | | data() { |
| | | return { |
| | | form: {}, |
| | |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | viewBtn: false, |
| | | delBtn: false, |
| | | editBtn: false, |
| | | menuWidth: 300, |
| | | dialogClickModal: false, |
| | | column: [ |
| | |
| | | } |
| | | ] |
| | | }, |
| | | data: [] |
| | | data: [], |
| | | isDetail:false, |
| | | routeRange:"", |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | //显示地图详情 |
| | | handleDetail(row){ |
| | | this.getPositionDetail(row) |
| | | }, |
| | | getPositionDetail(row){ |
| | | getDetail(null,row.id).then(res=>{ |
| | | if (res.data.code == 200){ |
| | | this.routeRange = res.data.data.position |
| | | this.isDetail = true |
| | | } |
| | | }) |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.parentId = 0; |