diff --git a/resources/assets/js/pages/manage/components/TaskDeleted.vue b/resources/assets/js/pages/manage/components/TaskDeleted.vue
index 87683318a..209f4a114 100644
--- a/resources/assets/js/pages/manage/components/TaskDeleted.vue
+++ b/resources/assets/js/pages/manage/components/TaskDeleted.vue
@@ -13,7 +13,22 @@
{{$L("关键词")}}
-
+
+
+
+
+
+ {{$L("任务标签")}}
+
+
+
@@ -96,6 +111,23 @@ export default {
return h('AutoTip', row.name);
}
},
+ {
+ title: this.$L('任务标签'),
+ key: 'tags',
+ minWidth: 100,
+ render: (h, {row}) => {
+ if (row.task_tag.length == 0) {
+ return h('div', '-');
+ }
+ return h('AutoTip', {
+ on: {
+ 'on-click': () => {
+ this.$store.dispatch("openTask", row);
+ }
+ }
+ }, row.task_tag.map(({name}) => name).join('、'));
+ }
+ },
{
title: this.$L('创建时间'),
key: 'created_at',
@@ -160,6 +192,8 @@ export default {
],
list: [],
+ tags: [],
+
page: 1,
pageSize: 20,
total: 0,
@@ -167,7 +201,7 @@ export default {
}
},
mounted() {
-
+ this.loadTags()
},
computed: {
...mapState(['cacheTasks'])
@@ -192,6 +226,23 @@ export default {
this.getLists();
},
+ async loadTags() {
+ let tags = [];
+ const project_id = this.projectId
+ try {
+ const {data} = await this.$store.dispatch("call", {
+ url: 'project/tag/list',
+ data: {project_id},
+ })
+ tags = data || []
+ } catch (e) {
+ tags = [];
+ }
+ if (project_id === this.projectId) {
+ this.tags = tags
+ }
+ },
+
getLists() {
if (!this.projectId) {
return;