|
@@ -32,6 +32,7 @@ function getTableData(){
|
|
|
PageSize:tableQuery.pageSize,
|
|
|
CurrentIndex:tableQuery.currentPage,
|
|
|
SortType:tableQuery.sortType,
|
|
|
+ KeyWord:tableQuery.keyWord
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
tableData.value = res.Data.List||[]
|
|
@@ -93,8 +94,10 @@ function handleSortChange({order,prop}){
|
|
|
<template>
|
|
|
<div class="video-list-wrap">
|
|
|
<div class="top-box">
|
|
|
- <el-button type="primary" :icon="Plus" @click="handleEdit">上传视频</el-button>
|
|
|
- <el-input style="width:400px;margin-left: auto;" placeholder="视频名称" v-model="tableQuery.keyWord" :prefix-icon="Search" clearable></el-input>
|
|
|
+ <el-button type="primary" :icon="Plus" @click="handleEdit" v-permission="'media:uploadVideo'">上传视频</el-button>
|
|
|
+ <el-input style="width:400px;margin-left: auto;" placeholder="视频名称"
|
|
|
+ v-model="tableQuery.keyWord" :prefix-icon="Search" clearable
|
|
|
+ @input="handlePageChange(1)"/>
|
|
|
</div>
|
|
|
<div class="table-box">
|
|
|
<el-table stripe border :data="tableData" @sort-change="handleSortChange">
|
|
@@ -120,8 +123,8 @@ function handleSortChange({order,prop}){
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="{row}">
|
|
|
- <el-link type="primary" :underline="false" @click="handleEdit(row)" style="margin-right: 20px;">编辑</el-link>
|
|
|
- <el-link type="danger" :underline="false" @click="handleDelete(row)">删除</el-link>
|
|
|
+ <el-link type="primary" :underline="false" @click="handleEdit(row)" style="margin-right: 20px;" v-permission="'media:editVideo'">编辑</el-link>
|
|
|
+ <el-link type="danger" :underline="false" @click="handleDelete(row)" v-permission="'media:deleteVideo'">删除</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -143,6 +146,7 @@ function handleSortChange({order,prop}){
|
|
|
:modifyType="modifyType"
|
|
|
ImageUploadWidth="192px"
|
|
|
ImageUploadHeight="108px"
|
|
|
+ @save="getTableData"
|
|
|
></MediaUpload>
|
|
|
<MediaPlayer
|
|
|
v-model:show="mediaPlayerShow"
|