|
@@ -108,11 +108,11 @@ const props = defineProps({
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
|
|
-const textRefs = ref([]);
|
|
|
|
|
|
+const textRefs = ref<EmptyArrayType>([]);
|
|
const textRef = ref();
|
|
const textRef = ref();
|
|
const popoverRef = ref();
|
|
const popoverRef = ref();
|
|
const hidePopover = ref(false);
|
|
const hidePopover = ref(false);
|
|
-const call = ref({});
|
|
|
|
|
|
+const call = ref<EmptyObjectType>({});
|
|
const globalState = useGlobalState();
|
|
const globalState = useGlobalState();
|
|
// 开始签入时长
|
|
// 开始签入时长
|
|
const talkTime = ref<any>(0); // 通话时长
|
|
const talkTime = ref<any>(0); // 通话时长
|
|
@@ -131,7 +131,7 @@ const startCallTimer = (second: any) => {
|
|
}, 1000);
|
|
}, 1000);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-const handleClick = (index: string | number, item: { state: string }) => {
|
|
|
|
|
|
+const handleClick = (index: number, item: { state: string; telNo: string }) => {
|
|
textRef.value = textRefs.value[index];
|
|
textRef.value = textRefs.value[index];
|
|
call.value = item;
|
|
call.value = item;
|
|
talkTime.value = 0;
|
|
talkTime.value = 0;
|
|
@@ -163,6 +163,7 @@ const currentStatusText = (state: string) => {
|
|
login: "签入",
|
|
login: "签入",
|
|
ready: "示闲",
|
|
ready: "示闲",
|
|
unready: "小休",
|
|
unready: "小休",
|
|
|
|
+ ring: "振铃中",
|
|
busy: "通话中",
|
|
busy: "通话中",
|
|
acw: "整理",
|
|
acw: "整理",
|
|
held: "保持",
|
|
held: "保持",
|
|
@@ -183,6 +184,8 @@ const loading = ref(false);
|
|
const sortSeatsList = () => {
|
|
const sortSeatsList = () => {
|
|
// 通话中的排序
|
|
// 通话中的排序
|
|
const busyData = seatsList.value.filter((item: any) => item.state === "busy");
|
|
const busyData = seatsList.value.filter((item: any) => item.state === "busy");
|
|
|
|
+ // 通话中的排序
|
|
|
|
+ const ringData = seatsList.value.filter((item: any) => item.state === "ring");
|
|
// 话后整理
|
|
// 话后整理
|
|
const acwData = seatsList.value.filter((item: any) => item.state === "acw");
|
|
const acwData = seatsList.value.filter((item: any) => item.state === "acw");
|
|
// 保持
|
|
// 保持
|
|
@@ -205,6 +208,7 @@ const sortSeatsList = () => {
|
|
);
|
|
);
|
|
seatsList.value = [
|
|
seatsList.value = [
|
|
...busyData,
|
|
...busyData,
|
|
|
|
+ ...ringData,
|
|
...readyData,
|
|
...readyData,
|
|
...acwData,
|
|
...acwData,
|
|
...heldData,
|
|
...heldData,
|