Quellcode durchsuchen

reactor:修复回访外呼打不通电话;

zhangchong vor 8 Monaten
Ursprung
Commit
f39cd50b83

+ 2 - 2
.env.development

@@ -3,11 +3,11 @@ VITE_MODE_NAME=development
 # 防止部署多套系统到同一域名不同目录时,变量共用的问题 设置不同的前缀
 VITE_STORAGE_NAME=dev
 # 基础请求地址
-VITE_API_URL=http://110.188.24.28:50300
+VITE_API_URL=http://110.188.24.28:50100
 # 数据共享平台请求地址
 VITE_DATASHARE_API_YRL=http://ds.12345lm.cn
 # socket API
-VITE_API_SOCKET_URL=http://110.188.24.28:50300/hubs/hotline
+VITE_API_SOCKET_URL=http://110.188.24.28:50100/hubs/hotline
 # 上传 API
 VITE_API_UPLOAD_URL=http://110.188.24.28:50120
 # 文件上传地址前缀

+ 3 - 1
src/App.vue

@@ -22,7 +22,7 @@ import setIntroduction from '@/utils/setIconfont';
 import { loginPageInfo } from '@/api/login';
 import { getImageUrl } from '@/utils/tools';
 import { useKeepALiveNames } from '@/stores/keepAliveNames';
-import { useFavicon } from '@vueuse/core';
+import { useFavicon,useDark } from '@vueuse/core';
 // 引入组件
 const LockScreen = defineAsyncComponent(() => import('@/layout/lockScreen/index.vue'));
 const SetTings = defineAsyncComponent(() => import('@/layout/navBars/breadcrumb/setings.vue'));
@@ -146,6 +146,8 @@ onMounted(() => {
 			// 动态修改icon
 			const icon = useFavicon();
 			icon.value = themeConfig.value.faviconImage; // 更改当前左上角角标
+			const isDark = useDark();
+			isDark.value = themeConfig.value.isIsDark; // 更改暗黑模式
 			// 解决火狐拖动打开新窗口
 			document.body.ondrop = (event) => {
 				event.preventDefault();

+ 3 - 0
src/layout/navBars/breadcrumb/setings.vue

@@ -421,6 +421,7 @@ import { Local } from '@/utils/storage';
 import other from '@/utils/other';
 import mittBus from '@/utils/mitt';
 import {useUserInfo} from "@/stores/userInfo";
+import { useDark } from '@vueuse/core';
 
 const storesThemeConfig = useThemeConfig();
 const { themeConfig } = storeToRefs(storesThemeConfig);
@@ -546,6 +547,8 @@ const onAddDarkChange = () => {
 	const body = document.documentElement as HTMLElement;
 	if (getThemeConfig.value.isIsDark) body.setAttribute('data-theme', 'dark');
 	else body.setAttribute('data-theme', '');
+	const isDark = useDark();
+	isDark.value = themeConfig.value.isIsDark; // 更改暗黑模式
 };
 // 4、界面显示 --> 开启水印
 const stores = useUserInfo();

+ 1 - 1
src/stores/themeConfig.ts

@@ -134,7 +134,7 @@ export const useThemeConfig = defineStore('themeConfig', {
 			globalComponentSize: 'default',// 默认全局组件大小,可选值"<large|'default'|small>",默认 'default'
 			loginImage: ``,	// 登录页面背景图
 			isLoginMessageCode: false,//  // 登录页是否展示短信验证码
-			appScope: 'YiBin',//  当前城市
+			appScope: '',//  当前城市
 			callCenterType: '', // 呼叫中心类型
 			cityName: '', // 城市名称
 			cityCode: '', // 6位区号

+ 2 - 2
src/utils/callCenter.ts

@@ -98,7 +98,7 @@ export function callCenterOutbound(phoneNumber: number | string) {
 		return;
 	}
 	switch (themeConfig.value.appScope) {
-		case 'YinBin':
+		case 'YiBin':
 			globalState.callCenterWs?.dial(phoneNumber);
 			break;
 		case 'ZiGong':
@@ -114,7 +114,7 @@ export function callCenterLogout() {
 		return;
 	}
 	switch (themeConfig.value.appScope) {
-		case 'YinBin':
+		case 'YiBin':
 			globalState.callCenterWs?.logout();
 			dutyOff(); // 呼叫中心签出
 			break;

+ 1 - 1
src/views/statistics/center/dataList.vue

@@ -199,7 +199,7 @@ const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/
 // 表格配置项
 const columns = ref<any[]>([
 	{ prop: 'orderStatusText', label: '工单状态'},
-	{ prop: 'expiredStatusText', label: '是否超期'},
+	{ prop: 'expiredStatusText', label: '超期状态'},
 	{ prop: 'sourceChannel', label: '来源渠道'},
 	{ prop: 'transferPhone', label: '转接来源'},
 	{ prop: 'currentStepName', label: '当前节点'},