add audit file log

This commit is contained in:
ljw
2024-10-21 21:07:11 +08:00
parent 20477e29f9
commit df3209b576
9 changed files with 296 additions and 13 deletions
+12
View File
@@ -55,3 +55,15 @@ export function downBlob (blob, filename) {
document.body.removeChild(a)
})
}
export function sizeFormat (size) {
if (size < 1024) {
return size + 'B'
} else if (size < 1024 * 1024) {
return (size / 1024).toFixed(2) + 'KB'
} else if (size < 1024 * 1024 * 1024) {
return (size / 1024 / 1024).toFixed(2) + 'MB'
} else {
return (size / 1024 / 1024 / 1024).toFixed(2) + 'GB'
}
}
+33
View File
@@ -366,5 +366,38 @@
},
"CloseTime": {
"One": "Close Time"
},
"AuditFileLog": {
"One": "File Log"
},
"Common": {
"One": "Common"
},
"File": {
"One": "File"
},
"Num": {
"One": "Num"
},
"Ip": {
"One": "Ip"
},
"FileName": {
"One": "File Name"
},
"FileInfo": {
"One": "File Info"
},
"Path": {
"One": "Path"
},
"IndexNum": {
"One": "Index Num"
},
"ToRemote": {
"One": "To Remote"
},
"ToLocal": {
"One": "To Local"
}
}
+33
View File
@@ -352,5 +352,38 @@
},
"CloseTime": {
"One": "关闭时间"
},
"AuditFileLog": {
"One": "文件日志"
},
"Common": {
"One": "普通"
},
"File": {
"One": "文件"
},
"Num": {
"One": "数量"
},
"Ip": {
"One": "IP"
},
"FileName": {
"One": "文件名"
},
"FileInfo": {
"One": "文件信息"
},
"Path": {
"One": "路径"
},
"IndexNum": {
"One": "序号"
},
"ToRemote": {
"One": "到远程"
},
"ToLocal": {
"One": "到本地"
}
}