@@ -71,10 +71,11 @@
{{columnName(item.column_id)}}
@@ -86,10 +87,11 @@
{{item.p_name}}
@@ -210,6 +212,10 @@ export default {
},
},
methods: {
+ isTopTask(item) {
+ return item.parent_id === 0 || item.top_task === true
+ },
+
columnName(column_id) {
const column = this.columns.find(({id}) => id == column_id)
return column ? column.name : '';
@@ -249,11 +255,7 @@ export default {
},
openTask(task, receive) {
- if (task.parent_id > 0) {
- this.$store.dispatch("openTask", task.parent_id)
- } else {
- this.$store.dispatch("openTask", task.id)
- }
+ this.$store.dispatch("openTask", task)
if (receive === true) {
// 向任务窗口发送领取任务请求
setTimeout(() => {
diff --git a/resources/assets/js/pages/manage/dashboard.vue b/resources/assets/js/pages/manage/dashboard.vue
index 3e57234d..cbf1f837 100644
--- a/resources/assets/js/pages/manage/dashboard.vue
+++ b/resources/assets/js/pages/manage/dashboard.vue
@@ -35,9 +35,9 @@
:key="item.id"
:class="{complete: item.complete_at}"
:style="item.color ? {backgroundColor: item.color} : {}"
- @click="$store.dispatch('openTask', item.id)">
+ @click="openTask(item)">
- {{item.name}}
+ {{$L('子任务')}}{{item.name}}
@@ -102,6 +102,7 @@