Commit 27189704 authored by Mac's avatar Mac

素材修改

parent 966e0069
......@@ -20,7 +20,7 @@
<div style="margin-top: 15px;">
<div style="width:70px">上传图片:</div>
<div style="margin-top: 15px;">
<el-upload class="avatar-uploader" ref="upload" :action="importFileUrl2"
<el-upload class="avatar-uploader" ref="upload" :action="importFileUrl2" v-if="ismodify==false"
:multiple="false" :on-success="successUpload" :show-file-list="false"
accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp">
<div v-if="imgPath==''" class="materialupload">
......@@ -29,6 +29,7 @@
<q-img v-else :src="imgPath" style="width: 110px;height: 110px;border-radius: 6px;display: flex;">
</q-img>
</el-upload>
<q-img v-else :src="imgPath" style="width: 110px;height: 110px;border-radius: 6px;display: flex;" v-if="ismodify"></q-img>
<!-- <el-upload class="avatar-uploader materialupload" action="" :before-upload="uploadFile"
accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp" :show-file-list="false">
<i class="el-icon-plus avatar-uploader-icon" style="font-size: 30px;" v-if="addMsg.Path==''"></i>
......@@ -78,7 +79,7 @@
</span>
</q-circular-progress>
<div style="margin-top: 15px;">
<el-upload class="avatar-uploader " action="" :before-upload="uploadFile" :show-file-list="false">
<el-upload class="avatar-uploader " action="" :before-upload="uploadFile" :show-file-list="false" v-if="ismodify==false">
<q-btn color="accent" size="sm" class="q-mr-md" icon="cloud_upload" label="上传"
@click='stopPlayVoice()'>
</q-btn>
......@@ -113,6 +114,7 @@
v-model="addMsg.PlatformType" @input="$forceUpdate()" ref="Id" :options="platTypeList" label="平台类型"
:dense="false" emit-value map-options /> -->
<q-input clearable filled v-model="addMsg.MediaName" placeholder="请输入视频名称" class="q-mt-lg" maxlength="20" />
<q-input clearable filled v-model="addMsg.Description" placeholder="请输入视频介绍" class="q-mt-lg" type="textarea" maxlength="300" counter/>
<div style="margin-top: 15px;">
<div style="width:80px">视频封面图:</div>
<div style="margin-top: 15px;">
......@@ -140,7 +142,7 @@
<source :src="addMsg.Path" type="video/mp4" />
</video>
<div style="margin-top: 15px;">
<el-upload class="avatar-uploader " action="" :before-upload="uploadFile" :show-file-list="false">
<el-upload class="avatar-uploader " action="" :before-upload="uploadFile" :show-file-list="false" v-if="ismodify==false">
<q-btn color="accent" size="sm" class="q-mr-md" icon="cloud_upload" label="上传">
</q-btn>
</el-upload>
......@@ -219,12 +221,14 @@
playRec: null,
imgPath: '',
importFileUrl2: this.domainManager().UploadFileUrl2,
getImgChoice: false
getImgChoice: false,
ismodify:false,//是否修改
}
},
created() {
if (this.editobj != null) {
this.addMsg = JSON.parse(JSON.stringify(this.editobj))
this.ismodify = true
if(this.type==1){
this.imgPath = this.addMsg.ImageUrl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment