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
50740eed
Commit
50740eed
authored
Mar 12, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:发布拍品,添加loading
parent
890a55be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/views/sale/saleAdd.vue
src/views/sale/saleAdd.vue
+19
-0
No files found.
src/views/sale/saleAdd.vue
View file @
50740eed
...
@@ -290,6 +290,13 @@ export default {
...
@@ -290,6 +290,13 @@ export default {
}
else
{
}
else
{
this
.
goods
.
images
=
''
this
.
goods
.
images
=
''
}
}
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'
Loading
'
,
spinner
:
'
el-icon-loading
'
,
background
:
'
rgba(0, 0, 0, 0.7)
'
})
this
.
$refs
.
goods
.
validate
((
valid
)
=>
{
this
.
$refs
.
goods
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
numType
===
-
1
)
{
if
(
this
.
numType
===
-
1
)
{
...
@@ -298,6 +305,9 @@ export default {
...
@@ -298,6 +305,9 @@ export default {
if
(
this
.
id
)
{
if
(
this
.
id
)
{
updateSale
(
this
.
goods
)
updateSale
(
this
.
goods
)
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
loading
)
{
loading
.
close
()
}
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
编辑成功
'
message
:
'
编辑成功
'
...
@@ -305,6 +315,9 @@ export default {
...
@@ -305,6 +315,9 @@ export default {
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
if
(
loading
)
{
loading
.
close
()
}
this
.
goods
.
images
=
this
.
goods
.
images
.
split
(
'
;
'
)
||
[]
this
.
goods
.
images
=
this
.
goods
.
images
.
split
(
'
;
'
)
||
[]
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
'
确定
'
,
...
@@ -314,6 +327,9 @@ export default {
...
@@ -314,6 +327,9 @@ export default {
}
else
{
}
else
{
createSale
(
this
.
goods
)
createSale
(
this
.
goods
)
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
loading
)
{
loading
.
close
()
}
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
'
成功
'
,
title
:
'
成功
'
,
message
:
'
创建成功
'
message
:
'
创建成功
'
...
@@ -321,6 +337,9 @@ export default {
...
@@ -321,6 +337,9 @@ export default {
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
if
(
loading
)
{
loading
.
close
()
}
this
.
goods
.
images
=
this
.
goods
.
images
.
split
(
'
;
'
)
||
[]
this
.
goods
.
images
=
this
.
goods
.
images
.
split
(
'
;
'
)
||
[]
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
||
'
请求失败,请重试
'
,
'
警告
'
,
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
||
'
请求失败,请重试
'
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
'
确定
'
,
...
...
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