优化已归档任务列表
This commit is contained in:
parent
834dc9bec9
commit
563cd4b843
@ -74,7 +74,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['windowMax768'])
|
...mapState(['cacheTasks', 'windowMax768'])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
projectId: {
|
projectId: {
|
||||||
@ -98,7 +98,13 @@ export default {
|
|||||||
key: 'name',
|
key: 'name',
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
render: (h, {row}) => {
|
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',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
render: (h, params) => {
|
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 = [
|
const vNodes = [
|
||||||
h('span', {
|
h('span', {
|
||||||
style: {
|
style: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user