list.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>从严治党各党支部</title>
  7. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  8. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  9. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  11. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  12. <script>document.write("<link href='css/list.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. </head>
  14. <body>
  15. <div ng-controller="listCtrl as ctl" ng-cloak>
  16. <div class="sp-wrapper-left" style="width: 20%; top: 0; background: #F7F7F7; border-left: 1px #F7F7F7 solid; border-right: 1px #F7F7F7 solid; overflow:auto">
  17. <div class="sp-menu" id="spWrapperLeftBar">
  18. <div class="sp-menu-row">
  19. <ul id="spWrapperLeftBarUl" class="sp-menu">
  20. <li class="sp-menu-first" ng-repeat="item in ctl.leftTree">
  21. <span class="sp-menu-ltitle" title="{{item.CNAME}}" ng-bind="item.CNAME" ng-click="ctl.checkNode(item)"></span>
  22. <ul>
  23. <li class="sp-menu-second" ng-show="item.show" ng-repeat="item1 in item.CHILDREN">
  24. <span class="sp-menu-ltitle" title="{{item1.CNAME}}" ng-bind="item1.CNAME" ng-click="ctl.checkNode(item1)"></span>
  25. <ul>
  26. <li class="sp-menu-third" ng-show="item1.show" ng-repeat="item2 in item1.CHILDREN">
  27. <span class="sp-menu-ltitle" ng-bind="item2.CNAME" title="{{item2.CNAME}}" ng-click="ctl.getFiles(item2,item.CNAME)"></span>
  28. </li>
  29. </ul>
  30. </li>
  31. </ul>
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="sp-wrapper-right" style="left: 21%; top: 0; right: 1%; overflow: auto">
  38. <div class="sp-page" ng-if="ctl.activeNode.TYPE!=0">
  39. <div class="sp-box">
  40. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.printOut1()">
  41. <i class="fa fa-sign-out sp-mr-5"></i>导 出
  42. </a>
  43. <span class="sp-pull-right sp-btn-blue sp-btn-sm sp-radius upload" style="top:0" ng-click="ctl.upload1()">
  44. <input type="button" class="upload-btn-single" value="上传">
  45. <input id="fileupload_1" class="upload-file-single" type="file" name="files[]" multiple>
  46. <i class="fa fa-plus"></i>
  47. </span>
  48. </div>
  49. <table class="sp-table sp-mt-10">
  50. <thead>
  51. <tr>
  52. <th>标题</th>
  53. <th width="200">操作</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <tr ng-repeat="item in ctl.filesList">
  58. <td ng-bind="item.FILENAMES"></td>
  59. <td>
  60. <button class="sp-btn-blue sp-radius" ng-click="ctl.download(item)">下载</button>
  61. <button class="sp-btn-red sp-radius" ng-click="ctl.deleteFile1(item)">删除</button>
  62. </td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. <table class="sp-table hide" id="printOut1">
  67. <thead>
  68. <tr>
  69. <th>标题</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <tr ng-repeat="item in ctl.filesList">
  74. <td ng-bind="item.FILENAMES"></td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. <div class="sp-table-tip ng-hide" ng-show="ctl.filesList.length == 0">
  79. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  80. </div>
  81. </div>
  82. <div class="sp-page" ng-if="ctl.activeNode.TYPE==0">
  83. <div class="sp-box">
  84. <a class="sp-pull-right sp-btn-gray sp-radius sp-btn-sm" ng-click="ctl.openLayer()">
  85. <i class="fa fa-search sp-mr-5"></i>查 询
  86. </a>
  87. <a class="sp-pull-right sp-btn-gray sp-btn-radius sp-btn-sm" ng-click="ctl.printOut()">
  88. <i class="fa fa-sign-out sp-mr-5"></i>导 出
  89. </a>
  90. </div>
  91. <center class="sp-box">
  92. {{ctl.type==1?"委机关各党支部":"直属单位"}}落实全面从严治党主体责任情况
  93. </center>
  94. <div class="sp-page-col">
  95. {{ctl.type==1?"机关党支部名称":"单位名称"}}:{{ctl.userDpName}}
  96. </div>
  97. <table class="sp-table sp-mt-10" id="printOut">
  98. <thead>
  99. <tr>
  100. <th width="500">项目名称</th>
  101. <th>完成情况</th>
  102. <th width="200">完成时限</th>
  103. </tr>
  104. </thead>
  105. <tbody>
  106. <tr ng-repeat="item in ctl.list">
  107. <td><span style="cursor:pointer" ng-click="ctl.Detail(item,0)" ng-bind="item.XMMC"></span></td>
  108. <td>
  109. <div class="sp-page" ng-repeat="item1 in item.data[0].CHILD">
  110. <div class="sp-line-gray" ng-if="$index!=0"></div>
  111. <div class="sp-col-33 sp-text-left">{{$index+1}}{{item1.WCQK}}</div>
  112. <div class="sp-col-33">{{item1.SJWCSJ.slice(0,10)}}</div>
  113. <div class="sp-col-33">
  114. <div class="sp-col-50" ng-repeat="item2 in item1.ATTACHLIST" title="{{item2.FILENAMES}}" style="color:blue;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" ng-click="ctl.download(item2)">
  115. <i class="fa fa-download sp-ml-10"></i>{{item2.FILENAMES}}
  116. </div>
  117. </div>
  118. </div>
  119. </td>
  120. <td ng-bind="item.WCSX"></td>
  121. </tr>
  122. </tbody>
  123. </table>
  124. <div class="sp-table-tip ng-hide" ng-show="ctl.list.length == 0">
  125. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  126. </div>
  127. </div>
  128. </div>
  129. <div class="sp-layer" id="Search" style="width: 550px;">
  130. <div class="sp-layer-head" style="background:#2176d6">
  131. <div class="sp-page sp-text-center sp-font16">
  132. 筛选
  133. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  134. ×
  135. </div>
  136. </div>
  137. </div>
  138. <div class="sp-layer-body">
  139. <table class="sp-grid-job">
  140. <tbody>
  141. <tr>
  142. <td style="width:120px;">年份</td>
  143. <td>
  144. <select class="sp-select" style="width:calc(100% - 20px)" ng-model="ctl.searchYear">
  145. <option ng-repeat="item in ctl.years" value="{{item}}" ng-selected="item==ctl.searchYear">{{item}}</option>
  146. </select>
  147. <span style="line-height:30px">年</span>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td style="width:120px;">机关党支部或直属单位名称</td>
  152. <td>
  153. <input type="text" class="sp-input" placeholder="请输入机关党支部或直属单位名称" ng-model="ctl.searchDWMC" />
  154. </td>
  155. </tr>
  156. </tbody>
  157. </table>
  158. <div class="sp-page sp-text-center sp-mt-20">
  159. <a class="sp-btn-blue sp-radius" ng-click="ctl.doSearch()"><i class="fa fa-check sp-mr-5"></i>确 定</a>
  160. <a class="sp-btn-blue sp-radius" ng-click="ctl.initSearch()"><i class="fa fa-refresh sp-mr-5"></i>重 置</a>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="sp-layer" id="Detail" style="width:1000px">
  165. <div class="sp-layer-head" style="background:#2176d6">
  166. <div class="sp-page sp-text-center sp-font16">
  167. 新增/编辑任务
  168. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  169. ×
  170. </div>
  171. </div>
  172. </div>
  173. <div class="sp-layer-body" ng-class="{'sp-height-400': '{{ctl.deviceType}}' =='pad'}">
  174. <div class="sp-box">项目名称:{{ctl.detail.XMMC}}</div>
  175. <div class="sp-page" style="max-height:500px;overflow:auto">
  176. <table class="sp-table">
  177. <thead>
  178. <tr>
  179. <th width="50">序号</th>
  180. <th>完成情况</th>
  181. <th width="180">实际工作完成时间</th>
  182. <th>附件</th>
  183. <th width="180">操作<span class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.addItem()"><i class="fa fa-plus"></i></span></th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr ng-repeat="item in ctl.rwList">
  188. <td ng-bind="item.BH"></td>
  189. <td>
  190. <span ng-bind="item.WCQK" ng-if="item.editFlag==false"></span>
  191. <input type="text" class="sp-input" ng-model="ctl.edit.WCQK" ng-if="item.editFlag==true" />
  192. </td>
  193. <td>
  194. <span ng-bind="item.SJWCSJ" ng-if="item.editFlag==false"></span>
  195. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.edit.SJWCSJ" ng-if="item.editFlag==true" />
  196. </td>
  197. <td>
  198. <div class="sp-page" ng-repeat="item1 in item.ATTACHLIST">
  199. <div class="sp-page-col" style="width:calc(100% - 150px)" ng-bind="item1.FILENAMES"></div>
  200. <div class="sp-page-col" style="width:150px">
  201. <span class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.download(item1)" ng-if="item.editFlag==false">下载</span>
  202. <span class="sp-btn-red sp-btn-sm sp-radius" ng-click="ctl.deleteFile(item1)" ng-if="item.editFlag==false">删除</span>
  203. </div>
  204. </div>
  205. <center class="sp-page">
  206. <span style="display: inline-block; top: 0; background: #1c84c6; color: #fff; padding: 2px 5px; border-radius: 5px;float:none" class="upload">
  207. <span class="upload-tip"></span>
  208. <input id="fileupload{{$index}}" class="upload-file-single" ng-click="ctl.upload(item,$index);$event.stopPropagation();" type="file" name="files[]" multiple>
  209. 上传附件
  210. <span class="upload-loading" ng-if="ctl.uploading"><i class="fa fa-spinner fa-pulse sp-fs-20"></i></span>
  211. </span>
  212. </center>
  213. </td>
  214. <td>
  215. <button class="sp-btn-blue sp-btn-radius sp-btn-sm" ng-disabled="ctl.editFlag==true" ng-if="item.editFlag==false" ng-click="ctl.editItem(item)">编 辑</button>
  216. <button class="sp-btn-red sp-btn-radius sp-btn-sm" ng-disabled="ctl.editFlag==true" ng-if="item.editFlag==false" ng-click="ctl.deleteItem(item)">删 除</button>
  217. <button class="sp-btn-green sp-btn-radius sp-btn-sm" ng-if="item.editFlag==true" ng-click="ctl.saveItem(ctl.edit)">保 存</button>
  218. <button class="sp-btn-red sp-btn-radius sp-btn-sm" ng-if="item.editFlag==true" ng-click="item.editFlag=false;ctl.editFlag=false">取 消</button>
  219. </td>
  220. </tr>
  221. <tr ng-if="ctl.addFlag==true">
  222. <td ng-bind="item.BH"></td>
  223. <td>
  224. <input type="text" class="sp-input" ng-model="ctl.add.WCQK" />
  225. </td>
  226. <td>
  227. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.add.SJWCSJ" />
  228. </td>
  229. <td></td>
  230. <td>
  231. <button class="sp-btn-green sp-btn-radius sp-btn-sm" ng-click="ctl.saveItem(ctl.add)">保 存</button>
  232. <button class="sp-btn-red sp-btn-radius sp-btn-sm" ng-click="ctl.addFlag=false">取 消</button>
  233. </td>
  234. </tr>
  235. </tbody>
  236. </table>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  242. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  243. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  244. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  245. <script src="../../apiurljs.js"></script>
  246. <script src="../../js/sm4.js"></script>
  247. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  248. <script>document.write('<scri' + 'pt src="js/list.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  249. <script src="../../AFrontEnd/js/special/spng.js"></script>
  250. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  251. <!--附件-->
  252. <script src="../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
  253. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
  254. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
  255. <!-- 导出excel -->
  256. <script src="../gongzi/js/vendor/jquery.jqprint-0.3.js"></script>
  257. <script src="../gongzi/js/vendor/shim.min.js"></script>
  258. <script src="../gongzi/js/vendor/jszip.js"></script>
  259. <script src="../gongzi/js/vendor/xlsx.full.js"></script>
  260. <script src="../gongzi/js/vendor/Blob.js"></script>
  261. <script src="../gongzi/js/vendor/FileSaver.js"></script>
  262. </body>
  263. </html>