累计跟新

main
liukewei 10 months ago
parent 162cded138
commit 4fdcb1ca20

@ -130,6 +130,9 @@ public class EhsNoticeMessageController extends BaseController
} }
ehsNoticeMessage.setDeptList(StringUtils.join(deptList, ",")); ehsNoticeMessage.setDeptList(StringUtils.join(deptList, ","));
} }
//直接发布,不在有先保存,再发布了。
ehsNoticeMessage.setStatus("1");
ehsNoticeMessage.setIssueTime(new Date());
return toAjax(ehsNoticeMessageService.save(ehsNoticeMessage)); return toAjax(ehsNoticeMessageService.save(ehsNoticeMessage));
} }
} }

@ -33,7 +33,7 @@
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item> <el-dropdown-item>
<router-link to="/ehs/ehsMyMessage"> <router-link :to="{ path: '/ehsHiddenDangerMenu/ehsHiddenDanger', query: {overTime: '10' }}">
隐患消息 隐患消息
<el-badge class="mark" :value="hdMsgCount" /> <el-badge class="mark" :value="hdMsgCount" />
</router-link> </router-link>
@ -147,6 +147,7 @@
}, },
mounted() { mounted() {
console.log("启动定时器"); console.log("启动定时器");
this.getUnread();
//get1 //get1
this.timer = setInterval(this.getUnread, 10000);// this.timer = setInterval(this.getUnread, 10000);//
}, },

@ -1,5 +1,5 @@
<template> <template>
<el-dialog title="当月隐患信息查询" :visible.sync="open" width="800px" append-to-body> <el-dialog title="当月隐患信息查询" :visible.sync="open" width="1200px" append-to-body>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
</el-form> </el-form>

Loading…
Cancel
Save