Commit 4d717a1e by 胡悦

Merge branch 'master' of 192.168.3.233:glsx-web/glsx-oss-ai-manager

2 parents 3b7a15c5 bd30008c
......@@ -99,9 +99,9 @@ var addParams_original = {
id: null,
influenceScope: '',
ipBackgroundList: [],
manufacturer: 1004,
manufacturerId: 1004,
manufacturerName: '1004',
manufacturer: null,
manufacturerId: null,
manufacturerName: '',
merchantId: null,
merchantName: '',
packagePath: '',
......@@ -385,45 +385,45 @@ export default {
editExpValidate() {
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
// }
// }
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)
// // 验证表情包上传情况
// if (!this.addParams.packagePath) {
// this.expressionFileErr = '表情包是必须的'
// result = false
// }
// // 验证固定表情上传情况
// this.backgroundImgErr = ''
// this.ipBackgroundDefault.forEach((item, index) => {
// if (!item.backgroundPath) { // 如果固定表情有没上传文件的,跳出循环并且显示错误信息
// this.backgroundImgErr = '请上传全部固定表情背景'
// result = false
// return result
// }
// })
// if (result) {
// this.editExpressionInfo()
// }
// })
this.$validator.validateAll().then(result => {
console.log('result:' + result)
// 验证表情包上传情况
if (!this.addParams.packagePath) {
this.expressionFileErr = '表情包是必须的'
result = false
}
// 验证固定表情上传情况
this.backgroundImgErr = ''
this.ipBackgroundDefault.forEach((item, index) => {
if (!item.backgroundPath) { // 如果固定表情有没上传文件的,跳出循环并且显示错误信息
this.backgroundImgErr = '请上传全部固定表情背景'
result = false
return result
}
})
if (result) {
this.editExpressionInfo()
}
})
},
// 新增或编辑表情接口所需参数
getParams() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!