From 563cd4b8438af33eaaef71170d2ebd9d19bbd855 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 23 Jan 2022 23:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=B2=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/TaskArchived.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/components/TaskArchived.vue b/resources/assets/js/pages/manage/components/TaskArchived.vue index 718b8220..07716a1c 100644 --- a/resources/assets/js/pages/manage/components/TaskArchived.vue +++ b/resources/assets/js/pages/manage/components/TaskArchived.vue @@ -74,7 +74,7 @@ export default { }, computed: { - ...mapState(['windowMax768']) + ...mapState(['cacheTasks', 'windowMax768']) }, watch: { projectId: { @@ -98,7 +98,13 @@ export default { key: 'name', minWidth: 200, render: (h, {row}) => { - return h('AutoTip', row.name); + return h('AutoTip', { + on: { + 'on-click': () => { + this.$store.dispatch("openTask", row); + } + } + }, row.name); } }, { @@ -140,6 +146,13 @@ export default { align: 'center', width: 100, render: (h, params) => { + if (this.cacheTasks.find(task => task.id == params.row.id && !task.archived_at)) { + return h('div', { + style: { + color: '#888', + }, + }, this.$L('已还原')); + } const vNodes = [ h('span', { style: {