|
|
|
|
@ -72,10 +72,12 @@
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-upload :action="action" :limit='1' class='upload-demo' :file-list="videosList"
|
|
|
|
|
accept=".mp4,.ogg,.flv,.avi,.wmv,.rmvb,.mov"
|
|
|
|
|
ref="pictureUpload" :auto-upload="true" :data="uploadOther" :on-success="handlesuccessV"
|
|
|
|
|
ref="pictureUpload" :auto-upload="true" :on-progress="handleProgress" :data="uploadOther" :on-success="handlesuccessV"
|
|
|
|
|
:on-remove="handleRemoveV">
|
|
|
|
|
<el-button size="small" type="primary">upload</el-button>
|
|
|
|
|
</el-upload>
|
|
|
|
|
<el-progress v-if="showProgress" :percentage="uploadProgress"></el-progress>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -127,7 +129,9 @@
|
|
|
|
|
uploadOther: {
|
|
|
|
|
token: ""
|
|
|
|
|
},
|
|
|
|
|
action: `${process.env.VUE_APP_UPLOAD_API}`,
|
|
|
|
|
action: `${process.env.VUE_APP_UPLOAD_API}`,
|
|
|
|
|
showProgress:false,
|
|
|
|
|
uploadProgress:0,
|
|
|
|
|
filesList: [],
|
|
|
|
|
videosList:[],
|
|
|
|
|
videosPicList:[],
|
|
|
|
|
@ -189,7 +193,10 @@
|
|
|
|
|
}
|
|
|
|
|
this.videosPicList = fileList
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleProgress(event, file, fileList) {
|
|
|
|
|
this.showProgress = true;
|
|
|
|
|
this.uploadProgress = event.percent;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
|
|
|
|
|
|
@ -316,7 +323,9 @@
|
|
|
|
|
this.showWang = false
|
|
|
|
|
this.filesList = []
|
|
|
|
|
this.videosList = []
|
|
|
|
|
this.videosPicList = []
|
|
|
|
|
this.videosPicList = []
|
|
|
|
|
this.showProgress = false;
|
|
|
|
|
this.uploadProgress = 0;
|
|
|
|
|
this.form = {
|
|
|
|
|
title: "",
|
|
|
|
|
date:'',
|
|
|
|
|
@ -338,6 +347,7 @@
|
|
|
|
|
::v-deep .title,
|
|
|
|
|
::v-deep .date,
|
|
|
|
|
::v-deep .picture,
|
|
|
|
|
::v-deep .videos,
|
|
|
|
|
::v-deep .video_pics,
|
|
|
|
|
::v-deep .introduction,
|
|
|
|
|
::v-deep .content {
|
|
|
|
|
|