wangziqian 4 lat temu
rodzic
commit
f5bffc9bc1

+ 4 - 3
src/views/projectManage/components/demand.vue

@@ -169,7 +169,7 @@
   </div>
 </template>
 <script>
-import { analysisBizId_id } from '@/utils/crypto-js.js'
+import { EncryptId, analysisBizId_id } from '@/utils/crypto-js.js'
 import _ from 'lodash'
 import { listByRequire, taskListAvailableDpmTask, taskSetTaskRelated, taskDeleteRelationship, taskShowRelatedDpmTask, taskSyncScheduleToDpm } from '@/api/requirement.js'
 import scheduleList from '@/views/projectManage/components/scheduleList.vue'
@@ -442,8 +442,9 @@ export default {
       }
       this.$refs.taskSchedule.addSchedule()
     },
-    clickTemplatTaskName(e) { // 任务名称店家跳转
-      const { href } = this.$router.resolve({ name: '任务详情', query: { id: e }})
+    clickTemplatTaskName(id) { // 任务名称店家跳转
+      const bizId_id = EncryptId(`${this.bizId}_${id}`)
+      const { href } = this.$router.resolve({ name: '任务详情', query: { bizId_id: bizId_id }})
       window.open(href, '_blank')
     },
     editTask(val) { // 点击修改taskName

+ 4 - 2
src/views/projectManage/iteration/components/demand.vue

@@ -74,6 +74,7 @@
   </div>
 </template>
 <script>
+import { EncryptId } from '@/utils/crypto-js.js'
 import { listByRequire } from '@/api/requirement.js'
 import scheduleList from '@/views/projectManage/components/scheduleList.vue'
 import '@/styles/PublicStyle/index.scss' // 通用css
@@ -200,8 +201,9 @@ export default {
       }
       this.$refs.taskSchedule.addSchedule()
     },
-    clickTemplatTaskName(e) { // 任务名称店家跳转
-      const { href } = this.$router.resolve({ name: '任务详情', query: { id: e }})
+    clickTemplatTaskName(id) { // 任务名称店家跳转
+      const bizId_id = EncryptId(`${this.bizId}_${id}`)
+      const { href } = this.$router.resolve({ name: '任务详情', query: { bizId_id: bizId_id }})
       window.open(href, '_blank')
     },
     editTask(val) { // 点击修改taskName