Commit 5c517955a6c984490a75619026752690de4425fe
1 parent
46270f5b
登录模块提交
Showing
4 changed files
with
132 additions
and
24 deletions
resource/js/unit.js
@@ -47,6 +47,14 @@ dataUrl.util = { | @@ -47,6 +47,14 @@ dataUrl.util = { | ||
47 | //查询项目列表 | 47 | //查询项目列表 |
48 | queryAsraProjectForList:function(){ | 48 | queryAsraProjectForList:function(){ |
49 | return parkcloudbaseUrl + 'asraProject/queryAsraProjectForList'; | 49 | return parkcloudbaseUrl + 'asraProject/queryAsraProjectForList'; |
50 | + }, | ||
51 | + //工时查询-当天填报人数统计(汇总) | ||
52 | + queryAsraDailyOpNumForCurrentDay:function(){ | ||
53 | + return parkcloudbaseUrl + 'asraDaily/queryAsraDailyOpNumForCurrentDay'; | ||
54 | + }, | ||
55 | + //工时查询-所有员工及自己或者自己日报 | ||
56 | + queryAsraDailyAllForList:function(){ | ||
57 | + return parkcloudbaseUrl + 'asraDaily/queryAsraDailyAllForList'; | ||
50 | } | 58 | } |
51 | 59 | ||
52 | 60 |
topages/workquery/workquery.css
@@ -220,7 +220,7 @@ | @@ -220,7 +220,7 @@ | ||
220 | background: url(../../resource/img/person-cion.png) no-repeat 60px center; | 220 | background: url(../../resource/img/person-cion.png) no-repeat 60px center; |
221 | } | 221 | } |
222 | .workquery-list-main>li:nth-of-type(2){ | 222 | .workquery-list-main>li:nth-of-type(2){ |
223 | - width: 100px; | 223 | + width: 120px; |
224 | height: 142px; | 224 | height: 142px; |
225 | line-height: 142px; | 225 | line-height: 142px; |
226 | font-size: 14px; | 226 | font-size: 14px; |
@@ -234,7 +234,7 @@ | @@ -234,7 +234,7 @@ | ||
234 | color: #363d5d; | 234 | color: #363d5d; |
235 | } | 235 | } |
236 | .workquery-list-main>li:nth-of-type(4){ | 236 | .workquery-list-main>li:nth-of-type(4){ |
237 | - width: 750px; | 237 | + width: 730px; |
238 | height: 90px; | 238 | height: 90px; |
239 | line-height: 24px; | 239 | line-height: 24px; |
240 | padding: 10px 15px; | 240 | padding: 10px 15px; |
topages/workquery/workquery.html
@@ -2,15 +2,15 @@ | @@ -2,15 +2,15 @@ | ||
2 | <ul class="workquery-cardlist"> | 2 | <ul class="workquery-cardlist"> |
3 | <li class="boxshadow"> | 3 | <li class="boxshadow"> |
4 | <div class="workquery-card-title ">今日共计 (人)</div> | 4 | <div class="workquery-card-title ">今日共计 (人)</div> |
5 | - <div class="workquery-card-counter workquery-card-allcounter">123</div> | 5 | + <div class="workquery-card-counter workquery-card-allcounter">1</div> |
6 | </li> | 6 | </li> |
7 | <li class="boxshadow"> | 7 | <li class="boxshadow"> |
8 | <div class="workquery-card-title ">今日已提交 (人)</div> | 8 | <div class="workquery-card-title ">今日已提交 (人)</div> |
9 | - <div class="workquery-card-counter workquery-card-commitedcounter">13</div> | 9 | + <div class="workquery-card-counter workquery-card-commitedcounter">1</div> |
10 | </li> | 10 | </li> |
11 | <li class="boxshadow"> | 11 | <li class="boxshadow"> |
12 | <div class="workquery-card-title ">今日未提交 (人)</div> | 12 | <div class="workquery-card-title ">今日未提交 (人)</div> |
13 | - <div class="workquery-card-counter workquery-card-nocommitedcounter">3</div> | 13 | + <div class="workquery-card-counter workquery-card-nocommitedcounter">0</div> |
14 | </li> | 14 | </li> |
15 | </ul> | 15 | </ul> |
16 | <!--查询 sta--> | 16 | <!--查询 sta--> |
@@ -26,9 +26,7 @@ | @@ -26,9 +26,7 @@ | ||
26 | <div class="timeopr-text float-left">选择项目</div> | 26 | <div class="timeopr-text float-left">选择项目</div> |
27 | <div class="float-left workquery-timeopr-div margin-right-40"> | 27 | <div class="float-left workquery-timeopr-div margin-right-40"> |
28 | <select id="workquery-projectName" class="selectpicker" data-width="100%" data-size="5" data-live-search="true"> | 28 | <select id="workquery-projectName" class="selectpicker" data-width="100%" data-size="5" data-live-search="true"> |
29 | - <option value="1">企业云</option> | ||
30 | - <option value="2">任你停</option> | ||
31 | - <option value="3">政府云</option> | 29 | + |
32 | </select> | 30 | </select> |
33 | </div> | 31 | </div> |
34 | <div class="timeopr-text float-left">人员名称</div> | 32 | <div class="timeopr-text float-left">人员名称</div> |
@@ -57,22 +55,8 @@ | @@ -57,22 +55,8 @@ | ||
57 | <li id="workquery-list-wrap1" class="clampThis" title="相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。 此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限">11外,11婚1强调,支1,难以1金受限</li> | 55 | <li id="workquery-list-wrap1" class="clampThis" title="相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。 此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限">11外,11婚1强调,支1,难以1金受限</li> |
58 | </ul> | 56 | </ul> |
59 | </li> | 57 | </li> |
60 | - <li class="workquery-list-box"> | ||
61 | - <ul class="workquery-list-main"> | ||
62 | - <li>张三 </li> | ||
63 | - <li>2018/07/23</li> | ||
64 | - <li>工时 <span>8</span> 小时</li> | ||
65 | - <li id="workquery-list-wrap2" class="clampThis" title="相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。 此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限">相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。 此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限</li> | ||
66 | - </ul> | ||
67 | - </li> | ||
68 | - <li class="workquery-list-box"> | ||
69 | - <ul class="workquery-list-main"> | ||
70 | - <li>张三 </li> | ||
71 | - <li>2018/07/23</li> | ||
72 | - <li>工时 <span>8</span> 小时</li> | ||
73 | - <li id="workquery-list-wrap2" class="clampThis" title="相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。 此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限">相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限相继调整公积金提取政策,收紧了异地购房、离婚购房提取公积金等操作,但多地也都强调,支持提取公积金用于购买首套住房或二套改善型住房。 此外,由于房价普遍上涨,多地的公积金贷款上限已经明显偏低,难以满足购房者的资金需求。专家建议,各地应上调公积金贷款额度。 异地购房、离婚购房提取公积金受限</li> | ||
74 | - </ul> | ||
75 | - </li> | 58 | + |
59 | + | ||
76 | 60 | ||
77 | 61 | ||
78 | </ul> | 62 | </ul> |
topages/workquery/workquery.js
@@ -5,6 +5,12 @@ var fun={ | @@ -5,6 +5,12 @@ var fun={ | ||
5 | init:function () { | 5 | init:function () { |
6 | $('#workquery-projectName').selectpicker('render'); | 6 | $('#workquery-projectName').selectpicker('render'); |
7 | fun.dateInit(); | 7 | fun.dateInit(); |
8 | + //工时汇总查询 | ||
9 | + fun.queryAsraDailyOpNumForCurrentDay(); | ||
10 | + // | ||
11 | + fun.queryAsraDailyAllForList(); | ||
12 | + // | ||
13 | + fun.queryBtn(); | ||
8 | }, | 14 | }, |
9 | dateInit:function () { | 15 | dateInit:function () { |
10 | //时间初始化 | 16 | //时间初始化 |
@@ -43,6 +49,116 @@ var fun={ | @@ -43,6 +49,116 @@ var fun={ | ||
43 | }).on("click", function () { | 49 | }).on("click", function () { |
44 | $("#workquery-daterange-btnend").datetimepicker("setStartDate", $("#workquery-daterange-btnsta").val()) | 50 | $("#workquery-daterange-btnend").datetimepicker("setStartDate", $("#workquery-daterange-btnsta").val()) |
45 | }); | 51 | }); |
52 | + //项目查询 | ||
53 | + fn.getAsraProject("",function(data){ | ||
54 | + var html=""; | ||
55 | + $.each(data,function(index,row){ | ||
56 | + html+='<option value="'+row.id+'">'+row.projecName+'</option>'; | ||
57 | + }); | ||
58 | + if(html != null && html != ""){ | ||
59 | + $("#workquery-projectName").empty(); | ||
60 | + $("#workquery-projectName").append(html); | ||
61 | + $("#workquery-projectName").selectpicker('refresh'); | ||
62 | + | ||
63 | + } | ||
64 | + }); | ||
65 | + | ||
66 | + }, | ||
67 | + //工时汇总查询 | ||
68 | + queryAsraDailyOpNumForCurrentDay:function(){ | ||
69 | + $('.workquery-card-allcounter').text(''); | ||
70 | + $('.workquery-card-commitedcounter').text(''); | ||
71 | + $('.workquery-card-nocommitedcounter').text(''); | ||
72 | + var req = fun.getParams(); | ||
73 | + var opt = { | ||
74 | + data: JSON.stringify(req), | ||
75 | + method: "POST", | ||
76 | + async: false, | ||
77 | + url: dataUrl.util.queryAsraDailyOpNumForCurrentDay(), | ||
78 | + success: function (res) { | ||
79 | + if(res != null && res.code =='8888' ){ | ||
80 | + var data = res.data; | ||
81 | + $('.workquery-card-allcounter').text(data.employeeTotal); | ||
82 | + $('.workquery-card-commitedcounter').text(data.currentDayCommitEmployeeNum); | ||
83 | + $('.workquery-card-nocommitedcounter').text(data.currentDayNotCommitEmployeeNum); | ||
84 | + } | ||
85 | + | ||
86 | + } | ||
87 | + } | ||
88 | + sysAjax(opt); | ||
89 | + }, | ||
90 | + //工时查询-所有员工及自己或者自己日报 | ||
91 | + queryAsraDailyAllForList:function(){ | ||
92 | + debugger; | ||
93 | + var noDataShow = '<div class="nodata-icon" ></div>'; | ||
94 | + var req = fun.getParams(); | ||
95 | + var opt = { | ||
96 | + data: JSON.stringify(req), | ||
97 | + method: "POST", | ||
98 | + async: false, | ||
99 | + url: dataUrl.util.queryAsraDailyAllForList(), | ||
100 | + success: function (res) { | ||
101 | + if(res != null && res.code =='8888' ){ | ||
102 | + var data = res.data.list; | ||
103 | + if(data == null || data.length == 0 ){ | ||
104 | + $('#workquery-list-wrap').empty(); | ||
105 | + $('#workquery-list-wrap').append(noDataShow); | ||
106 | + }else{ | ||
107 | + var html = '<li>'; | ||
108 | + $.each(data,function(index,rows){ | ||
109 | + html+=' <ul class="workquery-list-title clearfix boxshadow">'; | ||
110 | + html+='<li>'+rows.projectName+'</li>'; | ||
111 | + html+='<li class="commited-icon">已提交 <span>'+rows.commitPersonNum+'</span> 人</li>'; | ||
112 | + html+='<li class="slide-text">全部展开</li>'; | ||
113 | + html+=' <li class="slide-icon"> </li>'; | ||
114 | + html+='</ul>'; | ||
115 | + var listDetail =rows.listDetail; | ||
116 | + $.each(listDetail,function(index,rows){ | ||
117 | + html+='<ul class="workquery-list-container clearfix display-none">\n' + | ||
118 | + ' <li class="workquery-list-box">\n' + | ||
119 | + ' <ul class="workquery-list-main">\n' + | ||
120 | + ' <li>'+rows.asarOpName+'</li>\n' + | ||
121 | + ' <li>'+rows.dailyDate+'</li>\n' + | ||
122 | + ' <li>工时 <span>8</span> 小时</li>\n' + | ||
123 | + ' <li id="workquery-list-wrap1" class="clampThis" title="">'+rows.dailyContent+'</li>\n' + | ||
124 | + ' </ul>\n' + | ||
125 | + ' </li>'; | ||
126 | + }); | ||
127 | + }); | ||
128 | + html+='</li>'; | ||
129 | + $('#workquery-list-wrap').empty(); | ||
130 | + $('#workquery-list-wrap').append(html); | ||
131 | + } | ||
132 | + | ||
133 | + }else{ | ||
134 | + $('#workquery-list-wrap').empty(); | ||
135 | + $('#workquery-list-wrap').append(noDataShow); | ||
136 | + } | ||
137 | + | ||
138 | + } | ||
139 | + } | ||
140 | + sysAjax(opt); | ||
141 | + }, | ||
142 | + //查询announce | ||
143 | + queryBtn:function(){ | ||
144 | + $(document).on('click','#queryBtn',function(){ | ||
145 | + fun.queryAsraDailyAllForList(); | ||
146 | + }); | ||
147 | + }, | ||
148 | + //获取参数 | ||
149 | + getParams:function() { | ||
150 | + var req = {}; | ||
151 | + var beginTime = $('#workquery-daterange-btnsta').val(); //开始时间 | ||
152 | + var endTime = $('#workquery-daterange-btnend').val(); //结束时间 | ||
153 | + var projectId = $('#workquery-projectName').val();//项目id | ||
154 | + var opName = $('#perName').val(); | ||
155 | + req.beginTime = beginTime; | ||
156 | + req.endTime = endTime; | ||
157 | + req.projectId = projectId; | ||
158 | + req.opName = opName; | ||
159 | + return req; | ||
160 | + | ||
161 | + | ||
46 | }, | 162 | }, |
47 | listToggle:function (ele) { | 163 | listToggle:function (ele) { |
48 | var text = ele.find('.slide-text').text(); | 164 | var text = ele.find('.slide-text').text(); |