Commit 5b9f87ef by 杨北旺

编辑-验证

1 parent 34d5bc97
...@@ -99,6 +99,10 @@ html { ...@@ -99,6 +99,10 @@ html {
color: #eb4e4e; color: #eb4e4e;
} }
.marketing .red-txt {
color: #eb4e4e;
}
.marketing .wechat-container { .marketing .wechat-container {
width: 290px; width: 290px;
margin-left: 32px; margin-left: 32px;
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-show="!editForm.eventList.length && submit" class="red-txt">请创建营销事件</div>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
...@@ -100,6 +101,7 @@ export default { ...@@ -100,6 +101,7 @@ export default {
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
editStatus: false, editStatus: false,
editDisabled: false, editDisabled: false,
submit: false,
deleteIdList: [], deleteIdList: [],
labelWidth: '144px', labelWidth: '144px',
imgIcon: { imgIcon: {
...@@ -406,8 +408,12 @@ export default { ...@@ -406,8 +408,12 @@ export default {
}, },
handleConfirm() { handleConfirm() {
this.submit = true
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
if(!this.editForm.eventList.length) {
return true
}
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
params.customerIds = this.editForm.customerInfoList.map(item => item.id) params.customerIds = this.editForm.customerInfoList.map(item => item.id)
delete params.customerInfoList delete params.customerInfoList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!