123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <!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" />
- <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" />
- <script>document.write("<link rel='stylesheet' href='css/index.css?time=" + new Date().getTime() + "'>");</script>
- <style>
- .inputDisabled {
- background-color: #ddd !important;
- }
- </style>
-
- </head>
- <body>
- <div class="wrapper wrapper-content" ng-controller="indexCtrl as ctl" ng-cloak>
- <div class="loading" ng-if="ctl.loading" style="z-index: 920;">
- <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-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="row">
- <div class="s-page">
- <div class="sp-page-col">
- <div class="sp-page-title">功能列表</div>
- </div>
- <div class="sp-page-col sp-mt-5 sp-ml-20">
- <span class="sp-btn-gray-outline sp-btn-md sp-btn-radius" ng-click="ctl.btnAddApply()">新增一级应用模块</span>
- </div>
- </div>
-
- <div class="sp-line-gray"></div>
- <div class="sp-page" style="overflow:auto;" id="div_functionsList">
- <div class="menu-list" tree-view tree-data="ctl.unit" text-field="CNAME"
- user-type-eng="ctl.userTypeEng" item-click="ctl.itemClick($item,$event)"
- item-add="ctl.itemAdd($item,$event)" item-edit="ctl.itemEdit($item,$event)"
- item-delete="ctl.itemDelete($item,$event)" item-role="ctl.itemRole($item,$event)"
- item-sortup="ctl.itemSortup($item,$event)" item-sortdown="ctl.itemSortdown($item,$event)">
- </div>
- </div>
- </div>
- </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);warpCallback('itemClick', item, $event);" class='text-field'>{{item[textField]}}</span>
- <span class="edit-menu sp-color-gray" ng-show="item.showFlag">
- <i ng-click="warpCallback('itemAdd', 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('itemRole', item, $event);" ng-if="userTypeEng!='SYSADMIN'" class="fa fa-cog 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>
- <i ng-click="warpCallback('itemDelete', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-trash sp-pl-10 sp-color-red" title="删除"></i>
- </span>
- </p>
- <!--<ul ng-if="!isEnd(item)">
- <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.$$isExpend">
- <li ng-repeat="item in item.C_H_I_L_D" ng-include="'/treeItem.html'"></li>
- </ul>
- </script>
- <!-- 新增修改功能信息 start -->
- <div class="sp-layer" id="layer_box" style="width:600px;">
- <div class="sp-layer-head" style="background:#2176d6">
- <div class="sp-page sp-text-center sp-font16">
- <span ng-bind="ctl.layerTitle"></span>
- <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
- ×
- </div>
- </div>
- </div>
- <div class="sp-layer-body">
- <div class="sp-page">
- <table class="sp-grid-job">
- <tbody>
- <tr ng-if="ctl.selectedItem.add">
- <td style="width: 120px;">父级功能</td>
- <td>
- <input type="text" class="sp-input" ng-readonly="true" ng-model="ctl.selectedItem.PARENT_CNAME" />
- </td>
- </tr>
- <tr>
- <td style="width: 120px;">功能名称</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.selectedItem.CNAME" />
- </td>
- </tr>
- <tr>
- <td>调用文件</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.selectedItem.FILEN" />
- </td>
- </tr>
- <tr>
- <td>小图标</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.selectedItem.SRCIMG" />
- </td>
- </tr>
- <tr>
- <td>大图标</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.selectedItem.SRCIMG32" />
- </td>
- </tr>
- <tr>
- <td>打开方式</td>
- <td>
- <select ng-model="ctl.selectedItem.OPENTYPE">
- <option ng-repeat="item in ctl.opentypeArray" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr>
- <td>模块类型</td>
- <td>
- <select ng-model="ctl.selectedItem.ISFLOW">
- <option ng-repeat="item in ctl.isflowArray" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="sp-text-left">
- <span class="sp-checkbox-tabs sp-ml-20" ng-class="{'sp-checkbox-tabs-active': ctl.selectedItem.ISFLOW=='0'}" ng-click="ctl.btnCheckboxClick()">设置流程ID</span>
- </td>
- <td>
- <input type="text" style="width:330px;" placeholder="请输入流程ID" ng-if="ctl.selectedItem.ISFLOW=='0'" class="sp-input" ng-model="ctl.selectedItem.FLOWIDS" />
- <span class="sp-btn-blue sp-btn-radius sp-btn-md" ng-if="ctl.selectedItem.ISFLOW=='0'" ng-click="ctl.btnCreateFuncList()">创建功能目录</span>
- </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-close sp-mr-5"></i>关 闭
- </button>
- </div>
- </div>
- </div>
- </div>
- <!-- 新增修改功能信息 end -->
- <!-- 设置角色 start -->
- <div class="sp-layer" id="layer_rolePart" style="width:700px;">
- <div class="sp-layer-head" style="background:#2176d6">
- <div class="sp-page sp-text-center sp-font16">
- 设置角色
- <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
- ×
- </div>
- </div>
- </div>
- <div class="sp-layer-body">
- <div class="sp-page">
- <div class="sp-page">
- <div class="checkbox">
- <label>
- <input ng-change="ctl.selectAll()" ng-model="ctl.isSelectedAll" type="checkbox"> 全选(为方便查找,以下按第一个字拼音字母排列顺序)
- </label>
- </div>
- </div>
- <div class="sp-page" style="max-height:500px;overflow:auto">
- <div class="checkbox checkbox-list" ng-repeat="item in ctl.roleList">
- <div class="sp-lh-30" ng-bind="item.section"></div>
- <label class="checkbox-inline col-md-3" ng-repeat="item2 in item.auths track by $index">
- <input type="checkbox" ng-change="ctl.isSelected()" ng-model="item2.check">{{item2.ZUM}}
- </label>
- </div>
- </div>
-
- <div class="sp-lh-22 sp-color-red sp-text-center sp-hide" id="noSelectRole_tip">请先选择角色!</div>
- <div class="sp-page sp-text-center sp-mt-10">
- <span ng-click="ctl.saveRole()" class="sp-btn-blue sp-btn-radius"><i class="fa fa-check sp-mr-5"></i>提 交</span>
- <span class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>关 闭</span>
- </div>
- </div>
- </div>
- </div>
- <!-- 设置角色 end -->
- <!--新增应用模块-->
- <div class="sp-layer" id="layer_addApply" style="width:500px;">
- <div class="sp-layer-head" style="background:#2176d6">
- <div class="sp-page sp-text-center sp-font16">
- <span>新增一级应用模块</span>
- <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
- ×
- </div>
- </div>
- </div>
- <div class="sp-layer-body">
- <div class="sp-page">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:150px;">模块名称</td>
- <td><input type="text" class="sp-input" ng-model="ctl.addApply.CNAME" /></td>
- </tr>
- <tr>
- <td>调用文件</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.addApply.FILEN" />
- </td>
- </tr>
- <tr>
- <td>小图标</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.addApply.SRCIMG" />
- </td>
- </tr>
- <tr>
- <td>大图标</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.addApply.SRCIMG32" />
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="sp-page">
- <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnAddApply_submit()">
- <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-close sp-mr-5"></i>关 闭
- </button>
- </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>
- <script src="../../AFrontEnd/js/special/spngvld.js"></script>
- </body>
- </html>
|