无人机管理后台前端(已迁走)
张含笑
2025-08-14 a0de35930e6eb6ba7d91ed7c0ae72a95be1f1f0a
Merge branch 'refs/heads/feature/v5.0/5.0.2' into feature/v5.0/5.0.3
3 files modified
27 ■■■■ changed files
src/components/CreateQRcode/CreateQRcode.vue 6 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue 3 ●●●●● patch | view | raw | blame | history
src/views/wel/index.vue 18 ●●●●● patch | view | raw | blame | history
src/components/CreateQRcode/CreateQRcode.vue
@@ -4,6 +4,7 @@
</template>
<script setup>
import { wgs84ToGcj02 } from '@/utils/coordinateTransformation';
import QRCode from 'qrcodejs2-fix'
const props = defineProps(['latAndLon'])
@@ -11,8 +12,7 @@
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 = ''
@@ -21,7 +21,7 @@
    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(
src/views/tickets/ticket.vue
@@ -884,7 +884,6 @@
</template>
<script>
import { getSmallImg, getShowImg } from '@/utils/util';
import { ElMessageBox, ElLoading } from 'element-plus';
import { calculateDefaultRange } from '@/utils/util';
@@ -1438,8 +1437,6 @@
    },
    async handleQRCode (val){
    val.showQR = !val.showQR
console.log('this.currentDetailvvvvv',val);
    },
    async loadAMapScripts() {
      try {
src/views/wel/index.vue
@@ -1,26 +1,26 @@
<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>
@@ -53,6 +53,7 @@
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({
@@ -68,7 +69,7 @@
  dateSelect.value = item
}
const refresh = () => {
  params.value.date_enum = 'CURRENT_YEAR'
@@ -89,8 +90,9 @@
  getJobEventTotal().then(res => {
    eventTotal.value = res?.data?.data || 0
  })
  setTimeout(() => {
    display.value = true
  },100)
})
</script>
@@ -194,7 +196,7 @@
        .centerLeft {
          width: 50%;
        }
        .centerRight {