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) => { 变更内容描述
- + 变更识别