Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
9f44d5ed
Commit
9f44d5ed
authored
Jul 26, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化提货错误太长的提示
parent
030d38d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
request.js
src/utils/request.js
+10
-3
BatchPickup.vue
src/views/ecw/order/components/BatchPickup.vue
+6
-2
No files found.
src/utils/request.js
View file @
9f44d5ed
...
...
@@ -6,6 +6,7 @@ import errorCode from '@/utils/errorCode'
import
Cookies
from
"
js-cookie
"
;
import
{
getTenantEnable
}
from
"
@/utils/ruoyi
"
;
import
{
getLocale
}
from
'
@/utils/db
'
;
import
i18n
from
"
@/i18n
"
;
// 是否显示重新登录
export
let
isRelogin
=
{
show
:
false
};
...
...
@@ -114,9 +115,15 @@ service.interceptors.response.use(res => {
// 额外情况
return
Promise
.
reject
(
res
.
data
)
}
else
if
(
code
!==
200
)
{
Notification
.
error
({
title
:
msg
})
// 如果内容很长则用alert提示,不然可能显示不全,自动隐藏也会导致看不完整就消失了
if
(
msg
.
length
>
300
){
MessageBox
.
alert
(
msg
,
i18n
.
t
(
'
错误提示
'
),
i18n
.
t
(
'
确定
'
))
}
else
{
Notification
.
error
({
title
:
msg
})
}
return
Promise
.
reject
(
msg
||
'
error
'
)
}
else
{
return
res
.
data
...
...
src/views/ecw/order/components/BatchPickup.vue
View file @
9f44d5ed
...
...
@@ -33,7 +33,7 @@
</el-tab-pane>
</el-tabs>
<el-form-item
label=
""
>
<el-button
type=
"primary"
@
click=
"submit"
>
{{$t('提交')}}
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
:loading=
"loading"
>
{{$t('提交')}}
</el-button>
</el-form-item>
</el-form>
</el-dialog>
...
...
@@ -47,6 +47,8 @@ export default {
},
data
(){
return
{
// 提交中状态
loading
:
false
,
current
:
'
createBatch
'
,
show
:
false
,
form
:{
...
...
@@ -94,10 +96,12 @@ export default {
})
}
}
this
.
loading
=
true
;
({
createBatch
,
createSplitBatch
}[
this
.
current
])(
data
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
操作成功
"
));
this
.
$emit
(
'
success
'
)
}).
finally
(()
=>
{
this
.
loading
=
false
})
})
},
...
...
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