123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <!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='css/index.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- </head>
- <body>
- <div ng-controller="indexCtrl as ctl" id="app" ng-cloak>
- <div class="sp-wrapper-left" style="width: 200px; top: 0; background: #F7F7F7; border-left: 1px #F7F7F7 solid; border-right: 1px #F7F7F7 solid; ">
- <div class="sp-menu" id="spWrapperLeftBar">
- <div class="sp-menu-row">
- <ul id="spWrapperLeftBarUl" class="sp-menu">
- <li class="sp-menu-first" ng-if="ctl.leftTree">
- <a>
- <span class="sp-menu-ltitle" ng-bind="ctl.leftTree[0].CNAME"></span>
- <span class="sp-menu-icon" ng-click="ctl.addNode()">
- <i class="fa fa-plus"></i>
- </span>
- </a>
- <ul>
- <li class="sp-menu-second" ng-class="{'active-second':ctl.active.CODE==item1.CODE}" ng-repeat="item1 in ctl.leftTree[0].C_H_I_L_D_DATA">
- <span class="sp-menu-ltitle" ng-bind="item1.CNAME" title="{{item1.CNAME}}" ng-click="ctl.checkNode(item1)"></span>
- <span class="sp-menu-icon" ng-if="item1.CODE!='P0101'&&item1.CODE!='P0102'&&item1.CODE!='P0103'&&item1.CODE!='P0104'&&item1.CODE==ctl.active.CODE" ng-click="ctl.editNode(item1)">
- <i class="fa fa-pencil"></i>
- </span>
- <span class="sp-menu-icon" ng-if="item1.CODE!='P0101'&&item1.CODE!='P0102'&&item1.CODE!='P0103'&&item1.CODE!='P0104'&&item1.CODE==ctl.active.CODE" ng-click="ctl.deleteNode(item1)">
- <i class="fa fa-trash"></i>
- </span>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="sp-wrapper-right print" style="left: 231px; top: 25px; right: 31px">
- <div class="sp-page">
- <div class="sp-span2 sp-pull-left" style="margin:1px">
- <select class="sp-select" ng-model="ctl.search.type" ng-change="ctl.getRightData(ctl.active)">
- <option value="">全部分类</option>
- <option value="text">文档</option>
- <option value="img">图片</option>
- <option value="audio">音频</option>
- <option value="video">视频</option>
- <option value="other">其他</option>
- </select>
- </div>
- <div class="sp-col-15" style="position:relative">
- <input type="text" class="sp-input" ng-model="ctl.search.name" ng-change="ctl.getRightData(ctl.active)" />
- <i class="fa fa-search" style="position:absolute;top:10px;right:20px;"></i>
- </div>
- <div class="sp-col-10">
- <span class="listType" ng-class="{'sp-bg-brown':ctl.listType==1}" ng-click="ctl.changeListType(1)">
- <img src="css/list.png" width="20" />
- </span>
- <span class="listType" ng-class="{'sp-bg-brown':ctl.listType==2}" ng-click="ctl.changeListType(2)">
- <img src="css/pic.png" width="20" />
- </span>
- </div>
- <div class="sp-span3 sp-pull-right" ng-if="ctl.active.CODE!='P0103'&&ctl.active.CODE!='P0104'">
- <!--<span class="sp-btn-gray sp-btn-radius sp-pull-right upload" ng-if="ctl.search.type=='text'||ctl.search.type==''" ng-click="ctl.openAddFile()"><i class="fa fa-plus"></i> 新 建</span>-->
- <span class="sp-btn-gray sp-radius sp-pull-right upload">
- <span class="upload-tip"></span>
- <input id="fileupload" class="upload-file-single" ng-click="ctl.upload()" type="file" name="files[]" multiple>
- <i class="fa fa-upload sp-mr-5"></i>上 传
- <span class="upload-loading" ng-if="ctl.uploading"><i class="fa fa-spinner fa-pulse sp-fs-20"></i></span>
- </span>
- </div>
- <div class="sp-line-gray"></div>
- </div>
- <div class="sp-page filelist" style="overflow:auto">
- <table class="sp-table" ng-if="ctl.listType==1">
- <thead>
- <tr>
- <th>名称</th>
- <th width="200">大小</th>
- <th width="200">文件日期</th>
- <th width="230">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="item in ctl.list">
- <td>
- <a ng-click="ctl.goUrl(item)" ng-bind="item.FILENAMES" class="sp-color-blue"></a>
- </td>
- <td ng-bind="item.FILESIZE"></td>
- <td ng-bind="item.FILEDATE1"></td>
- <td>
- <button class="sp-btn-green sp-btn-sm sp-radius" ng-disabled="item.FILEURL.length==0" ng-click="ctl.downloadFile(item)">下 载</button>
- <button class="sp-btn-blue sp-btn-sm sp-radius" ng-if="ctl.active.CODE!='P0104'&&item.USERID==ctl.userId" ng-click="ctl.fxFile(item)">分 享</button>
- <button class="sp-btn-red sp-btn-sm sp-radius" ng-if="ctl.active.CODE!='P0103'&&ctl.active.CODE!='P0104'&&item.USERID==ctl.userId" ng-click="ctl.deleteFile(item)">删 除</button>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page" ng-if="ctl.listType==2">
- <div class="list-item" ng-repeat="item in ctl.list" title="{{item.FILEOLDNAME}}">
- <i class="fa fa-download" ng-click="ctl.downloadFile(item)"></i>
- <img ng-src="{{item.img}}" />
- <div ng-bind="item.FILEOLDNAME"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="sp-layer" id="layer_box_add" style="width:500px;">
- <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">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:150px;">新增目录名称</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.add.cname" />
- </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.btnSaveNode(1)">
- <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 class="sp-layer" id="layer_box_edit" style="width:500px;">
- <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">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:150px;">当前节点名称</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.edit.cname" />
- </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.btnSaveNode(2)">
- <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 class="sp-layer" id="layer_fenxiang" style="width:500px;">
- <div class="sp-layer-head" style="background:#2176d6">
- <div class="sp-page sp-text-center sp-font16">
- <div class="sp-page" style="width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap">
- <span ng-bind="ctl.fxFileName" title="{{ctl.fxFileName}}"></span>
- </div>
- <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 width="80">人员选择</td>
- <td>
- <div class="sp-page sp-text-left sp-pl-5">
- <div class="checkbox" id="selectMember" style="height: 160px;overflow: auto;">
- <label>
- <input ng-click="ctl.selectAll()" ng-model="ctl.isSelectedAll" type="checkbox"> 全选
- </label>
- <div ng-repeat="item in ctl.personList">
- <div class="firstDepart" style="clear: both;">
- <label>
- <input type="checkbox" ng-model="item.isChecked" ng-click="ctl.firstDepartSelect($index)">
- <span ng-bind="item.SECTION" style="font-weight: bold"></span>
- </label>
- <ul class="userList" ng-repeat="item2 in item.C_H_I_L_D_DATA">
- <li style="float: left">
- <label style="margin-left: 15px; margin-right: 10px;">
- <input type="checkbox" ng-model="item2.isChecked" ng-click="ctl.firstUserSelect($parent.$index)">
- <span ng-bind="item2.ushowname"></span>
- </label>
- </li>
- </ul>
- <div class="secondDepart" style="clear: both;margin-left: 15px;" ng-repeat="item3 in item.C_H_I_L_D">
- <label>
- <input type="checkbox" ng-model="item3.isChecked" ng-click="ctl.secondDepartSelect($parent.$index,$index)">
- <span ng-bind="item3.SECTION" style="font-weight: bold"></span>
- </label>
- <ul class="userList" ng-repeat="item4 in item3.C_H_I_L_D_DATA">
- <li style="float: left">
- <label style="margin-left: 15px; margin-right: 10px;">
- <input type="checkbox" ng-model="item4.isChecked" ng-click="ctl.secondUserSelect($parent.$parent.$index,$parent.$index)">
- <span ng-bind="item4.ushowname"></span>
- </label>
- </li>
- </ul>
- <div class="thirdDepart" style="clear: both;margin-left: 15px;" ng-repeat="item5 in item3.C_H_I_L_D">
- <label>
- <input type="checkbox" ng-model="item5.isChecked" ng-click="ctl.thirdDepartSelect($parent.$parent.$index,$parent.$index,$index)">
- <span ng-bind="item5.SECTION" style="font-weight: bold"></span>
- </label>
- <ul class="userList" ng-repeat="item6 in item5.C_H_I_L_D_DATA">
- <li style="float: left">
- <label style="margin-left: 15px; margin-right: 10px;">
- <input type="checkbox" ng-model="item6.isChecked" ng-click="ctl.thirdUserSelect($parent.$parent.$parent.$index,$parent.$parent.$index,$parent.$index)">
- <span ng-bind="item6.ushowname"></span>
- </label>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </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.btnFX()">
- <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 class="sp-layer" id="layer_addwps" style="width: 400px;">
- <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">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td class="sp-text-center">
- 名称
- </td>
- <td>
- <input type="text" class="sp-input" placeholder="名称" ng-model="ctl.add.FILESNAME" />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-line-txt sp-text-center sp-pt-10">
- <a class="sp-btn-blue sp-radius" ng-click="ctl.btnAddWps()"><i class="fa fa-search sp-mr-5"></i>确 定</a>
- <a class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-close sp-mr-5"></i>取 消</a>
- </div>
- </div>
- </div>
- </div>
- <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
- <script src="../../AFrontEnd/plugins/hightcharts/highcharts.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/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
- <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
- <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
- </body>
- </html>
|