wangziqian 4 yıl önce
ebeveyn
işleme
4db5657c79

+ 5 - 1
src/views/business/bizIdSelect.vue

@@ -82,7 +82,11 @@ export default {
       const name = fromRoute.name
       const isDetailPage = needIdList.find(item => item === name)
       if (isDetailPage) {
-        this.$router.push({ name: name.replace(/子|详情/g, ''), query: { bizId: EncryptId(biz.code) }})
+        if (['日报详情', '准出详情', '提测详情'].find(item => item === fromRoute.name)) {
+          this.$router.push({ name: '报告', query: { bizId: EncryptId(biz.code) }})
+        } else {
+          this.$router.push({ name: name.replace(/子|详情/g, ''), query: { bizId: EncryptId(biz.code) }})
+        }
       } else {
         this.$router.push({
           path: fromRoute.path,

+ 1 - 1
src/views/projectManage/requirement/components/timeStatistics.vue

@@ -94,7 +94,7 @@ export default {
     }
   },
   created() {
-    this.analysisBizId_id
+    this.analysisBizId_id()
   },
   methods: {
     analysisBizId_id() { // 解析路由中的bizId_id

+ 6 - 0
src/views/reportManagement/ReleaseReport/components/releaseDetails.vue

@@ -204,6 +204,12 @@ export default {
   created() {
     this.analysisBizId_id()
   },
+  mounted() {
+    this.$store.state.data.status = true
+  },
+  destroyed() {
+    this.$store.state.data.status = false
+  },
   methods: {
     analysisBizId_id() { // 解析路由中的bizId_id
       if (!this.$route.query.bizId_id) return

+ 6 - 0
src/views/reportManagement/Testing/components/deliverDetails.vue

@@ -190,6 +190,12 @@ export default {
   created() {
     this.analysisBizId_id()
   },
+  mounted() {
+    this.$store.state.data.status = true
+  },
+  destroyed() {
+    this.$store.state.data.status = false
+  },
   methods: {
     analysisBizId_id() { // 解析路由中的bizId_id
       if (!this.$route.query.bizId_id) return

+ 6 - 0
src/views/reportManagement/daily/components/dailyDetails.vue

@@ -111,6 +111,12 @@ export default {
   created() {
     this.analysisBizId_id()
   },
+  mounted() {
+    this.$store.state.data.status = true
+  },
+  destroyed() {
+    this.$store.state.data.status = false
+  },
   methods: {
     analysisBizId_id() { // 解析路由中的bizId_id
       if (!this.$route.query.bizId_id) return