Commit d46f2bd8e9da289ad594ecfada2bba6ca365860d
1 parent
d8c028fb
日报查询 查询栏
Showing
5 changed files
with
142 additions
and
4 deletions
resource/img/dataicon.png
0 → 100644
326 Bytes
resource/img/search-btn.png
0 → 100644
2.05 KB
topages/workquery/workquery.css
| 1 | +.workquery-cardlist{ | |
| 2 | + height: 138px; | |
| 3 | + width: 100%; | |
| 4 | +} | |
| 1 | 5 | .workquery-cardlist li{ |
| 2 | 6 | width:324px ; |
| 3 | 7 | height: 136px; |
| ... | ... | @@ -36,10 +40,75 @@ |
| 36 | 40 | |
| 37 | 41 | |
| 38 | 42 | /*----------------------------------------时间*/ |
| 43 | +.workquery-timeopr-wrap{ | |
| 44 | + height: 34px; | |
| 45 | + margin-top: 30px; | |
| 46 | + margin-bottom: 30px; | |
| 47 | +} | |
| 48 | +.workquery-timeopr-wrap .timeopr-text{ | |
| 49 | + height: 34px; | |
| 50 | + line-height: 34px; | |
| 51 | + color: #363d5d; | |
| 52 | + font-size: 14px; | |
| 53 | + width: 72px; | |
| 54 | +} | |
| 55 | +.ITD-daterange-btn { | |
| 56 | + float: left; | |
| 57 | + width: 120px; | |
| 58 | + height: 34px; | |
| 59 | + line-height: 34px; | |
| 39 | 60 | |
| 40 | - | |
| 41 | - | |
| 42 | - | |
| 61 | + padding-top: 1px !important; | |
| 62 | +} | |
| 63 | +.ITD-daterange-bg { | |
| 64 | + width: 90px; | |
| 65 | + text-align: left; | |
| 66 | + background: url(../../resource/img/dataicon.png) no-repeat 94% 9px !important; | |
| 67 | + background-color: #fff !important; | |
| 68 | + padding-right: 25px; | |
| 69 | + z-index: 9999; | |
| 70 | + border-radius: 4px !important; | |
| 71 | +} | |
| 72 | +.ITD-input-bordercolor { | |
| 73 | + color: rgba(0,0,0,0.45); | |
| 74 | + border: 1px solid #d8e2e5 !important; | |
| 75 | + border-radius: 4px !important; | |
| 76 | +} | |
| 77 | +.ITD-parkinput78 { | |
| 78 | + width: 180px; | |
| 79 | + height: 34px; | |
| 80 | + line-height: 34px; | |
| 81 | +} | |
| 82 | +.paddingleft-10 { | |
| 83 | + padding-left: 10px; | |
| 84 | +} | |
| 85 | +.workquery-timeopr-div{ | |
| 86 | + width: 200px; | |
| 87 | + height: 34px; | |
| 88 | + line-height: 34px; | |
| 89 | +} | |
| 90 | +/*input 样式*/ | |
| 91 | +.bootstrap-select.btn-group .dropdown-toggle .filter-option { | |
| 92 | + text-align: left !important; | |
| 93 | +} | |
| 94 | +.bootstrap-select.btn-group .dropdown-toggle .caret{ | |
| 95 | + position: absolute; | |
| 96 | + top: 50%; | |
| 97 | + left:170px !important;; | |
| 98 | + margin-top: -2px; | |
| 99 | + vertical-align: middle; | |
| 100 | +} | |
| 101 | +.margin-right-40{ | |
| 102 | + margin-right: 40px; | |
| 103 | +} | |
| 104 | +/*查询按钮*/ | |
| 105 | +.workquery-searchbtn{ | |
| 106 | + background: url("../../resource/img/search-btn.png") no-repeat; | |
| 107 | + width: 66px; | |
| 108 | + height: 66px; | |
| 109 | + top: -12px; | |
| 110 | + right: 0px; | |
| 111 | +} | |
| 43 | 112 | |
| 44 | 113 | /*----------------------------------------列表*/ |
| 45 | 114 | .workquery-list-wrap>li{ | ... | ... |
topages/workquery/workquery.html
| ... | ... | @@ -13,7 +13,29 @@ |
| 13 | 13 | <div class="workquery-card-counter workquery-card-nocommitedcounter">3</div> |
| 14 | 14 | </li> |
| 15 | 15 | </ul> |
| 16 | -<div class="workquery-timeopr-wrap">时间操作区域</div> | |
| 16 | +<!--查询 sta--> | |
| 17 | +<div class="workquery-timeopr-wrap pos-rel clearfix"> | |
| 18 | + <div class="timeopr-text float-left">选择时间</div> | |
| 19 | + <div class="input-group ITD-daterange-btn" > | |
| 20 | + <input type="text" class="form-control ITD-daterange-bg ITD-common-color070" id="workquery-daterange-btnsta" readonly=""> | |
| 21 | + </div> | |
| 22 | + <span class="float-left" style="height: 34px;line-height: 34px;margin: 0 5px;">-</span> | |
| 23 | + <div class="input-group ITD-daterange-btn margin-right-40"> | |
| 24 | + <input type="text" class="form-control daterange-str ITD-daterange-bg ITD-common-color070" id="workquery-daterange-btnend" readonly=""> | |
| 25 | + </div> | |
| 26 | + <div class="timeopr-text float-left">选择项目</div> | |
| 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"> | |
| 29 | + <option value="1">企业云</option> | |
| 30 | + <option value="2">任你停</option> | |
| 31 | + <option value="3">政府云</option> | |
| 32 | + </select> | |
| 33 | + </div> | |
| 34 | + <div class="timeopr-text float-left">人员名称</div> | |
| 35 | + <input type="text" class="ITD-parkinput78 paddingleft-10 ITD-input-bordercolor" maxlength="16" id="perName"> | |
| 36 | + <div class="workquery-searchbtn pos-abs cursor-pointer" id="queryBtn"></div> | |
| 37 | +</div> | |
| 38 | +<!--查询 end--> | |
| 17 | 39 | |
| 18 | 40 | |
| 19 | 41 | |
| ... | ... | @@ -51,3 +73,4 @@ |
| 51 | 73 | </ul> |
| 52 | 74 | </li> |
| 53 | 75 | </ul> |
| 76 | +<script src="../topages/workquery/workquery.js"></script> | ... | ... |
topages/workquery/workquery.js
| 1 | 1 | /** |
| 2 | 2 | * Created by mac on 18/7/24. |
| 3 | 3 | */ |
| 4 | +var fun={ | |
| 5 | + init:function () { | |
| 6 | + $('#workquery-projectName').selectpicker('render'); | |
| 7 | + fun.dateInit(); | |
| 8 | + }, | |
| 9 | + dateInit:function () { | |
| 10 | + //时间初始化 | |
| 11 | + $('#workquery-daterange-btnsta').val(moment().subtract('days', 6).format('YYYY-MM-DD')); | |
| 12 | + $('#workquery-daterange-btnend').val(moment().subtract('days', 0).format('YYYY-MM-DD')); | |
| 13 | + //开始日期 | |
| 14 | + $("#workquery-daterange-btnsta").datetimepicker({ | |
| 15 | + endDate: moment().subtract('days', 0).format('YYYY-MM-DD'), | |
| 16 | + format: 'yyyy-mm-dd', | |
| 17 | + autoclose: true, | |
| 18 | + startView: 2, | |
| 19 | + //maxDate:moment().subtract('months', 3), | |
| 20 | + minView: 2, | |
| 21 | + forceParse: false, | |
| 22 | + clearBtn: true , //添加清除按钮,可选值:true/false | |
| 23 | + locale: "zh-CN", | |
| 24 | + language: 'zh-CN', | |
| 25 | + pickerPosition: "bottom-right" | |
| 26 | + }).on("change", function () { | |
| 27 | + $("#workquery-daterange-btnend").val(''); | |
| 28 | + }); | |
| 29 | + //结束日期 | |
| 30 | + $("#workquery-daterange-btnend").datetimepicker({ | |
| 31 | + endDate: moment().subtract('days', 0).format('YYYY-MM-DD'), | |
| 32 | + //startDate:startVal, | |
| 33 | + format: 'yyyy-mm-dd', | |
| 34 | + weekStart: 1, | |
| 35 | + autoclose: true, | |
| 36 | + clearBtn: true , //添加清除按钮,可选值:true/false | |
| 37 | + startView: 2, | |
| 38 | + minView: 2, | |
| 39 | + forceParse: false, | |
| 40 | + locale: "zh-CN", | |
| 41 | + language: 'zh-CN', | |
| 42 | + pickerPosition: "bottom-right" | |
| 43 | + }).on("click", function () { | |
| 44 | + $("#workquery-daterange-btnend").datetimepicker("setStartDate", $("#workquery-daterange-btnsta").val()) | |
| 45 | + }); | |
| 46 | + }, | |
| 47 | + | |
| 48 | +} | |
| 49 | +fun.init(); | |
| 4 | 50 | \ No newline at end of file | ... | ... |