|
@@ -243,13 +243,22 @@ function getFlowApproveHistoryList(data) {
|
|
|
if (!data) return [];
|
|
|
|
|
|
let lastTime = 0;
|
|
|
- return data.map((item, index) => {
|
|
|
- let nitem = { ...item };
|
|
|
- nitem.duration =
|
|
|
- index === 0 ? '-' : timeNumberToText(item.createTime - lastTime);
|
|
|
+ // return data.map((item, index) => {
|
|
|
+ // let nitem = { ...item };
|
|
|
+ // nitem.duration =
|
|
|
+ // index === 0 ? '-' : timeNumberToText(item.createTime - lastTime);
|
|
|
+ // lastTime = item.createTime;
|
|
|
+ // return nitem;
|
|
|
+ // });
|
|
|
+ for (let i = data.length - 1; i >= 0; i--) {
|
|
|
+ let item = data[i];
|
|
|
+ item.duration =
|
|
|
+ i === data.length - 1
|
|
|
+ ? '-'
|
|
|
+ : timeNumberToText(item.createTime - lastTime);
|
|
|
lastTime = item.createTime;
|
|
|
- return nitem;
|
|
|
- });
|
|
|
+ }
|
|
|
+ return data;
|
|
|
}
|
|
|
const toViewHistory = () => {
|
|
|
stepHistoryShow.value = !stepHistoryShow.value;
|
|
@@ -278,7 +287,7 @@ const sopInfo = reactive({
|
|
|
const flowFormSuggestionJiaResultList = ref([]);
|
|
|
const flowFormSuggestionYiResultList = ref([]);
|
|
|
const flowFormSuggestionResultList = computed(() => {
|
|
|
- return curStepData.taskKey == 'f_usertask_quality_problem_check_3'
|
|
|
+ return curStepData.value.taskKey == 'f_usertask_quality_problem_check_3'
|
|
|
? flowFormSuggestionJiaResultList.value
|
|
|
: flowFormSuggestionYiResultList.value;
|
|
|
});
|