| | |
| | | /> |
| | | <el-table-column |
| | | :label="$t('common.operate')" |
| | | width="150" |
| | | width="200" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | type="warning" |
| | | plain |
| | | >{{ $t('common.update') }}</el-button> |
| | | <el-button |
| | | size="small" |
| | | v-show="scope.row.status != 0" |
| | | plain |
| | | @click="setScopePreview(scope.row)" |
| | | >{{ $t('common.preview') }}</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </span> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 地址预览 --> |
| | | <el-dialog |
| | | :title="$t('common.preview')" |
| | | :class="isFullscreen ? '' : 'dialogClass_his'" |
| | | custom-class="handleDialogClass" |
| | | width="73.4%" |
| | | :fullscreen="isFullscreen" |
| | | v-if="prevDialog" |
| | | :visible.sync="prevDialog" |
| | | :show-close="false" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | > |
| | | <dialog-header |
| | | slot="title" |
| | | :dialog-tittle="$t('common.preview')" |
| | | :fullscreen="isFullscreen" |
| | | @handle-closed="handleClose" |
| | | @is-fullscreen="onFullscreen" |
| | | ></dialog-header> |
| | | <div :class="{'fullscreen1':isFullscreen}"> |
| | | <mapview v-if="showMapView"></mapview> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import MyBread from "../../components/MyBread.vue"; |
| | | import dialogHeader from './dialogHeader.vue' |
| | | import server from '../../components/js/server.js' |
| | | import { |
| | | getPerms, |
| | | select_Res_ByPageAndCount, |
| | |
| | | import { serve_type, data_type, category_type } from './js/layerManage.js' |
| | | import { json } from "body-parser"; |
| | | import { flatten } from '@turf/turf'; |
| | | |
| | | import mapview from '../../components/MapView/moonMap.vue' |
| | | export default { |
| | | name: "catalogueManage", |
| | | components: { |
| | | MyBread, |
| | | MyBread, mapview, 'dialog-header': dialogHeader, |
| | | }, |
| | | data() { |
| | | |
| | |
| | | categoryType: [], |
| | | insertDisabled: false, |
| | | editDisabled: false, |
| | | isFullscreen: false, |
| | | prevDialog: false, |
| | | showMapView: false, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | window.removeEventListener("resize", this.onResize); |
| | | }, |
| | | methods: { |
| | | //是否为全屏函数 |
| | | onFullscreen(fullscreen) { |
| | | this.isFullscreen = fullscreen; |
| | | }, |
| | | //预览弹窗关闭 |
| | | handleClose() { |
| | | this.prevDialog = false |
| | | this.showMapView = false; |
| | | |
| | | }, |
| | | async setEditConfirm() { |
| | | const data = await res_update(this.editData); |
| | | if (data.code == 200) { |
| | |
| | | this.editData.data = parseInt(this.editData.data) |
| | | } |
| | | this.editDialog = true |
| | | }, |
| | | setScopePreview(row) { |
| | | this.prevDialog = true; |
| | | this.showMapView = true; |
| | | setTimeout(() => { |
| | | server.addLayer(row) |
| | | }, 1000); |
| | | }, |
| | | formatProxy(row, column) { |
| | | var token = getToken() |
| | |
| | | } |
| | | } |
| | | } |
| | | .fullscreen1 { |
| | | width: 100%; |
| | | height: 94vh; |
| | | } |
| | | /deep/ .el-input__suffix { |
| | | top: 50%; |
| | | transform: translateY(-50%); |
| | |
| | | .insertWidth { |
| | | width: calc(100% - 200px); |
| | | } |
| | | /deep/.el-dialog__body { |
| | | padding: 10px !important; |
| | | } |
| | | /deep/.el-dialog__header { |
| | | padding: 10px !important; |
| | | } |
| | | </style> |
| | | <style > |
| | | .el-message-box { |