Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1d2f3563
authored
Jul 01, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交加loding
1 parent
a41c758d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
src/assets/css/public.scss
src/views/giftBag/editGift.vue
src/assets/css/public.scss
View file @
1d2f356
...
@@ -588,3 +588,13 @@ html {
...
@@ -588,3 +588,13 @@ html {
.myMessage
{
.myMessage
{
z-index
:
4000
!
important
;
z-index
:
4000
!
important
;
}
}
.loadingClass
{
.el-icon-loading
{
font-size
:
22px
;
}
.el-icon-loading
,
.el-loading-text
{
color
:
#5850ff
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/giftBag/editGift.vue
View file @
1d2f356
...
@@ -609,7 +609,7 @@ export default {
...
@@ -609,7 +609,7 @@ export default {
})
})
if
(
this
.
editForm
.
receiveRule
==
1
)
{
if
(
this
.
editForm
.
receiveRule
==
1
)
{
params
.
receiveDetailList
=
this
.
phoneList
.
map
(
item
=>
item
.
tel
)
params
.
receiveDetailList
=
this
.
phoneList
.
map
(
item
=>
item
.
tel
)
let
maxLength
=
10
00
let
maxLength
=
5
00
if
(
params
.
receiveDetailList
&&
params
.
receiveDetailList
.
length
>
maxLength
){
if
(
params
.
receiveDetailList
&&
params
.
receiveDetailList
.
length
>
maxLength
){
return
this
.
$message
.
error
(
`领取
${
this
.
receiveWay
==
1
?
'手机号'
:
'车架号'
}
不能超过
${
maxLength
}
个`
)
return
this
.
$message
.
error
(
`领取
${
this
.
receiveWay
==
1
?
'手机号'
:
'车架号'
}
不能超过
${
maxLength
}
个`
)
}
}
...
@@ -651,9 +651,17 @@ export default {
...
@@ -651,9 +651,17 @@ export default {
// 创建-更新接口
// 创建-更新接口
insertHttp
(
params
)
{
insertHttp
(
params
)
{
// this.loading = true
// this.loading = true
const
loadingMoadl
=
this
.
$loading
({
lock
:
true
,
text
:
'正在Loading···'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.5)'
,
customClass
:
'loadingClass'
})
this
.
$apis
.
giftBag
this
.
$apis
.
giftBag
.
insertGiftApi
(
params
)
.
insertGiftApi
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
loadingMoadl
.
close
()
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment