Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2373e54a
authored
Sep 26, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
95b85ef1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
src/views/Store/goodslist.vue
src/views/Store/goodslist.vue
View file @
2373e54a
...
...
@@ -281,7 +281,7 @@
<
script
>
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
{
Form
,
FormItem
,
Select
,
Option
,
Input
,
DatePicker
,
Button
,
Dropdown
,
DropdownMenu
,
DropdownItem
,
Table
,
TableColumn
,
Message
,
MessageBox
,
Dialog
,
Pagination
,
Tooltip
,
Autocomplete
,
Popover
,
Tag
}
from
'element-ui'
import
{
Autocomplete
,
Button
,
DatePicker
,
Dialog
,
Dropdown
,
DropdownItem
,
DropdownMenu
,
Form
,
FormItem
,
Input
,
Message
,
MessageBox
,
Option
,
Pagination
,
Popover
,
Select
,
Table
,
TableColumn
,
Tag
,
Tooltip
}
from
'element-ui'
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$confirm
=
MessageBox
.
confirm
;
...
...
@@ -423,6 +423,9 @@ export default {
//新增优势货源提交
addBestgoodsSubmit
()
{
var
self
=
this
;
if
(
this
.
addBestgoodsParam
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
addBestgoodsParam
.
length
;
i
++
)
{
if
(
!
this
.
addBestgoodsParam
[
i
].
goods_name
)
{
this
.
$message
({
...
...
@@ -447,7 +450,6 @@ export default {
return
false
;
}
}
this
.
$http
(
'post'
,
"/api/bestgoods/addBestgoods"
,
{
add_json
:
JSON
.
stringify
(
this
.
addBestgoodsParam
)}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
...
...
@@ -466,7 +468,12 @@ export default {
});
}
})
}
else
{
this
.
$message
({
message
:
'请添加数据'
,
type
:
'warning'
});
}
},
//修改优势货源提交
updateBestgoodsSubmit
()
{
...
...
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