Skip to content

Commit

Permalink
Update VideoView.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
putianyi889 committed Apr 30, 2024
1 parent 3bc4c72 commit da9e6f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions front_end/src/views/VideoView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@
</el-row>

<div style="width: 80%;font-size:20px;margin: auto;margin-top: 10px;">
<el-table :data="videoList" @sort-change="handleSortChange">
<el-table :data="videoList" @sort-change="handleSortChange" @row-click="preview">
<el-table-column type="index" :index="offsetIndex" fixed></el-table-column>
<el-table-column v-for="key in selected_index()"
:prop="index_tags[key].key"
:label="index_tags[key].name"
:formatter="columnFormatter(key)"
sortable="custom">
</el-table-column>
<el-table-column prop="id" v-slot="scope">
<el-button @click="preview(scope.row.id)"><i class="el-icon-video-play"></i></el-button>
</el-table-column>
</el-table>
</div>

Expand Down Expand Up @@ -273,7 +270,8 @@ const index_select = (key: string | number, value: NameKeyReverse) => {
index_tags[key].selected = !value.selected;
}
const preview = (id: number | undefined) => {
const preview = (row: any) => {
var id = row.id
if (!id) {
return
}
Expand Down

0 comments on commit da9e6f8

Please sign in to comment.