Commit 8b35e25f by 前端

修复

1 parent 7f7718c9
......@@ -76,7 +76,7 @@
class="el-icon-video-play"
@click="handleEnlarge(itm.materialContent, 'video')"
></i>
<div class="video-pane-close" @click="close(index)">
<div class="video-pane-close" @click="close(index, 1)">
<img
src="../../assets/welcomeWord/close-video.png"
alt=""
......@@ -623,7 +623,6 @@ export default {
video.clientWidth * multiple,
video.clientHeight * multiple
)
console.log(canvas, 'canvas')
// 转换成base64形式
var oGrayImg = canvas.toDataURL('image/png') // 截取后的视频封面
const file = this.dataURLtoFile(oGrayImg)
......@@ -691,7 +690,6 @@ export default {
that.$nextTick(() => {
const videoUrl = res
that.getImgUrl(videoUrl).then((res) => {
console.log(res, 'videoimg')
that.$emit('getVideoImg', res.data.data)
that.$emit('getEditor')
})
......@@ -826,7 +824,8 @@ export default {
})
}
},
close(index) {
close(index, type) {
if (type) this.$emit('setVideoImg')
this.previewList.splice(index, 1)
},
textInput(val) {
......
......@@ -218,6 +218,7 @@
@getEditor="getEditor(item, index, itm, index1)"
@shareMatrial="shareMatrial"
@getVideoImg="getVideoImg"
@setVideoImg="setVideoImg"
></GLEditor>
</el-form-item>
<el-form-item
......@@ -1254,6 +1255,9 @@ export default {
getVideoImg(val) {
this.videoImg = val
},
setVideoImg() {
this.videoImg = ''
},
// 删除任务
delTask(dateTask, dateTaskIndex, task, taskIndex) {
// dateTask -- 具体哪一天的任务对象
......@@ -1318,8 +1322,6 @@ export default {
},
// 页面风格切换
textTypeChange(item, index, itm, index1) {
console.log(itm)
console.log(this.textIds)
if (itm.textType == 1) {
let textId = itm.taskid || itm.id
this.getTextBox(textId, index, index1)
......@@ -1392,7 +1394,6 @@ export default {
let hasLink = itm.missionMaterialList.findIndex(
(list) => list.materialType == 4
)
console.log(hasLink, '---')
if (hasLink == -1) {
itm.showArticle = true
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!