Kaynağa Gözat

reactor:回访待办新增排序;

zhangchong 1 ay önce
ebeveyn
işleme
a6e46b0928
1 değiştirilmiş dosya ile 20 ekleme ve 17 silme
  1. 20 17
      src/views/home/components/Home-date.vue

+ 20 - 17
src/views/home/components/Home-date.vue

@@ -8,6 +8,7 @@
 				><SvgIcon name="iconfont icon-daohang" class="mr5" size="18px" /> 一键登录到旧系统</el-button
 			>
 		</el-badge>
+		<el-button class="ml10" type="primary" @click="linkUrl"><SvgIcon name="iconfont icon-daohang" class="mr5" size="18px" /> 热线赋智</el-button>
 	</el-card>
 </template>
 <script setup lang="ts">
@@ -51,31 +52,33 @@ const getOldWorkTodo = () => {
 			isDot.value = res.result ?? false;
 		})
 		.catch((err) => {
-			console.log('旧系统的查询工单待办失败:',err);
+			console.log('旧系统的查询工单待办失败:', err);
 		});
-	useIntervalFn(
-		() => {
-			getOldHotlineList()
-				.then((res: any) => {
-					isDot.value = res.result ?? false;
-				})
-				.catch((err) => {
-					console.log('旧系统的查询工单待办失败:',err);
-				});
-		},
-		60 * 1000
-	);
+	useIntervalFn(() => {
+		getOldHotlineList()
+			.then((res: any) => {
+				isDot.value = res.result ?? false;
+			})
+			.catch((err) => {
+				console.log('旧系统的查询工单待办失败:', err);
+			});
+	}, 60 * 1000);
 };
 // 一建登录到旧系统
 const linkOld = () => {
 	window.open(AppConfigInfo.value.oldHotlineUrl + userNameEncryptionEnCode.value);
 };
 // 判断是否有这个配置地址 排除空格
-const isOldHotlineUrl = computed(()=>{
-	return AppConfigInfo.value.oldHotlineUrl && AppConfigInfo.value.oldHotlineUrl.trim()
-})
+const isOldHotlineUrl = computed(() => {
+	return AppConfigInfo.value.oldHotlineUrl && AppConfigInfo.value.oldHotlineUrl.trim();
+});
+// 地址跳转
+const linkUrl = () => {
+	console.log(userInfos.value);
+	window.open(`https://rxfz.scopenai.com:18027/TokenLogin?id=${userInfos.value.id}`);
+};
 onMounted(() => {
-	if(isOldHotlineUrl.value){
+	if (isOldHotlineUrl.value) {
 		getUserName();
 	}
 });