Merge branch 'refs/heads/feature/v5.0/5.0.2' into feature/v5.0/5.0.3
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { wgs84ToGcj02 } from '@/utils/coordinateTransformation'; |
| | | import QRCode from 'qrcodejs2-fix' |
| | | const props = defineProps(['latAndLon']) |
| | | |
| | |
| | | let qrCodeInstance = null |
| | | |
| | | const createQRcode = content => { |
| | | console.log('this.currentDetail.content',content); |
| | | |
| | | const transformed = wgs84ToGcj02(content[0], content[1]) |
| | | if (!content) return |
| | | if (qrCodeInstance) { |
| | | myQrCode.value.innerHTML = '' |
| | |
| | | qrCodeInstance = new QRCode(myQrCode.value, { |
| | | width: 92, |
| | | height: 91, |
| | | text: `https://uri.amap.com/marker?position=${content}&name=%E4%BA%8B%E4%BB%B6%E7%82%B9`, |
| | | text: `https://uri.amap.com/marker?position=${transformed}&name=%E4%BA%8B%E4%BB%B6%E7%82%B9`, |
| | | }) |
| | | } |
| | | watch( |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { getSmallImg, getShowImg } from '@/utils/util'; |
| | | import { ElMessageBox, ElLoading } from 'element-plus'; |
| | | import { calculateDefaultRange } from '@/utils/util'; |
| | |
| | | }, |
| | | async handleQRCode (val){ |
| | | val.showQR = !val.showQR |
| | | console.log('this.currentDetailvvvvv',val); |
| | | |
| | | }, |
| | | async loadAMapScripts() { |
| | | try { |
| | |
| | | <template> |
| | | <wel-container> |
| | | <div class="workbench"> |
| | | <div class="workbench" v-if="display"> |
| | | <div class="workleft"> |
| | | <!-- 设备统计 --> |
| | | <statistics></statistics> |
| | | <!-- 综合统计分析 --> |
| | | <div class="comprehensiveCon"> |
| | | <div class="comprehensive"> |
| | | |
| | | |
| | | <div class="center"> |
| | | <div class="centerLeft"> |
| | | <!-- 工单统计 --> |
| | | <proportionStatic></proportionStatic> |
| | | <!-- 飞行统计 --> |
| | | <flightStatistics></flightStatistics> |
| | | |
| | | |
| | | </div> |
| | | <div class="centerRight"> |
| | | <!-- 机巢工单数量排名(件) --> |
| | | <flyratio></flyratio> |
| | | <!-- 任务成果 --> |
| | | <taskOutcome></taskOutcome> |
| | | <taskOutcome></taskOutcome> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import statistics from './components/statistics.vue' |
| | | import { ElMessage } from 'element-plus' |
| | | let checked = ref('CURRENT_YEAR') |
| | | const display = ref(false) |
| | | let timeListStr = ['本周', '本月', '本年'] |
| | | let timeListEnum = ['CURRENT_WEEK', 'CURRENT_MONTH', 'CURRENT_YEAR'] |
| | | const params = ref({ |
| | |
| | | dateSelect.value = item |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | const refresh = () => { |
| | | params.value.date_enum = 'CURRENT_YEAR' |
| | |
| | | getJobEventTotal().then(res => { |
| | | eventTotal.value = res?.data?.data || 0 |
| | | }) |
| | | |
| | | |
| | | setTimeout(() => { |
| | | display.value = true |
| | | },100) |
| | | }) |
| | | </script> |
| | | |
| | |
| | | .centerLeft { |
| | | width: 50%; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | .centerRight { |