音视频管理

This commit is contained in:
@fawn-nine
2024-06-26 11:47:55 +08:00
parent 38b2028c6b
commit 3192aec2e5
2 changed files with 13 additions and 5 deletions

View File

@@ -91,7 +91,8 @@
</quill-editor>
</el-form-item>
<!-- <el-form-item prop="sort" label-width="0"> -->
<div v-if="this.dataForm.id">
<!-- <div v-if="this.dataForm.id"> -->
<div>
<div
class="flexbox videoBox"
v-for="(item, index) in video_audio_url"
@@ -134,10 +135,12 @@
<el-button @click="delItem(index)" plain type="danger" size="mini">删除</el-button>
</div>
<!-- </el-form-item> -->
<div style="text-align:center" >
<!-- </el-form-item> -->
</div>
<div style="text-align:center; padding-top:15px" >
<el-button @click="addItem">添加一条音/视频</el-button>
</div></div>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="handlereset">取消</el-button>
@@ -312,8 +315,9 @@ export default {
this.chapterId = this.dataForm.id
if(this.dataForm.videoList && this.dataForm.videoList.length > 0){
this.video_audio_url = [...this.dataForm.videoList]
console.log('dedao',this.video_audio_url)
}else{
// this.video_audio_url = []
this.video_audio_url = []
}
if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") {
var img = {

View File

@@ -84,6 +84,10 @@
{
dictType: 1,
dictValue: "加密"
},
{
dictType: 2,
dictValue: "mp3"
}
],
props: {