@layout("/common/_container.html"){
|
<style>
|
.chart-content {padding: 20px;width: 100%;height: 300px;}
|
</style>
|
<div class="container-fluid" style="padding: 0 !important;">
|
<div class="ibox-title">
|
<h3>
|
消息通知
|
<button class="pull-right btn btn-outline btn-success btn-xs" onclick="location.reload();">刷新</button>
|
</h3>
|
</div>
|
<div class="row">
|
@for(data in dataList){
|
@if (shiro.hasRole("administrator") && data.type == 1) {
|
<!--超级管理员 不显示 入司审核 通知-->
|
@} else {
|
<div class="col-md-12">
|
<div class="ibox-title">
|
<h3>
|
${data.typeName}
|
<!--<button type="button" class="pull-right btn btn-default btn-xs" onclick="NoticeDlg.delete(${data.id})">X</button>-->
|
</h3>
|
|
</div>
|
<div class="ibox-content">
|
${data.content}
|
@if(data.type == 1){
|
<a href="javascript:void(0);" onclick="MemUserSales.openAudit(${data.param});" data-index="4"> 去审核></a>
|
@}
|
@if(data.type == 2){
|
<a href="javascript:void(0);" onclick="NoticeDlg.openSet200(${data.param});" data-index="4"> 去审核></a>
|
@}
|
@if(data.type == 5){
|
<a href="javascript:void(0);" onclick="NoticeDlg.openSet300(${data.param});" data-index="4"> 去审核></a>
|
@}
|
<span style="float: right;">${data.create_time}</span>
|
</div>
|
</div>
|
@}
|
@}
|
</div>
|
</div>
|
|
<script type="text/javascript">
|
var MemUserSales = {
|
layerIndex: -1
|
};
|
MemUserSales.openAudit = function (param) {
|
var index = layer.open({
|
type: 2,
|
title: '营销员入司审核',
|
area: ['95%', '95%'], //宽高
|
fix: false, //不固定
|
maxmin: true,
|
content: Feng.ctxPath + '/memUserSales/openAudit/' + param
|
});
|
this.layerIndex = index;
|
};
|
|
var NoticeDlg = {
|
layerIndex: -1
|
};
|
NoticeDlg.openSet200 = function (param) {
|
var index = layer.open({
|
type: 2,
|
title: '',
|
area: ['95%', '95%'], //宽高
|
fix: false, //不固定
|
maxmin: true,
|
content: Feng.ctxPath + '/tSystemSet/set_200_audit/' + param
|
});
|
this.layerIndex = index;
|
};
|
|
NoticeDlg.openSet300 = function (param) {
|
var index = layer.open({
|
type: 2,
|
title: '',
|
area: ['95%', '95%'], //宽高
|
fix: false, //不固定
|
maxmin: true,
|
content: Feng.ctxPath + '/tSystemSet/set_300_audit/' + param
|
});
|
this.layerIndex = index;
|
};
|
|
NoticeDlg.delete = function (id) {
|
var ajax = new $ax(Feng.ctxPath + "/mall/home/systemNotice/delete", function (data) {
|
window.location.reload();
|
});
|
ajax.set("id", id);
|
ajax.start();
|
};
|
</script>
|
@}
|