123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <!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 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/bootstrap.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
- <script>document.write("<link rel='stylesheet' href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "'>");</script>
- <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
- <link href="css/index.css?v=202006011551" rel="stylesheet" />
- </head>
- <body ng-controller="appCtrl 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="ibox float-e-margins">
- <div class="ibox-content">
- <div class="row">
- <div class="col-md-12">
- <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.getData()" 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 class="sp-page-col sp-ml-15" ng-if="ctl.userTypeEng!='SECADMIN'">
- <a class="sp-lh-26 sp-color-blue" ng-click="ctl.recordCtime()">机构设置</a>
- </div>
- <div class="sp-page-col sp-pull-right" ng-if="ctl.userTypeEng!='SECADMIN'">
- <button class="sp-btn-blue sp-btn-radius sp-btn-sm" ng-click="ctl.btnAddFirstDepartment(ctl.rows)">
- <i class="fa fa-plus sp-mr-5"></i>新建一级部门
- </button>
- </div>
- </div>
- <div class="sp-line-gray"></div>
- <div class="menu-list" tree-view tree-data="ctl.rows.C_H_I_L_D" text-field="SECTION" item-clicked="ctl.itemClicked($item)"
- item-edit="ctl.itemEdit($item,$event)" item-delete="ctl.itemDelete($item,$event)" item-sortup="ctl.itemSortup($item,$event)"
- item-sortdown="ctl.itemSortdown($item,$event)" user-type-eng="ctl.userTypeEng">
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 新建一级部门 -->
- <div class="sp-layer" id="layer_addFirstDepartment" 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.selectedItem.child_title" />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSetTitle()">
- <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>
- <div class="sp-layer" id="layer_box" 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-readonly="ctl.selectedItem.add" ng-model="ctl.selectedItem.title" />
- </td>
- </tr>
- <tr ng-show="ctl.selectedItem.add">
- <td style="width:80px;">子部门名称</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.selectedItem.child_title" />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSetTitle()">
- <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 type="text/ng-template" id="/treeView.html">
- <ul>
- <li ng-repeat="item in treeData" ng-include="'/treeItem.html'"></li>
- </ul>
- </script>
- <script type="text/ng-template" id="/treeItem.html">
- <p>
- <i ng-click="itemExpended(item, $event);" class="{{getItemIcon(item)}}"></i>
- <span ng-click="itemExpended(item, $event);" class='text-field'>{{item[textField]}}</span>
- <span class="edit-menu sp-color-gray">
- <i ng-click="warpCallback('itemClicked', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-plus sp-pl-10" title="增加"></i>
- <i ng-click="warpCallback('itemEdit', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-pencil sp-pl-5" title="编辑"></i>
- <i ng-click="warpCallback('itemDelete', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-trash sp-pl-5" title="删除"></i>
- <i ng-click="warpCallback('itemSortup', item, $event);" ng-if="userTypeEng!='SYSADMIN'" class="fa fa-arrow-up sp-pl-5" title="上移"></i>
- <i ng-click="warpCallback('itemSortdown', item, $event);" ng-if="userTypeEng!='SYSADMIN'" class="fa fa-arrow-down sp-pl-5" title="下移"></i>
- </span>
- </p>
- <!--<ul ng-if="!isEnd(item)" ng-show="item.$$isExpend">
- <li ng-repeat="item in item.C_H_I_L_D" ng-include="'/treeItem.html'"></li>
- </ul>-->
- <ul ng-if="!isEnd(item)" ng-show="item.show">
- <li ng-repeat="item in item.C_H_I_L_D" ng-include="'/treeItem.html'"></li>
- </ul>
- </script>
- </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>
- <script src="../../AFrontEnd/js/special/spngvld.js"></script>
- </body>
- </html>
|