Explorar el Código

fix: oa sso jump

yanghao hace 2 semanas
padre
commit
7e32ccfbae
Se han modificado 2 ficheros con 18 adiciones y 1 borrados
  1. 9 1
      src/views/flow/oaDoneList.vue
  2. 9 0
      src/views/flow/todoList.vue

+ 9 - 1
src/views/flow/oaDoneList.vue

@@ -170,7 +170,7 @@ import { ref, onMounted } from "vue";
 import { getOATasks, ssoLogin } from "@/api/user";
 import { useUserStore } from "@/stores/useUserStore";
 import { Icon } from "@iconify/vue";
-
+import { ElLoading, ElMessage } from "element-plus";
 import router from "@/router";
 const userStore = useUserStore();
 
@@ -239,6 +239,11 @@ const goBackPage = async (row) => {
         },
       });
     } else {
+      const loading = ElLoading.service({
+        lock: true,
+        text: "正在跳转,请稍候...",
+        background: "rgba(0, 0, 0, 0.7)",
+      });
       const newTab = window.open("", "_blank");
       newTab.location.href =
         "https://yfoa.keruioil.com/wui/index.html" +
@@ -248,6 +253,9 @@ const goBackPage = async (row) => {
 
       setTimeout(function () {
         newTab.location.href = `https://yfoa.keruioil.com/spa/workflow/static4form/index.html?_rdm=1776063595284#/main/workflow/req?requestid=${row.requestId}`;
+        setTimeout(() => {
+          loading.close();
+        }, 500);
       }, 100);
     }
   }

+ 9 - 0
src/views/flow/todoList.vue

@@ -171,6 +171,7 @@ import { useUserStore } from "@/stores/useUserStore";
 import { Icon } from "@iconify/vue";
 import router from "@/router";
 const userStore = useUserStore();
+import { ElLoading, ElMessage } from "element-plus";
 
 const oaTasks = ref([]);
 const loading = ref(false);
@@ -205,6 +206,11 @@ const goBackPage = async (row) => {
         },
       });
     } else {
+      const loading = ElLoading.service({
+        lock: true,
+        text: "正在跳转,请稍候...",
+        background: "rgba(0, 0, 0, 0.7)",
+      });
       const newTab = window.open("", "_blank");
       newTab.location.href =
         "https://yfoa.keruioil.com/wui/index.html" +
@@ -214,6 +220,9 @@ const goBackPage = async (row) => {
 
       setTimeout(function () {
         newTab.location.href = `https://yfoa.keruioil.com/spa/workflow/static4form/index.html?_rdm=1776063595284#/main/workflow/req?requestid=${row.requestId}`;
+        setTimeout(() => {
+          loading.close();
+        }, 500);
       }, 100);
     }
   }