Commit 5a42c32c by wangql

a

1 parent c16bba0e
...@@ -383,27 +383,27 @@ export default { ...@@ -383,27 +383,27 @@ export default {
}, },
// 新增或编辑表情信息表单验证 // 新增或编辑表情信息表单验证
editExpValidate() { editExpValidate() {
this.idPassvalue.$emit('submit') this.idPassvalue.$emit('submit', function(result) {
setTimeout(() => { console.log(result)
console.log(this.manufacturer) // if (this.manufacturer) {
if (this.manufacturer) { // if (this.manufacturer.merchants) {
if (this.manufacturer.merchants) { // this.addParams.merchantId = this.manufacturer.merchants.id
this.addParams.merchantId = this.manufacturer.merchants.id // this.addParams.merchantName = this.manufacturer.merchants.merchantName
this.addParams.merchantName = this.manufacturer.merchants.merchantName // }
} // if (this.manufacturer.manufacturers) {
if (this.manufacturer.manufacturers) { // this.addParams.manufacturer = this.manufacturer.manufacturers.manufacturer
this.addParams.manufacturer = this.manufacturer.manufacturers.manufacturer // this.addParams.manufacturerId = this.manufacturer.manufacturers.merchantId
this.addParams.manufacturerId = this.manufacturer.manufacturers.merchantId // this.addParams.manufacturerName = this.manufacturer.manufacturers.merchantName
this.addParams.manufacturerName = this.manufacturer.manufacturers.merchantName // }
} // if (this.manufacturer.grayscaleUserList) {
if (this.manufacturer.grayscaleUserList) { // this.addParams.grayscaleUserList = this.manufacturer.grayscaleUserList
this.addParams.grayscaleUserList = this.manufacturer.grayscaleUserList // }
} // if (this.manufacturer.influenceScope) {
if (this.manufacturer.influenceScope) { // this.addParams.influenceScope = this.manufacturer.influenceScope
this.addParams.influenceScope = this.manufacturer.influenceScope // }
} // }
} })
}, 100)
// this.$validator.validateAll().then(result => { // this.$validator.validateAll().then(result => {
// console.log('result:' + result) // console.log('result:' + result)
// // 验证表情包上传情况 // // 验证表情包上传情况
...@@ -421,7 +421,7 @@ export default { ...@@ -421,7 +421,7 @@ export default {
// } // }
// }) // })
// if (result) { // if (result) {
this.editExpressionInfo() // this.editExpressionInfo()
// } // }
// }) // })
}, },
......
...@@ -154,8 +154,8 @@ export default { ...@@ -154,8 +154,8 @@ export default {
this.result.merchants = this.merchant_list.filter( this.result.merchants = this.merchant_list.filter(
obj => this.model.merchantId === obj.merchantId obj => this.model.merchantId === obj.merchantId
)[0] )[0]
this.$emit('update:value', this.result) // this.$emit('update:value', this.result)
callback && callback() callback && callback(this.result) && (callback = null)
}) })
}) })
}, },
...@@ -184,13 +184,13 @@ export default { ...@@ -184,13 +184,13 @@ export default {
model: { model: {
merchantId: '', merchantId: '',
manufacturerId: '', manufacturerId: '',
file_list: [] //文件列表 file_list: [] // 文件列表
}, },
result: { result: {
manufacturers: null, //生产厂商 manufacturers: null, // 生产厂商
merchants: null, //商户渠道 merchants: null, // 商户渠道
grayscaleUserList: null, //灰度用户列表 grayscaleUserList: null, // 灰度用户列表
influenceScope: '' //用户类型 influenceScope: '' // 用户类型
} }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!