Skip to content

Commit

Permalink
perf: 优化播放器进度条遮挡录像问题;调整字段显示
Browse files Browse the repository at this point in the history
  • Loading branch information
huailei000 committed Mar 14, 2023
1 parent ca690b9 commit 3c03b9d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/player/asciicastPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div slot="content">
资产名: {{this.asset}}<br/>
用户: {{this.admin_user}}<br/>
系统用户: {{this.system_user}}<br/>
账号: {{this.account || ''}}<br/>
开始时间: {{this.date_start}}<br/>
结束时间: {{this.date_end}}
</div>
Expand Down Expand Up @@ -38,7 +38,7 @@ export default {
jsonpeth: null,
asset: '',
admin_user: '',
system_user: '',
account: '',
version_internal: '',
date_start: '',
date_end: '',
Expand Down Expand Up @@ -78,7 +78,7 @@ export default {
this.date_start = dateStart.toLocaleString('zh-CN', { hour12: false }).split('/').join('-')
this.date_end = dataEnd.toLocaleString('zh-CN', { hour12: false }).split('/').join('-')
this.asset = jsonData.asset
this.system_user = jsonData.system_user
this.account = jsonData.account
this.admin_user = jsonData.user
this.cols = window.innerWidth
this.rows = window.innerHeight - 50
Expand Down
12 changes: 9 additions & 3 deletions src/renderer/components/player/guaPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
</el-col>
<el-col :span="2" :offset="2" :v-if="this.version_internal === 2">
<el-tooltip placement="top" style="line-height:32px;">
<div slot="content">资产名: {{this.asset}}<br/>用户: {{this.admin_user}}<br/>系统用户: {{this.system_user}}<br/>开始时间: {{this.date_start}}<br/>结束时间: {{this.date_end}}</div>
<div slot="content">
资产名: {{this.asset}}<br/>
用户: {{this.admin_user}}<br/>
账号: {{this.account || ''}}<br/>
开始时间: {{this.date_start}}<br/>
结束时间: {{this.date_end}}
</div>
<i class="el-icon-warning"></i>
</el-tooltip>
</el-col>
Expand Down Expand Up @@ -64,7 +70,7 @@ export default {
date_start: '',
date_end: '',
admin_user: '',
system_user: '',
account: '',
version_internal: Number
}
},
Expand Down Expand Up @@ -113,7 +119,7 @@ export default {
this.date_start = dateStart.toLocaleString('zh-CN', { hour12: false }).split('/').join('-')
this.date_end = dataEnd.toLocaleString('zh-CN', { hour12: false }).split('/').join('-')
this.asset = jsonData.asset
this.system_user = jsonData.system_user
this.account = jsonData.account
this.admin_user = jsonData.user
})
}
Expand Down
8 changes: 7 additions & 1 deletion src/renderer/components/player/linuxPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
</el-col>
<el-col :span="2" :v-if="this.version_internal === 2">
<el-tooltip placement="top" style="line-height:32px;" >
<div slot="content">资产名: {{this.asset}}<br/>用户: {{this.admin_user}}<br/>系统用户: {{this.system_user}}<br/>开始时间: {{this.date_start}}<br/>结束时间: {{this.date_end}}</div>
<div slot="content">
资产名: {{this.asset}}<br/>
用户: {{this.admin_user}}<br/>
账号: {{this.account || ''}}<br/>
开始时间: {{this.date_start}}<br/>
结束时间: {{this.date_end}}
</div>
<i class="el-icon-warning"></i>
</el-tooltip>
</el-col>
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

#terminal {
.asciinema-player, pre {
height: 100%!important;
height: calc(100% - 20px)!important;
width: 99%!important;
padding-bottom: 20px;
}
pre {
overflow-y: scroll;
Expand Down

0 comments on commit 3c03b9d

Please sign in to comment.