提交 35a61bb2 编写于 作者: huangwensu's avatar huangwensu

添加消息提示

上级 51b75b93
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<script> <script>
import VHeader from './views/layout/header.vue' import VHeader from './views/layout/header.vue'
import VSlidebar from './views/layout/slidebar.vue' import VSlidebar from './views/layout/slidebar.vue'
let vm = null
export default { export default {
components:{ components:{
VHeader, VHeader,
...@@ -29,6 +30,24 @@ ...@@ -29,6 +30,24 @@
return { return {
} }
},
created() {
vm = this
},
mounted() {
setInterval(function(){
vm.pushMessage()
},60000)
},
methods: {
// 实时消息推送
pushMessage() {
vm.$notify({
title: '警告',
message: '这是一条警告的提示消息',
type: 'warning'
});
}
} }
} }
......
...@@ -120,6 +120,19 @@ html,body{ ...@@ -120,6 +120,19 @@ html,body{
.animation_opactiy{ .animation_opactiy{
animation: backOpacity 2s ease-in-out infinite; animation: backOpacity 2s ease-in-out infinite;
} }
// 屏幕适配
@media screen and (min-width:1240px) and (max-width:1900px){
.screenSet{
width: 163vh !important;
height: 70vh !important;
}
}
@media screen and (min-width:1900px){
.screenSet{
width: 167vh !important;
height: 77vh !important;
}
}
.word-size { .word-size {
font-size: 12px; font-size: 12px;
...@@ -150,3 +163,8 @@ html,body{ ...@@ -150,3 +163,8 @@ html,body{
.el-dropdown-menu .el-popper { .el-dropdown-menu .el-popper {
top: 48px; top: 48px;
} }
// 消息推送
.el-notification.right {
top: 130px !important;
}
\ No newline at end of file
...@@ -42,6 +42,36 @@ function getUrlParmByCode(paramList) { ...@@ -42,6 +42,36 @@ function getUrlParmByCode(paramList) {
return '' return ''
} }
// 计算高度
export function resizeHeight(cMinusHeight = 152, iMinuxHeight = 210, refHeightId = 'sidebarWrapperId',
containerHeightId = 'appContainerId', innerHeightId = 'elTableId'){
if (!p_getElm(refHeightId) || !p_getElm(containerHeightId) || !p_getElm(innerHeightId)) {
// window.onresize = null
logger.warn('No certain dom id!!!');
}
let containerHeight = p_getElm(refHeightId).getBoundingClientRect().height - 50
p_getElm(containerHeightId).style.height = containerHeight - cMinusHeight + 'px'
p_getElm(innerHeightId).style.height = containerHeight - iMinuxHeight + 'px'
if(p_getElm('elTableIdInner')){
p_getElm('elTableIdInner').style.height = containerHeight - iMinuxHeight + 'px'
}
window.onresize = function() {
containerHeight = p_getElm(refHeightId).getBoundingClientRect().height - 50
p_getElm(containerHeightId).style.height = containerHeight - cMinusHeight + 'px'
p_getElm(innerHeightId).style.height = containerHeight - iMinuxHeight + 'px'
if (p_getElm('elTableIdInner')) {
p_getElm('elTableIdInner').style.height = containerHeight - iMinuxHeight + 'px'
}
}
}
function p_getElm(elmId) {
return document.getElementById(elmId)
}
export function deepCopy(obj) { export function deepCopy(obj) {
var result = Array.isArray(obj) ? [] : {}; var result = Array.isArray(obj) ? [] : {};
for (var key in obj) { for (var key in obj) {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
:curmbThird="curmbThird" :curmbThird="curmbThird"
:jumPathThird="jumPathThird"> :jumPathThird="jumPathThird">
</bread-crumb> </bread-crumb>
<div class="create-content screenSet">
<div class="step-content"> <div class="step-content">
<el-steps :active="stepNum" simple> <el-steps :active="stepNum" simple>
<span class="step-one" :class="stepNum == 1 ? 'class-1' : 'class-2'">1</span> <span class="step-one" :class="stepNum == 1 ? 'class-1' : 'class-2'">1</span>
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
</div> </div>
</div> </div>
<div class="first-step" v-if="stepNum == 1"> <div class="first-step" v-if="stepNum == 1">
<el-form ref="basicInfoForm" class="basic-form" :model="componentList" :rules="basicRule" label-width="125px" label-suffix=":" size="mini"> <el-form ref="basicInfoForm" class="basic-form" :model="componentList" :rules="basicRule" label-width="125px" label-suffix=":" size="mini" style="margin-bottom:30px;">
<el-form-item label="组件名称" prop="name"> <el-form-item label="组件名称" prop="name">
<el-input type="text" v-model="componentList.name" size="mini" placeholder="请输入组件名称" style="width:30%;"></el-input> <el-input type="text" v-model="componentList.name" size="mini" placeholder="请输入组件名称" style="width:30%;"></el-input>
<span class="word-num">0/20</span> <span class="word-num">0/20</span>
...@@ -46,7 +47,7 @@ ...@@ -46,7 +47,7 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-row> <el-row>
<el-col :span="5"> <el-col :span="6">
<el-form-item label="配置证书" prop="certificateId"> <el-form-item label="配置证书" prop="certificateId">
<el-radio-group v-model="openLable" @change="selectCertificate"> <el-radio-group v-model="openLable" @change="selectCertificate">
<el-radio label="是"></el-radio> <el-radio label="是"></el-radio>
...@@ -79,7 +80,7 @@ ...@@ -79,7 +80,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div v-if="stepNum == 2"> <div class="" v-if="stepNum == 2">
<div class="model-btn"> <div class="model-btn">
<el-button type="primary" size="small" @click="addModule">添加空白模块</el-button> <el-button type="primary" size="small" @click="addModule">添加空白模块</el-button>
<el-button type="primary" size="small" @click="addFromModule" style="margin-left:0;">从模块添加</el-button> <el-button type="primary" size="small" @click="addFromModule" style="margin-left:0;">从模块添加</el-button>
...@@ -184,6 +185,8 @@ ...@@ -184,6 +185,8 @@
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
</div>
<el-dialog :title="dialogTitle" :visible.sync="columnFormVisible" :show-close="false" :close-on-click-modal="false" :close-on-press-escape="false"> <el-dialog :title="dialogTitle" :visible.sync="columnFormVisible" :show-close="false" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form ref="resourceForm" class="creat-form" :model="selectResource" label-width="125px" label-suffix=":" size="mini"> <el-form ref="resourceForm" class="creat-form" :model="selectResource" label-width="125px" label-suffix=":" size="mini">
<el-form-item label="请选择一个资源包" prop=""> <el-form-item label="请选择一个资源包" prop="">
...@@ -565,7 +568,10 @@ export default { ...@@ -565,7 +568,10 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.create-component-wrap { .create-component-wrap {
margin: 84px 20px 20px;
.create-content {
background: #fff; background: #fff;
}
.first-step { .first-step {
padding-top: 20px; padding-top: 20px;
.el-form-item { .el-form-item {
...@@ -598,9 +604,8 @@ export default { ...@@ -598,9 +604,8 @@ export default {
.step-content { .step-content {
overflow: hidden; overflow: hidden;
height: 60px; height: 60px;
margin-top: 66px;
border-bottom: 1px solid #efefef; border-bottom: 1px solid #efefef;
background: #fff; // background: #fff;
.el-step.is-simple .el-step__head { .el-step.is-simple .el-step__head {
display: none; display: none;
} }
......
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
:curmbFirst="curmbFirst" :curmbFirst="curmbFirst"
:curmbSecond="curmbSecond"> :curmbSecond="curmbSecond">
</bread-crumb> </bread-crumb>
<div class="component-content"> <div class="component-content screenSet">
<div class="search-title">查询条件</div> <div class="search-title">查询条件</div>
<el-row :gutter="30" class="row" type="flex" style="margin-top: 10px;"> <el-row :gutter="30" class="row" type="flex" style="margin-top: 10px;">
<el-form ref="serchForm" :model="searchParam" label-width="75px" style="width:100%;"> <el-form ref="serchForm" :model="searchParam" label-width="75px" style="width:100%;">
<el-col :span="10"> <el-col :span="6">
<el-form-item label="组件名称:"> <el-form-item label="组件名称:">
<el-input v-model="searchParam.name" size="mini" placeholder="请输入组件名称"></el-input> <el-input v-model="searchParam.name" size="mini" placeholder="请输入组件名称"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="5">
<el-form-item label="发布状态:"> <el-form-item label="发布状态:">
<el-select v-model="searchParam.status" size="mini" placeholder="请选择发布状态"> <el-select v-model="searchParam.status" size="mini" placeholder="请选择发布状态">
<el-option <el-option
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" style="padding:0;text-align:right;padding-right:15px;"> <el-col :span="13" style="padding:0;text-align:right;padding-right:15px;">
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small">查询</el-button>
<el-button type="default" size="small" style="margin-left:0;">重置</el-button> <el-button type="default" size="small" style="margin-left:0;">重置</el-button>
</el-col> </el-col>
...@@ -125,8 +125,9 @@ export default { ...@@ -125,8 +125,9 @@ export default {
<style lang="scss"> <style lang="scss">
.item-component-wrap { .item-component-wrap {
.component-content { .component-content {
margin-top: 50px;
padding: 10px; padding: 10px;
background: #fff;
margin: 84px 20px 20px;
.search-title { .search-title {
padding: 10px 12px; padding: 10px 12px;
font-size: 12px; font-size: 12px;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</el-col> </el-col>
<el-col class="message" :span="24"> <el-col class="message" :span="24">
<div class="message-title">系统消息 <span>今日消息:3条</span></div> <div class="message-title">系统消息 <span>今日消息:3条</span></div>
<div class="message-info"> <div class="message-info" v-if="messageList">
<div class="message-item" v-for="(item,index) in messageList" :key="index"> <div class="message-item" v-for="(item,index) in messageList" :key="index">
<div class="text-top"> <div class="text-top">
<i class="el-icon-error" v-if="item.type == 2" style="color:#FA5555"></i> <i class="el-icon-error" v-if="item.type == 2" style="color:#FA5555"></i>
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
<div class="text-bottom">{{item.info}}</div> <div class="text-bottom">{{item.info}}</div>
</div> </div>
</div> </div>
<div v-else>
</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
...@@ -40,6 +43,8 @@ ...@@ -40,6 +43,8 @@
</template> </template>
<script> <script>
import BreadCrumb from '../components/breadcrumb.vue' import BreadCrumb from '../components/breadcrumb.vue'
import { setTimeout, setInterval } from 'timers';
let vm = null
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
......
...@@ -83,10 +83,11 @@ export default { ...@@ -83,10 +83,11 @@ export default {
left: 0; left: 0;
top: 64px; top: 64px;
bottom: 0; bottom: 0;
width: 256px; width: 255px;
background: #06232C; background: #06232C;
.el-menu { .el-menu {
background: #06232C; background: #06232C;
border-right: none;
.sub-icon { .sub-icon {
font-size: 12px; font-size: 12px;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册