Commit 5a42c32c by wangql

a

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