8f912d0f by 任超

style:系统通知

1 parent ddae0b3c
......@@ -147,7 +147,7 @@ MessageBox.setDefaults = defaults => {
MessageBox.defaults = defaults;
};
MessageBox.alert = (message, title, options) => {
MessageBox.alert = (title, message, options) => {
if (typeof title === 'object') {
options = title;
title = '';
......
......@@ -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
......
......@@ -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)
}
}
}
......