Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 2d2e3acc
authored
Nov 23, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加loading
1 parent
e1f09b97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
src/views/ContractManager/components/changeContractDialog/index.vue
src/views/ContractManager/index.vue
src/views/ContractManager/components/changeContractDialog/index.vue
View file @
2d2e3ac
...
@@ -143,11 +143,19 @@
...
@@ -143,11 +143,19 @@
}
else
{
}
else
{
params
.
targetIds
=
this
.
changeContractObj
.
ids
params
.
targetIds
=
this
.
changeContractObj
.
ids
}
}
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
this
.
$apis
.
contractManager
[
API
](
params
).
then
(
res
=>
{
this
.
$apis
.
contractManager
[
API
](
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
.
success
(
'变更模板成功'
)
this
.
$message
.
success
(
'变更模板成功'
)
this
.
handleClose
()
this
.
handleClose
()
}
}
}).
finally
(
end
=>
{
loading
.
close
()
})
})
},
},
handleClose
(){
handleClose
(){
...
...
src/views/ContractManager/index.vue
View file @
2d2e3ac
...
@@ -225,11 +225,19 @@
...
@@ -225,11 +225,19 @@
const
params
=
{
const
params
=
{
templateIds
:
this
.
tipObj
.
ids
templateIds
:
this
.
tipObj
.
ids
}
}
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
this
.
$apis
.
contractManager
.
babchInitTemplateApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
contractManager
.
babchInitTemplateApi
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
.
success
(
'初始化模板成功'
)
this
.
$message
.
success
(
'初始化模板成功'
)
this
.
closeTipDialog
()
this
.
closeTipDialog
()
}
}
}).
finally
(
end
=>
{
loading
.
close
()
})
})
},
},
closeTipDialog
(){
closeTipDialog
(){
...
...
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