123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" data-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" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <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>
- <link href="css/index.css?v=20200527" rel="stylesheet" />
- </head>
- <body ng-controller="roleCtrl as ctl" ng-cloak>
-
- <div class="wrapper wrapper-content">
- <div class="loading" ng-if="ctl.loading">
- <div class="loading-msg">
- <h3>数据加载中,请等待</h3>
- <div class="spinner">
- <div class="bounce1"></div>
- <div class="bounce2"></div>
- <div class="bounce3"></div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-5">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
-
- <div class="row">
- <div class="sp-page">
- <div class="sp-page-col">
- <div class="sp-lh-26">选择机构: </div>
- </div>
- <div class="sp-page-col sp-ml-15">
- <select ng-model="ctl.unit" ng-change="ctl.getRole()" class="sp-select">
- <option ng-repeat="item in ctl.unitList" ng-init="ctl.unit=ctl.unitList[0].CODE" value="{{item.CODE}}">{{item.SECTION}}</option>
- </select>
- </div>
- </div>
- </div>
- <div class="row sp-pt-10">
- <div class="col-md-3 sp-text-right" ng-if="ctl.userTypeEng!='SYSADMIN'">
- <button ng-click="ctl.moveUp()" class="sp-btn-blue sp-btn-radius sp-mt-10">上移一位</button>
- <button ng-click="ctl.moveDown()" class="sp-btn-blue sp-btn-radius sp-mt-10">下移一位</button>
- </div>
- <div class="col-md-9">
- <ul class="role-list" id="js-role-list" style="overflow-y: auto; max-height: 500px;">
- <li id="js-role-list-tit">
- <i class="fa fa-minus-square sp-mr-5"></i>角色列表
- </li>
- <li ng-click="ctl.chooseRole($index,item)" ng-class="{roleActive:ctl.activeRole==$index}" ng-repeat="item in ctl.rows">
- {{item.ZUM}}
- <span>
- <!-- <i ng-click="ctl.addRole($index)" class="fa fa-plus"></i>
- <i ng-click="ctl.changeRole($index)" class="fa fa-edit"></i> -->
- <i ng-click="ctl.removeRole(item)" class="fa fa-close"></i>
- </span>
- </li>
- </ul>
- <form class="form-inline sp-mt-15">
- <div class="row">
- <div class="form-group col-lg-12">
- <div class="input-group col-lg-8">
- <input type="text" class="sp-input form-control" aria-label="Text input with multiple buttons" ng-model="ctl.edit.roleName" placeholder="修改角色">
- <span class="input-group-btn">
- <button ng-click="ctl.editRole()" class="btn btn-success" type="button">修改</button>
- </span>
- </div>
- </div>
- <!-- <button type="submit" class="btn btn-success"></button> -->
- </div>
- <div class="row">
- <div class="form-group col-lg-12">
- <div class="input-group col-lg-8">
- <input type="text" ng-model="ctl.addRoleName" class="sp-input form-control" placeholder="增加角色">
- <span class="input-group-btn">
- <button ng-click="ctl.addRole()" class="btn btn-success" type="button">增加</button>
- </span>
- </div>
- </div>
- <!-- <button type="submit" class="btn btn-success">增加</button> -->
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-7">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="row">
- <!--col-md-10 col-md-offset-1-->
- <div class="col-md-12">
- <div class="sp-page sp-text-right">
- <button type="button" ng-click="ctl.saveRole()" ng-if="ctl.userTypeEng!='SYSADMIN'" ng-disabled="ctl.rows.length==0 || ctl.activeRole ==-1" class="sp-btn-blue sp-btn-radius"><i class="fa fa-check sp-mr-5"></i>保 存</button>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="sp-lh-30 sp-text-center sp-bg-gray">
- 选择人员
- </div>
- </div>
- <div class="sp-line-gray"></div>
- <div class="col-md-12">
- <div class="sp-page">
- <div class="sp-page-col" style="width:80px;">
- <div class="sp-lh-22 sp-color-blue">已选(<span ng-bind="ctl.user_checked_num"></span>):</div>
- </div>
-
- <div class="sp-page-col" style="width:calc(100% - 80px); max-height:200px; overflow-y:auto;">
- <div class="sp-lh-22" ng-if="ctl.user_checked.length>0" ng-bind="ctl.user_checked"></div>
- <div class="sp-lh-22" ng-if="ctl.user_checked.length<1">您好,暂未选择人员!</div>
- </div>
- </div>
-
- <div class="sp-page">
- <hr />
- <div class="checkbox">
- <label>
- <input ng-change="ctl.selectAll()" ng-model="ctl.isSelectedAll" type="checkbox"> 全选(为方便查找,以下按第一个字拼音字母排列顺序)
- </label>
- </div>
- </div>
- <div class="sp-page" style="overflow-y: auto; max-height: 400px">
- <div class="checkbox checkbox-list" ng-repeat="item in ctl.getPerson">
- <div class="sp-lh-30 sp-color-black" ng-bind="item.section" style="font-weight: bold; cursor: pointer" ng-click="ctl.selectSec(item)"></div>
- <label class="checkbox-inline col-md-3" ng-repeat="item2 in item.users track by $index">
- <input type="checkbox" ng-change="ctl.isSelected(item.section,item2,item2.check)" ng-model="item2.check">{{item2.ushowname}}
- </label>
- </div>
- </div>
- </div>
- </div>
- </div>
- </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="../../AFrontEnd/js/angularjs/dirPagination.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/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
- <script src="../../AFrontEnd/js/special/spng.js"></script>
- </body>
- </html>
|