无人机管理后台前端(已迁走)
chenyao
2025-09-01 c06cb61f67a4d8d6d4a42bb1dcf72198ace0f8a7
Merge remote-tracking branch 'origin/feature/v5.0/5.0.5' into feature/v5.0/5.0.5
13 files modified
1 files added
1287 ■■■■ changed files
src/assets/images/dataCenter/qrCode.svg 12 ●●●● patch | view | raw | blame | history
src/assets/images/dataCenter/qrCode1.svg 17 ●●●●● patch | view | raw | blame | history
src/components/map-container/mapContainer.vue 12 ●●●● patch | view | raw | blame | history
src/hooks/useRouteLine/useRouteLine.js 11 ●●●● patch | view | raw | blame | history
src/page/index/tags.vue 8 ●●●● patch | view | raw | blame | history
src/utils/cesium/mapUtil.js 7 ●●●● patch | view | raw | blame | history
src/views/dataCenter/components/dataCenterMap.vue 1 ●●●● patch | view | raw | blame | history
src/views/dataCenter/dataCenter.vue 51 ●●●● patch | view | raw | blame | history
src/views/device/airport.vue 2 ●●●●● patch | view | raw | blame | history
src/views/odm/task.vue 285 ●●●●● patch | view | raw | blame | history
src/views/system/userinfo.vue 14 ●●●●● patch | view | raw | blame | history
src/views/tickets/orderLog.vue 2 ●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue 845 ●●●● patch | view | raw | blame | history
src/views/wel/components/calendarBox.vue 20 ●●●● patch | view | raw | blame | history
src/assets/images/dataCenter/qrCode.svg
@@ -1,16 +1,16 @@
<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1321315688">
<g id="Frame" clip-path="url(#clip0_1238_1817)">
<g id="Frame_2" clip-path="url(#clip1_1238_1817)">
<path id="Vector" d="M4.83697 10.163H3.10692V8.43298H1.37593V11.029H3.10692V11.894H4.83697V11.029H6.56795V8.43298H4.83697V10.163ZM12.625 8.43298H7.43298V13.625H12.625V8.43298ZM10.894 10.164V11.8949H9.16303V10.163L10.894 10.164ZM12.625 2.375H7.43298V7.56982H12.625V2.375ZM10.894 4.10598V5.83697H9.16303V4.10598H10.894ZM6.56702 2.375H1.375V7.56982H6.56795L6.56702 2.375ZM4.83604 4.10598V5.83697H3.10692V4.10598H4.83604ZM3.10692 11.894H1.37593V13.625H3.10692V11.894ZM6.56795 11.894H4.83697V13.625H6.56795V11.894Z" fill="#212121"/>
<g id="Group 1321316147">
<g id="Frame" clip-path="url(#clip0_1360_1927)">
<g id="Frame_2" clip-path="url(#clip1_1360_1927)">
<path id="Vector" d="M4.83697 10.163H3.10692V8.43298H1.37593V11.029H3.10692V11.894H4.83697V11.029H6.56795V8.43298H4.83697V10.163ZM12.625 8.43298H7.43298V13.625H12.625V8.43298ZM10.894 10.164V11.8949H9.16303V10.163L10.894 10.164ZM12.625 2.375H7.43298V7.56982H12.625V2.375ZM10.894 4.10598V5.83697H9.16303V4.10598H10.894ZM6.56702 2.375H1.375V7.56982H6.56795L6.56702 2.375ZM4.83604 4.10598V5.83697H3.10692V4.10598H4.83604ZM3.10692 11.894H1.37593V13.625H3.10692V11.894ZM6.56795 11.894H4.83697V13.625H6.56795V11.894Z" fill="#1B94FF"/>
</g>
</g>
</g>
<defs>
<clipPath id="clip0_1238_1817">
<clipPath id="clip0_1360_1927">
<rect width="11" height="11" fill="white" transform="translate(1.5 2.13086)"/>
</clipPath>
<clipPath id="clip1_1238_1817">
<clipPath id="clip1_1360_1927">
<rect width="12" height="12" fill="white" transform="matrix(-1 0 0 1 13 2)"/>
</clipPath>
</defs>
src/assets/images/dataCenter/qrCode1.svg
New file
@@ -0,0 +1,17 @@
<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1321315688">
<g id="Frame" clip-path="url(#clip0_1238_1817)">
<g id="Frame_2" clip-path="url(#clip1_1238_1817)">
<path id="Vector" d="M4.83697 10.163H3.10692V8.43298H1.37593V11.029H3.10692V11.894H4.83697V11.029H6.56795V8.43298H4.83697V10.163ZM12.625 8.43298H7.43298V13.625H12.625V8.43298ZM10.894 10.164V11.8949H9.16303V10.163L10.894 10.164ZM12.625 2.375H7.43298V7.56982H12.625V2.375ZM10.894 4.10598V5.83697H9.16303V4.10598H10.894ZM6.56702 2.375H1.375V7.56982H6.56795L6.56702 2.375ZM4.83604 4.10598V5.83697H3.10692V4.10598H4.83604ZM3.10692 11.894H1.37593V13.625H3.10692V11.894ZM6.56795 11.894H4.83697V13.625H6.56795V11.894Z" fill="#212121"/>
</g>
</g>
</g>
<defs>
<clipPath id="clip0_1238_1817">
<rect width="11" height="11" fill="white" transform="translate(1.5 2.13086)"/>
</clipPath>
<clipPath id="clip1_1238_1817">
<rect width="12" height="12" fill="white" transform="matrix(-1 0 0 1 13 2)"/>
</clipPath>
</defs>
</svg>
src/components/map-container/mapContainer.vue
@@ -4,9 +4,9 @@
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2025-04-28 11:34:40
 * @FilePath: \drone-web-manage\src\components\map-container\mapContainer.vue
 * @Description:
 *
 * Copyright (c) 2024 by shuishen, All Rights Reserved.
 * @Description:
 *
 * Copyright (c) 2024 by shuishen, All Rights Reserved.
-->
<template>
    <div class="map-container">
@@ -59,7 +59,7 @@
async function initMap () {
    if (viewer) return
    publicCesiumInstance = new PublicCesium({ dom: 'viewer-container' })
    publicCesiumInstance = new PublicCesium({ dom: 'viewer-container',layerMode: 4 })
    viewer = publicCesiumInstance.getViewer()
    initViewer(viewer)
@@ -105,7 +105,7 @@
    // 定位到点位
    const points = [[lng, lat]]  // 确保格式为二维数组
    flyVisual(points, viewer, 4)
    flyVisual({ positionsData:points, viewer,multiple: 10 })
}
/**
@@ -160,4 +160,4 @@
    width: 100%;
    height: 100%;
}
</style>
</style>
src/hooks/useRouteLine/useRouteLine.js
@@ -191,12 +191,11 @@
                height: 50,
            },
        })
        flyVisual(
            pointList.map(i => [Number(i.longitude), Number(i.latitude), Number(i.height)]),
        flyVisual({
            positionsData:pointList.map(i => [Number(i.longitude), Number(i.latitude), Number(i.height)]),
            viewer,
            20
        )
            multiple: 20
        })
    }
    function removePreviewLine () {
@@ -232,4 +231,4 @@
        removePreviewLine,
        resetCurRouteLineData
    }
}
}
src/page/index/tags.vue
@@ -2,26 +2,26 @@
  <div class="avue-tags" v-if="setting.tag" @click="contextmenuFlag = false">
    <!-- tag盒子 -->
    <div v-if="contextmenuFlag" class="avue-tags__contentmenu"
      :style="{ left: contentmenuX + 'px', top: contentmenuY + 'px' }">
         :style="{ left: contentmenuX + 'px', top: contentmenuY + 'px' }">
      <div class="item" @click="closeOthersTags">{{ $t('tagsView.closeOthers') }}</div>
      <div class="item" @click="closeAllTags">{{ $t('tagsView.closeAll') }}</div>
      <div class="item" @click="clearCacheTags">{{ $t('tagsView.clearCache') }}</div>
    </div>
    <div class="avue-tags__box">
      <el-tabs v-model="active" type="card" @contextmenu="handleContextmenu" :closable="tagLen !== 1"
        @tab-click="openTag" @edit="menuTag">
               @tab-click="openTag" @edit="menuTag">
        <el-tab-pane v-for="(item, index) in bsTagList" :key="index" :label="generateTitle(item)" :name="item.fullPath">
          <template #label>
            <span>
              {{ generateTitle(item) }}
              <i class="el-icon-refresh" :class="{ turn: refresh }" @click="handleRefresh"
                v-if="active === item.fullPath"></i>
                 v-if="active === item.fullPath"></i>
            </span>
          </template>
        </el-tab-pane>
      </el-tabs>
      <el-dropdown class="avue-tags__menu">
        <el-button type="primary">
        <el-button type="primary" style="background: #409eff;border-color: #409eff">
          {{ $t('tagsView.menu') }}
          <i class="el-icon-arrow-down el-icon--right"></i>
        </el-button>
src/utils/cesium/mapUtil.js
@@ -409,6 +409,11 @@
export function flyVisual({ positionsData, viewer, multiple = 4, pitch = -90 }) {
    if (!Array.isArray(positionsData) || positionsData.length === 0) return
    // 如果是一个点,加两个点方便后续生成外包围盒
    if (positionsData.length === 1){
        const [lon,lat,height] = positionsData[0]
        positionsData = [[lon+0.001,lat+0.001,height],[lon-0.001,lat-0.001,height],[lon,lat,height]]
    }
    const positions = positionsData.map(([lon, lat, height]) =>
        Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), Number(height || 0))
    )
@@ -434,7 +439,7 @@
            range: boundingSphere.radius * multiple,
        },
        complete: () => {
            // 飞行完成后检查相机高度是否小于最高点
            // 飞行完成后检查相机高度是否小于最高点,如果小于直接飞到最高点
            const cameraHeight = Cesium.Cartographic.fromCartesian(viewer.camera.position).height
            if (cameraHeight < maxHeight) {
                viewer.camera.flyTo({
src/views/dataCenter/components/dataCenterMap.vue
@@ -202,6 +202,7 @@
      flatMode: false,
      terrain: false,
      mapFilter: true,
      layerMode: 4
    });
    viewer = publicCesiumInstance.getViewer();
    viewerRef.value = viewer;
src/views/dataCenter/dataCenter.vue
@@ -13,15 +13,16 @@
        @handleswitchFolders="handleswitchFolders"
        @handleBack ="handleBack"
       :viewDetails ="viewDetails"
      ></searchData>
      <!-- 文件夹 -->
      <div v-if="switchFolders" class="dataTable">
            <el-table
         class="custom-header custom-body"
          v-loading="loadings"
          element-loading-text=""
          :data="folderList"
          :data="folderList"
            @selection-change="foldersSelectionChange"
        >
          <el-table-column type="selection" width="55" />
@@ -34,17 +35,17 @@
              }}
            </template>
          </el-table-column>
          <el-table-column property="name" label="任务名称" show-overflow-tooltip />
          <el-table-column property="recordName" label="任务名称" show-overflow-tooltip />
           <el-table-column property="regionName" label="所属区域">
             <template #default="scope">
              <span>{{scope.row.city_name ? scope.row.city_name :'--'}},{{scope.row.area_name ? scope.row.area_name :'--'}}</span>
            </template>
            </el-table-column>
            </el-table-column>
          <el-table-column property="nickname" label="所属机巢" >
             <template #default="scope">
              <span>{{scope.row.nickname ? scope.row.nickname :'--'}}</span>
            </template>
            </el-table-column>
            </el-table-column>
          <el-table-column label="操作" align="center">
            <template #default="scope">
              <el-button icon="el-icon-view" type="text" @click="foldersOpen(scope.row)"
@@ -56,7 +57,8 @@
      </div>
      <!-- 表格部分 -->
      <div class="dataTable" v-else>
        <el-table
        <el-table
        border
          v-loading="loadings"
          element-loading-text=""
          :data="tableData"
@@ -481,7 +483,7 @@
      console.error('获取数据失败:', error);
    })
    .finally(() => {
      loadings.value = false;
      loadings.value = false;
    });
};
@@ -495,10 +497,10 @@
    getJobIdsBySnApi(apiParams)
        .then(res => {
    folderList.value = res.data.data.records.map(i => ({ ...i, checked: false }))
    total.value = res.data.data.total
    total.value = res.data.data.total
        })
        .finally(() => {
          loadings.value = false;
          loadings.value = false;
        })
}
const searchjobId = ref('')
@@ -516,7 +518,7 @@
  if (switchFolders.value) {
    getFolderList();
  } else {
    getaiImagesPage();
    getaiImagesPage();
  }
};
// 切换文件夹
@@ -525,9 +527,9 @@
     switchFolders.value = !switchFolders.value;
     jobListParams.current = 1;
     FolderListParams.page = 1;
     searchBoxRef.value?.handleReset();
      fetchData();
      fetchData();
   };
   const handleBack =()=>{
    searchjobId.value = ''
@@ -535,17 +537,17 @@
    viewDetails.value = false
    jobListParams.current = 1;
    FolderListParams.page = 1;
     fetchData();
     fetchData();
   }
   const searchBoxRef = ref(null);
// 查询
const searchClick = params => {
  if(switchFolders.value){
    FolderListParams.page = 1;
    FolderListParams.page_size = 10;
    FolderListParams.startTime = params?.startTime?.slice(0, 10);
    FolderListParams.startTime = params?.startTime?.slice(0, 10);
    FolderListParams.endTime = params?.endTime?.slice(0, 10);
    FolderListParams.waylineName=params?.jobName,
   FolderListParams.dockSn = params?.deviceSn
@@ -555,17 +557,17 @@
     jobListParams.current = 1;
      jobListParams.size = 10;
      jobListParams.searchParams = {
      ...jobListParams.searchParams,
      ...params
      ...jobListParams.searchParams,
      ...params
    };
    getaiImagesPage()
  }
};
const handleSizeChange = (val) => {
  if (switchFolders.value) {
    FolderListParams.page_size = val;
    FolderListParams.page_size = val;
  } else {
    jobListParams.size = val;
    jobListParams.size = val;
  }
  fetchData();
};
@@ -592,7 +594,7 @@
 folderList.value.forEach(item => {
    item.checked = val.some(foldersselected => foldersselected.id === item.id);
  });
  foldersSelectedRows.value = val;
  foldersSelectedRows.value = val;
}
// 删除
const deleteDetail = val => {
@@ -769,6 +771,7 @@
    flatMode: false,
    terrain: false,
    mapFilter: true,
    layerMode: 4
  });
  viewer = viewInstance.value.getViewer();
  viewerRef.value = viewer;
@@ -948,7 +951,7 @@
                img {
                    width: 111px;
                    height: 111px;
                }
                .el-checkbox {
@@ -972,7 +975,7 @@
                    font-size: 14px;
                    color: #ffffff;
                    line-height: 23px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
@@ -1153,4 +1156,4 @@
    }
  }
}
</style>
</style>
src/views/device/airport.vue
@@ -1464,6 +1464,8 @@
  display: flex;
  flex-direction: column;
  align-items: center;
  .el-tag:first-child{
  margin-bottom: 5px;}
}
.onlineStatus {
src/views/odm/task.vue
@@ -1,9 +1,26 @@
<template>
  <basic-container>
    <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" ref="crud" @row-del="rowDel"
      v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen"
      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
    <avue-crud
      :option="option"
      :table-loading="loading"
      :data="data"
      v-model:page="page"
      ref="crud"
      @row-del="rowDel"
      v-model="form"
      :permission="permissionList"
      @row-update="rowUpdate"
      @row-save="rowSave"
      :before-open="beforeOpen"
      :before-close="beforeClose"
      @search-change="searchChange"
      @search-reset="searchReset"
      @selection-change="selectionChange"
      @current-change="currentChange"
      @size-change="sizeChange"
      @refresh-change="refreshChange"
      @on-load="onLoad"
    >
      <template #menu-left>
        <!-- <el-button
          type="danger"
@@ -21,13 +38,21 @@
        {{ formatSeconds(row.processingTime) }}
      </template>
      <template #menu="scope">
        <el-button type="primary" text icon="el-icon-guide"
        <el-button
          type="primary"
          text
          icon="el-icon-guide"
          v-if="permission.odm_task_handle && scope.row.taskId == null"
          @click.stop="atHandle(scope.row, scope.index)">立即启动
          @click.stop="atHandle(scope.row, scope.index)"
          >立即启动
        </el-button>
        <el-button type="primary" text icon="el-icon-refresh-right"
        <el-button
          type="primary"
          text
          icon="el-icon-refresh-right"
          v-if="(permission.odm_task_handle && scope.row.status == 30) || scope.row.status == 50"
          @click.stop="restartHandle(scope.row, scope.index)">重新启动
          @click.stop="restartHandle(scope.row, scope.index)"
          >重新启动
        </el-button>
      </template>
    </avue-crud>
@@ -35,12 +60,12 @@
</template>
<script>
import { getList, remove, update, add, createOdmTask, restartOdmTask } from '@/api/odm/task'
import { tourStrategies } from 'element-plus'
import { mapGetters } from 'vuex'
import { getList, remove, update, add, createOdmTask, restartOdmTask } from '@/api/odm/task';
import { tourStrategies } from 'element-plus';
import { mapGetters } from 'vuex';
export default {
  data () {
  data() {
    return {
      form: {},
      query: {},
@@ -75,10 +100,11 @@
            label: '任务名称',
            prop: 'taskName',
            search: true,
            labelWidth: 130,
            searchSpan: 4,
            searchLabelWidth: 100,
            //labelWidth: 130,
            searchPlaceholder: "任务名称",
            searchPlaceholder: '任务名称',
            rules: [
              {
                required: true,
@@ -131,7 +157,7 @@
            searchLabelWidth: 100,
            //width: 100,
            labelWidth: 130,
            searchPlaceholder: "任务类型",
            searchPlaceholder: '任务类型',
            dicData: [
              {
                label: '航测',
@@ -142,15 +168,16 @@
                value: 4,
              },
            ],
              change: (value) => {
               this.searchChange({ ...this.query,waylineType:value.value}, () => {});
          }
            change: value => {
              this.searchChange({ ...this.query, waylineType: value.value }, () => {});
            },
          },
          {
            label: '机场名称',
            prop: 'airportName',
            searchSpan: 4,
            searchLabelWidth: 100,
            labelWidth: 130,
            //search: true,
          },
          {
@@ -178,7 +205,8 @@
            search: true,
            searchSpan: 4,
            searchLabelWidth: 100,
            searchPlaceholder: "任务状态",
            searchPlaceholder: '任务状态',
            labelWidth: 130,
            width: 90,
            dicData: [
              { label: '待启动', value: 0 },
@@ -188,9 +216,9 @@
              { label: '已完成', value: 40 },
              { label: '已取消', value: 50 },
            ],
            change: (value) => {
              this.searchChange({ ...this.query,status:value.value}, () => {});
            }
            change: value => {
              this.searchChange({ ...this.query, status: value.value }, () => {});
            },
          },
          {
@@ -207,181 +235,184 @@
          {
            label: '完成时间',
            prop: 'completedTime',
            type: "date",
            type: 'date',
            addDisplay: false,
            editDisplay: false,
            searchPlaceholder: "任务完成时间",
            searchPlaceholder: '任务完成时间',
            labelWidth: 130,
            search: true,
            searchSpan: 4,
            searchLabelWidth: 100,
            //valueFormat: 'YYYY-MM-DD',
            width: 160,
            change: (value) => {
             this.searchChange({ ...this.query,completedTime:value.value}, () => {});
            }
            change: value => {
              this.searchChange({ ...this.query, completedTime: value.value }, () => {});
            },
          },
        ],
      },
      data: [],
    }
      isClickSearch: true,
    };
  },
  computed: {
    ...mapGetters(['permission']),
    permissionList () {
    permissionList() {
      return {
        viewBtn: this.validData(this.permission.odm_task_view, true),
        delBtn: this.validData(this.permission.odm_task_delete, true),
        // editBtn: this.validData(this.permission.workspace_edit, true),
      }
      };
    },
    ids () {
      let ids = []
    ids() {
      let ids = [];
      this.selectionList.forEach(ele => {
        ids.push(ele.id)
      })
      return ids.join(',')
        ids.push(ele.id);
      });
      return ids.join(',');
    },
  },
  methods: {
    // 立即处理
    atHandle (row) {
    atHandle(row) {
      createOdmTask(row.waylineJobId, row.gsd).then(
        () => {
          this.onLoad(this.page)
          this.onLoad(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
          })
          done()
          });
          done();
        },
        error => {
          window.console.log(error)
          loading()
          window.console.log(error);
          loading();
        }
      )
      );
    },
    // 重启启动
    restartHandle (row) {
    restartHandle(row) {
      if (!row.taskName) {
        this.$message({
          type: 'error',
          message: '该航线任务已删除,无法进行重启启动!',
        })
        return
        });
        return;
      }
      restartOdmTask(row.taskId).then(
        () => {
          this.onLoad(this.page)
          this.onLoad(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
          })
          done()
          });
          done();
        },
        error => {
          window.console.log(error)
          loading()
          window.console.log(error);
          loading();
        }
      )
      );
    },
    // 时间格式化
    formatSeconds (value) {
    formatSeconds(value) {
      // 如果value不是数字或者小于0,则直接返回'00:00:00'
      if (isNaN(value) || value < 0) {
        return '00:00:00'
        return '00:00:00';
      }
      // 计算小时、分钟和秒
      let seconds = Math.floor(value / 1000)
      let minutes = Math.floor(seconds / 60)
      let hours = Math.floor(minutes / 60)
      let seconds = Math.floor(value / 1000);
      let minutes = Math.floor(seconds / 60);
      let hours = Math.floor(minutes / 60);
      // 格式化为两位数字的字符串
      seconds %= 60
      minutes %= 60
      seconds %= 60;
      minutes %= 60;
      const formattedTime = `${this.padZero(hours)}:${this.padZero(minutes)}:${this.padZero(
        seconds
      )}`
      )}`;
      // 返回格式化后的时间字符串
      return formattedTime
      return formattedTime;
    },
    // 函数用于在数字不足两位数时,在前面补零
    padZero (value) {
      return String(value).padStart(2, '0')
    padZero(value) {
      return String(value).padStart(2, '0');
    },
    rowSave (row, done, loading) {
    rowSave(row, done, loading) {
      add(row).then(
        () => {
          this.onLoad(this.page)
          this.onLoad(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
          })
          done()
          });
          done();
        },
        error => {
          window.console.log(error)
          loading()
          window.console.log(error);
          loading();
        }
      )
      );
    },
    rowUpdate (row, index, done, loading) {
    rowUpdate(row, index, done, loading) {
      update(row).then(
        () => {
          this.onLoad(this.page)
          this.onLoad(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
          })
          done()
          });
          done();
        },
        error => {
          window.console.log(error)
          loading()
          window.console.log(error);
          loading();
        }
      )
      );
    },
    rowDel (row) {
    rowDel(row) {
      this.$confirm('确定将选择数据删除?', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
        .then(() => {
          return remove(row.id)
          return remove(row.id);
        })
        .then(() => {
          this.onLoad(this.page)
          this.onLoad(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
          })
        })
          });
        });
    },
    searchReset () {
      this.query = {}
      this.onLoad(this.page)
    searchReset() {
      this.query = {};
      this.onLoad(this.page);
    },
    searchChange (params, done) {
      this.query = params
      this.page.currentPage = 1
      this.onLoad(this.page, params)
      done()
    searchChange(params, done) {
      if (!this.isClickSearch) return;
      this.query = params;
      this.page.currentPage = 1;
      this.onLoad(this.page, params);
      done();
    },
    selectionChange (list) {
      this.selectionList = list
    selectionChange(list) {
      this.selectionList = list;
    },
    selectionClear () {
      this.selectionList = []
      this.$refs.crud.toggleSelection()
    selectionClear() {
      this.selectionList = [];
      this.$refs.crud.toggleSelection();
    },
    handleDelete () {
    handleDelete() {
      if (this.selectionList.length === 0) {
        this.$message.warning('请选择至少一条数据')
        return
        this.$message.warning('请选择至少一条数据');
        return;
      }
      this.$confirm('确定将选择数据删除?', {
        confirmButtonText: '确定',
@@ -389,59 +420,69 @@
        type: 'warning',
      })
        .then(() => {
          return remove(this.ids)
          return remove(this.ids);
        })
        .then(() => {
          this.onLoad(this.page)
          this.onLoad(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
          })
          this.$refs.crud.toggleSelection()
        })
          });
          this.$refs.crud.toggleSelection();
        });
    },
    beforeOpen (done, type) {
    beforeOpen(done, type) {
      // if (['edit', 'view'].includes(type)) {
      //   getDetail(this.form.id).then(res => {
      //     this.form = res.data.data;
      //   });
      // }
      done()
      this.isClickSearch = false;
      done();
    },
    currentChange (currentPage) {
      this.page.currentPage = currentPage
    beforeClose(done, type) {
      this.isClickSearch = true;
      done();
    },
    sizeChange (pageSize) {
      this.page.pageSize = pageSize
    currentChange(currentPage) {
      this.page.currentPage = currentPage;
    },
    refreshChange () {
      this.onLoad(this.page, this.query)
    sizeChange(pageSize) {
      this.page.pageSize = pageSize;
    },
    onLoad (page, params = {}) {
      const { releaseTimeRange } = this.query
    refreshChange() {
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      const { releaseTimeRange } = this.query;
      let values = {
        ...params,
        ...this.query,
      }
      };
      if (releaseTimeRange) {
        values = {
          ...values,
          releaseTime_datege: releaseTimeRange[0],
          releaseTime_datelt: releaseTimeRange[1],
        }
        values.releaseTimeRange = null
        };
        values.releaseTimeRange = null;
      }
      this.loading = true
      this.loading = true;
      getList(page.currentPage, page.pageSize, values).then(res => {
        const data = res.data.data
        this.page.total = data.total
        this.data = data.records
        this.loading = false
        this.selectionClear()
      })
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        this.loading = false;
        this.selectionClear();
      });
    },
  },
}
};
</script>
<style scoped lang="scss"></style>
src/views/system/userinfo.vue
@@ -146,13 +146,15 @@
});
// 校验手机号
const validatePhone = () => {
  const phoneRegex = /^1[3-9]\d{9}$/;
  if (!phoneRegex.test(userInfo.value.phone)) {
    ElMessage.error('请输入正确的手机号码');
    return false;
  const phone = userInfo.value.phone
  if (!phone) return true
  const phoneRegex = /^1[3-9]\d{9}$/
  if (!phoneRegex.test(phone)) {
    ElMessage.error('请输入正确的手机号码')
    return false
  }
  return true;
};
  return true
}
// 校验邮箱
const validateEmail = () => {
    if (!userInfo.value.email) return true // 允许为空
src/views/tickets/orderLog.vue
@@ -566,7 +566,7 @@
        align: 'center',
        border: true,
        stripe: true,
        stripe: false,
        searchShow: true,
        searchBtnText: '搜索',
        searchMenuSpan: 6,
src/views/tickets/ticket.vue
@@ -137,10 +137,21 @@
          </div>
          <!-- 表格部分 -->
          <avue-crud class="ztzf-public-general-avue-crud" ref="avueCrud" v-model="tableData" :option="option"
            :data="tableData" v-model:page="page" @size-change="sizeChange" @current-change="handleCurrentChange"
            @refresh-change="refreshChange" :table-loading="loading" @selection-change="handleSelectionChange"
            :permission="permissionList" v-if="activeTab === tab.name">
          <avue-crud
            class="ztzf-public-general-avue-crud"
            ref="avueCrud"
            v-model="tableData"
            :option="option"
            :data="tableData"
            v-model:page="page"
            @size-change="sizeChange"
            @current-change="handleCurrentChange"
            @refresh-change="refreshChange"
            :table-loading="loading"
            @selection-change="handleSelectionChange"
            :permission="permissionList"
            v-if="activeTab === tab.name"
          >
            <template #orderNumber="{ row }">
              <el-tooltip-copy :content="row.orderNumber" :showCopyText="true" textAlign="left">
                {{ row.orderNumber }}
@@ -247,8 +258,12 @@
            </el-col>
            <el-col :span="12">
              <el-form-item label="工单类型" prop="type">
                <el-select  @change="handleTypeChange" v-model="form.type" placeholder="请选择工单类型" class="full-width" >
                <el-select
                  @change="handleTypeChange"
                  v-model="form.type"
                  placeholder="请选择工单类型"
                  class="full-width"
                >
                  <el-option
                    v-for="item in types"
                    :key="item.value"
@@ -400,20 +415,25 @@
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="danger" :loading="submitLoading" @click="submitForm">发布</el-button>
          <el-button type="infoprimary" plain :loading="draftLoading" @click="saveDraft"
            >存草稿</el-button
          >
          <el-button  @click="handleCancel">取 消</el-button>
          <el-button @click="handleCancel">取 消</el-button>
        </div>
      </template>
    </el-dialog>
    <!-- 工单详情对话框 -->
    <el-dialog   class="custom-dialog" align-center v-model="detailVisible" title="工单详情" width="80%"  append-to-body>
    <el-dialog
      class="custom-dialog"
      align-center
      v-model="detailVisible"
      title="工单详情"
      width="80%"
      append-to-body
    >
      <div class="detail-container">
        <div class="detail-top-title">
          <div class="event-title-center event-orderNumber">
@@ -456,205 +476,175 @@
          </el-steps>
        </div>
      <div class="PopUpTableScrolls">
        <div class="PopUpTableScrolls">
          <!-- 基本信息表格 -->
        <el-table :show-header="false" :data="formattedDetailFields" border class="tableCss">
          <el-table-column prop="label1" label="基本信息" width="150">
            <template #default="{ row }">
              <!-- 添加必填星号的标签 -->
              <span
                v-if="currentDetail.status === 0 &&(row.label1 === '关联算法' ||  row.label1 === '工单名称')"
                class="required-label"
              >
                <span class="required-star">*</span>{{ row.label1 }}
              </span>
              <span v-else>{{ row.label1 }}</span>
            </template>
          </el-table-column>
          <el-table-column>
            <template #default="{ row }">
              <template
                v-if="
                  currentDetail.status === 0 &&
                  row.label1 === '工单名称' &&
                  hasProcessingBtnPermission()
                "
              >
                <el-input
                  v-model="currentDetail.orderName"
                  placeholder="请输入工单名称"
                  class="required-input"
                />
              </template>
               <template
                v-else-if="
                  currentDetail.status === 0 &&
                  row.label1 === '关联算法' &&
                  hasProcessingBtnPermission()
                "
              >
                <el-select
                  v-model="currentDetail.aiType"
                  placeholder="请选择关联算法"
                  class="required-input"
          <el-table :show-header="false" :data="formattedDetailFields" border class="tableCss">
            <el-table-column prop="label1" label="基本信息" width="150">
              <template #default="{ row }">
                <!-- 添加必填星号的标签 -->
                <span
                  v-if="
                    currentDetail.status === 0 &&
                    (row.label1 === '关联算法' || row.label1 === '工单名称')
                  "
                  class="required-label"
                >
                  <el-option
                    v-for="item in algorithms2"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  <span class="required-star">*</span>{{ row.label1 }}
                </span>
                <span v-else>{{ row.label1 }}</span>
              </template>
            </el-table-column>
            <el-table-column>
              <template #default="{ row }">
                <template
                  v-if="
                    currentDetail.status === 0 &&
                    row.label1 === '工单名称' &&
                    hasProcessingBtnPermission()
                  "
                >
                  <el-input
                    v-model="currentDetail.orderName"
                    placeholder="请输入工单名称"
                    class="required-input"
                  />
                </el-select>
              </template>
              <template v-else>{{ row.value1 }}</template>
            </template>
          </el-table-column>
          <el-table-column prop="label2" label="基本信息" width="150">
            <template #default="{ row }">
              <!-- 添加必填星号的标签 -->
              <span
                v-if="
                  currentDetail.status === 0 &&
                   row.label2 === '工单内容'
                "
                class="required-label"
              >
                <span class="required-star">*</span>{{ row.label2 }}
              </span>
              <span v-else>{{ row.label2 }}</span>
            </template>
          </el-table-column>
          <el-table-column>
            <template #default="{ row }">
              <!-- 修改工单类型和工单内容的显示 -->
              <template
                v-if="
                  currentDetail.status === 0 &&
                  row.label2 === '工单内容' &&
                  hasProcessingBtnPermission()
                "
              >
                <el-input
                  type="textarea"
                  v-model="currentDetail.content"
                  placeholder="请输入工单内容"
                  class="required-input"
                />
              </template>
              <template v-else>{{ row.value2 }}</template>
            </template>
          </el-table-column>
        </el-table>
        <!-- 事件处理详情 -->
        <div v-if="[3, 4].includes(currentDetail.status)" class="form-section">
          <div class="section-title">
            <!-- 处理中状态显示必填星号 -->
            <template v-if="currentDetail.status === 3">
              <span class="required-label"> <span class="required-star">*</span>事件处理详情 </span>
            </template>
            <template v-else> 事件处理详情 </template>
          </div>
          <!-- 处理中状态显示输入框 -->
          <template v-if="currentDetail.status === 3 && hasProcessedAndOverBtnPermission()">
            <el-input
              type="textarea"
              v-model="currentDetail.processingDetail"
              placeholder="请输入事件处理详情"
              :rows="4"
              style="width: 100%; margin-bottom: 10px"
            />
          </template>
          <!-- 已完成和已完结状态显示只读文本 -->
          <template v-else>
            <div class="readonly-processing-detail">
              {{ currentDetail.processingDetail }}
            </div>
          </template>
        </div>
        <!-- 上传图片 -->
        <div v-if="[3].includes(currentDetail.status)" class="form-section uploadImg">
          <div class="section-title" v-if="hasProcessedAndOverBtnPermission()">
            <!-- 已完成状态显示必填星号 -->
            <template v-if="currentDetail.status === 3">
              <span class="required-label"> <span class="required-star">*</span>上传图片 </span>
            </template>
            <template v-else> 上传图片 </template>
          </div>
          <el-upload
            v-if="hasProcessedAndOverBtnPermission()"
            ref="upload"
            :action="'#'"
            :auto-upload="false"
            list-type="picture-card"
            :on-change="handleFileChange"
            :on-remove="handleUploadRemove"
            :before-upload="beforeUpload"
            :file-list="currentDetail.photos || []"
            :limit="1"
            accept="image/*"
            class="detail-upload"
          >
            <template v-if="!currentDetail.photos || currentDetail.photos.length < 1">
              <!-- <i class="el-icon-plus">+</i> -->
              <div class="el-icon-plus">
                <span>+</span>
              </div>
            </template>
          </el-upload>
          <div class="el-upload__tip" v-if="hasProcessedAndOverBtnPermission()">
            (上传照片即可完结工单,只能上传jpg、jpeg、png照片,且不超过5M)
          </div>
        </div>
        <!-- 图片和地图部分 -->
        <div class="media-section">
          <el-row :gutter="20">
            <el-col :span="12">
              <div class="media-box">
                <div class="media-title">事件图片</div>
                <div class="media-content">
                  <el-image
                    v-if="currentDetail.mediaUrl"
                    :src="getThumbUrl(currentDetail.mediaUrl)"
                    :preview-src-list="[getPreviewUrl(currentDetail.mediaUrl)]"
                    fit="contain"
                    style="width: 700px; height: 520px; cursor: pointer"
                </template>
                <template
                  v-else-if="
                    currentDetail.status === 0 &&
                    row.label1 === '关联算法' &&
                    hasProcessingBtnPermission()
                  "
                >
                  <el-select
                    v-model="currentDetail.aiType"
                    placeholder="请选择关联算法"
                    class="required-input"
                  >
                    <template #placeholder>
                      <div class="image-placeholder">
                        <i class="el-icon-picture-outline"></i>
                        <span>加载中...</span>
                      </div>
                    </template>
                    <template #error>
                      <div class="image-error">
                        <i class="el-icon-picture-outline"></i>
                        <span>加载失败</span>
                      </div>
                    </template>
                  </el-image>
                  <div v-else class="no-media">暂无图片/视频</div>
                </div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="media-box">
                <!-- 根据状态显示不同的标题和内容 -->
                    <el-option
                      v-for="item in algorithms2"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    />
                  </el-select>
                </template>
                <template v-else>{{ row.value1 }}</template>
              </template>
            </el-table-column>
            <el-table-column prop="label2" label="基本信息" width="150">
              <template #default="{ row }">
                <!-- 添加必填星号的标签 -->
                <template v-if="currentDetail.status === 4">
                  <div class="media-title">工单处理图片</div>
                <span
                  v-if="currentDetail.status === 0 && row.label2 === '工单内容'"
                  class="required-label"
                >
                  <span class="required-star">*</span>{{ row.label2 }}
                </span>
                <span v-else>{{ row.label2 }}</span>
              </template>
            </el-table-column>
            <el-table-column>
              <template #default="{ row }">
                <!-- 修改工单类型和工单内容的显示 -->
                <template
                  v-if="
                    currentDetail.status === 0 &&
                    row.label2 === '工单内容' &&
                    hasProcessingBtnPermission()
                  "
                >
                  <el-input
                    type="textarea"
                    v-model="currentDetail.content"
                    placeholder="请输入工单内容"
                    class="required-input"
                  />
                </template>
                <template v-else>{{ row.value2 }}</template>
              </template>
            </el-table-column>
          </el-table>
          <!-- 事件处理详情 -->
          <div v-if="[3, 4].includes(currentDetail.status)" class="form-section">
            <div class="section-title">
              <!-- 处理中状态显示必填星号 -->
              <template v-if="currentDetail.status === 3">
                <span class="required-label">
                  <span class="required-star">*</span>事件处理详情
                </span>
              </template>
              <template v-else> 事件处理详情 </template>
            </div>
            <!-- 处理中状态显示输入框 -->
            <template v-if="currentDetail.status === 3 && hasProcessedAndOverBtnPermission()">
              <el-input
                type="textarea"
                v-model="currentDetail.processingDetail"
                placeholder="请输入事件处理详情"
                :rows="4"
                style="width: 100%; margin-bottom: 10px"
              />
            </template>
            <!-- 已完成和已完结状态显示只读文本 -->
            <template v-else>
              <div class="readonly-processing-detail">
                {{ currentDetail.processingDetail }}
              </div>
            </template>
          </div>
          <!-- 上传图片 -->
          <div v-if="[3].includes(currentDetail.status)" class="form-section uploadImg">
            <div class="section-title" v-if="hasProcessedAndOverBtnPermission()">
              <!-- 已完成状态显示必填星号 -->
              <template v-if="currentDetail.status === 3">
                <span class="required-label"> <span class="required-star">*</span>上传图片 </span>
              </template>
              <template v-else> 上传图片 </template>
            </div>
            <el-upload
              v-if="hasProcessedAndOverBtnPermission()"
              ref="upload"
              :action="'#'"
              :auto-upload="false"
              list-type="picture-card"
              :on-change="handleFileChange"
              :on-remove="handleUploadRemove"
              :before-upload="beforeUpload"
              :file-list="currentDetail.photos || []"
              :limit="1"
              accept="image/*"
              class="detail-upload"
            >
              <template v-if="!currentDetail.photos || currentDetail.photos.length < 1">
                <!-- <i class="el-icon-plus">+</i> -->
                <div class="el-icon-plus">
                  <span>+</span>
                </div>
              </template>
            </el-upload>
            <div class="el-upload__tip" v-if="hasProcessedAndOverBtnPermission()">
              (上传照片即可完结工单,只能上传jpg、jpeg、png照片,且不超过5M)
            </div>
          </div>
          <!-- 图片和地图部分 -->
          <div class="media-section">
            <el-row :gutter="20">
              <el-col :span="12">
                <div class="media-box">
                  <div class="media-title">事件图片</div>
                  <div class="media-content">
                    <el-image
                      v-if="currentDetail.updatePhotoUrl"
                      :src="getThumbUrl(currentDetail.updatePhotoUrl)"
                      :preview-src-list="[getPreviewUrl(currentDetail.updatePhotoUrl)]"
                      fit="fill"
                      v-if="currentDetail.mediaUrl"
                      :src="getThumbUrl(currentDetail.mediaUrl)"
                      :preview-src-list="[getPreviewUrl(currentDetail.mediaUrl)]"
                      fit="contain"
                      style="width: 700px; height: 520px; cursor: pointer"
                    >
                      <template #placeholder>
                        <div class="image-placeholder">
@@ -669,110 +659,145 @@
                        </div>
                      </template>
                    </el-image>
                    <div v-else class="no-media">暂无处理图片</div>
                    <div v-else class="no-media">暂无图片/视频</div>
                  </div>
                </template>
                <template v-else>
                  <div class="media-title">地图标记事件点
                    <el-popover   v-if="currentDetail.status === 3 || currentDetail.status === 0"
                                popper-class="custom-qrcode-popover"
                                :width="120"
                                :visible="currentDetail.showQR && detailVisible"
                                placement="top"
                                title=""
                                trigger="click"
                </div>
              </el-col>
              <el-col :span="12">
                <div class="media-box">
                  <!-- 根据状态显示不同的标题和内容 -->
                            >
                                <template #reference>
                                    <img @click.stop="handleQRCode(currentDetail)"  class="QRCodeImg" src="@/assets/images/dataCenter/qrCode.svg" alt="" title="事件导航" />
                                </template>
                                <div class="qrcode-content">
                                    <CreateQRcode v-if="currentDetail.showQR && detailVisible" :latAndLon="currentDetail.location"></CreateQRcode>
                                </div>
                            </el-popover>
                  </div>
                  <div class="media-content">
                    <map-container v-if="detailVisible" ref="MapContainer"></map-container>
                  </div>
                </template>
              </div>
            </el-col>
          </el-row>
                  <template v-if="currentDetail.status === 4">
                    <div class="media-title">工单处理图片</div>
                    <div class="media-content">
                      <el-image
                        v-if="currentDetail.updatePhotoUrl"
                        :src="getThumbUrl(currentDetail.updatePhotoUrl)"
                        :preview-src-list="[getPreviewUrl(currentDetail.updatePhotoUrl)]"
                        fit="fill"
                      >
                        <template #placeholder>
                          <div class="image-placeholder">
                            <i class="el-icon-picture-outline"></i>
                            <span>加载中...</span>
                          </div>
                        </template>
                        <template #error>
                          <div class="image-error">
                            <i class="el-icon-picture-outline"></i>
                            <span>加载失败</span>
                          </div>
                        </template>
                      </el-image>
                      <div v-else class="no-media">暂无处理图片</div>
                    </div>
                  </template>
                  <template v-else>
                    <div class="media-title">
                      地图标记事件点
                      <el-popover
                        v-if="currentDetail.status === 3 || currentDetail.status === 0"
                        popper-class="custom-qrcode-popover"
                        :width="120"
                        :visible="currentDetail.showQR && detailVisible"
                        placement="top"
                        title=""
                        trigger="hover"
                      >
                        <template #reference>
                          <img
                           @mouseenter="currentDetail.showQR = true"
                           @mouseleave="currentDetail.showQR = false"
                            class="QRCodeImg"
                            src="@/assets/images/dataCenter/qrCode.svg"
                            alt=""
                            title="事件导航"
                          />
                        </template>
                        <div class="qrcode-content">
                          <CreateQRcode
                            v-if="currentDetail.showQR && detailVisible"
                            :latAndLon="currentDetail.location"
                          ></CreateQRcode>
                        </div>
                      </el-popover>
                    </div>
                    <div class="media-content">
                      <map-container v-if="detailVisible" ref="MapContainer"></map-container>
                    </div>
                  </template>
                </div>
              </el-col>
            </el-row>
          </div>
        </div>
      </div>
        <!-- 操作按钮 -->
        <div class="dialog-footer1">
            <div
                class="leftBtn"
                :class="currentIndex === 0 ? 'disableds' : ''"
                @click="leftClick"
          <div class="leftBtn" :class="currentIndex === 0 ? 'disableds' : ''" @click="leftClick">
            上一页
          </div>
          <div class="btngroups">
            <template v-if="currentDetail.status === 2">
              <!-- 待审核 -->
              <el-button
                v-if="hasReviewBtnPermission()"
                type="primary"
                :loading="approveLoading"
                @click="approveTicket"
                >通过</el-button
              >
               上一页
              </div>
       <div class="btngroups">
           <template v-if="currentDetail.status === 2">
            <!-- 待审核 -->
            <el-button
              v-if="hasReviewBtnPermission()"
              type="primary"
              :loading="approveLoading"
              @click="approveTicket"
              >通过</el-button
            >
            <el-button
              v-if="hasReviewBtnPermission()"
              type="danger"
              :loading="rejectLoading"
              @click="rejectTicket"
              >不通过</el-button
            >
            <el-button @click="detailVisible = false">取消</el-button>
          </template>
          <template v-else-if="currentDetail.status === 0">
            <el-button
              v-if="hasProcessingBtnPermission()"
              type="primary"
              :loading="dispatchLoading"
              @click="approveAndDispatch"
              >受理</el-button
            >
            <el-button
              v-if="hasProcessingBtnPermission()"
              type="danger"
              :loading="rejectLoading"
              @click="rejectTicket"
              >不受理</el-button
            >
            <el-button @click="detailVisible = false">取消</el-button>
          </template>
          <template v-if="currentDetail.status === 3">
            <!-- 处理中 -->
            <el-button
              v-if="hasProcessedAndOverBtnPermission()"
              type="primary"
              :loading="completeLoading"
              @click="completeTicket"
              >完成工单</el-button
            >
            <el-button @click="detailVisible = false">取消</el-button>
          </template>
          <template v-else-if="currentDetail.status === 4">
            <!-- 已完成 -->
            <!-- <el-button v-if="hasProcessedAndOverBtnPermission()" type="primary" :loading="finalizeLoading"
              <el-button
                v-if="hasReviewBtnPermission()"
                type="danger"
                :loading="rejectLoading"
                @click="rejectTicket"
                >不通过</el-button
              >
              <el-button @click="detailVisible = false">取消</el-button>
            </template>
            <template v-else-if="currentDetail.status === 0">
              <el-button
                v-if="hasProcessingBtnPermission()"
                type="primary"
                :loading="dispatchLoading"
                @click="approveAndDispatch"
                >受理</el-button
              >
              <el-button
                v-if="hasProcessingBtnPermission()"
                type="danger"
                :loading="rejectLoading"
                @click="rejectTicket"
                >不受理</el-button
              >
              <el-button @click="detailVisible = false">取消</el-button>
            </template>
            <template v-if="currentDetail.status === 3">
              <!-- 处理中 -->
              <el-button
                v-if="hasProcessedAndOverBtnPermission()"
                type="primary"
                :loading="completeLoading"
                @click="completeTicket"
                >完成工单</el-button
              >
              <el-button @click="detailVisible = false">取消</el-button>
            </template>
            <template v-else-if="currentDetail.status === 4">
              <!-- 已完成 -->
              <!-- <el-button v-if="hasProcessedAndOverBtnPermission()" type="primary" :loading="finalizeLoading"
              @click="finalizeTicket">完结工单</el-button> -->
            <el-button @click="detailVisible = false">取消</el-button>
          </template>
       </div>
            <div
                :class="currentIndex === tableData.length - 1 ? 'disableds' : ''"
                class="leftBtn"
                @click="rightClick"
              >
              下一页
              </div>
              <el-button @click="detailVisible = false">取消</el-button>
            </template>
          </div>
          <div
            :class="currentIndex === tableData.length - 1 ? 'disableds' : ''"
            class="leftBtn"
            @click="rightClick"
          >
            下一页
          </div>
        </div>
      </div>
    </el-dialog>
@@ -787,7 +812,6 @@
      <el-form :model="dispatchForm" :rules="dispatchRules" ref="dispatchForm" label-width="100px">
        <el-form-item label="选择部门" prop="department">
          <el-select
            v-model="dispatchForm.department"
            placeholder="请选择部门"
            @change="handleDispatchDepartmentChange"
@@ -802,7 +826,7 @@
        </el-form-item>
        <el-form-item label="选择处理人" prop="handler">
          <el-select
          filterable
            filterable
            v-model="dispatchForm.handler"
            placeholder="请选择处理人"
            :disabled="!dispatchForm.department"
@@ -933,23 +957,23 @@
  getStepInfo,
  getReviewById,
  getCreateEventJob,
} from '@/api/tickets/ticket'
import { getSFDictionaryTree  } from '@/api/job/task';
import { export_json_to_excel } from '@/utils/exportExcel'
import geoJson from '@/assets/geoJson.json'
import { mapGetters } from 'vuex'
import { getAdcodeObj } from '@/utils/disposeData'
import elTooltipCopy from '@/components/ElTooltipCopy.vue'
import getBaseConfig from '@/buildConfig/config'
import CreateQRcode from '@/components/CreateQRcode/CreateQRcode.vue'
const { envName } = getBaseConfig()
function regExp (label, name) {
  var reg = new RegExp(label + '=([^&]*)(&|$)', 'g')
  return name.match(reg)[0].split('=')[1]
} from '@/api/tickets/ticket';
import { getSFDictionaryTree } from '@/api/job/task';
import { export_json_to_excel } from '@/utils/exportExcel';
import geoJson from '@/assets/geoJson.json';
import { mapGetters } from 'vuex';
import { getAdcodeObj } from '@/utils/disposeData';
import elTooltipCopy from '@/components/ElTooltipCopy.vue';
import getBaseConfig from '@/buildConfig/config';
import CreateQRcode from '@/components/CreateQRcode/CreateQRcode.vue';
const { envName } = getBaseConfig();
function regExp(label, name) {
  var reg = new RegExp(label + '=([^&]*)(&|$)', 'g');
  return name.match(reg)[0].split('=')[1];
}
export default {
  components: { elTooltipCopy,CreateQRcode },
  components: { elTooltipCopy, CreateQRcode },
  name: 'TicketPage',
  data() {
    return {
@@ -1005,7 +1029,7 @@
      tableData: [],
      option: {
        border: true,
        stripe: true,
        stripe: false,
        selection: true, // 添加多选功能
        index: true, // 保留序号功能
        indexLabel: '序号',
@@ -1049,7 +1073,7 @@
          { label: '处理人', prop: 'handler', width: 70 },
          {
            slot: true,
            hide: envName === 'jiangwu'? true : false,
            hide: envName === 'jiangwu' ? true : false,
            label: '复核状态',
            prop: 'isReview',
            width: 90,
@@ -1167,8 +1191,7 @@
  },
  mounted() {
    this.getAlgorithmList()
    this.getAlgorithmList();
    const href = this.$route.href;
    if (this.$route?.query?.status !== undefined && this.$route?.query?.status !== null) {
@@ -1215,10 +1238,9 @@
        this.filters.keyword = orderNumber;
        this.$nextTick(() => {
          this.isShowInfo = true;
          const find = this.$store.state.tags.bsTagList.find(i => i.path === '/tickets/ticket')
          find && (find.query = {})
          const find = this.$store.state.tags.bsTagList.find(i => i.path === '/tickets/ticket');
          find && (find.query = {});
        });
      }
    }
@@ -1340,12 +1362,12 @@
        { label: '任务发起人', value: this.currentDetail.creator },
        { label: '当前状态', value: this.mapStatus(this.currentDetail.status) },
        { label: '事件地址', value: this.currentDetail.address || this.currentDetail.latAndLon }, // 包含经纬度信息
        { label: '关联算法',
         value:
        {
          label: '关联算法',
          value:
            this.algorithms.find(t => t.value === this.currentDetail.aiType)?.label ||
            this.currentDetail.aiType ||
            '/',
        },
        { label: '发起单位', value: this.currentDetail.department },
        { label: '发起任务时间', value: this.currentDetail.startTime },
@@ -1366,7 +1388,6 @@
      }
      return formattedFields;
    },
    dynamicFixedStatuses() {
      // 直接使用接口返回的 stepInfos
@@ -1439,47 +1460,47 @@
  methods: {
    handleCheck(data, { checkedKeys, checkedNodes }) {
      this.checkedKeys = checkedKeys
      this.checkedKeys = checkedKeys;
      // 获取所有选中节点的 dictKey
      const selectedDictKeys = checkedNodes.map(node => node.dictKey).filter(Boolean)
      this.filters.type = selectedDictKeys
      const selectedDictKeys = checkedNodes.map(node => node.dictKey).filter(Boolean);
      this.filters.type = selectedDictKeys;
      this.fetchTableData();
    },
    // 算法
    getAlgorithmList() {
      getSFDictionaryTree({code:'SF'}).then((res) => {
          if (res.data.code === 200) {
              const result = res.data.data[0].children
              // 过滤第一层数据
              const filteredData = result.map(item => {
                  // 过滤第二层数据
                  const children = item.children?.map(child => ({
                      ...child,
                      children: [] // 清空第三层数据
                  }))
                  return {
                      ...item,
                      children: children || []
                  }
              })
              this.dataList = filteredData
          }
      })
      getSFDictionaryTree({ code: 'SF' }).then(res => {
        if (res.data.code === 200) {
          const result = res.data.data[0].children;
          // 过滤第一层数据
          const filteredData = result.map(item => {
            // 过滤第二层数据
            const children = item.children?.map(child => ({
              ...child,
              children: [], // 清空第三层数据
            }));
            return {
              ...item,
              children: children || [],
            };
          });
          this.dataList = filteredData;
        }
      });
    },
    handleSFNodeClick(data) {
      console.log(data.dictKey, '666666666')
      this.filters.type = ''
      this.filters.algorithm = ''
      this.filters.type = data.dictKey
      console.log(data.dictKey, '666666666');
      this.filters.type = '';
      this.filters.algorithm = '';
      this.filters.type = data.dictKey;
      // 更新列表请求
      this.fetchTableData();
    },
    handleClear() {
        this.dictKey = ''
        this.filters.algorithm = ''
         this.filters.type = ''
        this.fetchTableData();
      this.dictKey = '';
      this.filters.algorithm = '';
      this.filters.type = '';
      this.fetchTableData();
    },
    handleCellClick(row, column) {
      console.log(row, column.no);
@@ -1517,7 +1538,6 @@
      this.currentDetail.processingDetail = this.currentDetail.content;
      this.handleViewDetail(this.currentDetail);
      // 如果使用地图组件,需要更新地图标记
      this.$nextTick(() => {
        if (this.$refs.MapContainer && this.currentDetail.location) {
@@ -1525,8 +1545,8 @@
        }
      });
    },
    async handleQRCode (val){
    val.showQR = !val.showQR
    async handleQRCode(val) {
      val.showQR = !val.showQR;
    },
    async loadAMapScripts() {
      try {
@@ -1534,7 +1554,7 @@
        const subAreaCode = areaCode ? areaCode.substring(0, 6) : '';
        const adcodeObj = getAdcodeObj(geoJson, 'adcode', subAreaCode);
       // console.log('区域代码:', subAreaCode);
        // console.log('区域代码:', subAreaCode);
        // 直接从返回对象中获取正确的路径
        const center = adcodeObj?.payload?.objects?.collection?.geometries?.[0]?.properties?.center;
@@ -1621,7 +1641,7 @@
      try {
        const response = await getTicketInfo();
        const { dept_data, event_type, ai_type,info } = response.data.data;
        const { dept_data, event_type, ai_type, info } = response.data.data;
        this.departments = dept_data.map(item => ({
          label: item.dept_name,
@@ -1640,10 +1660,10 @@
        const columnType = this.findObject(this.option.column, 'type');
        columnType.dicData = this.types;
        this.allAlgorithms  = info
        this.allAlgorithms = info;
        console.log('工单类型',this.types);
        console.log('关联算法',this.allAlgorithms );
        console.log('工单类型', this.types);
        console.log('关联算法', this.allAlgorithms);
        // 确保算法数据的映射一致
        this.algorithms =
          ai_type?.map(item => ({
@@ -1654,7 +1674,7 @@
            value: item.dict_key,
          })) || [];
        this.algorithms2 = _.cloneDeep(this.algorithms)
        this.algorithms2 = _.cloneDeep(this.algorithms);
        // 构建用户ID和名称的映射关系
        this.userNameToIdMap = {};
@@ -1669,18 +1689,20 @@
    },
    // 工单类型变化时触发
    handleTypeChange(typeValue) {
      this.form.algorithm = []
      this.form.algorithm = [];
      if (!typeValue) {
        // 未选择类型时清空算法列表
        this.algorithms2 = [];
        return;
      }
      const matchedCategory = this.allAlgorithms.find(
        category => category.dict_key === typeValue
      );
      const matchedCategory = this.allAlgorithms.find(category => category.dict_key === typeValue);
      if (!matchedCategory || !matchedCategory.algorithms || matchedCategory.algorithms.length === 0) {
      if (
        !matchedCategory ||
        !matchedCategory.algorithms ||
        matchedCategory.algorithms.length === 0
      ) {
        // 无匹配的算法时清空
        this.algorithms2 = [];
        this.$message.info('该工单类型暂无关联算法');
@@ -1690,9 +1712,8 @@
        label: algo.dict_value,
        value: algo.dict_key,
        dict_key: algo.dict_key,
        dict_value: algo.dict_value
        dict_value: algo.dict_value,
      }));
    },
    async fetchTableData() {
@@ -1947,10 +1968,10 @@
        this.draftLoading = false;
      }
    },
    handleCancel (){
    handleCancel() {
      this.resetForm();
       this.dialogVisible = false;
},
      this.dialogVisible = false;
    },
    handleLocationChange(val) {
      let locationValue = val.value;
      if (locationValue && locationValue.length >= 2) {
@@ -2050,11 +2071,11 @@
        isReview: '', // 重置时清空复核状态
      };
      this.page.currentPage = 1;
      this.$router.replace({});  //清除url参数
      this.$router.replace({}); //清除url参数
      this.fetchTableData();
    },
    handleKeyWords(){
      this.$router.replace({});  //清除url参数
    handleKeyWords() {
      this.$router.replace({}); //清除url参数
    },
    async handleCurrentChange(val) {
@@ -2176,8 +2197,8 @@
      console.log('this.currentDetail', this.currentDetail);
      this.detailVisible = true;
      this.handleTypeChange(this.currentDetail.type)
      console.log('this.currentDetail.location',this.currentDetail.location);
      this.handleTypeChange(this.currentDetail.type);
      console.log('this.currentDetail.location', this.currentDetail.location);
      this.$nextTick(() => {
        if (this.$refs.MapContainer && this.$refs.MapContainer.initAddEntity) {
@@ -2482,8 +2503,7 @@
      // 通过验证后,打开派发对话框
      this.dispatchDialogVisible = true;
      console.log('受理',this.currentDetail);
      console.log('受理', this.currentDetail);
    },
    hasProcessingBtnPermission() {
      // undefined 或 false 都返回 false,只有 true 返回 true
@@ -2523,7 +2543,7 @@
        return;
      }
      this.dispatchLoading = true;
      console.log('派发成功',this.currentDetail);
      console.log('派发成功', this.currentDetail);
      this.$refs.dispatchForm.validate(async valid => {
        if (valid) {
@@ -2538,9 +2558,9 @@
              content: this.currentDetail.content, // 使用 content 替代原来的 remark
              createDept: this.dispatchForm.department, // 派发部门 ID
              updateUser: this.dispatchForm.handler, // 处理人 ID
              aiType:this.currentDetail.aiType
              aiType: this.currentDetail.aiType,
            };
           console.log('派发',data);
            console.log('派发', data);
            const file = this.currentDetail.file || null; // 如果没有文件,则为 null
@@ -3080,17 +3100,17 @@
  activated() {
    this.handleReset();
  },
};
</script>
<style lang="scss">
.custom-dialog {  max-height: 96vh; }
.custom-dialog {
  max-height: 96vh;
}
.custom-qrcode-popover {
min-width: 120px !important;
  min-width: 120px !important;
}
</style>
<style lang="scss" scoped>
::v-deep(.el-tabs) {
  height: 100%;
  display: flex;
@@ -3313,22 +3333,22 @@
}
.dialog-footer1 {
  position: sticky;
    bottom: 28px;
    left: 0;
    right: 0;
    background: white;
    z-index: 10;
    padding: 16px 20px;
    border-top: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
  bottom: 28px;
  left: 0;
  right: 0;
  background: white;
  z-index: 10;
  padding: 16px 20px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .el-button + .el-button {
    margin-left: 12px;
  }
.btngroups {
margin-left: 12px;
}
  .btngroups {
    margin-left: 12px;
  }
  .el-button {
    padding: 9px 20px;
@@ -3412,7 +3432,7 @@
}
.detail-container {
  padding:0 20px;
  padding: 0 20px;
  .detail-top-title {
    display: flex;
@@ -3504,11 +3524,10 @@
  background-color: #999;
  border-radius: 5px;
  text-align: center;
line-height: 32px;
  line-height: 32px;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
}
.disableds {
@@ -3517,10 +3536,10 @@
  pointer-events: none;
  opacity: 0.3 !important;
}
.PopUpTableScrolls{
height: 600px;
overflow-y: scroll;
overflow-x: hidden;
.PopUpTableScrolls {
  height: 600px;
  overflow-y: scroll;
  overflow-x: hidden;
}
.media-box {
  width: 100%;
@@ -3535,11 +3554,11 @@
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    .QRCodeImg{
    width: 18px;
    height: 18px;
    cursor: pointer;
    padding-bottom: 1px;
    .QRCodeImg {
      width: 18px;
      height: 18px;
      cursor: pointer;
      padding-bottom: 1px;
    }
  }
@@ -3613,7 +3632,7 @@
  line-height: 1.5;
  display: block;
  text-align: left;
margin-bottom: 5px;
  margin-bottom: 5px;
  &:first-child {
    font-weight: bold;
    margin-bottom: 4px;
src/views/wel/components/calendarBox.vue
@@ -74,14 +74,14 @@
const handleMonthChange = val => {
  const selectedMonth = new Date(val);
  currentMonth.value = selectedMonth;
  // 如果是当前月份,则选中当天;否则不选中
  if (isCurrentMonth(selectedMonth)) {
    selectedDate.value = new Date();
  } else {
    selectedDate.value = null;
  }
  // 强制更新日历视图
  nextTick(() => {
    updateCalendarSelection();
@@ -145,7 +145,7 @@
  if (isCurrentMonth(currentMonth.value) && selectedDate.value) {
    const currentDay = dayjs(selectedDate.value).date();
    const calendarCells = document.querySelectorAll('.el-calendar-table td');
    calendarCells.forEach(cell => {
      const day = parseInt(cell.querySelector('.date-number').textContent);
      if (day === currentDay) {
@@ -173,7 +173,7 @@
    nextTick(() => {
      updateCalendarSelection();
    });
    getJobEventBar();
  },
  { deep: true, immediate: true }
@@ -227,11 +227,11 @@
  } else {
    selectedDate.value = null;
  }
  nextTick(() => {
    updateCalendarSelection();
  });
  getJobEventBar();
});
</script>
@@ -331,16 +331,16 @@
      font-size: 14px;
      color: #363636;
    }
 &.five-rows .el-calendar-table .el-calendar-day {
    height: pxToVh(92) !important;
  }
  &.six-rows .el-calendar-table .el-calendar-day {
    height: pxToVh(78) !important;
  }
    // 选中日期样式
    .el-calendar-table td.is-selected {
    .el-calendar-table td.is-selected.is-today {
      .el-calendar-day {
        outline: 2px solid #409eff;
        outline-offset: -2px;
@@ -354,7 +354,7 @@
    .el-calendar-table td.is-selected {
      background-color: transparent;
    }
  }
  .event-item {