mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@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>
@}