Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
dc7be1a5
Commit
dc7be1a5
authored
Jan 18, 2022
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出二次确认
parent
f2ac879e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
2 deletions
+88
-2
src/views/Home.vue
+0
-0
src/views/Home/Home.vue
+88
-2
No files found.
src/views/Home.vue
View file @
dc7be1a5
This diff is collapsed.
Click to expand it.
src/views/Home/Home.vue
View file @
dc7be1a5
...
@@ -222,6 +222,31 @@
...
@@ -222,6 +222,31 @@
</div>
</div>
</div>
</div>
</div>
</div>
<el-dialog
class=
'exitDialog'
title=
"退出系统"
:visible
.
sync=
"dialogVisible"
:append-to-body=
'true'
:modal-append-to-body=
"false"
:close-on-click-modal=
'false'
:modal=
'false'
width=
"25rem"
>
<span>
您确认要退出系统吗?
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"exit"
class=
'qr'
>
确 认
</el-button>
<el-button
@
click=
"dialogVisible=false"
class=
'qx'
>
取 消
</el-button>
</span>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -237,6 +262,8 @@ export default {
...
@@ -237,6 +262,8 @@ export default {
zljcNum
:
0
,
zljcNum
:
0
,
sbAppNum
:
0
,
sbAppNum
:
0
,
dfzwNum
:
0
,
dfzwNum
:
0
,
dialogVisible
:
false
,
// 退出弹窗状态
};
};
},
},
methods
:
{
methods
:
{
...
@@ -315,6 +342,9 @@ export default {
...
@@ -315,6 +342,9 @@ export default {
this
.
$router
.
pushToTab
(
"/bzxxfh"
);
this
.
$router
.
pushToTab
(
"/bzxxfh"
);
},
},
logout
()
{
logout
()
{
this
.
dialogVisible
=
true
},
exit
()
{
this
.
$axios
this
.
$axios
.
get
(
"/security/logout"
)
.
get
(
"/security/logout"
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -456,8 +486,6 @@ export default {
...
@@ -456,8 +486,6 @@ export default {
this
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
));
this
.
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
));
console
.
log
(
this
.
userInfo
);
console
.
log
(
this
.
userInfo
);
this
.
getHomeNum
();
this
.
getHomeNum
();
},
},
computed
:
{
computed
:
{
...
@@ -881,4 +909,62 @@ export default {
...
@@ -881,4 +909,62 @@ export default {
bottom
/
70px
87px
,
bottom
/
70px
87px
,
linear-gradient
(
133deg
,
#42bbf2
0%
,
#12a1e5
100%
);
linear-gradient
(
133deg
,
#42bbf2
0%
,
#12a1e5
100%
);
}
}
//
退出
/
deep
/
.el-dialog
{
display
:
flex
;
flex-direction
:
column
;
margin
:
0
!important
;
position
:
absolute
;
top
:
40%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
/*height:600px;*/
max-height
:
calc
(
100%
-
30px
);
max-width
:
calc
(
100%
-
30px
);
}
.exitDialog
{
/deep/.el-dialog__header
{
padding
:
15px
24px
13px
;
font-size
:
16px
;
font-family
:
HarmonyOS_Sans_SC
;
color
:
#282f3c
;
border-bottom
:
1px
solid
#eeeeee
;
}
/
deep
/
.el-dialog__body
{
padding
:
30px
0
24px
;
text-align
:
center
;
}
/
deep
/
.el-dialog__footer
{
display
:
flex
;
justify-content
:
center
;
padding
:
0
0
30px
0
;
.dialog-footer
{
margin-top
:
0
;
}
.qr
{
width
:
72px
;
height
:
40px
;
background
:
#ffffff
;
border-radius
:
4px
;
border
:
1px
solid
#aeb5c2
;
font-size
:
14px
;
font-family
:
MicrosoftYaHei
;
color
:
#2e3846
;
margin
:
0
;
margin-right
:
12px
;
}
.qx
{
width
:
72px
;
height
:
40px
;
background
:
#055fe7
;
border-radius
:
4px
;
border
:
1px
solid
#055fe7
;
font-size
:
14px
;
font-family
:
MicrosoftYaHei
;
color
:
#fff
;
margin
:
0
;
margin-left
:
12px
;
}
}
}
</
style
>
</
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