Răsfoiți Sursa

统计 fix bug

princeLee 4 ani în urmă
părinte
comite
6399915c1a
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      src/views/quality/components/developmentCycle.vue

+ 4 - 2
src/views/quality/components/developmentCycle.vue

@@ -20,6 +20,7 @@
   </section>
 </template>
 <script>
+import { EncryptId } from '@/utils/crypto-js.js'
 import normalEchart from '@/components/chart/normalEchart'
 import echarts from 'echarts'
 export default {
@@ -145,11 +146,12 @@ export default {
     },
     toLink(params) {
       if (!params.data[2]) return
+      const bizId_id = EncryptId(`${this.bizId}_${params.data[2]}`)
       if (this.type === 'require') {
-        const newTab = this.$router.resolve({ name: '需求详情', query: { id: params.data[2] }})
+        const newTab = this.$router.resolve({ name: '需求详情', query: { bizId_id: bizId_id }})
         window.open(newTab.href, '_blank')
       } else if (this.type === 'task') {
-        const newTab = this.$router.resolve({ name: '任务详情', query: { id: params.data[2] }})
+        const newTab = this.$router.resolve({ name: '任务详情', query: { bizId_id: bizId_id }})
         window.open(newTab.href, '_blank')
       }
     }