系统消息通知弹窗中的副标题调整

system 模块 scheduling tab页面中日历组件默认让是调整
This commit is contained in:
任珮宇 2023-10-11 10:31:55 +08:00
parent 3a413b37fb
commit f14469f8fe
2 changed files with 127 additions and 129 deletions

View File

@ -4,18 +4,16 @@ import xss from "xss"
:title="title" :title="title"
:width="modelStyle.width" :width="modelStyle.width"
:visible="visible" :visible="visible"
:bodyStyle ="bodyStyle" :bodyStyle="bodyStyle"
:switchFullscreen="switchFullscreen" :switchFullscreen="switchFullscreen"
@cancel="handleCancel" @cancel="handleCancel"
> >
<template slot="footer"> <template slot="footer">
<a-button key="back" @click="handleCancel">关闭</a-button> <a-button key="back" @click="handleCancel">关闭</a-button>
<a-button v-if="record.openType==='url'" type="primary" @click="toHandle">去处理</a-button> <a-button v-if="record.openType === 'url'" type="primary" @click="toHandle">去处理</a-button>
</template> </template>
<a-card class="daily-article" :loading="loading"> <a-card class="daily-article" :loading="loading">
<a-card-meta <a-card-meta :title="record.titile" :description="'发布人:' + record.sender + ' 发布时间: ' + record.sendTime">
:title="record.titile"
:description="'发布人:'+record.sender + ' 发布时间: ' + record.sendTime">
</a-card-meta> </a-card-meta>
<a-divider /> <a-divider />
<span v-html="record.msgContent" class="article-content"></span> <span v-html="record.msgContent" class="article-content"></span>
@ -24,15 +22,14 @@ import xss from "xss"
</template> </template>
<script> <script>
import {getUserList} from '@/api/api' import { getUserList } from '@/api/api'
import xss from 'xss' import xss from 'xss'
export default { export default {
name: "SysAnnouncementModal", name: 'SysAnnouncementModal',
components: { components: {},
}, data() {
data () {
return { return {
title:"通知消息", title: '通知消息',
record: {}, record: {},
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
@ -45,42 +42,40 @@ import xss from "xss"
visible: false, visible: false,
switchFullscreen: true, switchFullscreen: true,
loading: false, loading: false,
bodyStyle:{ bodyStyle: {
padding: "0", padding: '0',
height:(window.innerHeight*0.8)+"px", height: window.innerHeight * 0.8 + 'px',
"overflow-y":"auto", 'overflow-y': 'auto',
}, },
modelStyle:{ modelStyle: {
width: '60%', width: '60%',
style: { top: '20px' }, style: { top: '20px' },
fullScreen: false fullScreen: false,
} },
} }
}, },
created () { created() {},
},
methods: { methods: {
detail (record) { detail(record) {
//update-begin---author:wangshuai ---date:20220107 for //update-begin---author:wangshuai ---date:20220107 for
if(record.sender){ if (record.sender) {
getUserList({"username":record.sender}).then((res) =>{ getUserList({ username: record.sender }).then((res) => {
if(res.success && res.result.records.length>0){ if (res.success && res.result.records.length > 0) {
record.sender = res.result.records[0].realname record.sender = res.result.records[0].realname
} }
}) })
} }
//update-end---author:wangshuai ---date:20220107 for //update-end---author:wangshuai ---date:20220107 for
this.visible = true; this.visible = true
//update-begin-author:taoyan date:2022-7-14 for: VUEN-1702 sql //update-begin-author:taoyan date:2022-7-14 for: VUEN-1702 sql
if(record.msgContent){ if (record.msgContent) {
record.msgContent = xss(record.msgContent) record.msgContent = xss(record.msgContent)
} }
//update-end-author:taoyan date:2022-7-14 for: VUEN-1702 sql //update-end-author:taoyan date:2022-7-14 for: VUEN-1702 sql
this.record = record; this.record = record
}, },
handleCancel () { handleCancel() {
this.visible = false; this.visible = false
}, },
/** 切换全屏显示 */ /** 切换全屏显示 */
handleClickToggleFullScreen() { handleClickToggleFullScreen() {
@ -94,19 +89,19 @@ import xss from "xss"
} }
this.modelStyle.fullScreen = mode this.modelStyle.fullScreen = mode
}, },
toHandle(){ toHandle() {
if(this.record.openType==='url'){ if (this.record.openType === 'url') {
this.visible = false; this.visible = false
// //
this.$router.push({path: this.record.openPage}) this.$router.push({ path: this.record.openPage })
} }
}, },
} },
} }
</script> </script>
<style lang="less"> <style lang="less">
.announcementCustomModal{ .announcementCustomModal {
.ant-modal-header { .ant-modal-header {
border: none; border: none;
display: inline-block; display: inline-block;
@ -114,8 +109,8 @@ import xss from "xss"
z-index: 1; z-index: 1;
right: 56px; right: 56px;
padding: 0; padding: 0;
.ant-modal-title{ .ant-modal-title {
.custom-btn{ .custom-btn {
width: 56px; width: 56px;
height: 56px; height: 56px;
border: none; border: none;
@ -123,13 +118,16 @@ import xss from "xss"
} }
} }
} }
.daily-article{ .daily-article {
border-bottom: 0; border-bottom: 0;
} }
} }
.ant-card-meta-description {
color: #fff !important;
}
</style> </style>
<style scoped lang="less"> <style scoped lang="less">
.daily-article { .daily-article {
.article-button { .article-button {
font-size: 1.2rem !important; font-size: 1.2rem !important;
} }
@ -148,9 +146,9 @@ import xss from "xss"
word-break: break-all; word-break: break-all;
text-overflow: initial; text-overflow: initial;
white-space: normal; white-space: normal;
font-size: .9rem !important; font-size: 0.9rem !important;
margin-bottom: .8rem; margin-bottom: 0.8rem;
}
} }
} }
}
</style> </style>

View File

@ -188,10 +188,9 @@ body {
} }
&-time-picker-combobox { &-time-picker-combobox {
background-color: @modalBg !important; background-color: @modalBg !important;
border-color: @formInputBorderColor !important border-color: @formInputBorderColor !important;
} }
&-picker { &-picker {
width: 100%; width: 100%;
&-container { &-container {
@ -202,7 +201,7 @@ body {
color: #00e9fe !important; color: #00e9fe !important;
} }
&-select { &-select {
background-color: @formInputBgColor !important background-color: @formInputBgColor !important;
} }
} }
@ -275,7 +274,7 @@ body {
} }
} }
} }
.ant-calendar-range .ant-calendar-in-range-cell::before{ .ant-calendar-range .ant-calendar-in-range-cell::before {
background: #1397a3; background: #1397a3;
} }
@ -341,7 +340,8 @@ body {
&-selected-day &-date, &-selected-day &-date,
&-date:hover { &-date:hover {
background-color: #072f32 !important; background-color: #0b4f54 !important;
// background-color: #072f32 !important;
} }
} }
@ -382,10 +382,10 @@ body {
} }
// 输入框样式 // 输入框样式
.ant-calendar-input{ .ant-calendar-input {
background-color: transparent !important; background-color: transparent !important;
} }
.ant-calendar-range-middle{ .ant-calendar-range-middle {
color: #fff; color: #fff;
} }
.ant-input { .ant-input {
@ -639,7 +639,7 @@ input[type='number']::-webkit-outer-spin-button {
} }
} }
} }
.ant-select-selection--multiple .ant-select-selection__choice{ .ant-select-selection--multiple .ant-select-selection__choice {
max-width: 60%; max-width: 60%;
} }