diff --git a/src/views/task-management/components/WorkDialog.vue b/src/views/task-management/components/WorkDialog.vue index 92e428a..49bf07d 100644 --- a/src/views/task-management/components/WorkDialog.vue +++ b/src/views/task-management/components/WorkDialog.vue @@ -76,11 +76,21 @@ watch(() => props.rowData, (newRowData) => { // theData[0].data.sort((a, b) => b.answer_time- a.answer_time) // console.log(theData); theData.forEach(item => { - item.data.sort((a, b) => b.answer_time- a.answer_time) + item.data.forEach(info => { + if (info.answeredTime !== null) { + // console.log(info.answeredTime); + let startIndex = info.answeredTime.indexOf(' ') + 1; + let timeOnly = info.answeredTime.slice(startIndex, startIndex + 5); + info.answeredTime = timeOnly.replace(':', ' : ') + } + }) + // console.log(item.data); + + // item.data.sort((a, b) => a.answeredTime - b.answeredTime) opsCallList.value.push(item) }) console.log(opsCallList.value); - + //工单时间线 orderContent.value = [] // console.log(orderData.value); @@ -218,12 +228,13 @@ defineExpose({
{{ info.callIdNumber }} - + {{ - info.answer_time ||'未接通'}} + info.answeredTime || '00 : 00' }}
@@ -321,26 +332,29 @@ defineExpose({ } -.main-content .timeline-row{ +.main-content .timeline-row { // border: 1px solid #000; display: flex; // justify-content: space-between; // border: 1px solid #000; - + } -.main-content .tag{ + +.main-content .tag { align-items: center; // background-color: red; margin-left: 30px; } -.main-content .span-3th{ + +.main-content .span-3th { // flex-grow: 1; // margin-right:; flex: 1; - text-align: right; - margin-right: 100px; + text-align: right; + margin-right: 100px; } + .custom-card { width: 100%; font-size: 16px;