w-project-section-files-recover.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>纵横计量支付系统</title>
  6. <meta name=description content=计量支付>
  7. <meta name=copyright content=smartcost.com.cn>
  8. <link rel=stylesheet href={{rootUrl}}global/css/fixedheadertable.css>
  9. <script src={{rootUrl}}global/js/jquery.fixedheadertable.js></script>
  10. <link rel=stylesheet href="{{rootUrl}}global/css/bootstrap.css">
  11. <link rel=stylesheet href="{{rootUrl}}global/css/style.css">
  12. <script src="{{rootUrl}}global/js/jquery-1.9.1.min.js"></script>
  13. <script src="{{rootUrl}}global/js/bootstrap.js"></script>
  14. <script src="{{rootUrl}}global/js/jl.js"></script>
  15. </head>
  16. <body>
  17. <div class="wrapHeader"><h1 title="纵横计量支付" class="mainLogo"></h1>
  18. <div class="userInfo"><img src="images/avtra.png" class="fR">
  19. <div class="btn-group">
  20. <button data-toggle="dropdown" class="btn btn-inverse dropdown-toggle">张三&nbsp;<span class="caret"></span>
  21. </button>
  22. <ul class="dropdown-menu">
  23. <li><a href="#">个人信息</a></li>
  24. <li><a href="#"><span data-icon="r" aria-hidden="true"></span>&nbsp;工作组</a></li>
  25. <li><a href="#"><span data-icon="B" aria-hidden="true"></span>&nbsp;我的任务</a></li>
  26. <li class="divider"></li>
  27. <li><a href="#">帮助中心</a></li>
  28. <li><a href="#">退出</a></li>
  29. </ul>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="wrapContent">
  34. <div class="mainSidebar">
  35. <div class="mainNav">
  36. <ul>
  37. <li><a href="w-project.html" title="项目管理" class="focus">
  38. <div data-icon="A" aria-hidden="true" class="navIcon"></div>
  39. 项目管理</a></li>
  40. <li><a href="r-project.html" title="需审批项目">
  41. <div data-icon="C" aria-hidden="true" class="navIcon"></div>
  42. 审批项目</a><span class="badge badge-warning">4</span></li>
  43. <li><a href="s-project.html" title="我编制的项目">
  44. <div data-icon="B" aria-hidden="true" class="navIcon"></div>
  45. 编制项目</a></li>
  46. <li><a href="" title="生成报表">
  47. <div data-icon="D" aria-hidden="true" class="navIcon"></div>
  48. 报表</a></li>
  49. <li><a href="" title="数据汇总">
  50. <div data-icon="E" aria-hidden="true" class="navIcon"></div>
  51. 汇总</a></li>
  52. </ul>
  53. </div>
  54. </div>
  55. <div class="mainContainer">
  56. <!--内容-->
  57. <div class="mainContent">
  58. <div class="title clearfix">
  59. <ul class="nav nav-pills">
  60. <li class="dropdown"><a title="返回" href="{{rootUrl}}project/{{currproArray.pid}}/section"><span
  61. class="closePanel" aria-hidden="true" data-icon="Z"></span></a></li>
  62. <li class="dropdown">
  63. </li>
  64. <li class="dropdown">
  65. <a href="{{rootUrl}}project/{{currproArray.pid}}/section" data-toggle="dropdown"
  66. class="dropdown-toggle">
  67. {{currconArray.stname}}<b class="caret"></b>
  68. </a>
  69. <ul class="dropdown-menu">
  70. <!-- loop allconArray -->
  71. <li><a href="{{rootUrl}}project/{{currproArray.pid}}/section">{{allconArray'
  72. value.stname}}</a></li>
  73. <!-- endloop -->
  74. </ul>
  75. </li>
  76. <li class="dropdown">
  77. <a href="{{rootUrl}}project/{{currproArray.pid}}/section" data-toggle="dropdown"
  78. class="dropdown-toggle">
  79. {{curractmeasureArray.pmname}}<b class="caret"></b>
  80. </a>
  81. <ul class="dropdown-menu">
  82. <!-- loop allactmeasureArray -->
  83. <li>
  84. <a href="{{rootUrl}}project/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray'
  85. value.pmname}}</a></li>
  86. <!-- endloop -->
  87. <!-- <li class="divider"></li>
  88. <li><a href="#">共18标段,查看更多</a></li>-->
  89. </ul>
  90. </li>
  91. </ul>
  92. </div>
  93. <!--导航-->
  94. <ul class="nav nav-tabs">
  95. <li>
  96. <a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/detail">标段概况</a>
  97. </li>
  98. <li class="active"><a href="{{rootUrl}}project/{{pid}}/section/{{pmid}}/files">附件</a></li>
  99. <!--<li><a href="w-project-section-measure.html">计量台帐</a></li>-->
  100. </ul>
  101. <!--导航-->
  102. <div class="title">
  103. <h1>附件回收站</h1>
  104. </div>
  105. <!--文件管理-->
  106. <div class="filesWrap">
  107. <div class="filesList">
  108. <table class="table table-striped table-hover">
  109. <thead>
  110. <tr>
  111. <th width="">文件名</th>
  112. <th width="">期</th>
  113. <th width="">节点</th>
  114. <th width="">上传者</th>
  115. <th width="">上传时间</th>
  116. <th width="">删除</th>
  117. <th width="">删除时间</th>
  118. <th width="40">操作</th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. <tr>
  123. <!-- loop itemMeasureArray -->
  124. <td width=""><span class="fileico ico-jpg"></span><a
  125. fileext="{{itemMeasureArray' value.fileext}}"
  126. imnid="{{itematta' value.imnid}}"
  127. iaid="{{itematta' value.iaid}}"
  128. filename="{{itemMeasureArray' value.filename}}"
  129. realname="{{itemMeasureArray' value.realname}}"
  130. intime="{{formatDate(itemMeasureArray' value.intime,'Y-m-d')}}"
  131. tips="{{itemMeasureArray' value.tips}}"
  132. href="#"
  133. numpname="第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期"
  134. id="fname_{{itemMeasureArray' value.imnid}}"
  135. href="#">{{itemMeasureArray' value.filename}}</a></td>
  136. <td>第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期</td>
  137. <td>{{itemMeasureArray' value.pmname}}</td>
  138. <td width="">{{itemMeasureArray' value.realname}}</td>
  139. <td width="">{{formatDate(itemMeasureArray' value.intime,'Y-m-d')}}</td>
  140. <td class="text-error">{{itemMeasureArray' value.delname}}</td>
  141. <td class="text-error">{{formatDate(itemMeasureArray' value.deltime,'Y-m-d')}}</td>
  142. <td>
  143. <div class="btn-group">
  144. <a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
  145. <span class="caret"></span>
  146. </a>
  147. <ul class="dropdown-menu">
  148. <li><a><i class="icon-eye-open"></i>&nbsp;预览</a></li>
  149. <li><a href="{{rootUrl}}{{itemMeasureArray' value.filepath}}"><i
  150. class="icon-download-alt"></i>&nbsp;下载</a></li>
  151. <li><a id="recovery_{{itemMeasureArray' value.imnid}}"
  152. imnid="{{itemMeasureArray' value.imnid}}" href="#"
  153. data-toggle="modal"><i class="icon-repeat"></i>&nbsp;恢复</a>
  154. </li>
  155. </ul>
  156. </div>
  157. </td>
  158. </tr>
  159. <!-- endloop -->
  160. </tbody>
  161. </table>
  162. <div class="pagination">
  163. <ul>
  164. {{pager}}
  165. <!--<li class="disabled"><a href="#">&laquo;</a></li>-->
  166. <!--<li class="active"><a href="#">1</a></li>-->
  167. <!--<li><a href="#">2</a></li>-->
  168. <!--<li><a href="#">3</a></li>-->
  169. <!--<li><a href="#">4</a></li>-->
  170. <!--<li><a href="#">5</a></li>-->
  171. </ul>
  172. </div>
  173. </div>
  174. <div class="filesDetail hide">
  175. <input type="hidden" id="imnid" value="0"/>
  176. <table class="table table-striped">
  177. <thead>
  178. <tr>
  179. <th colspan="4">文件详情</th>
  180. </tr>
  181. </thead>
  182. <tr>
  183. <th width="60">文件名</th>
  184. <td colspan="3" id="fn"> K0+800-K1+000图纸</td>
  185. </tr>
  186. <tr>
  187. <th width="60">格式</th>
  188. <td id="fileico"><span class="fileico ico-jpg"></span>.jpg</td>
  189. <th width="60">所在期</th>
  190. <td id="numpname">第二期</td>
  191. </tr>
  192. <tr>
  193. <th width="60">上传者</th>
  194. <td id="realname">陈工</td>
  195. <th width="60">上传时间</th>
  196. <td id="intime">2014-11-20 14:20</td>
  197. </tr>
  198. <tr>
  199. <th width="60">备注/描述</th>
  200. <td colspan="3" id="tips">内容内容内容内容</td>
  201. </tr>
  202. <tr>
  203. <th width="60">更多操作</th>
  204. <td colspan="3">
  205. <button class="btn btn-mini btn-danger" type="button" href="#file-del"
  206. data-toggle="modal"><i class="icon-remove icon-white"></i>彻底删除
  207. </button>
  208. </td>
  209. </tr>
  210. </table>
  211. </div>
  212. </div>
  213. <!--文件管理-->
  214. </div>
  215. <!--内容-->
  216. </div>
  217. </div>
  218. <!-- 替换弹出 -->
  219. <div id="file-replace" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  220. aria-hidden="true">
  221. <div class="modal-header">
  222. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  223. <h3 id="myModalLabel">文件恢复</h3>
  224. </div>
  225. <div class="modal-body">
  226. <h5 class="text-success">恢复成功。</h5>
  227. </div>
  228. <div class="modal-footer">
  229. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  230. </div>
  231. </div>
  232. <!-- 替换弹出 -->
  233. <!-- 删除弹出 -->
  234. <div id="file-del" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  235. aria-hidden="true">
  236. <div class="modal-header">
  237. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  238. <h3 id="myModalLabel">文件删除</h3>
  239. </div>
  240. <div class="modal-body">
  241. <h5 class="text-error">彻底删除无法还原,所有清单下挂的该文件都将移除。</h5>
  242. </div>
  243. <div class="modal-footer">
  244. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  245. <button id="del" class="btn btn-danger">确定删除</button>
  246. </div>
  247. </div>
  248. </div>
  249. <!-- 删除弹出 -->
  250. <!-- 删除弹出 -->
  251. <div id="file-del2" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  252. aria-hidden="true">
  253. <div class="modal-header">
  254. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  255. <h3 id="myModalLabel">文件删除</h3>
  256. </div>
  257. <div class="modal-body">
  258. <h5 class="text-warning">文件上传者才有彻底删除权限。</h5>
  259. </div>
  260. <div class="modal-footer">
  261. <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  262. </div>
  263. </div>
  264. </div>
  265. <!-- 删除弹出 -->
  266. <script type="text/javascript">autoFlashHeight();</script>
  267. <script type="text/javascript">
  268. $(document).ready(function () {
  269. $("a[id^='fname_']").click(function () {
  270. var fileext = $(this).attr('fileext');
  271. var filename = $(this).attr('filename');
  272. var realname = $(this).attr('realname');
  273. var intime = $(this).attr('intime');
  274. var tips = $(this).attr('tips');
  275. var numpname = $(this).attr('numpname');
  276. var imnid = $(this).attr('imnid');
  277. var iaid = $(this).attr('iaid');
  278. $("#fn").html(filename);
  279. $("#fileico").html(fileext);
  280. $("#realname").html(realname);
  281. $("#intime").html(intime);
  282. $("#tips").html(tips);
  283. $("#numpname").html(numpname);
  284. $("#imnid").val(imnid);
  285. $(".filesDetail").show();
  286. });
  287. $("#filedown").click(function () {
  288. var file_data = $('#file').prop('files')[0];
  289. var form_data = new FormData();
  290. form_data.append('file', file_data);
  291. form_data.append('optype', 'replace');
  292. var imnid = $("#fid").val();
  293. form_data.append('imnid', imnid);
  294. $.ajax({
  295. type: "POST",
  296. dataType: "text",
  297. cache: false,
  298. contentType: false,
  299. data: form_data,
  300. url: "/project/{{pid}}/section/{{pmid}}/files",
  301. processData: false,
  302. success: function (data) {
  303. if (data['status'] == 1) {
  304. window.location.href = "{{rootUrl}}project/{{pid}}/section/{{pmid}}/files";
  305. }
  306. }
  307. });
  308. });
  309. $("a[id^='recovery_']").click(function () {
  310. var imnid = $(this).attr('imnid');
  311. $.ajax({
  312. type: "POST",
  313. dataType: "json",
  314. cache: false,
  315. data: {"imnid": imnid, "optype": 'reconvery'},
  316. url: "/project/{{pid}}/section/{{pmid}}/files/recover",
  317. success: function (data) {
  318. if (data['status'] == 1) {
  319. $("#file-replace").show();
  320. window.location.href = "{{rootUrl}}project/{{pid}}/section/{{pmid}}/files/recover";
  321. }
  322. }
  323. });
  324. });
  325. $("#del").click(function () {
  326. var imnid = $("#imnid").val();
  327. $.ajax({
  328. type: "POST",
  329. dataType: "json",
  330. cache: false,
  331. data: {"imnid": imnid, "optype": 'del'},
  332. url: "/project/{{pid}}/section/{{pmid}}/files/recover",
  333. success: function (data) {
  334. if (data['status'] == 1) {
  335. $("#file-del").hide();
  336. window.location.href = "{{rootUrl}}project/{{pid}}/section/{{pmid}}/files/recover";
  337. }
  338. if (data['status'] == 2) {
  339. $("#file-del2").show();
  340. $("#file-del").hide();
  341. }
  342. }
  343. });
  344. });
  345. });
  346. </script>
  347. </body>