优化历史日志展示效果

This commit is contained in:
648540858
2024-11-04 10:07:07 +08:00
parent f106675dc6
commit 2161cf6866
2 changed files with 32 additions and 13 deletions

View File

@@ -72,7 +72,7 @@
:title="playerTitle"
:visible.sync="showLog"
width="90%">
<operationsFoShowLog ref="recordVideoPlayer" :fileUrl="fileUrl" ></operationsFoShowLog>
<operationsFoShowLog ref="recordVideoPlayer" :fileUrl="fileUrl" :loadEnd="loadEnd"></operationsFoShowLog>
</el-dialog>
</div>
</template>
@@ -147,14 +147,10 @@ export default {
});
},
showLogView(file) {
this.playerTitle = file.fileName
this.playerTitle = '正在加载日志...'
this.fileUrl = `/api/log/file/${file.fileName}`
// if (process.env.NODE_ENV === 'development') {
// this.fileUrl = `/debug/api/log/file/${file.fileName}`
// }else {
//
// }
this.showLog = true
this.file = file
},
downloadFile(file) {
@@ -169,6 +165,9 @@ export default {
link.click();
},
loadEnd() {
this.playerTitle = this.file.fileName
},
deleteRecord() {
// TODO
let that = this;