Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-ai-manager
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 31368336
authored
Jan 27, 2019
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
a
1 parent
f0334db1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
23 deletions
src/views/customer/brand/Edit.vue
src/views/customer/brand/Edit.vue
View file @
3136833
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
:in_row=
'false'
:in_row=
'false'
:value
.
sync=
"manufacturer"
:value
.
sync=
"manufacturer"
:uploadAction=
"uploadAction"
:uploadAction=
"uploadAction"
default_value=
"selectDefaultValue"
:
default_value=
"selectDefaultValue"
/>
/>
<gl-form-item
label=
"上传表情"
prop=
"uploadExpression"
>
<gl-form-item
label=
"上传表情"
prop=
"uploadExpression"
>
<gl-upload
<gl-upload
...
@@ -130,7 +130,9 @@ export default {
...
@@ -130,7 +130,9 @@ export default {
this
.
expressionId
=
data
this
.
expressionId
=
data
}
}
this
.
title
=
!
this
.
expressionId
?
'新增品牌IP表情'
:
'编辑品牌IP表情'
this
.
title
=
!
this
.
expressionId
?
'新增品牌IP表情'
:
'编辑品牌IP表情'
if
(
this
.
expressionId
)
{
this
.
getExpInfo
()
this
.
getExpInfo
()
}
})
})
}
}
}
}
...
@@ -382,6 +384,7 @@ export default {
...
@@ -382,6 +384,7 @@ export default {
// 新增或编辑表情信息表单验证
// 新增或编辑表情信息表单验证
editExpValidate() {
editExpValidate() {
this.idPassvalue.$emit('submit')
this.idPassvalue.$emit('submit')
setTimeout(() => {
console.log(this.manufacturer)
console.log(this.manufacturer)
if (this.manufacturer) {
if (this.manufacturer) {
if (this.manufacturer.merchants) {
if (this.manufacturer.merchants) {
...
@@ -400,6 +403,7 @@ export default {
...
@@ -400,6 +403,7 @@ export default {
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)
// // 验证表情包上传情况
// // 验证表情包上传情况
...
@@ -447,28 +451,28 @@ export default {
...
@@ -447,28 +451,28 @@ export default {
// 新增或编辑表情信息
// 新增或编辑表情信息
editExpressionInfo() {
editExpressionInfo() {
const params = this.getParams()
const params = this.getParams()
console.log(params)
console.log(
'editExpressionInfo params:' +
params)
//
if (!this.expressionId) { // 新增表情时,不调用新增或编辑表情背景接口,直接将全部数据打包带过去
if (!this.expressionId) { // 新增表情时,不调用新增或编辑表情背景接口,直接将全部数据打包带过去
//
delete params.id
delete params.id
//
addExp
addExp
//
.req(params)
.req(params)
//
.then(res => {
.then(res => {
//
// this.updateVisible = !this.updateVisible
// this.updateVisible = !this.updateVisible
//
this.InitializationPageValue()
this.InitializationPageValue()
//
this.$emit('updateClose')
this.$emit('updateClose')
//
})
})
//
.catch(err => console.log(err))
.catch(err => console.log(err))
//
} else { // 编辑表情时,表情信息和表情背景信息分开保存,表情背景的添加和修改直接调用表情接口操作,表情信息里的表情背景数组项不用去管
} else { // 编辑表情时,表情信息和表情背景信息分开保存,表情背景的添加和修改直接调用表情接口操作,表情信息里的表情背景数组项不用去管
//
params.ipBackgroundList = []// 编辑表情时不需要管背景信息,因此清空数组数据
params.ipBackgroundList = []// 编辑表情时不需要管背景信息,因此清空数组数据
//
mergeExp
mergeExp
//
.req(params)
.req(params)
//
.then(res => {
.then(res => {
//
// this.updateVisible = !this.updateVisible
// this.updateVisible = !this.updateVisible
//
this.InitializationPageValue()
this.InitializationPageValue()
//
this.$emit('updateClose')
this.$emit('updateClose')
//
})
})
//
.catch(err => console.log(err))
.catch(err => console.log(err))
//
}
}
},
},
// 页面初始化,还原页面
// 页面初始化,还原页面
InitializationPageValue() {
InitializationPageValue() {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment