123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
-
- <title>值班安排</title>
- <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
- <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
-
- </head>
- <body ng-controller="dutyCtrl as ctl" ng-cloak>
- <div class="wrapper wrapper-content">
- <div class="row">
- <div class="col-md-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <span ng-bind="ctl.duty.year"></span>年第 <span class="sp-color-blue sp-fs-18" ng-bind="ctl.duty.weekNum"></span> 周值班安排
- <div class="ibox-tools">今日:<span ng-bind="ctl.duty.nowDay"></span></div>
- </div>
- <div class="ibox-content">
- <div class="row">
- <div class="col-md-12">
- <div class="sp-duty">
- <div class="sp-duty-col" ng-repeat="item in ctl.weekinfo" ng-class="{'sp-duty-weekend':'{{ctl.duty.weekday}}'=='{{item.weekNum}}'}">
- <ul class="sp-duty-col-up">
- <li class="sp-duty-col-left" ng-bind="item.weekNum"></li>
- <li class="sp-duty-col-right" ng-bind="item.day"></li>
- </ul>
- <ul class="sp-duty-col-foot">
- <li>带班人:<span ng-bind="item.Parti"></span></li>
- <li ng-repeat="item2 in item.person">值班人:<span ng-bind="item2.tname"></span>(<span ng-bind="item2.ctype"></span>)</li>
- </ul>
- </div>
- <!--<div class="sp-duty-col">
- <ul class="sp-duty-col-up">
- <li class="sp-duty-col-left">周二</li>
- <li class="sp-duty-col-right">10</li>
- </ul>
- <ul class="sp-duty-col-foot">
- <li>带班人:李晓然</li>
- <li>值班人:张亚楠(夜)</li>
- </ul>
- </div>
- <div class="sp-duty-col sp-duty-weekend">
- <ul class="sp-duty-col-up">
- <li class="sp-duty-col-left">周六</li>
- <li class="sp-duty-col-right">14</li>
- </ul>
- <ul class="sp-duty-col-foot">
- <li>带班人:李晓然</li>
- <li>值班人:张亚楠(早)</li>
- <li>值班人:张亚楠(晚)</li>
- <li>值班人:张亚楠(夜)</li>
- </ul>
- </div>
- <div class="sp-duty-col sp-duty-weekend">
- <ul class="sp-duty-col-up">
- <li class="sp-duty-col-left">周七</li>
- <li class="sp-duty-col-right">15</li>
- </ul>
- <ul class="sp-duty-col-foot">
- <li>带班人:李晓然</li>
- <li>值班人:张亚楠(早)</li>
- <li>值班人:张亚楠(晚)</li>
- <li>值班人:张亚楠(夜)</li>
- </ul>
- </div>-->
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>值班列表</h5>
- <div class="ibox-tools">
- <button class="sp-btn-blue sp-btn-radius sp-btn-sm" onclick="sp.layer('#layer_addDuty')" ><i class="fa fa-plus sp-mr-5"></i>新 建</button>
- </div>
- </div>
- <div class="ibox-content">
- <div class="row">
- <div class="col-md-12">
- <table class="sp-table">
- <thead>
- <tr>
- <th style="width:60px;">序号</th>
- <th>名称</th>
- <th>登记人</th>
- <th>登记时间</th>
- <th>所属部门</th>
- <th>值班类型</th>
- </tr>
- </thead>
- <tbody>
- <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage" total-items="ctl.total_count">
- <td ng-bind="(ctl.pageno-1)*ctl.itemsPerPage+($index+1)"></td>
- <td>
- <a ng-bind="item.title" class="sp-color-blue" ng-click="ctl.getSelectedWeekInfo($index)"></a>
- </td>
- <td ng-bind="item.person"></td>
- <td ng-bind="item.tdate"></td>
- <td ng-bind="item.depart"></td>
- <td ng-bind="item.ctype"></td>
- </tr>
- </tbody>
- </table>
- <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
- <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
- </div>
-
- <div class="sp-page" ng-show="ctl.noDataTip == 1">
- <div class="sp-page-col sp-pull-right">
- <div class="sp-lh-34">
- 每页
- <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions" ng-init="ctl.itemsPerPage=ctl.pageOptions[0]" ng-change="ctl.changePageOption()"></select>
- 条
- </div>
- </div>
- <div class="sp-page-col sp-pull-right">
- <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
- on-page-change="ctl.getData(newPageNumber)">
- </dir-pagination-controls>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="sp-layer" id="layer_addDuty" data-title="新建值班安排" style="width:500px;">
- <div class="sp-layer-body">
- <div class="sp-page">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:80px;">年度</td>
- <td><input type="text" class="sp-input" ng-model="ctl.add.year" readonly="readonly" /></td>
- </tr>
- <tr>
- <td>周数</td>
- <td><input type="text" class="sp-input" ng-model="ctl.add.week" sp-required sp-digit /></td>
- </tr>
- <tr>
- <td>名称</td>
- <td class="sp-text-left">
- <span ng-bind="ctl.add.year"></span>
- 年第
- <span ng-bind="ctl.add.week"></span>
- 周值班安排
- </td>
- </tr>
- <tr>
- <td>值班类型</td>
- <td>
- <select class="sp-select" ng-model="ctl.add.ctype">
- <option>日常</option>
- <option>春节</option>
- <option>清明节</option>
- <option>五一劳动节</option>
- <option>端午节</option>
- <option>国庆节</option>
- <option>中秋节</option>
- </select>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div class="sp-line-gray"></div>
- <div class="sp-page sp-text-center">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnAddDuty()"><i class="fa fa-check sp-mr-5"></i>提 交</button>
- <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()"><i class="fa fa-trash sp-mr-5"></i>取 消</button>
- </div>
- </div>
- </div>
- </div>
-
- <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
- <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
- <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
- <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
- <script src="../../AFrontEnd/js/angularjs/angular-sanitize.js"></script>
- <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
- <script>document.write('<scri' + 'pt src="js/duty.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
- <script src="../../AFrontEnd/js/special/spngvld.js"></script>
- </body>
- </html>
|