All Files sort done

This commit is contained in:
chiayin
2023-02-17 12:24:34 +08:00
parent bf3086a456
commit 23f9d9ba15
2 changed files with 42 additions and 40 deletions

View File

@@ -17,12 +17,14 @@ export default defineStore('filesStore', {
{
log: {},
fileType: '',
ownerName: '',
}
],
allEventLog: [
{
parentLog: '',
fileType: '',
ownerName: '',
}
],
switchFilesTagData: {
@@ -66,6 +68,7 @@ export default defineStore('filesStore', {
this.allEventLog.map(o => {
o.parentLog = "-";
o.fileType = "Log";
o.ownerName = o.owner.name;
o.updated_at = moment(o.updated_at).format('YYYY-MM-DD HH:MM');
o.accessed_at = moment(o.accessed_at).format('YYYY-MM-DD HH:MM');
return this.allEventLog
@@ -96,6 +99,7 @@ export default defineStore('filesStore', {
this.allFilter = response.data;
this.allFilter.map(o => {
o.fileType = "Filter";
o.ownerName = o.owner.name;
o.updated_at = moment(o.updated_at).format('YYYY-MM-DD HH:MM');
o.accessed_at = moment(o.accessed_at).format('YYYY-MM-DD HH:MM');
});