Przeglądaj źródła

添加个人跳转判断

吴朋磊 1 miesiąc temu
rodzic
commit
59b867434c
2 zmienionych plików z 7 dodań i 8 usunięć
  1. 3 3
      src/views/school/index.vue
  2. 4 5
      src/views/school/teacherList.vue

+ 3 - 3
src/views/school/index.vue

@@ -634,15 +634,15 @@ const GoTeach = (row: any) => {
   
   getTicket(params).then((res: any) => {
     const ticket = res.data;
-    let url = `https://www.k12100.com/#/otherLogin?schoolId=${row.id}&ticket=${ticket}`;
+    let url = `https://www.k12100.com/#/otherLogin?type=0&schoolId=${row.id}&ticket=${ticket}`;
 
     if(import.meta.env.VITE_API_BASE_URL == 'https://admin.k12100.com/admin/')
     {
-      url = `https://www.k12100.com/#/otherLogin?schoolId=${row.id}&ticket=${ticket}`;
+      url = `https://www.k12100.com/#/otherLogin?type=0&schoolId=${row.id}&ticket=${ticket}`;
     }
     else
     {
-      url = `https://index.k12100.net/#/otherLogin?schoolId=${row.id}&ticket=${ticket}`;
+      url = `https://index.k12100.net/#/otherLogin?type=0&schoolId=${row.id}&ticket=${ticket}`;
     }
     window.open(url);
   }).catch(() => {

+ 4 - 5
src/views/school/teacherList.vue

@@ -235,17 +235,16 @@ const GoEnter = (row: Teacher) => {
     return
   }
   const params = {
-    id: schoolId.value,
+    id: row.userId,
   }
 
   getTicket(params).then((res: any) => {
     const ticket = res.data
-    let url = `https://www.k12100.com/#/otherLogin?schoolId=${schoolId.value}&ticket=${ticket}`
-
+    let url = `https://www.k12100.com/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
     if (import.meta.env.VITE_API_BASE_URL === 'https://admin.k12100.com/admin/') {
-      url = `https://www.k12100.com/#/otherLogin?schoolId=${schoolId.value}&ticket=${ticket}`
+      url = `https://www.k12100.com/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
     } else {
-      url = `https://index.k12100.net/#/otherLogin?schoolId=${schoolId.value}&ticket=${ticket}`
+      url = `https://index.k12100.net/#/otherLogin?type=1&schoolId=${schoolId.value}&id=${row.userId}&ticket=${ticket}`
     }
     window.open(url)
   }).catch(() => {})