cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
[#include "/business/wechat/include/title.html" /]
[#include "/business/wechat/include/wheader.html" /]
 
</head>
 
<body>
<header class="kltit"><a href="javascript:history.go(-1);"><span></span></a>日常巡检</header>
<header class="taskmonth">
    <label><em id="month">${month}</em>月</label>
    <span><em id="year">${year}</em>年</span>
    
    <div class="wlsdrop">
        [#list years as year]
            <a href="javascript:void(0);" v="${year}"><p>${year}年</p></a>
        [/#list]
    </div>
    <div class="wlsdrop2">
        [#list months as month]
            <a href="javascript:void(0);" v="${month}"><p>${month}月</p></a>
        [/#list]
    </div>
    
</header>
 
<div id="data">
 
</div>
 
 
<script type="text/javascript">
function query() {
    var year = $("#year").text();
    var month = $("#month").text();
    loading($("#data"));
    $.post("${base}/ewyw/ewWorkplan/eDailyCal.html",{"year":year,"month":month},function(data,textStatus) {
         $("#data").html(data);
    })
}        
    
        
$(function() {
    query();
    
    /*日常巡检*/
    var taskmonthBtn = $('.taskmonth span'),
        taskmonthCon = $('div.wlsdrop');
    taskmonthBtn.click(function(){
        taskmonthCon.animate({height:'toggle'});
    });
    taskmonthCon.children('a').click(function(){
        var v = $(this).attr("v");
        $("#year").text(v);
        taskmonthCon.slideUp();
        query();
    });
    
    var taskmonthBtn2 = $('.taskmonth label'),
        taskmonthCon2 = $('div.wlsdrop2');
    taskmonthBtn2.click(function(){
        taskmonthCon2.animate({height:'toggle'});
    });
    taskmonthCon2.children('a').click(function(){
        var v = $(this).attr("v");
        $("#month").text(v);
        taskmonthCon2.slideUp();
        query();
    });
})
 
 
 
</script>  
 
 
 
</body>
</html>