Bläddra i källkod

审核审批直接弹出页面

xuzhancheng 1 månad sedan
förälder
incheckning
390fb10612

+ 9 - 1
yudao-ui-admin-vue3/src/views/pressure2/boilerchecker/components/StatusOperationPanel.vue

@@ -1603,7 +1603,15 @@ const isCanOAAudit = computed(() => {
 
 // OA审核:弹出独立窗口
 const oaAuditTimer = ref<ReturnType<typeof setInterval> | null>(null)
-
+onMounted(() => {
+  setTimeout(() => {
+    if (route.query?.type == 'reportRatify' || route.query?.type == 'reportAudit') {
+      if (isCanOAAudit.value) {
+        handleOpenOAAudit()
+      }
+    }
+  }, 500)
+})
 const handleOpenOAAudit = async () => {
   // 清除之前的定时器
   if (oaAuditTimer.value) {

+ 9 - 1
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/components/StatusOperationPanel.vue

@@ -1569,7 +1569,15 @@ const isCanOAAudit = computed(() => {
   }
   return false
 })
-
+onMounted(() => {
+  setTimeout(() => {
+    if (route.query?.type == 'reportRatify' || route.query?.type == 'reportAudit') {
+      if (isCanOAAudit.value) {
+        handleOpenOAAudit()
+      }
+    }
+  }, 500)
+})
 // OA审核:弹出独立窗口
 const oaAuditTimer = ref<ReturnType<typeof setInterval> | null>(null)