Commit df391a2d by 李伟康

修改直播类型

1 parent d5774cfa
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
v-if="!isDisabled" v-if="!isDisabled"
@click="handleRelateProClose" @click="handleRelateProClose"
>选择商品</el-button> >选择商品</el-button>
<template v-if="editForm.goodsList.length">
<div class="goods-box"> <div class="goods-box">
<template v-for="(i,index) in editForm.goodsList"> <template v-for="(i,index) in editForm.goodsList">
<div <div
...@@ -191,6 +192,7 @@ ...@@ -191,6 +192,7 @@
</div> </div>
</template> </template>
</div> </div>
</template>
</div> </div>
<div <div
slot="specificationsHtml" slot="specificationsHtml"
...@@ -2991,9 +2993,14 @@ export default { ...@@ -2991,9 +2993,14 @@ export default {
if (!param.floatingMaskDiagram) param.floatingMaskDiagram = this.defaultFloatingMaskDiagram if (!param.floatingMaskDiagram) param.floatingMaskDiagram = this.defaultFloatingMaskDiagram
if (!param.liveBroadcastRoomCover) param.liveBroadcastRoomCover = this.defaultImgObj.COVER_LIVE if (!param.liveBroadcastRoomCover) param.liveBroadcastRoomCover = this.defaultImgObj.COVER_LIVE
if (!param.liveBroadcastRoomEndCover) param.liveBroadcastRoomEndCover = this.defaultImgObj.COVER_REPLAY if (!param.liveBroadcastRoomEndCover) param.liveBroadcastRoomEndCover = this.defaultImgObj.COVER_REPLAY
['liveBroadcastMediaUrl','liveBroadcastStateFlag'].map(key =>{
delete param[key]
})
} else { } else {
// 视频直播 // 视频直播
delete param.liveBroadcastMediaId ['liveBroadcastMediaId','liveBroadcastRoomId','groupQrCode','liveBroadcastRoomEndCover','floatingMaskDiagram'].map(key =>{
delete param[key]
})
} }
} else { } else {
let resetAttr = this.liveEditFormData_1.map(item => item.name) let resetAttr = this.liveEditFormData_1.map(item => item.name)
...@@ -3182,9 +3189,8 @@ export default { ...@@ -3182,9 +3189,8 @@ export default {
}) })
} }
if (this.editForm.liveFlag) { if (this.editForm.liveFlag) {
const liveTarget = this.editForm.liveBroadcastMediaType == 1 ?'liveEditFormRef_1':'liveEditFormRef_2' const liveTarget = this.editForm.liveBroadcastMediaType == 1 ? 'liveEditFormRef_1' : 'liveEditFormRef_2'
if (this.$refs[liveTarget]) { if (this.$refs[liveTarget]) {
console.log('直播', '============')
this.$refs[liveTarget].$refs[this.editChildRef].validate((liveValid, liveErrorObj) => { this.$refs[liveTarget].$refs[this.editChildRef].validate((liveValid, liveErrorObj) => {
if (!liveValid) { if (!liveValid) {
validFlag = false validFlag = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!