无人机管理后台前端(已迁走)
rain
2025-04-20 9f3fee423dd78a440e04757bfccb468bd1f3da7a
修改loading状态和完善待处理的工单信息校验和优化页面显示
1 files modified
25 ■■■■■ changed files
src/views/tickets/ticket.vue 25 ●●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue
@@ -500,6 +500,7 @@
        selection: true, // 添加多选功能
        index: true,     // 保留序号功能
        indexLabel: '序号',
        indexWidth: 60,
        menuWidth: 150,
        searchMenuSpan: 6,
        viewBtn: false,
@@ -520,7 +521,7 @@
            label: "工单内容",
            prop: "content",
            slot: true,
            width: 233,
            width: 212,
            overHidden: true
          },
          { label: "创建人", prop: "creator", width: 100 },
@@ -1619,7 +1620,7 @@
    },
    async approveAndDispatch() {
      if (this.dispatchLoading) return;
      this.dispatchLoading = true;
      // this.dispatchLoading = true;
      this.dispatchDialogVisible = true; // 打开派发对话框
    },
    hasProcessingBtnPermission() {
@@ -1639,6 +1640,26 @@
    },
    async submitDispatch() {
      if (this.dispatchLoading) return;
      if (!this.currentDetail.orderName || !this.currentDetail.orderName.trim()) {
        this.$message.warning('请填写工单名称');
        return;
      }
      if (!this.currentDetail.type) {
        this.$message.warning('请选择工单类型');
        return;
      }
      if (!this.currentDetail.content || !this.currentDetail.content.trim()) {
        this.$message.warning('请填写工单内容');
        return;
      }
      if (!this.dispatchForm.department) {
        this.$message.warning('请选择部门');
        return;
      }
      if (!this.dispatchForm.handler) {
        this.$message.warning('请选择处理人');
        return;
      }
      this.dispatchLoading = true;
      this.$refs.dispatchForm.validate(async (valid) => {
        if (valid) {