浏览代码

reactor:对接坐席监控;

zhangchong 1 年之前
父节点
当前提交
6524dffd72

+ 3 - 3
index.html

@@ -4,10 +4,10 @@
 		<meta charset="utf-8" />
 		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
 		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
-		<meta name="keywords" content="12345" />
-		<meta name="description" content="12345" />
+		<meta name="keywords" content="宜宾市民热线服务系统" />
+		<meta name="description" content="宜宾市民热线服务系统" />
 		<link rel="icon" href="/favicon.ico" />
-		<title>12345便民服务热线系统</title>
+		<title>宜宾市民热线服务系统</title>
 	</head>
 	<body>
 		<div id="app"></div>

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
 	"name": "hoteline",
 	"version": "1.0.1",
-	"description": "12345政务服务便民系统",
+	"description": "宜宾市民热线服务系统",
 	"author": "zc",
 	"license": "MIT",
 	"scripts": {

+ 5 - 7
src/layout/navBars/breadcrumb/telControl.vue

@@ -897,7 +897,6 @@ const onMessage = (event: any) => {
 			console.log('呼叫中心:已签出');
 			ElMessage.success('签出成功');
 			seatAssistOff();
-			sendMsg('logout');
 		} else if (data.state == 'ready') {
 			// 结束计时
 			removeTimer();
@@ -915,6 +914,10 @@ const onMessage = (event: any) => {
 			console.log('呼叫中心:示闲中');
 			sendMsg('ready');
 		} else if (data.state == 'unready') {
+      break_reason(data.private_data);
+      sendMsg('unready'); // 发送消息 业务系统消息通知
+
+      console.log('呼叫中心:示忙中,小休开始');
 			// 示忙中
 			useTelStatusStore.setPhoneControlState(TelStates.rest);
 			useTelStatusStore.setRest(RestStates.resting);
@@ -951,10 +954,6 @@ const onMessage = (event: any) => {
 
             });
       }*/
-			break_reason(data.private_data);
-			sendMsg('unready'); // 发送消息 业务系统消息通知
-
-			console.log('呼叫中心:示忙中,小休开始');
 		} else if (data.state == 'acw') {
 			// 设置分机号和坐席组
 			useTelStatusStore.setCallInfo({ telsNo: data.agent_extn });
@@ -1135,7 +1134,6 @@ const break_reason = (reason: string) => {
 	if (telStatusInfo.value.isRest !== 'resting') {
 		// 如果不在在小休中
 		const restReasons = state.restReasonOptions.find((item: any) => item.dicDataValue === reason);
-		console.log(restReasons, reason, state.restReasonOptions);
 		busyOn({ reason: restReasons.dicDataName }) // 开始小休 设置示忙 业务系统统计需要
 			.then(() => {
 				console.log('业务系统调用示忙成功');
@@ -1488,7 +1486,7 @@ const connectVoiceAssistant = async (telNo: string) => {
 		});
 		socket.value.on('message', wsReceive);
 	} catch (err) {
-		console.log(err, 'Failed to get voice assistant user information');
+		console.log(err, '坐席辅助链接失败');
 	}
 };
 // 坐席辅助关闭

+ 1 - 1
src/utils/other.ts

@@ -40,7 +40,7 @@ export function useTitle() {
 		} else {
 			webTitle = setTagsViewNameI18n(router.currentRoute.value);
 		}
-		document.title = `${webTitle} - ${globalTitle}` || globalTitle;
+		document.title =  ` ${globalTitle}-${webTitle}` || globalTitle;
 	}).then(() => {});
 }
 

+ 1 - 0
src/views/home/component/Numbers.vue

@@ -37,6 +37,7 @@
 					</div>
 					<div class="statistics-number-item">
 						<p class="statistics-number-item-number">
+
 							<b>{{ userInfos.isCenter ? state.data.answeredRate : state.data.tasksOkOrgNum }}</b>
 						</p>
 						<p class="statistics-number-item-tips">{{ userInfos.isCenter ? '接通率' : '部门' }}</p>

+ 6 - 5
src/views/statistics/order/center.vue

@@ -68,6 +68,7 @@ import { ElButton, FormInstance } from 'element-plus';
 import { throttle } from '@/utils/tools';
 import { centerList } from '@/api/statistics/order';
 import { shortcuts } from '@/utils/constants';
+import dayjs from 'dayjs';
 // 定义变量内容
 const ruleFormRef = ref<RefType>(); // 表单ref
 const state = reactive(<any>{
@@ -76,7 +77,7 @@ const state = reactive(<any>{
 		PageIndex: 1,
 		PageSize: 10,
 		Keyword: null, // 关键词
-		crTime: [], // 时间默认今天开始到今天结束
+		crTime: [dayjs().startOf('day').format('YYYY-MM-DD HH:mm:ss'), dayjs().endOf('day').format('YYYY-MM-DD HH:mm:ss')], // 时间默认今天开始到今天结束
 	},
 	tableData: [], //表单
 	loading: false, // 加载
@@ -88,12 +89,12 @@ const queryList = throttle(() => {
 	let StartTime = null;
 	let EndTime = null;
 	if (state.queryParams?.crTime) {
-    StartTime = state.queryParams?.crTime[0];
-    EndTime = state.queryParams?.crTime[1];
+		StartTime = state.queryParams?.crTime[0];
+		EndTime = state.queryParams?.crTime[1];
 	}
 	const request = {
-    StartTime,
-    EndTime,
+		StartTime,
+		EndTime,
 		DelayState: state.queryParams.DelayState,
 		PageIndex: state.queryParams.PageIndex,
 		PageSize: state.queryParams.PageSize,

+ 0 - 1
src/views/system/user/index.vue

@@ -222,7 +222,6 @@ const getTelsListFn = async (object?: object) => {
 };
 // 点击节点
 const handleNodeClick = (data: any) => {
-	console.log(data);
 	state.queryParams.OrgCode = data.id;
 	getList();
 };