From 884285fdd218ae5655962864217f20a968e05ef8 Mon Sep 17 00:00:00 2001 From: KindSeven <2845382437@qq.com> Date: Mon, 16 Sep 2024 01:47:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=8C=E6=88=90=E4=BA=86=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=84=E5=AE=9E=E6=97=B6=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task-management/components/WorkDialog.vue | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/views/task-management/components/WorkDialog.vue b/src/views/task-management/components/WorkDialog.vue index 9584a3e..da95ee0 100644 --- a/src/views/task-management/components/WorkDialog.vue +++ b/src/views/task-management/components/WorkDialog.vue @@ -6,17 +6,12 @@ import { time } from "echarts"; import { defineExpose } from "vue"; import { defineProps } from "vue"; import { orderGetDetails } from "@/api/order/order.js" - //控制显示隐藏 const dialogVisible = ref(false); const props = defineProps({ rowData: Object }) -const rowData=props.rowData -console.log(rowData); - - let opsCallList = ref([]); let orderData = ref([]); let orderContent = ref([]); @@ -57,6 +52,7 @@ watch(() => props.rowData, (newRowData) => { if (newRowData) { // console.log(getData(newRowData)); getData(newRowData).then((data) => { + opsCallList.value=[] orderData.value = data.data //电话拨打记录 const dataDetails = data.data.opsCallList @@ -68,7 +64,7 @@ watch(() => props.rowData, (newRowData) => { if (for1data.createTime !== for2data.createTime) { // console.log(for2data); for2data.createTime = for1data.createTime - // for2data.data.push(for1data) + for2data.data.push(for1data) theData.push({ createTime: for1data.createTime, data: [] }) } else { for2data.data.push(for1data) @@ -82,6 +78,7 @@ watch(() => props.rowData, (newRowData) => { opsCallList.value.push(item) }) //工单时间线 + orderContent.value=[] console.log(orderData.value); content.map((item, index) => { if (index === 0) { @@ -95,13 +92,8 @@ watch(() => props.rowData, (newRowData) => { } }) - content.forEach(item => { - // if (orderContent.value.length < 1) { + content.forEach(item => { orderContent.value.push(item) - // }else{ - // orderContent.value.pop() - // } - }) console.log(orderContent.value); @@ -223,6 +215,7 @@ defineExpose({
{{ info.callIdNumber }} + {{ info.callState }}