jyy
2021-04-14 6ada97d503bd93722c081b66a9adcce7599e5536
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
 
 
 
 
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="box_no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=box_no" />
<meta http-equiv="Cache-Control" content="box_no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
    th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
<script type="text/javascript"
    th:src="@{/js/systools/MBase.js}"></script>
<style type="text/css">
 
/* 代表服务已结束 */
.box_danger {
    background: #d9534f;
    cursor: pointer;
}
 
/* 代表上班未被预约还可再约位的空档 */
.box_success {
    background: #5cb85c;
}
/* 代表已预约 */
.box_warning {
    background: #f0ad4e;
    cursor: pointer;
}
/* 代表正在服务中 */
.box_primary {
    background: #337ab7;
    cursor: pointer;
}
 
/* 代表不上班 */
.box_no {
    background-image: url("${path}/resource/images/wsb.jpg");
}
 
.exp-warp {
    margin-left: 20px;
    height: 50px;
    width: 100px;
    float: left;
}
 
.exp-box {
    width: 100px;
    height: 30px;
    float: left;
    border-radius: 5px;
}
 
.exp-title {
    width: 100px;
    height: 20px;
    width: 100px;
    line-height: 20px;
    text-align: center;
}
 
.box-table {
    
}
 
.box-table th {
    border: 1px solid;
}
 
.box-table td {
    border: 1px solid;
}
 
.table-box {
    height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 20px;
}
 
.adbox {
    position: absolute;
    top: 0px;
    left: 0px;
    border: 1px solid #aeaeae;
    width: 200px;
    height: 100px;
    background: white;
    padding: 10px;
}
 
#mgrid>thead {
    display: table-footer-group;
}
</style>
 
<title></title>
</head>
<div class="ibox-content">
 <div class="panel-heading">
     <label id="lastestWorks" >上一次排班的美疗师:<span id="lastestWork" class="label label-success"></span></label> 
     </div>
    <table class="box-table" id="mgridThead">
        <thead>
            <tr>
                <th width="100">时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
                <th th:each="item:${mlsList }" width="100" th:text="${item.staffName }"></th>
            </tr>
        </thead>
    </table>
    <div class=" table-box ">
        <table class="box-table" id="mgrid">
            <thead>
                <tr>
                    <th width="100">时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
                    <th th:each="item:${mlsList }" width="100" th:text="${item.staffName }"></th>
                </tr>
            </thead>
            <tbody>
                    <tr th:each="item,counter:${timePark }">
                        <td th:text="${#dates.format(item, 'HH:mm')}" >
                        </td>
                        <th:block th:each="td,counter:${chart[counter.index] }"   >
                                <td th:if="${td.msg ne null}" th:class="${td.css } +'msg'" th:msg="${td.msg}"></td>
                                <td th:if="${td.msg eq null}" th:class="${td.css }"></td>
                        </th:block>
                    </tr>
            </tbody>
        </table>
    </div>
    <div class="row">
        <div class="exp-warp">
            <div class="exp-box box_success"></div>
            <div class="exp-title">可预约</div>
        </div>
        <div class="exp-warp">
            <div class="exp-box box_warning"></div>
            <div class="exp-title">已预约</div>
        </div>
        <div class="exp-warp">
            <div class="exp-box box_primary"></div>
            <div class="exp-title">服务中</div>
        </div>
        <div class="exp-warp">
            <div class="exp-box box_danger"></div>
            <div class="exp-title">服务结束</div>
        </div>
        <div class="exp-warp">
            <div class="exp-box box_no"></div>
            <div class="exp-title">未上班</div>
        </div>
 
    </div>
 
 
</div>
 
<div id="ad" class="adbox" style="display: none"></div>
 
 
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script><script type="text/javascript">
    $(function() {
        $(".msg").mouseenter(function(event) {
            var adNode = $("#ad");
            adNode.html($(this).attr("msg"));
            adNode.css("left", event.pageX + 10 + "px");
            adNode.css("top", event.pageY + 10 + "px");
            adNode.show();
        });
        $(".msg").mouseleave(function(event) {
            $("#ad").hide();
        });
        getLastedWork();
    })
    
    
            
 
    
    function getLastedWork(){
        $.AjaxProxy().invoke(basePath+"/admin/lastestWorkBeatuistaff/findLasteWork",function(loj){
            var html=[];
            for(var i=0;i<loj.getRowCount();i++){
                html[i]=loj.getString(i,"staffName");
            }
            if(html.length<1){
                $("#lastestWorks").html("暂无排班美疗师");
            }else{
                $("#lastestWork").html(html.join(" | "));    
            }
        })
    }
</script>
</body>
</html>