jk_image.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  7. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  8. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}" />
  9. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  10. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  12. <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
  13. <link href="{% static '/lib/css/magnific-popup.css' %}" rel="stylesheet" type="text/css" media="all" />
  14. <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
  15. <style>
  16. /* 返回 */
  17. .headerPlace {
  18. font-size: 22px;
  19. color: #418fbb;
  20. cursor: pointer;
  21. }
  22. .headerPlace img {
  23. vertical-align: middle;
  24. margin-right: 10px;
  25. margin-top: -4px;
  26. }
  27. body {
  28. background: #fff;
  29. overflow: hidden;
  30. }
  31. .clearfix:before,
  32. .clearfix:after {
  33. display: table;
  34. line-height: 0;
  35. content: ""
  36. }
  37. .clearfix:after {
  38. clear: both
  39. }
  40. .fl {
  41. float: left;
  42. }
  43. .fr {
  44. float: right;
  45. }
  46. .mfp-bottom-bar {
  47. color: #fff;
  48. }
  49. a {
  50. text-decoration: none !important;
  51. }
  52. .popup-gallery>div {
  53. float: left;
  54. width: 400px;
  55. overflow: hidden;
  56. text-align: center;
  57. position: relative;
  58. padding-bottom: 15px;
  59. }
  60. .imgParent:hover span {
  61. display: block;
  62. }
  63. .imgParent .delBtn {
  64. display: none;
  65. position: absolute;
  66. top: 10px;
  67. right: 58px;
  68. cursor: pointer;
  69. background: url(../static/img/delIcon.png);
  70. width: 25px;
  71. height: 25px;
  72. background-size: cover;
  73. }
  74. .content-body {
  75. margin-top: 20px;
  76. }
  77. .popupA img {
  78. width: 300px;
  79. height: 300px;
  80. }
  81. .imgParent a,
  82. .popupA p {
  83. color: #08c;
  84. padding: 10px;
  85. }
  86. /* 配置 */
  87. #lookDescribe {
  88. max-width: 700px;
  89. }
  90. .white-popup {
  91. position: relative;
  92. background: #FFF;
  93. padding: 20px;
  94. width: auto;
  95. max-width: 500px;
  96. margin: 20px auto;
  97. }
  98. .white-popup h1 {
  99. font-size: 20px;
  100. /* margin: 10px 0; */
  101. color: #006dcc;
  102. line-height: 15px;
  103. }
  104. .pupopTitle {
  105. width: 140px;
  106. text-align: right;
  107. vertical-align: middle;
  108. /* margin-top: 7px; */
  109. line-height: 30px;
  110. }
  111. .pupopBody input,
  112. .pupopBody select {
  113. padding: 4px 6px;
  114. margin-bottom: 10px;
  115. font-size: 14px;
  116. line-height: 20px;
  117. color: #4a4a4a;
  118. background: #fff;
  119. border: 1px solid #ccc;
  120. vertical-align: middle;
  121. width: 200px;
  122. }
  123. .pupopBody select,
  124. .pupopBody input {
  125. height: 30px;
  126. width: 215px;
  127. line-height: 30px;
  128. cursor: pointer;
  129. border: 1px solid #ccc;
  130. }
  131. .btnParent {
  132. text-align: center;
  133. }
  134. .btnParent input {
  135. color: #fff;
  136. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  137. background-color: #006dcc;
  138. width: 80px;
  139. height: 30px;
  140. border-radius: 3px;
  141. border: none;
  142. cursor: pointer;
  143. margin: 5px 17px;
  144. }
  145. .btnParent input:hover {
  146. color: #fff;
  147. background-color: #04c;
  148. }
  149. .nullData {
  150. width: 100%;
  151. height: 500px;
  152. background: #ddd;
  153. text-align: center;
  154. line-height: 500px;
  155. font-size: 20px;
  156. border: 1px solid #ddd;
  157. }
  158. #wormDetails {
  159. width: 100%;
  160. text-align: center;
  161. line-height: 30px;
  162. }
  163. #wormDetails tr {
  164. border-bottom: 1px solid #e6e6e6;
  165. /* line-height: 40px; */
  166. }
  167. #wormDetails .option,
  168. #wormDetails .optionName {
  169. /* width: 150px; */
  170. }
  171. #wormDetails input {
  172. width: 80%;
  173. text-align: center;
  174. }
  175. .saveBtn {
  176. display: none;
  177. }
  178. #addwormType,
  179. #delwormType {
  180. display: none;
  181. }
  182. #delwormType .pupopBody {
  183. width: 340px;
  184. font-size: 0;
  185. }
  186. #addwormType h2,
  187. #delwormType h2 {
  188. font-size: 16px;
  189. text-indent: 30px;
  190. color: #006dcc;
  191. }
  192. .my_protocol {
  193. line-height: 30px;
  194. display: inline-block;
  195. width: 169px;
  196. overflow: hidden;
  197. white-space: nowrap;
  198. text-overflow: ellipsis;
  199. }
  200. .my_protocol .input_agreement_protocol {
  201. appearance: none;
  202. -webkit-appearance: none;
  203. outline: none;
  204. display: none;
  205. }
  206. /*未选中时*/
  207. .my_protocol .input_agreement_protocol+span {
  208. cursor: pointer;
  209. width: 16px;
  210. height: 16px;
  211. background-color: red;
  212. display: inline-block;
  213. background: url(../static/img/checkboxBj.png) no-repeat;
  214. background-position-x: 0px;
  215. background-position-y: 0px;
  216. position: relative;
  217. top: 3px;
  218. margin-right: 3px;
  219. }
  220. /*选中checkbox时,修改背景图片的位置*/
  221. .my_protocol .input_agreement_protocol:checked+span {
  222. background-position: -19px 0px
  223. }
  224. /* 图片列表批量删除复选框样式 */
  225. .imgcheckbox input[type='checkbox']+span {
  226. cursor: pointer;
  227. width: 18px;
  228. height: 18px;
  229. background-color: red;
  230. display: inline-block;
  231. background: url(/static/img/tick.png) no-repeat center;
  232. background-position: -19px 0px;
  233. position: relative;
  234. top: 3px;
  235. border: 1px solid #bbb;
  236. }
  237. .imgcheckbox input[type='checkbox']:checked+span {
  238. background-position-x: 3px;
  239. background-position-y: 3px;
  240. }
  241. .imgcheckbox input {
  242. display: none;
  243. }
  244. .imgcheckbox {
  245. display: none;
  246. position: absolute;
  247. right: 19px;
  248. top: 0px;
  249. }
  250. .searchCover {
  251. margin: 20px 0;
  252. }
  253. .delbox {
  254. text-align: right;
  255. }
  256. .canceldelimgBtn {
  257. display: none;
  258. }
  259. /* 自动识别虫害 */
  260. /* .wormImg{
  261. width: 150px;
  262. float: left;
  263. margin-top: 20px;
  264. margin-right: 10px;
  265. }
  266. .wormIcon{
  267. float: left;
  268. margin-top: -5px;
  269. margin-right: 10px;
  270. font-size: 26px;
  271. color: #f1d300;
  272. /* color: #bd0606;
  273. }
  274. .wormName{
  275. text-align: center;
  276. line-height: 30px !important;
  277. }
  278. .synopsis{
  279. line-height: 23px;
  280. min-height: 100px;
  281. } */
  282. /* 自动识别2 */
  283. .wormBox {
  284. /* min-height: 100px; */
  285. }
  286. .wormImgTag {
  287. /* float: left;
  288. width: 25%; */
  289. }
  290. .wormImgTag>img {
  291. width: 100%;
  292. }
  293. .wormResult {
  294. /* margin-left: 140px;
  295. width: 75%;*/
  296. line-height: 28px;
  297. }
  298. .wormResult>span {
  299. width: 50%;
  300. display: inline-block;
  301. }
  302. .wormResult>span i {
  303. font-style: normal;
  304. color: #cf0000;
  305. font-weight: 600;
  306. }
  307. .wormResult>span i:hover {
  308. color: #006dcc;
  309. }
  310. .clear {
  311. clear: both;
  312. }
  313. .wormIcon {
  314. float: left;
  315. margin-top: -5px;
  316. margin-right: 10px;
  317. font-size: 26px;
  318. color: #f1d300;
  319. }
  320. .resultTitle {
  321. font-size: 16px;
  322. margin: 5px 0;
  323. border-left: 4px solid #006dcc;
  324. padding-left: 6px;
  325. font-weight: 600;
  326. }
  327. /* 顶部位置 */
  328. .page-header>h1,
  329. .searchCover {
  330. width: 48%;
  331. display: inline-block;
  332. }
  333. /* 模拟查看数据 */
  334. .imgParent .simulation {
  335. padding: 0;
  336. }
  337. .simulation {
  338. display: none;
  339. }
  340. .resultLookGitImg {
  341. float: right;
  342. margin-bottom: 20px;
  343. }
  344. #bindSim {
  345. display: none;
  346. }
  347. #bindSim>div {
  348. text-align: center;
  349. }
  350. #bindSim>.hint {
  351. line-height: 100px;
  352. font-size: 16px;
  353. color: #333;
  354. }
  355. .layui-layer {
  356. border-radius: 10px;
  357. overflow: hidden;
  358. }
  359. #failure {
  360. display: none;
  361. text-align: center;
  362. }
  363. #failure>div {
  364. margin: 15px;
  365. }
  366. #wormDetails th {
  367. text-align: center;
  368. }
  369. </style>
  370. </head>
  371. <body>
  372. <div class="content">
  373. <input type="hidden" name="" value="{{disc}}" id="discern">
  374. <div class="page-header">
  375. <span class="headerPlace" onclick="goback('equipmanage_jk')">
  376. <img src="{% static '/img/gobackIcon.png' %}" alt="">返回
  377. </span>
  378. </div>
  379. <div class="timeSelect">
  380. 时间段查询:
  381. <input type="text" value="" class="fp-user" id="timSelectBox" autocomplete="off" placeholder="时间段查询" onkeypress="if (event.keyCode == 13) img_filter();"
  382. />
  383. <input type="hidden" id="begin">
  384. <input type="hidden" id="end">
  385. <button type="button" onclick="img_filter()" class="btn btn-sm btn-primary">筛选</button>
  386. </div>
  387. <!-- 图片列表 -->
  388. <div class="content-body" id="imgList">
  389. </div>
  390. <div class="fenpei-bottom">
  391. <input type="hidden" id="imei" value="{{imei}}">
  392. <div id="page" style="text-align: center;"></div>
  393. </div>
  394. <!-- loading -->
  395. <div id="loadingParent">
  396. <div id="loadCenter">
  397. <div class="skype-loader">
  398. <div class="dot">
  399. <div class="first"></div>
  400. </div>
  401. <div class="dot"></div>
  402. <div class="dot"></div>
  403. <div class="dot"></div>
  404. </div>
  405. Logging in...
  406. </div>
  407. </div>
  408. </div>
  409. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  410. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  411. <script src="{% static '/js/common.js' %}?versions=0.5.0"></script>
  412. <script type="text/javascript">
  413. $.ajaxSetup({
  414. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  415. });
  416. </script>
  417. <!-- <script src="{% static '/js/reportmanage/cbd_image.js' %}?versions=0.5.0"></script> -->
  418. <script>
  419. // 时间插件初始化
  420. layui.use('laydate', function () {
  421. var laydate = layui.laydate;
  422. //执行一个laydate实例
  423. var _layDateMark = (new Date()).getTime();
  424. $('#timSelectBox').attr('lay-key', 'glass' + _layDateMark);
  425. //执行一个laydate实例
  426. laydate.render({
  427. elem: '#timSelectBox' //指定元素
  428. , range: true
  429. , done: function (value, date) {
  430. var dateArray = value.split(' - ')
  431. $('#begin').val(dateArray[0])
  432. $('#end').val(dateArray[1])
  433. }
  434. });
  435. });
  436. $.ajax({
  437. url: 'jk_image',
  438. type: 'post',
  439. data:{
  440. imei: $('#imei').val(),
  441. page:1
  442. },
  443. success: function (data) {
  444. $('#imgList').html('');
  445. $('#imgList').html(data);
  446. if ($('.content').height() > 750) {
  447. $('#iframe-main', parent.document).css('height', $('.content').height() + 20)
  448. } else {
  449. $('#iframe-main', parent.document).css('height', '750px')
  450. }
  451. }
  452. })
  453. </script>
  454. </body>
  455. </html>