diff --git a/src/views/datav/copyV.vue b/src/views/datav/copyV.vue index 2dc8c20..d74260d 100644 --- a/src/views/datav/copyV.vue +++ b/src/views/datav/copyV.vue @@ -121,7 +121,7 @@ :key="task.code" :class="showTaskPri(task.pri)" v-if="!task.done && task.canRead" - @click.stop="taskDetail(task.code, index)" + @click.stop="taskDetail(task.code, index, task.project_code)" >
@@ -401,7 +401,7 @@ :id="task.code" :key="task.code" :class="showTaskPri(task.pri)" - @click.stop="taskDetail(task.code, index)" + @click.stop="taskDetail(task.code, index, task.project_code)" >
@@ -1545,7 +1545,7 @@ // }, 'notice', 'success', 5); // 打开任务详情弹窗 - this.taskDetail(res.data.code, stageIndex); + this.taskDetail(res.data.code, stageIndex, task.project_code); console.log({ ...res.data }); } }) @@ -1774,10 +1774,11 @@ return formatTaskTime(time, timeEnd); // return moment(time).format('MM月DD日 HH:mm') }, - taskDetail(code, stageIndex) { - this.$router.push( - `/project/space/task/qfbyovzhd9sj31u8ln602rwk/detail/${code}?from=${stageIndex}` - ); + taskDetail(code, stageIndex, proCode) { + // this.$router.push( + // `/project/space/task/${proCode}/detail/${code}?from=${stageIndex}` + // ); + window.open(`index.html#/project/space/task/${proCode}/detail/${code}?from=${stageIndex}`) }, stageSort(event) { const list = this.getPreAndNextCode(event);