| | |
| | | <script lang="ts"> |
| | | import screenfull from 'screenfull'; |
| | | import { lineApi } from '/@/api/intelligentLine'; |
| | | import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick} from 'vue'; |
| | | import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick, onActivated} from 'vue'; |
| | | import {useRoute} from 'vue-router'; |
| | | import { storeToRefs } from 'pinia'; |
| | | import { initBackEndControlRoutes } from '/@/router/backEnd'; |
| | |
| | | state.id = curId.toString() |
| | | getLine(state.id) |
| | | getUrl(state.id) |
| | | onScreenfullClick(); |
| | | }); |
| | | onActivated(()=>{ |
| | | onScreenfullClick(); |
| | | }) |
| | | |
| | | const dataList = computed(() => { |
| | | return userInfos.value.dataList; |
| | |
| | | const getLine = async (id:string) => { |
| | | let res = await lineApi().getLine({ id: id }); |
| | | if (res.data.code === '200') { |
| | | userInfos.value.dataList = res.data.data; |
| | | userInfos.value.dataList = res.data.data |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | return false; |
| | | } |
| | | screenfull.toggle(element); |
| | | console.log(111111111111111) |
| | | }; |
| | | |
| | | // 返回 |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | justify-content: left; |
| | | align-items: flex-start; |
| | | overflow-y: hidden; |
| | | overflow-x: hidden; |
| | | overflow: auto; |
| | | &::-webkit-scrollbar { width: 0; height: 0; color: transparent; } |
| | | &::scrollbar { width: 0; height: 0; color: transparent; } |
| | | } |
| | | |
| | | .line-map { |