Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-finance-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
刘怀志
pet-finance-web
Commits
1978057c
Commit
1978057c
authored
Aug 28, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次弹窗
parent
7320cb6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
index.vue
src/components/BackBtn/index.vue
+58
-0
No files found.
src/components/BackBtn/index.vue
0 → 100644
View file @
1978057c
<
template
>
<el-button
:loading=
"loading"
:class=
"buttonClass"
:icon=
"buttonIcon"
@
click=
"clickEvent"
>
{{
buttonText
}}
</el-button>
</
template
>
<
script
>
export
default
{
name
:
'Index'
,
props
:
{
buttonClass
:
{
type
:
String
,
default
:
'resetBtn'
},
loading
:
{
type
:
Boolean
,
default
:
false
},
buttonIcon
:
{
type
:
String
,
default
:
'el-icon-back'
},
buttonText
:
{
type
:
String
,
default
:
'返 回'
},
clickAction
:
{
type
:
Object
,
required
:
true
},
isShowConfirm
:
{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
clickEvent
()
{
if
(
this
.
isShowConfirm
)
{
this
.
$confirm
(
this
.
buttonClass
===
'queryBtn'
?
'系统即将发布编辑内容,是否确定'
:
'是否立即返回,返回后系统不再保存已填写内容'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'box-logout'
,
cancelButtonClass
:
'resetBtn'
,
confirmButtonClass
:
'queryBtn'
,
type
:
'warning'
,
closeOnClickModal
:
false
}).
then
(()
=>
{
this
.
clickAction
()
})
}
else
{
this
.
clickAction
()
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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