| | |
| | | <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> |
| | |
| | | margin-left: 4px; |
| | | color: #666; |
| | | font-size: 10px;">耗时: {{ getStepTime(status) }}</span> |
| | | </div> |
| | | <div class="step-description" > |
| | | {{ getStepCreateTime(status) }} |
| | | </div> |
| | | </template> |
| | | </el-step> |
| | |
| | | status, |
| | | name: step ? step.name : '', |
| | | time: step ? step.time : null, |
| | | create_time: step ? step.create_time : null, |
| | | }; |
| | | }); |
| | | |
| | |
| | | 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)); |