无人机管理后台前端(已迁走)
rain
2025-04-17 8dccdb58223b2f2f2471adb054275386e0157391
未分配处理人时回传后端接口字段报错处理
1 files modified
6 ■■■■ changed files
src/views/tickets/ticket.vue 6 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue
@@ -1033,6 +1033,10 @@
      if (this.submitLoading) return; // 防止重复提交
      this.submitLoading = true;
      try {
        let handlerValue = this.form.handler;
       if (!handlerValue || handlerValue === '未分配') {
           handlerValue = undefined;
       }
        const submitData = {
          id: this.form.id,
          eventName: this.form.name || undefined,
@@ -1043,7 +1047,7 @@
          address: this.form.address || undefined,
          eventDictKey: this.form.type || undefined,
          aiType: Array.isArray(this.form.algorithm) ? this.form.algorithm : [this.form.algorithm], // 传数组
          updateUser: this.form.handler || undefined,
          updateUser: handlerValue,
          createDept: this.form.department || undefined,
          isDraft: 1
        };