Просмотр исходного кода

reactor:来电弹单修改为配置(振铃弹单,接通弹单);

zhangchong 5 месяцев назад
Родитель
Сommit
028203355b

+ 3 - 1
src/layout/navBars/breadcrumb/zgTel.vue

@@ -290,6 +290,7 @@ import { useGlobalState } from '@/utils/callCenter';
 import { useThemeConfig } from '@/stores/themeConfig';
 import { getDataByCode } from '@/api/system/dict';
 import { trimCompat } from '@/utils/tools';
+import XEUtils from 'xe-utils';
 
 const globalState = useGlobalState(); // 全局变量
 const state = reactive({
@@ -428,6 +429,7 @@ const m_IsHold = ref(false); // 是否保持
 const m_IsTalkingDeal = ref(false); // 是否通话整理
 const m_IsMonListen = ref('0'); // 监控状态 0-未监听;1-监控成功;2-监控失败;
 const m_strTelState = ref('0'); // 当前状态
+m_strOpenFlag.value = XEUtils.toValueString(AppConfigInfo.value.callInOpenType)?.trim(); // 转换为字符串
 const showPop = ref(false);
 // 点击事件
 const onEvent = (event: string) => {
@@ -1675,7 +1677,7 @@ const retHangup = (data?: any) => {
 	// 是否弹屏
 	m_bIsOpen.value = false;
 	m_strConsultType.value = '-1';
-/*
+	/*
 	m_strTelState.value = '200';
 	e_TopStateChange(m_strTelState.value);*/
 	// 未监听

+ 1 - 0
src/router/backEnd.ts

@@ -67,6 +67,7 @@ const getAppConfigFn = async () => {
 			fileExt: result.fileExt ?? '', // 限制文件上传的格式
 			nationalPlatformWordLimit: result.nationalPlatformWordLimit ?? 500, //  国家政务服务平台的发布整理字数限制
 			handleOpinionWordLimit: result.handleOpinionWordLimit ?? 2000, // 办理意见字数限制
+			callInOpenType: result.callInOpenType ?? 2, // 电话呼入弹单方式  1:接通弹屏  2:振铃弹屏
 		});
 		/*	console.log(
 			`是否开启小休审批${result.isRestApproval},自动话后整理时间${result.talkingDealTime}秒,

+ 1 - 0
src/stores/appConfig.ts

@@ -21,6 +21,7 @@ export const useAppConfig = defineStore('AppConfig', {
 			fileExt: '', // 限制文件上传的格式
 			nationalPlatformWordLimit: 500, // 国家政务服务平台的发布整理字数限制
 			handleOpinionWordLimit:2000,  // 办理意见字数限制
+			callInOpenType: 2, // 电话呼入弹单方式  1:接通弹屏  2:振铃弹屏
 		},
 	}),
 	actions: {

+ 1 - 0
src/types/pinia.d.ts

@@ -131,6 +131,7 @@ declare interface AppConfigState {
 		oldHotlineUrl: string; // 老系统的跳转地址
 		nationalPlatformWordLimit:string|number; //  国家政务服务平台的发布整理字数限制
 		handleOpinionWordLimit:string|number; //  办理意见字数限制
+		callInOpenType: string|number; // 电话呼入弹单方式  1:接通弹屏  2:振铃弹屏
 		fileExt: string;
 		[x: string]: any
 	}