瀏覽代碼

Merge branch 'release' into dev

# Conflicts:
#	src/layout/navBars/breadcrumb/ybTel.vue
#	src/views/todo/seats/accept/index.vue
zhangchong 9 月之前
父節點
當前提交
4fb6e8df4d

+ 6 - 5
src/layout/navBars/breadcrumb/ybTel.vue

@@ -86,7 +86,7 @@
 
 			<!-- 可用挂断 -->
 			<template v-if="telStatusInfo.isDutyOn && activeArr.includes('hangup')">
-				<div class="item active" @click="onControlClick('hangup')" title="挂断">
+				<div class="item active" :class="state.active.includes('hangup') ? 'active' : ''" @click="onControlClick('hangup')" title="挂断">
 					<SvgIcon name="iconfont icon-hangup" class="icon mr3" size="16px" />
 					<span>挂断</span>
 				</div>
@@ -723,6 +723,7 @@ const signalRStart = async () => {
 		RestApplyPassFn(data);
 	});
 };
+// 检查用户状态
 // 设置当前可用的按钮
 const activeArr = computed(() => {
 	const switchCases: any = {
@@ -734,7 +735,7 @@ const activeArr = computed(() => {
 		onCall: ['hangup', 'hold', 'transfer', 'conference', 'mute'], // 单个通话中
 		onMute: ['hangup', 'transfer', 'mute'], // 静音中
 		onHold: ['hangup', 'hold', 'transfer'], // 保持中
-		onTalkingDeal: ['TalkingDeal', 'rest'], // 话后整理中
+		onTalkingDeal: ['rest','TalkingDeal'], // 话后整理中
 		onConference: ['hangup'], // 三方会议中 只能挂断
 		onThreeWay: ['hangup', 'conference'], // 三方会议呼出中 只能挂断和踢人
 	};
@@ -1041,8 +1042,8 @@ const onMessage = async (event: any) => {
 				break;
 		}
 		if (data.state == 'busy') {
-			useTelStatusStore.setDutyState(true); // 确保一进来消息就是通话中 设置签入状态
-			callCenterIsSignIn.value = true; // 签入状态
+      useTelStatusStore.setDutyState(true); // 确保一进来消息就是通话中 设置签入状态
+      callCenterIsSignIn.value = true; // 签入状态
 			call_direction.value = data.call_direction; // 保存呼叫方向
 			callCenterIsOnThePhone.value = true; // 当前正在通话状态
 			if (['held', 'unheld'].includes(data.private_data)) {
@@ -1186,7 +1187,7 @@ const onMessage = async (event: any) => {
 								callId: data.other_accept,
 								transfer: data.gateway, // 转接来源(如12345,12333)
 								identityType: data.app_data.dtmf_his, // 按键接收(1:市民 2:企业 3:智能应答)
-								timeStamp: new Date().getTime(),
+                timeStamp: new Date().getTime(),
 							},
 						});
 					} else if (data.private_data == 'answered') {

+ 1 - 1
src/views/todo/center/index.vue

@@ -184,7 +184,7 @@ const state = reactive<any>({
 		PageSize: 10, // 每页条数
 		Title: null, // 标题
 		No: null, // 工单编号
-		scTime: defaultDateThree, // 生成时间
+		scTime: [], // 生成时间
 		StCreationTime: null, // 生成开始时间
 		EnCreationTime: null, // 生成结束时间
 		slTime: [], // 受理时间

+ 1 - 1
src/views/todo/order/index.vue

@@ -162,7 +162,7 @@ const state = reactive<any>({
 		IsProvince: null, // 是否省工单
 		IsCounterSign: null, // 是否会签
 		ExpiredOrAlmostOverdue: null, // 超期状态
-		scTime: defaultDateThree,
+		scTime: [],
 		StartTime: null,
 		EndTime: null,
     IsUrgent:null,

+ 1 - 1
src/views/todo/seats/index.vue

@@ -152,7 +152,7 @@ const state = reactive<any>({
 		Keyword: null, // 关键字
 		IsProvince: null, // 是否省工单
 		IsCounterSign: null, // 是否会签
-		scTime: defaultDateThree,
+		scTime: [],
 		StartTime: null,
 		EndTime: null,
 		IsUrgent: null,