阶段性上传
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
|
||||
</el-upload>
|
||||
<div>
|
||||
<video controls width="250" v-if="dataForm.video">
|
||||
<video controls width="250" v-if="dataForm.video != ''">
|
||||
<source :src="dataForm.video" type="video/mp4" />
|
||||
|
||||
</video>
|
||||
@@ -209,7 +209,11 @@
|
||||
this.dataForm.days = data.bookTaskEntity.days
|
||||
this.dataForm.productImages = data.bookTaskEntity.images
|
||||
this.dataForm.productDetails = data.bookTaskEntity.content
|
||||
console.log(this.dataForm.video,'this.dataForm.video')
|
||||
console.log(this.dataForm.video, 'this.dataForm.video')
|
||||
this.videoList.push({
|
||||
name: data.bookTaskEntity.heading,
|
||||
url: data.bookTaskEntity.video
|
||||
})
|
||||
if (data.bookTaskEntity.images != "") {
|
||||
var img = {
|
||||
name: '',
|
||||
@@ -274,6 +278,8 @@
|
||||
onClose: () => {
|
||||
this.visible = false
|
||||
this.dataForm.productDetails = ''
|
||||
this.dataForm.video = ''
|
||||
this.videoList = []
|
||||
this.$refs['dataForm'].resetFields()
|
||||
// this.$refs['dataForm'].reset()
|
||||
this.$emit('refreshDataList')
|
||||
@@ -361,6 +367,8 @@
|
||||
},
|
||||
handlereset() {
|
||||
this.fileList = [],
|
||||
this.videoList = [] // 清空视频列表
|
||||
this.dataForm.video = ''
|
||||
this.visible = false
|
||||
this.swiperfileList = []
|
||||
this.$refs['dataForm'].resetFields()
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
border
|
||||
v-loading="dataListLoading"
|
||||
@selection-change="selectionChangeHandle"
|
||||
:default-sort = "{prop: 'days', order: 'ascending'}"
|
||||
style="width: 100%;">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
@@ -22,11 +23,11 @@
|
||||
align="center"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" width="70" align="center">
|
||||
<!-- <el-table-column label="序号" width="70" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ (pageIndex - 1) * pageSize + scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<!-- <el-table-column
|
||||
prop="id"
|
||||
header-align="center"
|
||||
@@ -34,15 +35,16 @@
|
||||
label="">
|
||||
</el-table-column>
|
||||
-->
|
||||
<el-table-column
|
||||
prop="heading"
|
||||
label="主题">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="days"
|
||||
align="center"
|
||||
label="第N天">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="heading"
|
||||
label="主题">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="content"
|
||||
header-align="center"
|
||||
|
||||
Reference in New Issue
Block a user