Ver código fonte

fix: 修改bug

wuguojie 1 ano atrás
pai
commit
cc42e7d1d1

+ 3 - 0
src/views/quoteConfig/agreement/agreementDetails.vue

@@ -238,6 +238,9 @@ onBeforeMount(async () => {
     regionLicenseNumber('14');//车牌号
     rulesAttrListInfo.agreementId = id.value;//赋值协议id
   }
+  if(route.query.from as string) {
+      activeName.value = 'costManagement'
+  }
 })
 //协议详情
 const detailsInfo = () => {

+ 5 - 4
src/views/quoteConfig/agreement/agreementIndex.vue

@@ -360,10 +360,11 @@ function agreemenUpdate(item: any) {
 }
 const cost=(id:string)=>{
   router.push({
-    name: 'CostManagement',
-    query: {
-      id: id
-    }
+      name: 'AgreementDetails',
+      query: {
+          id: id,
+          from: '费用管理'
+      }
   })
 }
 //多选事件