From 6979259e33abcae69535e55dc4726655544a99ac Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 6 Mar 2024 15:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A0=E6=9D=90=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/materials/index.vue | 24 +- src/views/system/trainingAvatar/index.vue | 297 ++++++++++++++++++++++ 2 files changed, 312 insertions(+), 9 deletions(-) create mode 100644 src/views/system/trainingAvatar/index.vue diff --git a/src/views/manage/materials/index.vue b/src/views/manage/materials/index.vue index 499b4eb..accdecd 100644 --- a/src/views/manage/materials/index.vue +++ b/src/views/manage/materials/index.vue @@ -189,13 +189,12 @@ prop="materialsFilePath" v-if="form.materialsType == 'VIDEO'" > - + + import { listMaterials, getMaterials, delMaterials, addMaterials, updateMaterials,crowdInfo } from "@/api/manage/materials"; import stationAcatar from "../../system/stationAvatar/index.vue"; +import trainingAvatar from "../../system/trainingAvatar/index.vue"; export default { name: "Materials", - components: { stationAcatar }, + components: { stationAcatar ,trainingAvatar}, dicts: ['crowd_type', 'materials_type', 'video_cover_type'], data() { return { @@ -431,10 +431,14 @@ export default { }, // 素材类型 radioChange(e) { + if(e=='VIDEO'){ this.form.materialsFilePath=null this.form.videoCoverFilePath=null + }else if(e=='IMAGE_TEXT'){ + this.form.materialsFilePath=null + this.form.videoCoverFilePath=null - console.log(e) + } }, // 素材上传 @@ -445,7 +449,9 @@ export default { imgUrl2(imgUrl) { this.form.materialsFilePath = process.env.VUE_APP_BASE_API + imgUrl; this.form.materialsFilePath = imgUrl; + }, + // 视频封面 imgUrl3(imgUrl) { console.log(this.form.videoCoverFilePath) diff --git a/src/views/system/trainingAvatar/index.vue b/src/views/system/trainingAvatar/index.vue new file mode 100644 index 0000000..3b41473 --- /dev/null +++ b/src/views/system/trainingAvatar/index.vue @@ -0,0 +1,297 @@ + + + +