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

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

View File

@ -67,7 +67,7 @@ body {
@table-border-radius-base: 0;
@table-padding-vertical-sm: 2px;
@table-padding-vertical: 6px;
@table-padding-horizontal: 8px;
@table-padding-horizontal: 8px;
@table-row-hover-bg: #0e505f;
.ant-table {
@ -188,9 +188,8 @@ body {
}
&-time-picker-combobox {
background-color: @modalBg !important;
border-color: @formInputBorderColor !important
border-color: @formInputBorderColor !important;
}
&-picker {
width: 100%;
@ -202,7 +201,7 @@ body {
color: #00e9fe !important;
}
&-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;
}
@ -341,7 +340,8 @@ body {
&-selected-day &-date,
&-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;
}
.ant-calendar-range-middle{
.ant-calendar-range-middle {
color: #fff;
}
.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%;
}