Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 7139c4a0
authored
Jan 10, 2021
by
shenpeng1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dev: 更新接口和保存参数
1 parent
9c5d9fb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
linkwe-ui/src/api/material/poster.js
linkwe-ui/src/views/material/poster.vue
linkwe-ui/src/api/material/poster.js
View file @
7139c4a
...
@@ -15,7 +15,7 @@ export function getList(params) {
...
@@ -15,7 +15,7 @@ export function getList(params) {
* @param {*} params
* @param {*} params
*/
*/
export
function
updatePoster
(
data
)
{
export
function
updatePoster
(
data
)
{
return
request
({
url
:
service
+
'/update'
,
method
:
'put'
,
data
})
return
request
({
url
:
service
Category
+
'/update'
,
method
:
'put'
,
data
})
}
}
/**
/**
...
...
linkwe-ui/src/views/material/poster.vue
View file @
7139c4a
...
@@ -267,10 +267,16 @@ export default {
...
@@ -267,10 +267,16 @@ export default {
console
.
log
(
'save'
,
posterForm
.
id
)
console
.
log
(
'save'
,
posterForm
.
id
)
if
(
posterForm
.
id
)
{
if
(
posterForm
.
id
)
{
// 编辑海报
// 编辑海报
const
res
=
await
updatePoster
(
Object
.
assign
({},
{},
this
.
posterForm
))
const
res
=
await
updatePoster
(
Object
.
assign
({},
{
backgroundImgPath
:
''
,
posterSubassemblyList
:
[]
},
this
.
posterForm
))
}
else
{
}
else
{
// 新建海报
// 新建海报
const
res
=
await
addPoster
(
Object
.
assign
({},
{},
this
.
posterForm
))
const
res
=
await
addPoster
(
Object
.
assign
({},
{
backgroundImgPath
:
''
,
posterSubassemblyList
:
[]
},
this
.
posterForm
))
}
}
// let res = {};
// let res = {};
// var list =[];
// var list =[];
...
...
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