浏览代码

报告详情

wangziqian 4 年之前
父节点
当前提交
0ffa4c2587

+ 4 - 1
src/router/needIdList.js

@@ -4,5 +4,8 @@ export const needIdList = [
   '任务详情',
   '子任务详情',
   '迭代详情',
-  '缺陷详情'
+  '缺陷详情',
+  '日报详情',
+  '准出详情',
+  '提测详情'
 ]

+ 10 - 1
src/views/projectManage/components/workflowAndStatus.vue

@@ -21,6 +21,7 @@
 </template>
 
 <script>
+import { analysisBizId_id } from '@/utils/crypto-js.js'
 import '@/styles/PublicStyle/index.scss'
 import { requirementSyncDpmWorkflow, taskSyncDpmWorkflow } from '@/api/requirement.js'
 export default {
@@ -33,7 +34,7 @@ export default {
     return {
       dia_content: this.name,
       dialogVisible: false,
-      requirementId: Number(this.$route.query.id), // 需求id
+      requirementId: -1, // 需求id
       titName: ''
     }
   },
@@ -54,7 +55,15 @@ export default {
     }
 
   },
+  created() {
+    this.analysisBizId_id()
+  },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.requirementId = bizId_id[1]
+    },
     async requirementSyncDpmWorkflow() {
       if (this.name === '需求') {
         const res = await requirementSyncDpmWorkflow(this.requirementId)

+ 8 - 1
src/views/projectManage/iteration/components/requiredTable.vue

@@ -177,6 +177,7 @@
 
 <script>
 import { mapGetters } from 'vuex'
+import { analysisBizId_id } from '@/utils/crypto-js.js'
 import '@/styles/PublicStyle/index.scss'
 import rqmtStatus from '@/views/projectManage/components/requirementStatus.vue'
 import iterationDelete from '@/views/projectManage/iteration/components/delete.vue'
@@ -218,7 +219,7 @@ export default {
       searchResult: [], // 变更迭代下的数据
       SearchIterationValue: '',
       checkAlls: false,
-      iterationId: Number(this.$route.query.id),
+      iterationId: -1,
       selectedData: [], // 选中的数据
       RequirementSet: [], // 迭代下的需求
       iterationData: {} //
@@ -238,12 +239,18 @@ export default {
     }
   },
   created() {
+    this.analysisBizId_id()
     this.getTaskStatus()
   },
   mounted() {
     this.rowDrop()
   },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.iterationId = bizId_id[1]
+    },
     async iteratioFilter() {
       this.rqmtStatusShow = false
       const data = { id: this.iterationId, curIndex: 1, pageSize: 15, bizId: this.bizId }

+ 8 - 1
src/views/projectManage/iteration/details/iterationDetails.vue

@@ -48,6 +48,7 @@
 </template>
 
 <script>
+import { analysisBizId_id } from '@/utils/crypto-js.js'
 import { mapGetters } from 'vuex'
 import '@/styles/PublicStyle/index.scss'
 import iterationDeleteIteration from '@/views/projectManage/iteration/components/deleteIteration.vue'
@@ -78,7 +79,7 @@ export default {
       showIteration: false, // 编辑迭代(弹窗)
       visibleplanning: false, // 规划迭代(弹窗)
       selectedData: [], // 选中的数据
-      iterationId: Number(this.$route.query.id), // 当前迭代的id
+      iterationId: -1, // 当前迭代的id
       iterationData: {}
     }
   },
@@ -95,12 +96,18 @@ export default {
     }
   },
   mounted() {
+    this.analysisBizId_id()
     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
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.iterationId = bizId_id[1]
+    },
     async iteratioFilter() { // 迭代list
       const list = iterationList({ id: this.iterationId, curIndex: 1, pageSize: 15, bizId: this.bizId })
       const listRes = await list

+ 11 - 1
src/views/projectManage/projectList/components/mileStone.vue

@@ -79,6 +79,7 @@
 </template>
 <script>
 const _ = require('lodash')
+import { analysisBizId_id } from '@/utils/crypto-js.js'
 import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
 import {
   mileStoneCreate,
@@ -150,6 +151,7 @@ export default {
       }
     }
     return {
+      projectId: -1,
       inputValue: '',
       dalete_Milepost: false, // 删除里程碑
       title_name: '', // 里程碑title
@@ -191,7 +193,15 @@ export default {
       immediate: true
     }
   },
+  created() {
+    this.analysisBizId_id()
+  },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.projectId = bizId_id[1]
+    },
     get_Milepost(e) {
       // 点击原点
       this.get_Milepost_data = _.cloneDeep(e)
@@ -219,7 +229,7 @@ export default {
       this.$refs['form'].validate(valid => {
         if (valid) {
           const milestone = {
-            projectId: this.$route.query.id,
+            projectId: this.projectId,
             id: e.id,
             title: e.title,
             mtime: e.mtime,

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

@@ -37,6 +37,7 @@
 
 <script>
 const _ = require('lodash')
+import { analysisBizId_id } from '@/utils/crypto-js.js'
 import moment from 'moment'
 import '@/styles/PublicStyle/index.scss'
 import searchPeople from '@/components/select/searchPeople'
@@ -53,6 +54,7 @@ export default {
   },
   data() {
     return {
+      id: -1,
       rules: {
         brdPassRealTime: [{ required: true, message: '请输入BRD评审通过时间', trigger: 'change' }],
         prdPassRealTime: [{ required: true, message: '请输入PRD评审通过时间', trigger: 'change' }],
@@ -91,7 +93,15 @@ export default {
       immediate: true
     }
   },
+  created() {
+    this.analysisBizId_id
+  },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.id = bizId_id[1]
+    },
     init() {
       if (this.status.label === 'PRD评审通过') {
         this.$nextTick(() => {
@@ -108,7 +118,7 @@ export default {
       this.$refs.form_query.validate(async(valid) => {
         if (valid) {
           const data = {
-            id: this.$route.query.id,
+            id: this.id,
             status: this.status.value,
             modifier: localStorage.getItem('username')
           }

+ 1 - 1
src/views/projectManage/taskList/childrenTask/childDetail.vue

@@ -185,7 +185,7 @@ export default {
   },
   watch: {
     '$route'(to, from) {
-      this.taskId = Number(this.$route.query.id)
+      this.analysisBizId_id()
       this.getById()
     },
     'formData.process': {

+ 9 - 3
src/views/reportManagement/ReleaseReport/components/releaseDetails.vue

@@ -176,7 +176,7 @@
 </template>
 
 <script>
-import { EncryptId } from '@/utils/crypto-js.js'
+import { EncryptId, analysisBizId_id } from '@/utils/crypto-js.js'
 import { mapGetters } from 'vuex'
 import '@/styles/PublicStyle/index.scss'
 import {
@@ -194,7 +194,7 @@ export default {
     return {
       dialogDaily: false, // 准出报告弹窗
       dialog_testData: false, // 操作弹窗
-      reportId: this.$route.query.id,
+      reportId: -1,
       details: {}
     }
   },
@@ -202,9 +202,15 @@ export default {
     ...mapGetters(['bizId'])
   },
   created() {
-    this.reportreleaseGetReportById(this.reportId)
+    this.analysisBizId_id()
   },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.reportId = bizId_id[1]
+      this.reportreleaseGetReportById(this.reportId)
+    },
     async reportreleaseGetReportById(e) {
       // 获取准出报告data
       const res = await reportreleaseGetReportById(e)

+ 9 - 3
src/views/reportManagement/Testing/components/deliverDetails.vue

@@ -165,7 +165,7 @@
 </template>
 
 <script>
-import { EncryptId } from '@/utils/crypto-js.js'
+import { EncryptId, analysisBizId_id } from '@/utils/crypto-js.js'
 import { mapGetters } from 'vuex'
 import '@/styles/PublicStyle/index.scss'
 import { reportdelivertestGetReportById, reportreleaseDelete, reportdelivertestGetRequiresByTaskIds, reportdelivertestUpdate } from '@/api/reportTemplate'
@@ -180,7 +180,7 @@ export default {
       dialog_testData: false, // 操作弹窗
       tableData: [],
       AsTp: '',
-      reportId: this.$route.query.id,
+      reportId: -1,
       details: {}
     }
   },
@@ -188,9 +188,15 @@ export default {
     ...mapGetters(['bizId'])
   },
   created() {
-    this.reportdelivertestGetReportById(this.reportId)
+    this.analysisBizId_id()
   },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.reportId = bizId_id[1]
+      this.reportdelivertestGetReportById(this.reportId)
+    },
     async reportdelivertestGetReportById(e) { // 获取提测报告data
       const res = await reportdelivertestGetReportById(e)
       if (res.code === 200) {

+ 1 - 2
src/views/reportManagement/components/ReleaseReport.vue

@@ -109,8 +109,7 @@ export default {
       showTow: false,
       active: 1,
       daily_taskIds: [], // 选择的任务ID
-      num: 0,
-      dailys: this.$route.query.id
+      num: 0
     }
   },
   computed: {

+ 9 - 3
src/views/reportManagement/daily/components/dailyDetails.vue

@@ -86,7 +86,7 @@
 </template>
 
 <script>
-import { EncryptId } from '@/utils/crypto-js.js'
+import { EncryptId, analysisBizId_id } from '@/utils/crypto-js.js'
 import { mapGetters } from 'vuex'
 import '@/styles/PublicStyle/index.scss'
 import { dailyReportGetV2, dailyReportDelete } from '@/api/reportTemplate'
@@ -101,7 +101,7 @@ export default {
     return {
       dialogDaily: false, // 日报弹窗
       dialog_testData: false, // 操作弹窗
-      reportId: this.$route.query.id,
+      reportId: -1,
       details: {}
     }
   },
@@ -109,9 +109,15 @@ export default {
     ...mapGetters(['bizId'])
   },
   created() {
-    this.getReportContent(this.reportId)
+    this.analysisBizId_id()
   },
   methods: {
+    analysisBizId_id() { // 解析路由中的bizId_id
+      if (!this.$route.query.bizId_id) return
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      this.reportId = bizId_id[1]
+      this.getReportContent(this.reportId)
+    },
     // 获取日报data
     async getReportContent(e) {
       const res = await dailyReportGetV2(e)

+ 5 - 3
src/views/reportManagement/testPresentation.vue

@@ -151,6 +151,7 @@
 
 <script>
 const _ = require('lodash')
+import { EncryptId } from '@/utils/crypto-js.js'
 import { mapGetters } from 'vuex'
 import '@/styles/PublicStyle/index.scss'
 import { dailyReportDelete } from '@/api/testPresentetion' // 日报
@@ -472,15 +473,16 @@ export default {
 
     // 日报/准出/提测
     toReportView(ele) {
+      const bizId_id = EncryptId(`${this.bizId}_${ele.id}`)
       switch (this.title) {
         case '测试日报':
-          this.$router.push({ name: '日报详情', query: { id: ele.id }})
+          this.$router.push({ name: '日报详情', query: { bizId_id: bizId_id }})
           break
         case '准出报告':
-          this.$router.push({ name: '准出详情', query: { id: ele.id }})
+          this.$router.push({ name: '准出详情', query: { bizId_id: bizId_id }})
           break
         case '提测报告':
-          this.$router.push({ name: '提测详情', query: { id: ele.id }})
+          this.$router.push({ name: '提测详情', query: { bizId_id: bizId_id }})
           break
       }
     },