系统消息通知弹窗中的副标题调整
system 模块 scheduling tab页面中日历组件默认让是调整
This commit is contained in:
parent
3a413b37fb
commit
f14469f8fe
|
@ -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,133 +22,133 @@ 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 },
|
sm: { span: 5 },
|
||||||
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;
|
|
||||||
},
|
},
|
||||||
handleCancel () {
|
wrapperCol: {
|
||||||
this.visible = false;
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
},
|
},
|
||||||
/** 切换全屏显示 */
|
visible: false,
|
||||||
handleClickToggleFullScreen() {
|
switchFullscreen: true,
|
||||||
let mode = !this.modelStyle.fullScreen
|
loading: false,
|
||||||
if (mode) {
|
bodyStyle: {
|
||||||
this.modelStyle.width = '100%'
|
padding: '0',
|
||||||
this.modelStyle.style.top = '20px'
|
height: window.innerHeight * 0.8 + 'px',
|
||||||
} else {
|
'overflow-y': 'auto',
|
||||||
this.modelStyle.width = '60%'
|
|
||||||
this.modelStyle.style.top = '50px'
|
|
||||||
}
|
|
||||||
this.modelStyle.fullScreen = mode
|
|
||||||
},
|
},
|
||||||
toHandle(){
|
modelStyle: {
|
||||||
if(this.record.openType==='url'){
|
width: '60%',
|
||||||
this.visible = false;
|
style: { top: '20px' },
|
||||||
//链接跳转
|
fullScreen: false,
|
||||||
this.$router.push({path: this.record.openPage})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
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>
|
</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;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
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;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.daily-article{
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.daily-article {
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
.ant-card-body {
|
.ant-card-body {
|
||||||
padding: 18px !important;
|
padding: 18px !important;
|
||||||
}
|
}
|
||||||
.ant-card-head {
|
.ant-card-head {
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
.ant-card-meta {
|
.ant-card-meta {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
.article-content {
|
.article-content {
|
||||||
p {
|
p {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
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>
|
||||||
|
|
|
@ -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%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user