123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <!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 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>
- <script>document.write("<link href='../flowchart_app_imgcss/css/formedit.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- <style>
- .addDirection {
- position: relative;
- }
- .addDirection > .sp-page-col {
- width: 200px;
- display: none;
- position: absolute;
- background-color: #c3c3c3;
- color: #000;
- top: 30px;
- right: 0px;
- }
- .addDirection:hover > .sp-page-col {
- display: block !important;
- }
- </style>
- </head>
- <body>
- <div ng-controller="forwardCtrl as ctl" id="app" ng-cloak>
- <div class="sp-page" style="width:980px;display:none" id="forward">
- <div class="sp-layer-body" ng-class="{'sp-height-400': '{{ctl.deviceType}}' =='pad'}">
- <div class="sp-text-center" ng-if="ctl.showContent==false">
- <p ng-bind="ctl.direction.CODEFUNCTITLE" style="display:inline"></p>
- <p style="display: inline" ng-if="ctl.direction.ENDNODETYPE!=1&&ctl.direction.CODEFUNCBUTTON!='sendcopyend'&&ctl.direction.CODEFUNCBUTTON!='sendperusal'&&ctl.direction.CODEFUNCBUTTON !='sendcommit'&&ctl.direction.SENDERRORS.MESSAGE==''">
- <button class=" sp-btn-blue" ng-click="ctl.resetup()">重新选择</button>
- </p>
- </div>
- <div class="sp-page" ng-if="ctl.showContent==true" style="line-height: 30px">
- <div class="sp-page-tab" ng-init="ctl.type=0">
- <span ng-class="{'pageTabActive':ctl.type==$index}" style="width: auto; padding: 0 10px; position: relative" ng-repeat="item in ctl.directionList" ng-click="ctl.changeType($index)">
- {{item.CNAME}}
- <i class="fa fa-close sp-color-red" style="position:absolute;top:0;right:0;font-size:12px" ng-if="item.jiaqian==true" ng-click="ctl.delDirection($index);$event.stopPropagation()"></i>
- </span>
- <!--<button class="sp-pull-right sp-btn-gray sp-btn-sm addDirection" ng-if="ctl.directionFlag==true">
- 加签
- <div class="sp-page-col">
- <div class="sp-box" ng-click="ctl.addDirection(item)" ng-repeat="item in ctl.directionList1" ng-bind="item.CNAME"></div>
- </div>
- </button>-->
- </div>
- <div class="grouping pointer" style="border-left: 1px solid #c3c3c3" ng-class="{'activeGroup':ctl.activeGroup=='部门'}" ng-click="ctl.activeGroup='部门';ctl.forward1(1)" ng-if="!ctl.activeDirection.jiaqian">
- 默认部门
- </div>
- <div class="grouping pointer" style="border-left: 1px solid #c3c3c3" ng-class="{'activeGroup':ctl.activeGroup=='常用分组'}" ng-if="ctl.activeDirection.jiaqian==true" ng-click="ctl.activeGroup='常用分组';ctl.forward1(1)">
- 加签部门
- </div>
- <div class="grouping pointer" ng-class="{'activeGroup':ctl.activeGroup=='自定义分组'}" ng-click="ctl.activeGroup='自定义分组';ctl.forward1(1)">
- 自定义分组
- </div>
- <table class="sp-grid" style="border:1px solid #c3c3c3">
- <tbody>
- <tr>
- <td width="400">
- <div class="sp-page">
- <div class="sp-page" style="height:30px;border:1px solid #ddd">
- <select class="sp-select" style="width: 55%; border: 0; " ng-model="ctl.searchRole" ng-change="ctl.searchPerson()" ng-if="ctl.activeGroup=='部门'">
- <option value="">全部角色</option>
- <option ng-repeat="item in ctl.roleList" value="{{item.ZID}}" ng-bind="item.ZUM" ng-selected="ctl.searchRole==item.ZID"></option>
- </select>
- <select class="sp-select" style="width: 55%; border: 0; " ng-model="ctl.searchRole" ng-change="ctl.searchPerson2()" ng-if="ctl.activeGroup=='常用分组'">
- <option ng-repeat="item in ctl.zdyfzList" value="{{item.ZID}}" ng-bind="item.ZUM" ng-selected="ctl.searchRole==item.ZID"></option>
- </select>
- <select class="sp-select sp-text-center" style="width: 55%; border: 0;" ng-model="ctl.searchRole" ng-change="ctl.searchPerson2()" ng-if="ctl.activeGroup=='自定义分组'">
- <option ng-repeat="item in ctl.zdyfzList" value="{{item.ZID}}" ng-selected="item.ZID==ctl.searchRole" ng-bind="item.ZUM"></option>
- </select>
- <input type="text" class="sp-input" style="width: 45%; outline: none; border: 0; background-image: url(../flowchart_app_imgcss/img/search.png); background-repeat: no-repeat; background-position-x: 98%; background-position-y: 5px; " ng-model="ctl.searchName" placeholder="请输入关键字" ng-change="ctl.searchPerson()" />
- </div>
- </div>
- <div class="sp-page" style="height: 396px; border: 1px solid #ddd; overflow-x: hidden; overflow-y: scroll; ">
- <div ng-repeat="item in ctl.activeDirection.people" class="sp-page sp-pt-5" ng-if="ctl.activeGroup=='部门'&&item.show">
- <div class="sp-col-100">
- <i class="fa fa-plus-square-o" ng-if="item.childshow==false" ng-click="item.childshow=!item.childshow"></i>
- <i class="fa fa-minus-square-o" ng-if="item.childshow==true" ng-click="item.childshow=!item.childshow"></i>
- <!--<span class="pointer" ng-click="ctl.chekcDP(item,2)">{{item.SECTION}}</span>-->
- <span class="pointer" ng-click="item.childshow=!item.childshow">{{item.SECTION}}</span>
- </div>
- <div class="line sp-ml-10" ng-if="item.childshow==true">
- <label style="width:25%;cursor: pointer; width: 100%; display: inline-block; " ng-click="ctl.checkAddUser(item1)" ng-if="item1.show" ng-repeat="item1 in item.USERS">
- <span class="sp-col-35 sp-lh-20">
- <input type="checkbox" ng-model="item1.checked" />
- {{item1.USERNAME}}
- </span>
- <span class="sp-col-65 sp-lh-20">{{item1.DUTYNAME}}</span>
- </label>
- </div>
- </div>
- <div ng-repeat="item in ctl.activeDirection.people" class="sp-page sp-pt-5" ng-if="ctl.activeGroup=='常用分组'&&item.show">
- <div class="sp-col-100">
- <i class="fa fa-plus-square-o" ng-if="item.childshow==false" ng-click="item.childshow=!item.childshow"></i>
- <i class="fa fa-minus-square-o" ng-if="item.childshow==true" ng-click="item.childshow=!item.childshow"></i>
- <!--<span class="pointer" ng-click="ctl.chekcDP(item,2)">{{item.SECTION}}</span>-->
- <span class="pointer" ng-click="item.childshow=!item.childshow">{{item.SECTION}}</span>
- </div>
- <div class="line sp-ml-10" ng-if="item.childshow==true">
- <label style="width:25%;cursor: pointer; width: 100%; display: inline-block; " ng-click="ctl.checkAddUser(item1)" ng-if="item1.show" ng-repeat="item1 in item.USERS">
- <span class="sp-col-35 sp-lh-20">
- <input type="checkbox" ng-model="item1.checked" />
- {{item1.USERNAME}}
- </span>
- <span class="sp-col-65 sp-lh-20">{{item1.DUTYNAME}}</span>
- </label>
- </div>
- </div>
- <div ng-repeat="item in ctl.activeDirection.people" class="sp-page sp-pt-5" ng-if="ctl.activeGroup=='自定义分组'&&item.show">
- <div class="sp-col-100">
- <i class="fa fa-plus-square-o" ng-if="item.childshow==false" ng-click="item.childshow=!item.childshow"></i>
- <i class="fa fa-minus-square-o" ng-if="item.childshow==true" ng-click="item.childshow=!item.childshow"></i>
- <!--<span class="pointer" ng-click="ctl.chekcDP(item,2)">{{item.SECTION}}</span>-->
- <span class="pointer" ng-click="item.childshow=!item.childshow">{{item.SECTION}}</span>
- </div>
- <div class="line sp-ml-10" ng-if="item.childshow==true">
- <label style="width:25%;cursor: pointer; width: 100%; display: inline-block; " ng-click="ctl.checkAddUser(item1)" ng-if="item1.show" ng-repeat="item1 in item.USERS">
- <span class="sp-col-35 sp-lh-20">
- <input type="checkbox" ng-model="item1.checked" />
- {{item1.USERNAME}}
- </span>
- <span class="sp-col-65 sp-lh-20">{{item1.DUTYNAME}}</span>
- </label>
- </div>
- </div>
- </div>
- <div class="sp-page sp-mt-5" style="padding:2px">
- <label ng-if="ctl.activeGroup=='部门'"><input type="checkbox" ng-model="ctl.jiaqian" ng-change="ctl.jiaqianCheck()" /> 去除推荐部门</label>
- <span class="sp-btn-blue-outline sp-btn-sm sp-pull-right" ng-click="ctl.ForwardCheck(3)">反选</span>
- <span class="sp-btn-blue-outline sp-btn-sm sp-pull-right" ng-click="ctl.ForwardCheck(2)">全清</span>
- <span class="sp-btn-blue-outline sp-btn-sm sp-pull-right" ng-click="ctl.ForwardCheck(1)">全选</span>
- </div>
- </td>
- <td width="75" style="text-align:center">
- <button class="sp-btn-gray-outline" ng-click="ctl.adduserAll()">
- <i class="fa fa-2x fa-angle-double-right"></i>
- </button>
- <br />
- <button class="sp-btn-gray-outline" ng-click="ctl.adduser()">
- <i class="fa fa-2x fa-angle-right"></i>
- </button>
- <br />
- <button class="sp-btn-gray-outline" ng-disabled="ctl.meetUser.length==0" ng-click="ctl.deluser()">
- <i class="fa fa-2x fa-angle-left"></i>
- </button>
- <br />
- <button class="sp-btn-gray-outline" ng-disabled="ctl.meetUser.length==0" ng-click="ctl.deluserAll()">
- <i class="fa fa-2x fa-angle-double-left"></i>
- </button>
- </td>
- <td>
- <div class="sp-page" style="padding:5px;border:1px solid #c6c6c6;">
- <div class="sp-page" style="height:32px;line-height:20px">
- <span class="sp-btn-blue sp-btn-sm" ng-if="ctl.saveZB==false" ng-click="ctl.saveZB=true">自定义组</span>
- <input type="text" class="sp-input" ng-if="ctl.saveZB==true" style="width: 146px" ng-model="ctl.cnameZB" />
- <span class="sp-btn-blue sp-btn-sm" ng-if="ctl.saveZB==true" ng-click="ctl.btnSaveZB()">保存</span>
- <span class="sp-btn-red sp-btn-sm" ng-if="ctl.saveZB==true" ng-click="ctl.saveZB=false">取消</span>
- </div>
- <div class="sp-page" style="height: 414px;overflow-y:auto">
- <div class="line" ng-repeat="item in ctl.forwardUser[ctl.activeDirection.forwardUser]">
- <label style="cursor: pointer; width: 100%; display: inline-block; ">
- <input type="checkbox" ng-model="item.checked" ng-click="ctl.checkForwardUser($index)" />
- <span ng-bind="item.USERNAME" class="pointer" ng-class="{'activeUser':ctl.activeUser==$index}"></span>
- <span class="sp-pull-right" style="width:150px">{{item.DUTYNAME}}</span>
- </label>
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page" style="height:120px;overflow:auto">
- <p ng-repeat="item in ctl.directionList">
- {{item.CNAME}}:(
- <span style=" white-space: nowrap" ng-repeat="item1 in ctl.forwardUser[item.forwardUser]" ng-if="$index!=ctl.forwardUser[item.forwardUser].length-1">{{item1.USERNAME}},</span>
- <span style=" white-space: nowrap" ng-repeat="item1 in ctl.forwardUser[item.forwardUser]" ng-if="$index==ctl.forwardUser[item.forwardUser].length-1">{{item1.USERNAME}}</span>
- )
- </p>
- </div>
- </div>
- <div class="sp-page sp-text-center sp-mt-15">
- <button class="sp-btn-blue sp-radius" ng-click="ctl.sendAll()" ng-if="(!ctl.direction.SENDERRORS||ctl.direction.SENDERRORS.MESSAGE=='')&&(ctl.direction.CODEMARK==undefined || ctl.direction.CODEMARK=='true')" ng-disabled="ctl.sendFlag==true">
- <i class="fa fa-check sp-mr-5"> </i>确 认
- </button>
- <button class="sp-btn-blue sp-radius" onclick="window.parent.sp.closeCenter('.sp-layer')"><i class="fa fa-reply-all 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/angularjs/angular.js"></script>
- <script src="../../apiurljs.js"></script>
- <script src="../../js/sm4.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/forwardUser.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
- </body>
- </html>
|