This commit is contained in:
weipengfei 2024-02-01 17:26:27 +08:00
parent 690061f54a
commit e11da5257d
1 changed files with 8 additions and 7 deletions

View File

@ -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)"
>
<div class="task-priority bg-priority-0"></div>
<a-tooltip :placement="index > 0 ? 'top' : 'right'">
@ -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)"
>
<div class="task-priority bg-priority-0"></div>
<a-tooltip :placement="index > 0 ? 'top' : 'right'">
@ -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('MMDD 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);