无人机管理后台前端(已迁走)
rain
2025-04-14 2c3e14350c149f117dec575e916355225039a5d3
处理工单流程时间以及新建工单页面样式优化
1 files modified
12 ■■■■ changed files
src/views/tickets/ticket.vue 12 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue
@@ -144,7 +144,7 @@
      <template #footer>
        <div class="dialog-footer">
          <el-button type="danger" @click="submitForm">确认提交</el-button>
          <el-button type="primary" plain @click="saveDraft">存草稿</el-button>
          <el-button type="infoprimary" plain @click="saveDraft">存草稿</el-button>
          <el-button @click="dialogVisible = false">取 消</el-button>
        </div>
      </template>
@@ -199,6 +199,9 @@
          margin-left: 4px;  
          color: #666;
          font-size: 10px;">耗时: {{ getStepTime(status) }}</span>
                </div>
                <div class="step-description" >
                  {{ getStepCreateTime(status) }}
                </div>
              </template>
            </el-step>
@@ -1112,6 +1115,7 @@
            status,
            name: step ? step.name : '',
            time: step ? step.time : null,
            create_time: step ? step.create_time : null,
          };
        });
@@ -1142,7 +1146,11 @@
      const step = this.stepInfos.find(step => step.status === status);
      return step ? step.time : null;
    },
    getStepCreateTime(status) {
      const step = this.stepInfos.find(step => step.status === status);
      console.log('getStepCreateTime:', step);
      return step ? step.create_time : null;
    },
    getActiveStep() {
      // 由于新增了发起任务步骤,需要调整步骤索引
      const index = this.fixedStatuses.indexOf(String(this.currentDetail.status));