From 7c5f0dea0bae2a0491eed77fef9528c8387acc7d Mon Sep 17 00:00:00 2001 From: bestlee Date: Mon, 12 Oct 2026 09:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8F=91=E8=B5=B7=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E8=8E=B7=E5=8F=96=E5=AD=97=E6=AE=B5=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/common/router.ts | 2 +- src/views/my/initiateChange/modules/changeApply.vue | 4 ++-- src/views/my/initiateChange/modules/changePre.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks/common/router.ts b/src/hooks/common/router.ts index caa9eae..835b022 100644 --- a/src/hooks/common/router.ts +++ b/src/hooks/common/router.ts @@ -41,7 +41,7 @@ export function useRouterPush(inSetup = true) { const meta = allRoutes.find(item => item.name === key)?.meta || null; // 处理 my_initiatechange 路由,如果 id 存在,直接跳转 // 判断发起变更是否是编辑 - if(route.value?.name==='my_initiatechange' && route.value?.query?.id){ + if(meta?.title==='发起变更' && route.value?.query?.id){ return } diff --git a/src/views/my/initiateChange/modules/changeApply.vue b/src/views/my/initiateChange/modules/changeApply.vue index c996c14..3254153 100644 --- a/src/views/my/initiateChange/modules/changeApply.vue +++ b/src/views/my/initiateChange/modules/changeApply.vue @@ -590,8 +590,8 @@ defineExpose({form, questions, applyAiResult, generateLevel: useAiLevel})
{{ t.label }} diff --git a/src/views/my/initiateChange/modules/changePre.vue b/src/views/my/initiateChange/modules/changePre.vue index f75c94a..36ac65f 100644 --- a/src/views/my/initiateChange/modules/changePre.vue +++ b/src/views/my/initiateChange/modules/changePre.vue @@ -25,7 +25,7 @@ const generateLoading = ref(false); // 风险预分析loading const analyzing = ref(false); // 是否显示险预分析 -const preRiskShow = computed(() => form.value.severity !== '' || form.value.probability !== '' || form.value.protection !== ''); +const preRiskShow = computed(() => form.value.severity || form.value.probability || form.value.protection); // 是否显示变更识别结果 const identifyShow = computed(() => form.value.compare_rows.length > 0); // 表单 @@ -134,7 +134,7 @@ watch(() => props.currentForm, (newVal:any) => { 变更内容描述
- + 变更识别