田源
2024-04-07 2ac55ce0edf4870a29691b56bfad59f4830a11a2
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
/**
 * 工作日历
 * Created by weidy on 2018/5/2.
 */
 
layui.define(['laydate'],function(exports){
 
    var Dev = function(){
        this.url = '';
        this.id = "vciBaseCalPortlet";
        this.modelKey = "vciBaseCallPortlet";
    };
    Dev.prototype.getContent = function(){
        var that = this;
        return '<div id="' + that.id + '" style="line-height:14px; text-align: center; padding-bottom: 15px;" ></div>';
    };
    Dev.prototype.init = function(){
        var that = this;
        var laydate = layui.laydate;
        laydate.render({
            elem : '#' + that.id,
            position:'static',
            showBottom:false,
            calendar:true,
            show:true,
            mark:{
                '2018-06-02': '加班',
                '2018-06-09': '加班',
                '2018-05-31': '双班'
            },
            specialmark:{
                '2019-11-11':"laydate-day-red",
                '2019-11-12':"laydate-day-yellow"
            },
            markweek:true
        });
    };
    var dev = new Dev();
   exports('portal/vciBaseCalPortlet',dev);
});