无人机管理后台前端(已迁走)
罗广辉
2025-08-14 ece02de07ff272e954824e19d9269946899c17a6
style: 表格列宽度调整
2 files modified
46 ■■■■ changed files
src/views/tickets/orderLog.vue 10 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue 36 ●●●● patch | view | raw | blame | history
src/views/tickets/orderLog.vue
@@ -598,7 +598,7 @@
            showOverflowTooltip: true,
          },
          {
            label: '所属单位', prop: 'dept_name', width: 100, ellipsis: true,
            label: '所属单位', prop: 'dept_name', ellipsis: true,
            showOverflowTooltip: true,
          },
          {
@@ -614,7 +614,7 @@
            showOverflowTooltip: true,
          },
          {
            label: '关联航线', prop: 'wayline_name', width: 100, ellipsis: true, overHidden: true,
            label: '关联航线', prop: 'wayline_name', ellipsis: true, overHidden: true,
            showOverflowTooltip: true,
          },
          {
@@ -698,7 +698,7 @@
    this.fetchTableData()
    const id = this.$route.query.id
    console.log('idddddd',id);
    if (id) {
      // 确保 id 存在
      this.handleViewDetail({ id })
@@ -706,7 +706,7 @@
        find && (find.query = {})
    } else {
      console.error('工单ID不存在!')
    }
  },
  computed: {
@@ -874,7 +874,7 @@
          this.form.begin_time = this.formatDate(dateRange[0])
          this.form.end_time = this.formatDate(dateRange[1])
          // 如果选中日期包含当前天,那么选中的时间点不能小于当前时间
          if (this.form.deal_time) {
            const selectedDate = dayjs(this.form.date_range[0]).format('YYYY-MM-DD')
src/views/tickets/ticket.vue
@@ -365,7 +365,7 @@
      </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
@@ -477,7 +477,7 @@
          <el-table-column prop="label2" label="基本信息" width="150">
            <template #default="{ row }">
              <!-- 添加必填星号的标签 -->
              <span
                v-if="
                  currentDetail.status === 0 &&
@@ -493,8 +493,8 @@
          <el-table-column>
            <template #default="{ row }">
              <!-- 修改工单类型和工单内容的显示 -->
              <template
                v-if="
                  currentDetail.status === 0 &&
@@ -579,7 +579,7 @@
        <!-- 图片和地图部分 -->
        <div class="media-section">
          <el-row :gutter="20">
            <el-col :span="12">
              <div class="media-box">
                <div class="media-title">事件图片</div>
@@ -646,7 +646,7 @@
                                placement="top"
                                title=""
                                trigger="click"
                            >
                                <template #reference>
                                    <img @click.stop="handleQRCode(currentDetail)"  class="QRCodeImg" src="@/assets/images/dataCenter/qrCode.svg" alt="" title="事件导航" />
@@ -662,8 +662,8 @@
                </template>
              </div>
            </el-col>
          </el-row>
        </div>
      </div>
@@ -752,7 +752,7 @@
      <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"
@@ -989,9 +989,9 @@
          // { label: "序号", prop: "id", width: 70 },
          { label: '工单编号', prop: 'orderNumber', width: 170 },
          { label: '工单名称', prop: 'orderName', width: 150, overHidden: true, tooltip: true },
          { label: '所属单位', prop: 'department',width: 150, overHidden: true, tooltip: true },
          { label: '所属单位', prop: 'department', overHidden: true, tooltip: true },
          { label: '发起时间', prop: 'startTime', width: 160 },
          { label: '关联算法', prop: 'aiType', width: 150, overHidden: true, tooltip: true },
          { label: '关联算法', prop: 'aiType', overHidden: true, tooltip: true },
          {
            label: '工单类型',
            prop: 'type',
@@ -1122,7 +1122,7 @@
  },
  mounted() {
    const href = this.$route.href;
    if (this.$route?.query?.status !== undefined && this.$route?.query?.status !== null) {
      this.filters.status = this.$route?.query?.status + '';
@@ -1317,7 +1317,7 @@
          value2: filteredFields[i + 1]?.value || (filteredFields[i + 1]?.label ? '暂无数据' : ''),
        });
      }
      return formattedFields;
    },
@@ -1584,7 +1584,7 @@
      }
      const matchedCategory = this.allAlgorithms.find(
        category => category.dict_key === typeValue
        category => category.dict_key === typeValue
      );
      if (!matchedCategory || !matchedCategory.algorithms || matchedCategory.algorithms.length === 0) {
@@ -1596,7 +1596,7 @@
// console.log('matchedCategory',matchedCategory);
      this.algorithms = matchedCategory.algorithms.map(algo => ({
        label: algo.dict_value,
        label: algo.dict_value,
        value: algo.dict_key,
        dict_key: algo.dict_key,
        dict_value: algo.dict_value
@@ -2086,7 +2086,7 @@
      this.detailVisible = true;
      this.handleTypeChange(this.currentDetail.type)
      console.log('this.currentDetail.location',this.currentDetail.location);
      this.$nextTick(() => {
        if (this.$refs.MapContainer && this.$refs.MapContainer.initAddEntity) {
          this.$refs.MapContainer.initAddEntity('point', this.currentDetail.location);
@@ -2391,7 +2391,7 @@
      this.dispatchDialogVisible = true;
      console.log('受理',this.currentDetail);
    },
    hasProcessingBtnPermission() {
      // undefined 或 false 都返回 false,只有 true 返回 true
@@ -2432,7 +2432,7 @@
      }
      this.dispatchLoading = true;
      console.log('派发成功',this.currentDetail);
      this.$refs.dispatchForm.validate(async valid => {
        if (valid) {
          try {