perf: 主任务归档时同步子任务归档
This commit is contained in:
parent
7fb1ecc9b0
commit
5ed0ae2fa9
@ -588,9 +588,6 @@ export default {
|
||||
return [];
|
||||
}
|
||||
return this.cacheTasks.filter(task => {
|
||||
if (task.archived_at) {
|
||||
return false;
|
||||
}
|
||||
return task.parent_id == this.taskId
|
||||
}).sort((a, b) => {
|
||||
return a.id - b.id;
|
||||
|
9
resources/assets/js/store/actions.js
vendored
9
resources/assets/js/store/actions.js
vendored
@ -917,6 +917,15 @@ export default {
|
||||
[data.flow_item_status, data.flow_item_name] = data.flow_item_name.split("|")
|
||||
}
|
||||
//
|
||||
if (typeof data.archived_at !== "undefined") {
|
||||
state.cacheTasks.filter(task => task.parent_id == data.id).some(task => {
|
||||
dispatch("saveTask", Object.assign(task, {
|
||||
archived_at: data.archived_at,
|
||||
archived_userid: data.archived_userid
|
||||
}))
|
||||
})
|
||||
}
|
||||
//
|
||||
let updateMarking = {};
|
||||
if (typeof data.update_marking !== "undefined") {
|
||||
updateMarking = $A.isJson(data.update_marking) ? data.update_marking : {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user