changePaper.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
  4. layout:decorator="base" xmlns:overflow="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <link rel="stylesheet" href="/static/css/applications.css" type="text/css"/>
  7. <!-- dataTables -->
  8. <link rel="stylesheet" type="text/css"
  9. href="/static/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css"/>
  10. <!-- Font Awesome -->
  11. <link rel="stylesheet" href="/static/AdminLTE/bower_components/font-awesome/css/font-awesome.min.css"/>
  12. <!-- Ionicons -->
  13. <link rel="stylesheet" href="/static/AdminLTE/bower_components/Ionicons/css/ionicons.min.css"/>
  14. <!-- daterange picker -->
  15. <link rel="stylesheet" href="/static/AdminLTE/bower_components/bootstrap-daterangepicker/daterangepicker.css"/>
  16. <!-- bootstrap datepicker -->
  17. <link rel="stylesheet" href="/static/AdminLTE/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css"/>
  18. <!-- iCheck for checkboxes and radio inputs -->
  19. <link rel="stylesheet" href="/static/AdminLTE/plugins/iCheck/all.css"/>
  20. <!-- Bootstrap time Picker -->
  21. <link rel="stylesheet" href="/static/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.css"/>
  22. <!-- Select2 -->
  23. <link rel="stylesheet" type="text/css" href="/static/AdminLTE/bower_components/select2/dist/css/select2.min.css"/>
  24. <!-- Theme style -->
  25. <link rel="stylesheet" href="/static/AdminLTE/dist/css/AdminLTE.min.css"/>
  26. <!-- AdminLTE Skins. Choose a skin from the css/skins
  27. folder instead of downloading all of them to reduce the load. -->
  28. <link rel="stylesheet" href="/static/AdminLTE/dist/css/skins/_all-skins.min.css"/>
  29. <style>
  30. body {
  31. padding-right: 0px !important;
  32. }
  33. *.modal-open {
  34. overflow-y: scroll;
  35. padding-right: 0 !important;
  36. }
  37. .content {
  38. padding-left: 45px;
  39. padding-right: 45px;
  40. }
  41. .box {
  42. margin-bottom: 50px;
  43. }
  44. .box-header button{
  45. margin-right: 5px;
  46. }
  47. .table tr td {
  48. padding-right: 10px;
  49. padding-left: 10px;
  50. border-top: 1px solid #f4f4f4;
  51. border-right: 1px solid #f4f4f4;
  52. }
  53. td .form-group {
  54. margin-bottom: 0px;
  55. }
  56. .callout-my {
  57. background: #a7eeff9c;
  58. border-left: 5px solid #0097bc;
  59. }
  60. .callout-my p{
  61. word-break: break-all;
  62. }
  63. .show-report-left{
  64. color: #2875b7;
  65. }
  66. </style>
  67. </head>
  68. <body>
  69. <div layout:fragment="mainbody">
  70. <aside class="main-sidebar">
  71. <section class="sidebar">
  72. <div class="user-panel">
  73. <div class="pull-left image">
  74. <img src="/static/images/avatar/avatar-admin.jpg" class="img-circle" alt="User Image" />
  75. </div>
  76. <div class="pull-left info">
  77. <p>Admin</p>
  78. <a href="#">
  79. <i class="fa fa-circle text-success"></i>
  80. Online
  81. </a>
  82. </div>
  83. </div>
  84. <!-- Search form -->
  85. <form action="#" method="get" class="sidebar-form">
  86. <div class="input-group">
  87. <input type="text" name="q" class="form-control" placeholder="Search..." />
  88. <span class="input-group-btn">
  89. <button type="submit" name="search" id="search-btn" class="btn btn-flat">
  90. <i class="fa fa-search"></i>
  91. </button>
  92. </span>
  93. </div>
  94. </form>
  95. <!-- Sidebar Menu -->
  96. <ul class="sidebar-menu tree" data-widget="tree" th:insert="/jobList::auditSidebar">
  97. </ul>
  98. </section>
  99. </aside>
  100. <div class="content-wrapper">
  101. <!-- Content Header (Page header) -->
  102. <section class="content-header">
  103. <h1>
  104. 编辑表单
  105. <small>众包审核</small>
  106. </h1>
  107. <ol class="breadcrumb">
  108. <li><a href="/home"><i class="fa fa-dashboard"></i> 主页</a></li>
  109. <li><a href="/changeAuditTask">编辑众审任务</a></li>
  110. </ol>
  111. </section>
  112. <!-- Main content -->
  113. <section class="content" id="maincontent">
  114. <div class="box box-primary" >
  115. <div class="box-header with-border">
  116. <h3 class="box-title">基本信息</h3>
  117. <button onclick="savePaper()" class="btn btn-success pull-right" >
  118. 保存
  119. </button>
  120. <button class="btn btn-success pull-right" id="copyButton" onclick="copy2board()">
  121. 复制到剪切板
  122. </button>
  123. <button onclick="showyu()" class="btn btn-default pull-right" >
  124. 预览
  125. </button>
  126. <button class="btn btn-default pull-right" onclick="addNewOption()">
  127. 新建审查项
  128. </button>
  129. </div>
  130. <!-- /.box-header -->
  131. <div class="box-body">
  132. <form class="form-horizontal">
  133. <!-- text input -->
  134. <div class="form-group">
  135. <label class="col-sm-2 control-label">名称</label>
  136. <div class="col-sm-10">
  137. <input onchange="checkNull(event)" th:value="${data.get('name')}" class="form-control" id="name" placeholder="请输入任务名称"/>
  138. </div>
  139. </div>
  140. <!-- textarea -->
  141. <div class="form-group">
  142. <label class="col-sm-2 control-label">描述</label>
  143. <div class="col-sm-10">
  144. <textarea onchange="checkNull(event)" th:text="${data.get('description')}" id="description" class="form-control" rows="3" placeholder="请输入描述信息"></textarea>
  145. </div>
  146. </div>
  147. <!-- Date and time range -->
  148. <div class="form-group">
  149. <label class="col-sm-2 control-label" >创建时间</label>
  150. <div class=" col-sm-10">
  151. <!-- <div class="input-group-addon">-->
  152. <!-- <i class="fa fa-clock-o"></i>-->
  153. <!-- </div>-->
  154. <input disabled="disabled" id="createTime" type="text" th:value="${data.get('create_time')}" class="form-control pull-right" />
  155. </div>
  156. <!-- /.input group -->
  157. </div>
  158. <!-- select -->
  159. <div class="form-group">
  160. <label class="col-sm-2 control-label" >测试类型</label>
  161. <div class=" col-sm-10">
  162. <select class="form-control" id="testType" th:value="${data.get('type')}" >
  163. <option>漏洞扫描分析</option>
  164. <option>App自动扫描</option>
  165. <option>Java自动化扫描</option>
  166. <option>Web自动化扫描</option>
  167. <option>众包测试</option>
  168. <option>客观题</option>
  169. <option>漏洞扫描Java</option>
  170. <option>漏洞扫描C++</option>
  171. <option>App功能</option>
  172. <option>Web功能</option>
  173. </select>
  174. </div>
  175. </div>
  176. <div class="form-group">
  177. <label for="testApplication" class="col-sm-2 control-label">附件(可选)</label>
  178. <div class="col-sm-10">
  179. <a th:href="@{${data.get('application_url')}}" class="col-sm-2 " >原始附件</a>
  180. <input th:attr="value=${data.get('application_url')}" onchange="uploadFile('testApplication')" type="file" id="testApplication"/>
  181. <!-- <p class="help-block">Example block-level help text here.</p>-->
  182. </div>
  183. </div>
  184. <div class="form-group">
  185. <label for="testRequirement" class="col-sm-2 control-label">测试需求</label>
  186. <div class="col-sm-10">
  187. <a th:href="@{${data.get('requirement_url')}}" class="col-sm-2 " >原始测试需求</a>
  188. <input th:attr="value=${data.get('requirement_url')}" onchange="uploadFile('testRequirement')" type="file" id="testRequirement"/>
  189. <!-- <p class="help-block">Example block-level help text here.</p>-->
  190. </div>
  191. </div>
  192. <!-- text input -->
  193. <!-- <div class="form-group">-->
  194. <!-- <label class="col-sm-2 control-label">报告总数</label>-->
  195. <!-- <div class="col-sm-10">-->
  196. <!-- <input id="reportNum" th:value="${data.get('report_num')}" onchange="checkNum(event)" type="text" class="form-control" placeholder="请输入报告总数"/>-->
  197. <!-- </div>-->
  198. <!-- </div>-->
  199. <!-- textarea -->
  200. <div class="form-group">
  201. <label class="col-sm-2 control-label">报告信息</label>
  202. <div class="col-sm-10">
  203. <div class="nav-tabs-custom" style="cursor: move;">
  204. <!-- Tabs within a box -->
  205. <ul class="nav nav-tabs pull-right ui-sortable-handle">
  206. <li class="active">
  207. <a href="#showReport" data-toggle="tab" aria-expanded="true">视图</a>
  208. </li>
  209. <li class="">
  210. <a href="#editReport" data-toggle="tab" aria-expanded="false">编辑</a>
  211. </li>
  212. <li class="pull-left header">
  213. <i class="fa fa-inbox">
  214. </i> 报告信息
  215. </li>
  216. </ul>
  217. <div class="tab-content no-padding">
  218. <!-- Morris chart - Sales -->
  219. <div class="chart tab-pane active" id="showReport" style="position: relative; height: 300px;
  220. -webkit-tap-highlight-color: rgba(0, 0, 0, 0); overflow:auto; " >
  221. </div>
  222. <div class="chart tab-pane" id="editReport" style="position: relative; height: 300px;">
  223. <textarea class="form-control" th:text="${data.get('report_list')}" id="reportInfo" onchange="checkNull(event)" rows="14" placeholder="请输入json格式的报告信息">
  224. </textarea>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. <!-- textarea -->
  231. </form>
  232. </div>
  233. </div>
  234. <!-- Horizontal Form -->
  235. <!-- Horizontal Form -->
  236. <div class="box box-info rule" th:id="'rule'+${ruleStat.index}" th:each="rule,ruleStat : ${data.get('item_group_list')}">
  237. <div class="box-header with-border">
  238. <h3 class="box-title">定制审查选项</h3>
  239. <button type="submit" th:index="${ruleStat.index}" th:onclick="javascript:addCheck(this.getAttribute('index')) " class="btn btn-success pull-right">新建多选框</button>
  240. <button type="submit" th:index="${ruleStat.index}" th:onclick="javascript:addRatio(this.getAttribute('index')) " class="btn btn-success pull-right">新建单选框</button>
  241. <button type="submit" th:index="${ruleStat.index}" th:onclick="javascript:addSingleCheck(this.getAttribute('index')) " class="btn btn-success pull-right">新建单复选框</button>
  242. <button type="submit" th:index="${ruleStat.index}" th:onclick="javascript:addText(this.getAttribute('index')) " class="btn btn-success pull-right">新建文本框</button>
  243. <button type="submit" th:index="${ruleStat.index}" th:onclick="javascript:addUpload(this.getAttribute('index')) " class="btn btn-success pull-right">新建文件上传</button>
  244. </div>
  245. <!-- /.box-header -->
  246. <!-- form start -->
  247. <div class="form-horizontal" >
  248. <div class="box-body">
  249. <div class="form-group">
  250. <label class="col-sm-2 control-label">适用报告列表</label>
  251. <div class="col-sm-10">
  252. <input th:onchange="'test(this,'+${ruleStat.index}+')'" th:value="${rule.get('origin_report_list')}" class="form-control" th:id="'fitlist'+${ruleStat.index}" placeholder="请输入编号并用;分割,可用~输入连续的试题名称" />
  253. </div>
  254. <label class="col-sm-2 control-label">已选报告列表</label>
  255. <div class="col-sm-10" th:id="'namelist'+${ruleStat.index}">
  256. <span th:each="i : ${rule.get('report_list')}" class="badge bg-green" th:text="${i}"></span>
  257. </div>
  258. </div>
  259. <div class="form-group">
  260. <label class="col-sm-2 control-label">审查项</label>
  261. <div class="col-sm-10 ">
  262. <table class="table" th:id="'table'+${ruleStat.index}">
  263. <tbody>
  264. <tr>
  265. <td>
  266. 示例
  267. </td>
  268. <td>
  269. 标签
  270. </td>
  271. <td>
  272. 数据说明
  273. </td>
  274. <td>
  275. 操作
  276. </td>
  277. </tr>
  278. <th:block th:each="item : ${rule.get('item_list')}">
  279. <tr th:if="${item.get('type')=='File'}" type="file">
  280. <td>
  281. <div class="form-group">
  282. <label class="col-sm-3 control-label" th:text="${item.get('description')}"></label>
  283. <div class="col-sm-9">
  284. <input type="file"/>
  285. </div>
  286. </div></td>
  287. <td>
  288. <input onchange="showExampleFile(this)" th:value="${item.get('originData')}" type="text" class="form-control" placeholder="请输入说明文字"/>
  289. </td>
  290. <td>
  291. </td>
  292. <td>
  293. <button onclick="upTr(this)" class="btn btn-default">上移</button>
  294. <button th:index="${ruleStat.index}" th:onclick="javascript:downTr(this,this.getAttribute('index'))" class="btn btn-default">下移</button>
  295. <button onclick="deleteTr(this)" class="btn btn-warning">删除</button>
  296. </td>
  297. </tr>
  298. <tr th:if="${item.get('type')=='Image'}" type="image">
  299. <td>
  300. <div class="form-group">
  301. <label class="col-sm-3 control-label" th:text="${item.get('description')}"></label>
  302. <div class="col-sm-9">
  303. <input type="file"/>
  304. </div>
  305. </div></td>
  306. <td>
  307. <input onchange="showExampleImage(this)" th:value="${item.get('originData')}" type="text" class="form-control" placeholder="请输入说明文字"/>
  308. </td>
  309. <td>
  310. </td>
  311. <td>
  312. <button onclick="upTr(this)" class="btn btn-default">上移</button>
  313. <button th:index="${ruleStat.index}" th:onclick="javascript:downTr(this,this.getAttribute('index'))" class="btn btn-default">下移</button>
  314. <button onclick="deleteTr(this)" class="btn btn-warning">删除</button>
  315. </td>
  316. </tr>
  317. <tr th:if="${item.get('type')=='Description'}" type="text">
  318. <td><div class="form-group">
  319. <label class="col-sm-3 control-label" th:text="${item.get('description')}"></label>
  320. <div class="col-sm-9">
  321. <input type="text" class="form-control" placeholder="请输入"/>
  322. </div>
  323. </div></td>
  324. <td>
  325. <input onchange="showExampleText(this)" th:value="${item.get('originData')}" type="text" class="form-control" placeholder="选项数据"/>
  326. </td>
  327. <td>
  328. </td>
  329. <td>
  330. <button onclick="upTr(this)" class="btn btn-default">上移</button>
  331. <button th:index="${ruleStat.index}" th:onclick="javascript : downTr(this,this.getAttribute('index'))" class="btn btn-default">下移</button>
  332. <button onclick="deleteTr(this)" class="btn btn-warning">删除</button>
  333. </td>
  334. </tr>
  335. <tr th:if="${item.get('type')=='Single'}" type="ratio">
  336. <td>
  337. <div class="form-group">
  338. <label class="col-sm-3 control-label" th:text="${item.get('description')}">asd</label>
  339. <div class="col-sm-9">
  340. <div class="radio" th:each="da : ${item.get('options')}" >
  341. <label >
  342. <input type="radio" name="optionsRadios4" value="asd"/>
  343. <th:block th:text="${da}"> </th:block>
  344. </label>
  345. </div>
  346. </div>
  347. </div>
  348. </td>
  349. <td>
  350. <input onchange="showExampleRatioByLabel(this)" th:value="${item.get('originTip')}" type="text" class="form-control" placeholder="选项说明"/>
  351. </td>
  352. <td>
  353. <input onchange="showExampleRatio(this)" type="text" th:value="${item.get('originData')}" class="form-control" placeholder="选项数据 请用;将选项分隔"/>
  354. </td>
  355. <td>
  356. <button onclick="upTr(this)" class="btn btn-default">上移</button>
  357. <button th:index="${ruleStat.index}" th:onclick="javascript:downTr(this,this.getAttribute('index'))" class="btn btn-default">下移</button>
  358. <button onclick="deleteTr(this)" class="btn btn-warning">删除</button>
  359. </td>
  360. </tr>
  361. <tr th:if="${item.get('originType')=='multiple'}" type="check">
  362. <td>
  363. <div class="form-group">
  364. <label class="col-sm-3 control-label" th:text="${item.get('description')}"></label>
  365. <div class="col-sm-9">
  366. <div class="checkbox" th:each="da:${item.get('options')}">
  367. <label >
  368. <input type="checkbox"/>
  369. <th:block th:text="${da}"> </th:block>
  370. </label>
  371. </div>
  372. </div>
  373. </div>
  374. </td>
  375. <td>
  376. <input onchange="showExampleCheckByLabel(this)" th:value="${item.get('originTip')}" type="text" class="form-control" placeholder="选项说明"/>
  377. </td>
  378. <td>
  379. <input onchange="showExampleCheck(this)" th:value="${item.get('originData')}" type="text" class="form-control" placeholder="选项数据 请用;将选项分隔"/>
  380. </td>
  381. <td>
  382. <button onclick="upTr(this)" class="btn btn-default">上移</button>
  383. <button th:index="${ruleStat.index}" th:onclick="javascript:downTr(this,this.getAttribute('index'))" class="btn btn-default">下移</button>
  384. <button onclick="deleteTr(this)" class="btn btn-warning">删除</button>
  385. </td>
  386. </tr>
  387. <tr th:if="${item.get('originType')=='singleCheck'}" type="singleCheck">
  388. <td><div class="form-group">
  389. <label class="col-sm-3 control-label" th:text="${item.get('description')}"></label>
  390. <div class="col-sm-9">
  391. <div class="checkbox">
  392. <label>
  393. <input type="checkbox"/>
  394. <th:block th:text="${item.get('originData')}"></th:block>
  395. </label>
  396. </div>
  397. </div>
  398. </div></td>
  399. <td>
  400. <input onchange="showExampleSingleByLabel(this)" type="text" class="form-control" placeholder="选项说明"/>
  401. </td>
  402. <td>
  403. <input onchange="showExampleSingle(this)" type="text" class="form-control" placeholder="选项数据"/>
  404. </td>
  405. <td>
  406. <button onclick="upTr(this)" class="btn btn-default">上移</button>
  407. <button onclick="downTr(this,0)" class="btn btn-default">下移</button>
  408. <button onclick="deleteTr(this)" class="btn btn-warning">删除</button>
  409. </td>
  410. </tr>
  411. </th:block>
  412. </tbody>
  413. </table>
  414. </div>
  415. </div>
  416. </div>
  417. <div class="box-footer">
  418. <button type="button" onclick="deleteRule(0)" class="btn btn-default">删除</button>
  419. <button type="button" class="btn btn-default" onclick="showModal(0)">
  420. 本地预览
  421. </button>
  422. <button type="button" onclick="addNewOption()" class="btn btn-info pull-right">继续添加</button>
  423. </div>
  424. </div>
  425. </div>
  426. </section>
  427. </div>
  428. <div class="modal fade" id="modal-default">
  429. <div class="modal-dialog">
  430. <div class="modal-content">
  431. <div class="modal-header">
  432. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  433. <span aria-hidden="true">&times;</span></button>
  434. <h4 class="modal-title">预览</h4>
  435. </div>
  436. <div class="modal-body" id="modalBody">
  437. <form class="form-horizontal" id="formBody">
  438. </form>
  439. </div>
  440. <div class="modal-footer">
  441. <button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
  442. <!-- <button type="button" class="btn btn-primary"></button>-->
  443. </div>
  444. </div>
  445. <!-- /.modal-content -->
  446. </div>
  447. <!-- /.modal-dialog -->
  448. </div>
  449. <!-- /.modal -->
  450. <div class="modal fade" id="modal-alert">
  451. <div class="modal-dialog">
  452. <div class="modal-content">
  453. <div class="modal-header">
  454. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  455. <span aria-hidden="true">&times;</span></button>
  456. <h4 class="modal-title">预览</h4>
  457. </div>
  458. <div class="modal-body" id="modalAlertBody">
  459. <form class="form-horizontal" id="formAlertBody">
  460. </form>
  461. </div>
  462. <div class="modal-footer">
  463. <button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
  464. <!-- <button type="button" class="btn btn-primary"></button>-->
  465. </div>
  466. </div>
  467. <!-- /.modal-content -->
  468. </div>
  469. <!-- /.modal-dialog -->
  470. </div>
  471. <!-- /.modal -->
  472. </div>
  473. </body>
  474. </html>
  475. <!-- jQuery 3 -->
  476. <!--<script src="/static/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>-->
  477. <!-- Bootstrap 3.3.7 -->
  478. <script src="/static/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  479. <script src="/static/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
  480. <script src="/static/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
  481. <script src="/static/AdminLTE/bower_components/select2/dist/js/select2.min.js"></script>
  482. <!-- InputMask -->
  483. <script src="/static/AdminLTE/plugins/input-mask/jquery.inputmask.js"></script>
  484. <script src="/static/AdminLTE/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
  485. <script src="/static/AdminLTE/plugins/input-mask/jquery.inputmask.extensions.js"></script>
  486. <!-- date-range-picker -->
  487. <script src="/static/AdminLTE/bower_components/moment/min/moment.min.js"></script>
  488. <script src="/static/AdminLTE/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
  489. <!-- bootstrap datepicker -->
  490. <script src="/static/AdminLTE/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
  491. <!-- bootstrap time picker -->
  492. <script src="/static/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.js"></script>
  493. <!-- SlimScroll -->
  494. <script src="/static/AdminLTE/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
  495. <!-- iCheck 1.0.1 -->
  496. <script src="/static/AdminLTE/plugins/iCheck/icheck.min.js"></script>
  497. <!-- FastClick -->
  498. <script src="/static/AdminLTE/bower_components/fastclick/lib/fastclick.js"></script>
  499. <!-- AdminLTE App -->
  500. <!--<script src="/static/AdminLTE/dist/js/adminlte.min.js"></script>-->
  501. <!-- AdminLTE for demo purposes -->
  502. <script src="/static/AdminLTE/dist/js/demo.js"></script>
  503. <!-- change Paper js -->
  504. <script src="/static/js/changePaper.js"></script>
  505. <script src="/static/AdminLTE/bower_components/bootstrap-notify/dist/bootstrap-notify.min.js"></script>
  506. <!--阿里 oss 上传-->
  507. <script src="http://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"></script>
  508. <script type="text/javascript" src="http://www.jq22.com/demo/clipboard.js-master201703170013/dist/clipboard.min.js"></script>
  509. <script type="text/javascript" xmlns:th="http://www.thymeleaf.org" th:inline="javascript">
  510. var ruleId ;
  511. var ratioIndex;
  512. /*<![CDATA[*/
  513. var urlParams = new URLSearchParams(window.location.search);
  514. var paperId = urlParams.get('id');
  515. var id = [[${data.get('paperId')}]];
  516. var reportHost = [[${reportHost}]]
  517. ruleId = [[${ruleLength}]]
  518. var client = new OSS.Wrapper({
  519. region : 'oss-cn-shanghai',
  520. accessKeyId : 'IvS323TIcWUT57MG',
  521. accessKeySecret : 'dYml7rvT8stQkoSjMYlfRTxNj9dEsI',
  522. bucket : 'mooctest-site'
  523. });
  524. /*]]>*/
  525. $(document).ready(function(){
  526. $('[data-toggle="tooltip"]').tooltip();
  527. $('#reportInfo').val(getCleanStr($('#reportInfo').val()));
  528. $("#auditSidebar").addClass("active");
  529. setShowRule($('#reportInfo').val());
  530. //Initialize Select2 Elements
  531. $('.select2').select2()
  532. ratioIndex =0 ;
  533. // $('#testType').val(type)
  534. $('#testType').val($('#testType').attr('value'))
  535. //Date range picker with time picker
  536. // $('#reservationtime').daterangepicker({ timePicker: true, timePickerIncrement: 30, format: 'MM/DD/YYYY h:mm A' })
  537. $('#reservationtime').daterangepicker({ timePicker: true, timePickerIncrement: 30, locale: { format: 'MM/DD/YYYY hh:mm A' }})
  538. var taskListTable = $('#task-list').DataTable({
  539. searching: true,
  540. pageLength: 25
  541. });
  542. });
  543. </script>