无人机管理后台前端(已迁走)
张含笑
2025-08-06 c2e6911c4da6a65bbffdbd86dd003ab76df3514f
feat:处理人下拉加个搜索功能
1 files modified
12 ■■■■ changed files
src/views/tickets/ticket.vue 12 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue
@@ -731,6 +731,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"
@@ -745,6 +746,7 @@
        </el-form-item>
        <el-form-item label="选择处理人" prop="handler">
          <el-select
          filterable
            v-model="dispatchForm.handler"
            placeholder="请选择处理人"
            :disabled="!dispatchForm.department"
@@ -1270,7 +1272,6 @@
        { label: '当前状态', value: this.mapStatus(this.currentDetail.status) },
        { label: '事件地址', value: this.currentDetail.address || this.currentDetail.latAndLon }, // 包含经纬度信息
        { label: '关联算法',
        //  value: this.currentDetail.aiType
         value:
            this.algorithms.find(t => t.value === this.currentDetail.aiType)?.label ||
            this.currentDetail.aiType ||
@@ -1294,7 +1295,9 @@
          value2: filteredFields[i + 1]?.value || (filteredFields[i + 1]?.label ? '暂无数据' : ''),
        });
      }
      return formattedFields;
    },
    dynamicFixedStatuses() {
      // 直接使用接口返回的 stepInfos
@@ -2346,8 +2349,8 @@
        this.$message.warning('请填写工单名称');
        return;
      }
      if (!this.currentDetail.type) {
        this.$message.warning('请选择工单类型');
      if (!this.currentDetail.aiType) {
        this.$message.warning('请选择关联算法');
        return;
      }
      if (!this.currentDetail.content || !this.currentDetail.content.trim()) {
@@ -2357,6 +2360,9 @@
      // 通过验证后,打开派发对话框
      this.dispatchDialogVisible = true;
    },
    hasProcessingBtnPermission() {
      // undefined 或 false 都返回 false,只有 true 返回 true