Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
bd28c3bd
Commit
bd28c3bd
authored
May 25, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品管理
parent
62cb9e7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
src/components/SelectCategory/index.vue
+7
-1
src/components/SelectSpecs/index.vue
+5
-1
src/views/goods/goods/components/Form.vue
+2
-3
No files found.
src/components/SelectCategory/index.vue
View file @
bd28c3bd
...
@@ -28,12 +28,18 @@ export default {
...
@@ -28,12 +28,18 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
selectValue
:
this
.
value
,
selectValue
:
''
,
options
:
[]
options
:
[]
};
};
},
},
watch
:
{
value
(
newName
,
oldName
)
{
this
.
selectValue
=
newName
;
}
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
selectValue
=
this
.
value
;
},
},
methods
:
{
methods
:
{
/** 查询列表 */
/** 查询列表 */
...
...
src/components/SelectSpecs/index.vue
View file @
bd28c3bd
...
@@ -71,8 +71,12 @@ export default {
...
@@ -71,8 +71,12 @@ export default {
const
newValue
=
JSON
.
parse
(
JSON
.
stringify
(
value
));
const
newValue
=
JSON
.
parse
(
JSON
.
stringify
(
value
));
this
.
ids
=
newValue
this
.
ids
=
newValue
this
.
specNames
=
newValue
.
map
((
item
)
=>
item
.
name
).
join
(
" "
);
this
.
specNames
=
newValue
.
map
((
item
)
=>
item
.
name
).
join
(
" "
);
}
else
{
this
.
ids
=
[];
this
.
specNames
=
""
}
}
},
},
},
},
},
},
mounted
()
{
mounted
()
{
...
...
src/views/goods/goods/components/Form.vue
View file @
bd28c3bd
...
@@ -260,7 +260,6 @@ export default {
...
@@ -260,7 +260,6 @@ export default {
this
.
goodsTagList
=
data
.
goodsTagList
;
this
.
goodsTagList
=
data
.
goodsTagList
;
this
.
form
=
data
;
this
.
form
=
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"修改商品"
;
this
.
title
=
"修改商品"
;
});
});
},
},
...
@@ -273,8 +272,8 @@ export default {
...
@@ -273,8 +272,8 @@ export default {
label
:
null
,
label
:
null
,
desc
:
null
,
desc
:
null
,
remark
:
null
remark
:
null
};
};
this
.
resetForm
(
"form"
);
//
this.resetForm("form");
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
...
...
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