Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
5ede839c
Commit
5ede839c
authored
Jul 24, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改分类参数
parent
9b89c042
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/api/business/goodsNew.js
src/api/business/goodsNew.js
+1
-1
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+3
-2
No files found.
src/api/business/goodsNew.js
View file @
5ede839c
...
@@ -10,7 +10,7 @@ export function detailGoods(params) {
...
@@ -10,7 +10,7 @@ export function detailGoods(params) {
export
function
editGoods
(
params
)
{
export
function
editGoods
(
params
)
{
return
request
({
return
request
({
url
:
'
/item/set
Coin
'
,
url
:
'
/item/set
Item
'
,
method
:
'
post
'
,
method
:
'
post
'
,
data
:
params
data
:
params
})
})
...
...
src/views/goods/infoSet.vue
View file @
5ede839c
...
@@ -331,8 +331,8 @@ export default {
...
@@ -331,8 +331,8 @@ export default {
this
.
goodsParams
=
response
.
data
.
data
this
.
goodsParams
=
response
.
data
.
data
this
.
goodsParams
.
isStd
=
response
.
data
.
data
.
isStd
===
true
?
1
:
0
this
.
goodsParams
.
isStd
=
response
.
data
.
data
.
isStd
===
true
?
1
:
0
if
(
this
.
goodsParams
.
c
id
)
{
if
(
this
.
goodsParams
.
c
ategoryIds
)
{
this
.
categoryIds
=
[
this
.
goodsParams
.
cid
]
this
.
categoryIds
=
this
.
goodsParams
.
categoryIds
||
[
]
}
}
if
(
response
.
data
.
data
.
images
)
{
if
(
response
.
data
.
data
.
images
)
{
this
.
goodsParams
.
images
=
response
.
data
.
data
.
images
.
split
(
'
;
'
)
||
[]
this
.
goodsParams
.
images
=
response
.
data
.
data
.
images
.
split
(
'
;
'
)
||
[]
...
@@ -527,6 +527,7 @@ export default {
...
@@ -527,6 +527,7 @@ export default {
// 分类结果
// 分类结果
handleCategoryChange
(
value
)
{
handleCategoryChange
(
value
)
{
this
.
goodsParams
.
cid
=
value
[
value
.
length
-
1
]
this
.
goodsParams
.
cid
=
value
[
value
.
length
-
1
]
console
.
log
(
'
=====cid==
'
,
value
)
}
,
}
,
// 上一个
// 上一个
handlePrevious
()
{
handlePrevious
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment