Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8f912d0f
authored
2022-11-18 15:28:01 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:系统通知
1 parent
ddae0b3c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
22 deletions
src/components/MessageBox/src/main.js
src/components/MessageBox/src/main.vue
src/views/home/index.vue
src/components/MessageBox/src/main.js
View file @
8f912d0
...
...
@@ -147,7 +147,7 @@ MessageBox.setDefaults = defaults => {
MessageBox
.
defaults
=
defaults
;
};
MessageBox
.
alert
=
(
message
,
titl
e
,
options
)
=>
{
MessageBox
.
alert
=
(
title
,
messag
e
,
options
)
=>
{
if
(
typeof
title
===
'object'
)
{
options
=
title
;
title
=
''
;
...
...
src/components/MessageBox/src/main.vue
View file @
8f912d0
...
...
@@ -5,22 +5,13 @@
<div
class=
"el-message-box"
:class=
"[customClass, center && 'el-message-box--center']"
>
<div
class=
"el-message-box__content"
>
<div
class=
"el-message-box__container"
>
<p
v-if=
"title !== null"
>
{{
title
}}
</p>
<div
class=
"el-message-box__message"
v-if=
"message !== ''"
>
<slot>
<p
v-html=
"message"
></p>
</slot>
</div>
<div
class=
"postscript"
>
<el-button
type=
"text"
>
下载
</el-button>
</div>
<div
v-if=
"title !== ''"
class=
"message-title"
>
标题:
{{
title
}}
</div>
<div
v-if=
"message !== ''"
class=
"richText"
v-html=
"message"
></div>
</div>
</div>
<div
class=
"el-message-box__btns"
>
<el-button
:loading=
"cancelButtonLoading"
:class=
"[cancelButtonClasses]"
v-if=
"showCancelButton"
:round=
"roundButton"
size=
"small"
@
click
.
native=
"handleAction('cancel')"
@
keydown
.
enter=
"handleAction('cancel')"
>
<el-button
:loading=
"cancelButtonLoading"
:class=
"[cancelButtonClasses]"
:round=
"roundButton"
size=
"small"
@
click
.
native=
"handleAction('cancel')"
@
keydown
.
enter=
"handleAction('cancel')"
>
{{
cancelButtonText
||
t
(
'el.messagebox.cancel'
)
}}
</el-button>
</div>
...
...
@@ -205,11 +196,6 @@ export default {
visible
(
val
)
{
if
(
val
)
{
this
.
uid
++
;
if
(
this
.
$type
===
'alert'
||
this
.
$type
===
'confirm'
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
confirm
.
$el
.
focus
();
});
}
this
.
focusAfterClosed
=
document
.
activeElement
;
messageBox
=
new
Dialog
(
this
.
$el
,
this
.
focusAfterClosed
,
this
.
getFirstFocus
());
}
...
...
@@ -281,3 +267,15 @@ export default {
}
};
</
script
>
<
style
scoped
>
/
deep
/
.message-title
{
font-size
:
18px
;
font-weight
:
700
;
margin-bottom
:
5px
;
}
/
deep
/
.el-message-box__content
img
{
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
...
...
src/views/home/index.vue
View file @
8f912d0
...
...
@@ -243,9 +243,7 @@ export default {
chart
.
render
();
},
handleNotice
(
item
)
{
console
.
log
(
item
);
this
.
$alertMes
(
'9999999999'
)
//setReadStatus({'bsmNotice':bsmNotice})
this
.
$alertMes
(
item
.
noticeTitle
,
item
.
noticeContent
)
}
}
}
...
...
Please
register
or
sign in
to post a comment