upload_img.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. <link rel="stylesheet" href="/static/css/font-awesome.min.css"/>
  2. <link rel="stylesheet" href="/static/css/common.css"/>
  3. <link rel="stylesheet" type="text/css" href="/static/css/zTreeStyle/global.css">
  4. <script type="text/javascript" src="/static/js/ztree/jquery.ztree.all_useicon.js"></script>
  5. <style type="text/css">
  6. .layui-tree-icon {
  7. border: 1px solid #6668;
  8. }
  9. .layui-tree-txt {
  10. color: #8385a2;
  11. }
  12. .layui-tree-txt-active {
  13. color: #7575f9 !important;
  14. }
  15. .upload_combox_drown {
  16. width: 125px;
  17. display: block !important;
  18. float: left;
  19. height: 32px;
  20. line-height: 32px;
  21. background-color: #ffffff !important;
  22. color: #233C7F;
  23. border: 1px solid #233C7F;
  24. margin-right: 7px;
  25. padding-left: 5px;
  26. }
  27. .upload_combox_drown > option {
  28. color: #233C7F;
  29. }
  30. .upload_combox_drown > option:hover {
  31. background-color: #ffffff !important;
  32. }
  33. .button_upload {
  34. float: left;
  35. background-image: linear-gradient(#1E9FFF, rgb(68 68 195));
  36. color: #fff;
  37. font-size: 14px;
  38. border: none;
  39. cursor: pointer;
  40. height: 30px;
  41. line-height: 30px;
  42. border-radius: 2px;
  43. width: 100%;
  44. text-align: center;
  45. }
  46. .image_box {
  47. width: 125px;
  48. padding: 0;
  49. margin: 0 auto;
  50. }
  51. .image_box > img {
  52. width: 100%;
  53. height: 125px;
  54. margin-bottom: 5px;
  55. }
  56. .upload_img_input {
  57. float: left;
  58. width: 125px;
  59. height: 30px;
  60. font-size: 1.6rem;
  61. font-weight: 500;
  62. border: 1px solid #233C7F;
  63. outline: none;
  64. background-color: transparent;
  65. color: #233C7F;
  66. padding: 0 0.8rem;
  67. margin-right: 10px;
  68. }
  69. .list_image_box {
  70. float: left;
  71. width: 100px;
  72. height: 100px;
  73. margin: 0 20px 15px 0;
  74. cursor: pointer;
  75. position: relative;
  76. box-shadow: 2px 2px 9px 2px rgb(223 227 241) !important;
  77. }
  78. .list_image_box > img {
  79. float: left;
  80. width: 100px;
  81. height: 100px;
  82. margin: 0px;
  83. cursor: pointer;
  84. }
  85. .list_image_box > div {
  86. position: absolute;
  87. bottom: 0px;
  88. width: 20px;
  89. height: 20px;
  90. text-align: center;
  91. background-color: green;
  92. border-radius: 100px;
  93. color:#ffffff;
  94. right: 0px;
  95. }
  96. .layui-this-active {
  97. border-bottom: 2px solid #326cde;
  98. color: #326cde;
  99. font-weight: bold;
  100. }
  101. .upload_search_icon {
  102. float: left;
  103. cursor: pointer;
  104. font-size: 30px;
  105. }
  106. .upload_person_image_library {
  107. width: 95%;
  108. padding: 10px;
  109. height: 100%;
  110. margin: 0 auto;
  111. }
  112. .upload_person_face {
  113. height: 12rem;
  114. width: 12rem;
  115. float: left;
  116. margin: 0 15px 30px 0;
  117. background-size: 100% 100%;
  118. background-repeat: no-repeat;
  119. position: relative;
  120. cursor: pointer;
  121. padding: 2px 2px 0 2px;
  122. box-shadow: 2px 2px 9px 2px rgb(159 163 175) !important;
  123. }
  124. .upload_person_face_choice {
  125. position: absolute;
  126. width: 20px;
  127. height: 20px;
  128. text-align: center;
  129. background-color: green;
  130. border-radius: 100px;
  131. color:#ffffff;
  132. right: 5px;
  133. bottom: 5px;
  134. }
  135. .upload_person_face_choice > i {
  136. float: left !important;
  137. margin: 2px 0 0 2px !important;
  138. }
  139. .upload_person_face > img {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. .upload_person_face_name {
  144. height: 3rem;
  145. width: 9.9rem;
  146. background-size: 100% 100%;
  147. background-repeat: no-repeat;
  148. line-height: 3rem;
  149. margin: 0.3rem auto 0 auto;
  150. text-align: center;
  151. color: #233C7F;
  152. font-weight: 400;
  153. position: relative;
  154. }
  155. .layui-flow-more {
  156. float: left;
  157. width: 100%;
  158. }
  159. #form_upload a, #form_upload body {
  160. cursor: default;
  161. }
  162. </style>
  163. <form class="layui-form" id="form_upload" style="float:left;width:100%;height:100%;">
  164. <div class="layui-tab " style="float:left;width:100%;margin:0px;height:100%;border:none !important;">
  165. <ul class="layui-tab-title" style="background-color:transparent;border-bottom:2px solid #2a345c;">
  166. <li class="layui-this-active" onclick="SwitchTab(this);" flag="avator-upload">头像上传</li>
  167. <li flag="face-storage" onclick="SwitchTab(this);">抓拍库</li>
  168. <li flag="person-storage" onclick="SwitchTab(this);">人员库</li>
  169. </ul>
  170. <div class="layui-tab-content">
  171. <!--头像上传展示-->
  172. <div class="layui-tab-item layui-show" for="avator-upload">
  173. <div style="display: none;" class="form_upload_content">
  174. <span style="float:left;width:100%;text-align:center;padding:0;">人员头像选择</span>
  175. <div class="layui-upload-list image_box" id="upload_image_box">
  176. <img src="/static/images/userhead.png" id="image_object" url=""/>
  177. <span class="button_upload">
  178. <i class="layui-icon layui-icon-upload-drag"></i>
  179. <i class="layui-icon layui-icon-loading-1 layui-anim layui-anim-rotate layui-anim-loop layui-hide"></i>
  180. <span>上传头像</span></span>
  181. </div>
  182. </div>
  183. </div>
  184. <!--抓拍库展示-->
  185. <div class="layui-tab-item search_area" for="face-storage">
  186. <div style="float:left;width:36%;">
  187. <ul id="tree_face" class="ztree tree" style="float:right"></ul>
  188. </div>
  189. <div style="float:right;width:62%;height:100%;">
  190. <div class="select_area" id="select_area_image" style="width:90%;float: right;"></div>
  191. </div>
  192. </div>
  193. <!--人员库展示-->
  194. <div class="layui-tab-item" for="person-storage">
  195. <div style="line-height:32px;float:left;width:100%;">
  196. <span style="float:left;padding:0 5px 0 30px;">人员标记:</span>
  197. <select class="upload_combox_drown" id="upload_person_mark"></select>
  198. <span style="float:left;padding:0 5px;">职业:</span>
  199. <select class="upload_combox_drown" id="upload_person_occupation"></select>
  200. <span style="float:left;padding:0 5px;">性别:</span>
  201. <select class="upload_combox_drown" id="upload_person_gender" style="width:80px;">
  202. <option value=""></option>
  203. <option value="男">男</option>
  204. <option value="女">女</option>
  205. </select>
  206. <span style="float:left;padding:0 5px;">姓名:</span>
  207. <input class="upload_img_input" id="upload_text_person_name"/>
  208. <i class="layui-icon layui-icon-search upload_search_icon" title="立即查询"></i>
  209. </div>
  210. <div style="float:left;width:100%;">
  211. <div class="upload_person_image_library"></div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </form>
  217. <script type="text/javascript">
  218. var eleUploadImgContent = $("#form_upload .layui-tab-content");
  219. var UploadMessageObject = null;
  220. var Search_Person_Type = "";
  221. var CameraImageCondition = {
  222. "area_code": "",
  223. "camera_sn": "",
  224. "datatype": 1,
  225. "pageindex": 1,
  226. "pagesize": 50,
  227. "startdate": "",
  228. "enddate": ""
  229. }
  230. var UpLoadLoddingText = "<i class='layui-icon layui-icon-loading-1 layui-anim layui-anim-rotate layui-anim-loop' style='margin-right:10px;'></i><span style='color:#ffffff;'>数据加载中...</span>";
  231. $(document).ready(function () {
  232. setTimeout(function () {
  233. Upload_File_Init();
  234. }, 100);
  235. });
  236. function CleanUploadImageContent() {
  237. var imgObject = $("#form_upload #image_object");
  238. imgObject.attr("src", "/static/images/userhead.png").attr("url", "");
  239. $("#select_area_image").html("");
  240. $("#form_upload .layui-tab-title>li:first").trigger("click");
  241. }
  242. function SwitchTab(event) {
  243. var index = $(event).index();
  244. if (index == 1) { //抓拍库
  245. if ($('#form_upload #tree_face').children().length == 0) {
  246. upload_load_tree();
  247. }
  248. } else if (index == 2) { //人员库
  249. LoadComboxInfo();
  250. }
  251. }
  252. //设置上传文件时的排除项
  253. //item参数为数组,其值分别为0,1,2,分别代表需要排除的项
  254. function Set_Upload_Remove_Item(item) {
  255. if (item instanceof Array) {
  256. for (var i = 0; i < item.length; i++) {
  257. var index = item[i];
  258. if (index == "0") {
  259. $("#form_upload .layui-tab-title li[flag='avator-upload']").remove();
  260. $("#form_upload .layui-tab-content div[for='avator-upload']").remove();
  261. } else if (index == "1") {
  262. $("#form_upload .layui-tab-title li[flag='face-storage']").remove();
  263. $("#form_upload .layui-tab-content div[for='face-storage']").remove();
  264. } else if (index == "2") {
  265. $("#form_upload .layui-tab-title li[flag='person-storage']").remove();
  266. $("#form_upload .layui-tab-content div[for='person-storage']").remove();
  267. } else {
  268. layer.msg("参数不在可选择范围内!");
  269. }
  270. }
  271. $("#form_upload .layui-tab-content div:first").addClass("layui-show");
  272. } else {
  273. layer.msg("参数只能为数组");
  274. }
  275. }
  276. function Upload_File_Init() {
  277. var h = $("#form_upload").height() - 75;
  278. $("#form_upload .layui-tab-content>div").height(h);
  279. $("#form_upload .upload_person_image_library").parent().height(h - 40);
  280. $(".form_upload_content").show().css("margin-top", ((h - 200) / 2) + "px");
  281. $("#form_upload .layui-tab-title>li").off("click").on("click", function (e) {
  282. //阻止触发layui事件
  283. e.preventDefault();
  284. e.stopPropagation()
  285. $("#form_upload .layui-tab-title .layui-this-active").removeClass("layui-this-active");
  286. $(this).attr("class", "layui-this-active");
  287. eleUploadImgContent.find(".layui-show").removeClass("layui-show");
  288. eleUploadImgContent.find(".layui-tab-item[for='" + $(this).attr("flag") + "']").addClass("layui-show");
  289. });
  290. eleUploadImgContent.find("#tree_face").slimScroll({
  291. height: h + "px",
  292. width: "100%",
  293. alwaysVisible: false,
  294. wheelStep: 10,
  295. size: "6px",
  296. color: "#03aee7"
  297. });
  298. eleUploadImgContent.find(".select_area").height(h).slimScroll({
  299. height: (h) + "px",
  300. width: "96%",
  301. alwaysVisible: false,
  302. wheelStep: 10,
  303. size: "6px",
  304. color: "#03aee7"
  305. });
  306. layui.upload.render({
  307. elem: '#upload_image_box .button_upload',
  308. url: Global.AccessUrl + '/api/police/uploadfile',
  309. before: function (obj) {
  310. obj.preview(function (index, file, result) {
  311. $("#upload_image_box .button_upload>span").html("上传中...");
  312. $("#upload_image_box .layui-icon-upload-drag").hide();
  313. $("#upload_image_box .layui-anim-rotate").removeClass("layui-hide");
  314. $('#upload_image_box #image_object').attr('src', result);
  315. });
  316. },
  317. done: function (result) {
  318. if (result["success"]) {
  319. $("#upload_image_box .button_upload>span").html("人脸检测中...");
  320. $.post(Global.AccessUrl+"/api/police/getimgfeartrue",{"imgpath_abs":result["data"]},function(r){
  321. if(r.success){
  322. var result=r.data;
  323. if(result.code!=null&&result.code=="500"){
  324. $("#upload_image_box #image_object").attr("url", "");
  325. var reg=/[\u4e00-\u9fa5]+/g;
  326. var errmsges = result.errmsg.match(reg);
  327. DialogObject.Msg((errmsges!=null && errmsges.length>0) ? errmsges[0]:result.errmsg);
  328. $("#upload_image_box img").attr("src","/static/images/userhead.png");
  329. $("#upload_image_box .button_upload>span").html("重新上传");
  330. return;
  331. }else{
  332. $("#upload_image_box .button_upload>span").html("上传成功");
  333. $("#upload_image_box #image_object").attr("url", result["img"]);
  334. }
  335. }else{
  336. DialogObject.Msg(r.msg);
  337. $("#upload_image_box img").attr("src","/static/images/userhead.png");
  338. $("#upload_image_box #image_object").attr("url", "");
  339. $("#upload_image_box .button_upload>span").html("重新上传");
  340. }
  341. });
  342. } else {
  343. return DialogObject.Msg('上传失败');
  344. }
  345. },
  346. //进度条
  347. progress: function (n, elem, e) {
  348. if (n == 100) {
  349. setTimeout(function () {
  350. $("#upload_image_box .layui-icon-upload-drag").show();
  351. $("#upload_image_box .layui-anim-rotate").addClass("layui-hide");
  352. }, 100);
  353. }
  354. }
  355. });
  356. //人员库数据查询及点击事件
  357. $("#form_upload .upload_search_icon").off("click").on("click", function () {
  358. var parameter = {};
  359. parameter["person_occupation"] = $("#upload_person_occupation").val();
  360. parameter["person_mark"] = $("#upload_person_mark").val();
  361. parameter["person_name"] = $.trim($("#upload_text_person_name").val());
  362. parameter["person_gender"] = $("#upload_person_gender").val();
  363. parameter["person_sculpture"] = 1;
  364. parameter["pagesize"] = 5000;
  365. parameter["persontype"] = Search_Person_Type;
  366. $.getJSON(Global.AccessUrl + "/api/person/search", parameter, function (result) {
  367. if (result["code"] == 0) {
  368. var data = result["data"];
  369. var htmlObject = null;
  370. if (data == null || data == "" || data.length == 0) {
  371. htmlObject = "<div style='text-align: center;line-height: 5rem;color: #999;'>未查询到人员头像数据!</div>";
  372. $("#form_upload .upload_person_image_library").html(htmlObject);
  373. } else {
  374. var path = null, index = null;
  375. for (var i = 0; i < data.length; i++) {
  376. path = data[i]["PERSON_AVATOR_PATH"];
  377. data[i]["face_url"] = path;
  378. if (path != null && path != "") {
  379. if (path.substr(0, 4) != "http") {
  380. index = path.indexOf("static/");
  381. if (index > -1)
  382. data[i]["face_url"] = Global.AccessUrl + path.substr(index);
  383. }
  384. }
  385. }
  386. htmlObject = template("upload_person_face_temp", {"data": data});
  387. $("#form_upload .upload_person_image_library").html(htmlObject);
  388. $("#form_upload .upload_person_image_library .upload_person_face").off("click").on("click", function () {
  389. if ($(this).find(".upload_person_face_choice").length == 0) {
  390. $("#form_upload .upload_person_image_library .upload_person_face_choice").remove();
  391. var html = "<div class='upload_person_face_choice'><i class='layui-icon layui-icon-ok'></i></div>";
  392. $(this).append(html);
  393. } else {
  394. $(this).find(".upload_person_face_choice").remove();
  395. }
  396. });
  397. }
  398. }
  399. });
  400. });
  401. }
  402. //加载下拉列表框内容
  403. function LoadComboxInfo() {
  404. //加载
  405. $.getJSON(Global.AccessUrl + "/api/getGlobalCode", {"pcode": "duty"}, function (result) {
  406. if (result["code"] == 0) {
  407. var htmlObject = template("upload_combox_code", {"data": result["data"]});
  408. $("#upload_person_occupation").html(htmlObject);
  409. }
  410. });
  411. $.getJSON(Global.AccessUrl + "/api/getGlobalCode", {"pcode": "identification"}, function (result) {
  412. if (result["code"] == 0) {
  413. var htmlObject = template("upload_combox_code", {"data": result["data"]});
  414. $("#upload_person_mark").html(htmlObject);
  415. }
  416. });
  417. }
  418. //获得文件图片地址
  419. function GetImageFilePath() {
  420. var imageInfo = {"filepath": "", "faceid": "", "type": "0", "personid": 0, "avtorid": 0};
  421. var flag = $("#form_upload .layui-this-active").attr("flag");
  422. var choiceObject = null;
  423. if (flag == "avator-upload") {
  424. imageInfo["filepath"] = $("#image_object").attr("url");
  425. imageInfo["absolute_path"] = $("#image_object").attr("url");
  426. imageInfo["type"] = "1";
  427. } else if (flag == "face-storage") {
  428. choiceObject = $(".select_area .layui-icon-ok");
  429. if (choiceObject.length > 0) {
  430. imageInfo["filepath"] = choiceObject.parent().prev().attr("src");
  431. imageInfo["absolute_path"] = Global.Absolute_path + choiceObject.parent().prev().attr("face_path");
  432. imageInfo["faceid"] = choiceObject.parent().prev().attr("faceid");
  433. imageInfo["type"] = "0";
  434. }
  435. } else if (flag == "person-storage") {
  436. choiceObject = $(".upload_person_image_library .upload_person_face_choice").parent().find("img");
  437. if (choiceObject.length > 0) {
  438. imageInfo["filepath"] = choiceObject.attr("filepath");
  439. imageInfo["absolute_path"] = Global.Absolute_path + choiceObject.attr("filepath");
  440. imageInfo["faceid"] = choiceObject.attr("faceid");
  441. var personid = choiceObject.attr("person_id");
  442. if (personid != null && personid != "") {
  443. imageInfo["personid"] = parseInt(personid);
  444. }
  445. var avtor_id = choiceObject.attr("avtor_id");
  446. if (avtor_id != null && avtor_id != null) {
  447. imageInfo["avtorid"] = parseInt(avtor_id);
  448. }
  449. imageInfo["type"] = "0";
  450. }
  451. }
  452. return imageInfo;
  453. }
  454. function SetUploadInitialize(InitParameter) {
  455. if (InitParameter.hasOwnProperty("url")) {
  456. var url = InitParameter["url"];
  457. if (url == null || url == "")
  458. url = "/static/images/userhead.png";
  459. $("#image_object").attr("src", url).attr("url", "");
  460. }
  461. if (InitParameter.hasOwnProperty("persontype")) {
  462. Search_Person_Type = InitParameter["persontype"];
  463. }
  464. }
  465. function upload_load_tree() {
  466. //处理节点树
  467. eleUploadImgContent.find("#tree_face").height($("#form_upload").height() - 75);
  468. var html = Tools.LoadingText(null, 100, null);
  469. $("#form_upload #tree_face").html(html);
  470. Global.Ztree.Init($("#form_upload #tree_face"), {
  471. url: Global.AccessUrl + "/api/area/children/list?ext_datatype=camera",
  472. idKey: "id",
  473. pidKey: "pid",
  474. nameKey: "title",
  475. childrenNodeIcon: "fa-video-camera",
  476. callback: {
  477. onClick: function (event, treeId, node) {
  478. var area_code = node["area_code"];
  479. if (node["id"] == "0") {
  480. QueryCameraImage("");
  481. } else {
  482. QueryCameraImage(area_code);
  483. }
  484. },
  485. onAsyncSuccess: function (event, treeId, treeNode, msg) {
  486. if (treeNode.children == null || treeNode.children.length == 0) return;
  487. var treeObj = Global.Ztree.zTreeObj;
  488. var pnode = treeObj.getNodeByTId(treeNode.tId);
  489. for (var i = 0; i < treeNode.children.length; i++) {
  490. if (treeNode.children[i].type != "camera") {
  491. var x1 = treeObj.getNodeByParam("id", treeNode.children[i].id, pnode);
  492. if (x1 == null) continue;
  493. //将非摄像头节点的图标换成默认图标
  494. var ele = $("#" + x1.tId + "_ico").removeClass("fa-video-camera").addClass("fa-home"); //
  495. if (ele.hasClass("a_docu")) ele.removeClass("a_docu").addClass("a_docu_default");
  496. }
  497. }
  498. }
  499. }
  500. });
  501. }
  502. function QueryCameraImage(area_code) {
  503. CameraImageCondition.area_code = area_code;
  504. SearchCameraImage();
  505. }
  506. function SearchCameraImage() {
  507. $("#select_area_image").html("");
  508. var recordCount = 0;
  509. layui.flow.load({
  510. elem: '#select_area_image', //指定列表容器
  511. scrollElem: '#select_area_image', //滚动条所在元素
  512. end: '<p style="color:#ccc;">---图片已载完毕---</p>',
  513. isAuto: true,
  514. done: function (page, next) { //到达临界点(默认滚动触发),触发下一页的回调
  515. CameraImageCondition.pageindex = page;
  516. $.ajax({
  517. type: "get",
  518. dataType: "json",
  519. data: CameraImageCondition,
  520. async: true,
  521. url: Global.AccessUrl + "/api/camera/device/list",
  522. success: function (result) {
  523. var lis = [];
  524. if (result.code == 0 && result.data != null && result.data.length > 0) { //数据插入
  525. if (CameraImageCondition.pageindex == 1) {
  526. recordCount = result["count"];
  527. }
  528. layui.each(result.data, function (index, item) {
  529. var htmls = [];
  530. var url = item["img"];
  531. if (url != null && url != "")
  532. url = Global.AccessUrl + url;
  533. else
  534. url = "/static/images/userhead.png";
  535. htmls.push("<div class='list_image_box' onclick='selectedCameraImage(this);'>");
  536. htmls.push("<img onerror='this.src=\"/static/images/userhead.png\"' face_path='" + item["img"] + "' faceid='" + item["faceid"] + "' src='" + url + "' />");
  537. htmls.push("</div>");
  538. lis.push(htmls.join(""));
  539. });
  540. next(lis.join(''), page < Math.ceil(recordCount / 50));
  541. var face_height = $(".main-body").height() - 170;
  542. $("#select_area_image").slimScroll({
  543. height: face_height + "px",
  544. width: "100%",
  545. start: "top",
  546. alwaysVisible: false,
  547. wheelStep: 10,
  548. size: "6px",
  549. color: "#03aee7"
  550. });
  551. } else {
  552. next(lis.join(''), page < 0);
  553. }
  554. }
  555. });
  556. }
  557. })
  558. }
  559. function selectedCameraImage(event) {
  560. if ($(event).find("div").length == 0) {
  561. eleUploadImgContent.find(".select_area .list_image_box").find("div").remove();
  562. $(event).append("<div><i class='layui-icon layui-icon-ok' style='float:left;margin:2px 0 0 2px;'></i></div>");
  563. } else {
  564. $(event).find("div").remove("div");
  565. }
  566. }
  567. </script>
  568. <!--人员库头像列表-->
  569. <script type="text/html" id="upload_person_face_temp">
  570. {{each data}}
  571. <div class="upload_person_face">
  572. <img src="{{$value.face_url}}" avtor_id="{{$value.PERSON_AVATOR_ID}}" filepath="{{$value.PERSON_AVATOR_PATH}}"
  573. person_id="{{$value.ID}}"
  574. onerror="this.src='/static/images/userhead.png';"/>
  575. <div class="upload_person_face_name">{{$value.PERSON_NAME}}</div>
  576. </div>
  577. {{/each}}
  578. </script>
  579. <!--人脸库时使用的查询条件-->
  580. <script type="text/html" id="upload_combox_code">
  581. <option value=""></option>
  582. {{each data}}
  583. <option value="{{$value.code}}">{{$value.name}}</option>
  584. {{/each}}
  585. </script>