Commit a94153b2 by zhangquan

优化

1 parent 2798952e
<!-- 专区管理 --> <!-- 专区管理 -->
<template> <template>
<div>
<div class="ctnr"> <div class="ctnr">
<glsx-combi-form class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :isInline="false" :formObj.sync="formObj" :formData="formData" :formRules="myRule"> <glsx-combi-form class="glsx-combi-form" ref="baseInfoRef" labelWidth="154px" defaultWidth="432px" :isInline="false" :formObj.sync="formObj" :formData="formData" :formRules="myRule">
<!-- 模块分割线 --> <!-- 模块分割线 -->
...@@ -93,11 +94,11 @@ ...@@ -93,11 +94,11 @@
</div> </div>
</glsx-combi-form> </glsx-combi-form>
<ProdCoverDialog @closeDialog="closeDialog" @confirmDialog="confirmDialog" v-if="coverVisible" :visible="coverVisible"></ProdCoverDialog> <ProdCoverDialog @closeDialog="closeDialog" @confirmDialog="confirmDialog" v-if="coverVisible" :visible="coverVisible"></ProdCoverDialog>
<div class="footer-btn">
<el-button :size="size" @click="goListPage">取消</el-button>
<el-button :size="size" @click="commitForm" type="primary">确定</el-button>
</div> </div>
<GLFooter class="gl-footer">
<el-button class="btn-cancle" @click="goListPage">取消</el-button>
<el-button @click="commitForm" type="primary">确定</el-button>
</GLFooter>
</div> </div>
</template> </template>
...@@ -494,7 +495,7 @@ export default { ...@@ -494,7 +495,7 @@ export default {
this.$apis.discover.addContentApi(params).then(res => { this.$apis.discover.addContentApi(params).then(res => {
if(res) { if(res) {
this.$message.success('操作成功') this.$message.success('操作成功')
this.$router.push('/discoverManager/index') this.goListPage()
} }
}) })
} }
...@@ -519,7 +520,6 @@ export default { ...@@ -519,7 +520,6 @@ export default {
videoUrl: '', videoUrl: '',
posterUrl: '' posterUrl: ''
} }
console.log(this.selectedtypeList)
this.selectedtypeList.push(obj) this.selectedtypeList.push(obj)
} }
}, },
...@@ -541,8 +541,8 @@ export default { ...@@ -541,8 +541,8 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.ctnr{ .ctnr{
background-color: #fff;
padding: 20px 20px 0; padding: 20px 20px 0;
background-color: #fff;
.glsx-combi-form{ .glsx-combi-form{
.big-title{ .big-title{
margin-left: 74px; margin-left: 74px;
......
...@@ -164,7 +164,6 @@ export default { ...@@ -164,7 +164,6 @@ export default {
if(item.name=='business') item.isHide = true if(item.name=='business') item.isHide = true
} }
}); });
console.log(this.formData)
this.getMenuList() this.getMenuList()
} }
}, },
...@@ -187,13 +186,11 @@ export default { ...@@ -187,13 +186,11 @@ export default {
this.detailVisible = false this.detailVisible = false
}, },
onCancel(){ onCancel(){
console.log(this.formObj)
this.contentObj.imageDialogVisible = false this.contentObj.imageDialogVisible = false
// this.$emit('closeVideoDialog') // this.$emit('closeVideoDialog')
}, },
async getContentDetail(){ async getContentDetail(){
this.$apis.discover.getContentDetailApi({id: this.contentObj.id}).then(res => { this.$apis.discover.getContentDetailApi({id: this.contentObj.id}).then(res => {
console.log(res)
if(res?.id){ if(res?.id){
for(const key in this.formObj){ for(const key in this.formObj){
this.formObj[key] = res[key] this.formObj[key] = res[key]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!