From ee8e305c571fc074130405550fa57d56eb07e191 Mon Sep 17 00:00:00 2001 From: KindSeven <2845382437@qq.com> Date: Mon, 16 Sep 2024 22:39:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=94=B5=E8=AF=9D=E6=8B=A8=E6=89=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BAbug,=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E4=BA=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task-management/components/WorkDialog.vue | 34 +++++++++++++------ 1 file changed, 24 insertions(+), 10 deletions(-) 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;