Commit 3a5ce221 by 杨北旺

修复bug

1 parent 6199318c
......@@ -19,7 +19,7 @@
</glsx-combi-form>
<!-- v1.1.0新增活码 -->
<!-- <div class="new_container">
<div class="new_container">
<p class="title">针对包含“车主生活权益服务”的服务套餐,提供两种领取该服务的方式供门店选择。</p>
<div class="point_title">
<span class="point_icon"></span>
......@@ -43,7 +43,7 @@
<div class="radio_title">
<el-radio v-model="wayRadio" :label="2">加企微领取</el-radio>
</div>
<el-button size="small" @click="openActiveModal" class="custom_blue">选择活码</el-button>
<el-button :disabled="wayRadio==1" size="small" @click="openActiveModal" class="custom_blue">选择活码</el-button>
</div>
<div v-if="settingData.liveCodeUrl || this.activeId" class="box">
<div class="radio_title">
......@@ -56,7 +56,7 @@
<div class="radio_edit" @click="toEditActived">修改</div>
</div>
</div>
</div> -->
</div>
</div>
<div
class="fixed_bottom"
......@@ -106,8 +106,9 @@
</div>
</GLTable>
<span slot="footer" class="dialog-footer flex_cc">
<span v-if="!tableData.length" @click="jumpToCreated" class="created_btn">创建活码</span>
<el-button size="mini" @click="dialogTableVisible = false">取消</el-button>
<el-button size="mini" type="primary" @click="dialogTableVisible = false">确定</el-button>
<el-button size="mini" type="primary" @click="toConfimActived">确定</el-button>
</span>
</el-dialog>
</div>
......@@ -197,7 +198,7 @@ export default {
}
]
},
activeId: -1,
activeId: '',
settingData: {}
}
},
......@@ -237,7 +238,7 @@ export default {
mounted() {
this.getHotline()
// this.getActiveCode()
this.getActiveCode()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
},
......@@ -284,7 +285,9 @@ export default {
})
},
handleConfirm() {
this.comfimSelect()
if(this.wayRadio==1){
this.comfimSelect()
}
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
var params = this.$common.utils.deepClone(this.editForm)
......@@ -326,6 +329,10 @@ export default {
}
this.dialogTableVisible = true
},
// 列表确定活码
toConfimActived(){
this.comfimSelect()
},
comfimSelect() {
if (this.activeId == -1 && this.wayRadio == 2) {
return
......@@ -347,7 +354,7 @@ export default {
}
}
this.$apis.beforeSale.updateActiveCode(para).then(res => {
// this.dialogTableVisible = false
this.dialogTableVisible = false
})
},
// 修改活码
......@@ -366,6 +373,10 @@ export default {
// 选择活码
selectActived(e, item) {
this.activeInfo = item
},
// 跳转到新建活码渠道
jumpToCreated(){
this.$history.push('/drainage/channel/addCode')
}
}
}
......@@ -611,6 +622,21 @@ export default {
// top: 7px;
// }
}
.dialog-footer{
position: relative;
.created_btn{
position: absolute;
left: 0px;
height: 50%;
transform: translate(0,-50%);
cursor: pointer;
font-size: 16px;
font-weight: 600;
text-decoration: underline;
color: #5850ff;
line-height: 26px;
}
}
.edit-equity /deep/ .el-dialog__body {
height: 520px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!