| | |
| | | <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/poi-ooxml-3.8-20120326.jar"/> |
| | | <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/poi-ooxml-schemas-3.8-20120326.jar"/> |
| | | <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/xmlbeans-2.3.0.jar"/> |
| | | <classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/hutool-all-4.3.2.jar"/> |
| | | <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"/> |
| | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> |
| | | <attributes> |
| | |
| | | shipin.setFencename(request.getParameter("fencename")); |
| | | shipin.setShebeiid(request.getParameter("shebeiid")); |
| | | shipin.setTongdaoid(request.getParameter("tongdaoid")); |
| | | shipin.setPosx(request.getParameter("posx")); |
| | | shipin.setPosy(request.getParameter("posy")); |
| | | shipin.setPosz(request.getParameter("posz")); |
| | | shipin.setFloor(request.getParameter("floor")); |
| | | shipin.setName(request.getParameter("name")); |
| | | fenceService.shipinManagement_add(shipin); |
| | | } |
| | | |
| | |
| | | shipin.setFencename(request.getParameter("fencename")); |
| | | shipin.setShebeiid(request.getParameter("shebeiid")); |
| | | shipin.setTongdaoid(request.getParameter("tongdaoid")); |
| | | System.out.print(shipin.getId()); |
| | | System.out.print(shipin.getFencename()); |
| | | System.out.print(shipin.getShebeiid()); |
| | | System.out.print(shipin.getTongdaoid()); |
| | | shipin.setPosx(request.getParameter("posx")); |
| | | shipin.setPosy(request.getParameter("posy")); |
| | | shipin.setPosz(request.getParameter("posz")); |
| | | shipin.setFloor(request.getParameter("floor")); |
| | | shipin.setName(request.getParameter("name")); |
| | | fenceService.shipinManagement_modify(shipin); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/shipinManagement_ssearch.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String shipinManagement_ssearch(HttpServletRequest request) throws IOException { |
| | | JSONObject json = new JSONObject(); |
| | | String input = request.getParameter("input"); |
| | | System.out.print(input); |
| | | int curPage = 1; |
| | | List<Integer> pageList = new ArrayList<Integer>(); |
| | | List<tb_shipin> shipinManagementList = fenceService.searchshipinManagement(input); |
| | | pageList.add(1); |
| | | json.put("dataList", shipinManagementList); |
| | | json.put("pageList", pageList); |
| | | json.put("curPage", curPage); |
| | | System.out.print(json.toString()); |
| | | return json.toString(); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/shipinManagement_page.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String shipinManagement_page(HttpServletRequest request) { |
| | | String pageStr = request.getParameter("page"); |
| | |
| | | package com.hxzkoa.controller; |
| | | |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.sql.SQLException; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.Enumeration; |
| | | import java.util.List; |
| | | |
| | | |
| | |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import com.hxzkoa.json.tb_gps; |
| | | import com.hxzkoa.json.tb_person; |
| | | import com.hxzkoa.json.tb_realocation; |
| | | import com.hxzkoa.json.tb_system; |
| | | import com.hxzkoa.json.tb_track; |
| | | import com.hxzkoa.json.tb_tag; |
| | | import com.hxzkoa.services.GpsService; |
| | | import com.hxzkoa.services.LabelService; |
| | | import com.hxzkoa.services.SysSettingService; |
| | | import com.hxzkoa.udp.Dell_GNGGA; |
| | | import com.hxzkoa.udp.Udp_Out; |
| | |
| | | import com.hxzkoa.util.ExcelUtils; |
| | | import com.hxzkoa.util.ModifyConfig; |
| | | import com.hxzkoa.util.PageUtil; |
| | | import com.hxzkoa.util.RequestUtils; |
| | | |
| | | import net.sf.json.JSONObject; |
| | | |
| | |
| | | @Autowired |
| | | private GpsService gpsService; |
| | | @Autowired |
| | | private LabelService labelService; |
| | | @Autowired |
| | | private SysSettingService sysSettingService; |
| | | |
| | | @ResponseBody |
| | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/getstatusss.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String getstatusss(HttpServletRequest request) { |
| | | String tagid = "8888"; |
| | | System.out.print("æ§è¡äº"); |
| | | String zhuangtai = gpsService.getpersontagid(tagid); |
| | | return zhuangtai; |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalgpsLocation_search.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String historicalgpsLocation_search(HttpServletRequest request) { |
| | | String input = request.getParameter("input"); |
| | |
| | | String begin = request.getParameter("begintime"); |
| | | String end = request.getParameter("endtime"); |
| | | String date = request.getParameter("date"); |
| | | // Enumeration<String> paraNames=request.getParameterNames(); |
| | | // String thisName = null; |
| | | // String thisValue = null; |
| | | // String[] value = null; |
| | | // int i = 0; |
| | | // for(Enumeration<String> e=paraNames;e.hasMoreElements();){ |
| | | // thisName=e.nextElement()+""; //nameå |
| | | // thisValue=request.getParameter(thisName); //nameå对åºçå¼ |
| | | // value[i] = thisValue; |
| | | // i++; |
| | | // } |
| | | List<tb_gps> historicalLocationList = gpsService.getRealTimegpsLocation(tagid,begin,end,date); |
| | | String[] rowName = {"åºå·", "设å¤ç¼å·","纬度","ç»åº¦","GPSç¶æ","嫿æ°","æµ·æé«","å·®åç«ID","çµé","æ´æ°æ¶é´"}; |
| | | List<Object[]> dataList = objectToArray(historicalLocationList); |
| | |
| | | return toPage; |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/totxt.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String totxt(HttpServletRequest request,HttpServletResponse response) throws IOException { |
| | | String toPage = "forward:/hxzk/label/historicalgpsLocation.jsp"; |
| | | String date = request.getParameter("date"); |
| | | InputStream is; |
| | | OutputStream os; |
| | | String filename = date + ".txt"; |
| | | response.setHeader("Content-Disposition", "attachement;filename=" + filename); |
| | | is = new FileInputStream("C:\\" +date+ ".txt"); |
| | | os = response.getOutputStream(); |
| | | int len = 0; |
| | | byte[] buffer = new byte[1024]; |
| | | while ((len = is.read(buffer)) != -1) { |
| | | os.write(buffer, 0, len); |
| | | } |
| | | os.close(); |
| | | is.close(); |
| | | return toPage; |
| | | } |
| | | |
| | | // 对象转æ°ç» |
| | | public static List<Object[]> objectToArray(List<tb_gps> sensorManagementList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | |
| | | private String shebeiid; |
| | | private String tongdaoid; |
| | | private String addtime; |
| | | private String posx; |
| | | private String posy; |
| | | private String posz; |
| | | private String floor; |
| | | private String name; |
| | | |
| | | public int getId() { |
| | | return id; |
| | |
| | | public void setAddtime(String addtime) { |
| | | this.addtime = addtime; |
| | | } |
| | | public String getPosx() { |
| | | return posx; |
| | | } |
| | | public void setPosx(String posx) { |
| | | this.posx = posx; |
| | | } |
| | | public String getPosy() { |
| | | return posy; |
| | | } |
| | | public void setPosy(String posy) { |
| | | this.posy = posy; |
| | | } |
| | | public String getPosz() { |
| | | return posz; |
| | | } |
| | | public void setPosz(String posz) { |
| | | this.posz = posz; |
| | | } |
| | | public String getFloor() { |
| | | return floor; |
| | | } |
| | | public void setFloor(String floor) { |
| | | this.floor = floor; |
| | | } |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | shipin.setShebeiid(obj[2] == null ? "" : obj[2].toString()); |
| | | shipin.setTongdaoid(obj[3] == null ? "" : obj[3].toString()); |
| | | shipin.setAddtime(obj[4] == null ? "" : obj[4].toString()); |
| | | shipin.setPosx(obj[5] == null ? "" : obj[5].toString()); |
| | | shipin.setPosy(obj[6] == null ? "" : obj[6].toString()); |
| | | shipin.setPosz(obj[7] == null ? "" : obj[7].toString()); |
| | | shipin.setFloor(obj[8] == null ? "" : obj[8].toString()); |
| | | shipin.setName(obj[9] == null ? "" : obj[9].toString()); |
| | | tb_shipinList.add(shipin); |
| | | } |
| | | } |
| | |
| | | public int shipinManagement_add(tb_shipin shipin) { |
| | | String sql = null; |
| | | Query query = null; |
| | | sql = "INSERT INTO tb_shipin(fencename,shebeiid,tongdaoid,addtime) VALUES(:fencename,:shebeiid,:tongdaoid,now())"; |
| | | sql = "INSERT INTO tb_shipin(fencename,shebeiid,tongdaoid,addtime,posx,posy,posz,floor,name) VALUES(:fencename,:shebeiid,:tongdaoid,now(),:posx,:posy,:posz,:floor,:name)"; |
| | | query = this.em.createNativeQuery(sql); |
| | | query.setParameter("fencename", shipin.getFencename()); |
| | | query.setParameter("shebeiid", shipin.getShebeiid()); |
| | | query.setParameter("tongdaoid", shipin.getTongdaoid()); |
| | | query.setParameter("posx", shipin.getPosx()); |
| | | query.setParameter("posy", shipin.getPosy()); |
| | | query.setParameter("posz", shipin.getPosz()); |
| | | query.setParameter("floor", shipin.getFloor()); |
| | | query.setParameter("name", shipin.getName()); |
| | | int executeUpdate = query.executeUpdate(); |
| | | return executeUpdate; |
| | | } |
| | |
| | | public void shipinManagement_modify(tb_shipin shipin) { |
| | | String sql = null; |
| | | Query query = null; |
| | | sql = "UPDATE tb_shipin SET fencename=:fencename,shebeiid=:shebeiid,tongdaoid=:tongdaoid WHERE id=:id"; |
| | | sql = "UPDATE tb_shipin SET fencename=:fencename,shebeiid=:shebeiid,tongdaoid=:tongdaoid,posx=:posx,posy=:posy,posz=:posz,floor=:floor,name=:name WHERE id=:id"; |
| | | query = this.em.createNativeQuery(sql); |
| | | query.setParameter("id", shipin.getId()); |
| | | query.setParameter("fencename", shipin.getFencename()); |
| | | query.setParameter("shebeiid", shipin.getShebeiid()); |
| | | query.setParameter("tongdaoid", shipin.getTongdaoid()); |
| | | System.out.print(sql); |
| | | query.setParameter("posx", shipin.getPosx()); |
| | | query.setParameter("posy", shipin.getPosy()); |
| | | query.setParameter("posz", shipin.getPosz()); |
| | | query.setParameter("floor", shipin.getFloor()); |
| | | query.setParameter("name", shipin.getName()); |
| | | query.executeUpdate(); |
| | | } |
| | | |
| | |
| | | } |
| | | return str; |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | ArrayList<String> add = txt2String(); |
| | | System.out.print(add); |
| | | } |
| | | } |
| | |
| | | </mvc:annotation-driven> |
| | | <aop:aspectj-autoproxy/> |
| | | <!-- å°æ æ³mappingå°Controllerçpath交ç»default servlet handlerå¤ç --> |
| | | <!--<mvc:default-servlet-handler/>--> |
| | | <!-- <mvc:default-servlet-handler/> --> |
| | | <mvc:resources mapping="/static/**" location="/static/"/> |
| | | |
| | | <!-- å®ä¹JSPæä»¶çä½ç½® --> |
| | |
| | | </mvc:annotation-driven> |
| | | <aop:aspectj-autoproxy/> |
| | | <!-- å°æ æ³mappingå°Controllerçpath交ç»default servlet handlerå¤ç --> |
| | | <!--<mvc:default-servlet-handler/>--> |
| | | <!-- <mvc:default-servlet-handler/> --> |
| | | <mvc:resources mapping="/static/**" location="/static/"/> |
| | | |
| | | <!-- å®ä¹JSPæä»¶çä½ç½® --> |
| | |
| | | <filter-name>encodingFilter</filter-name> |
| | | <url-pattern>/*</url-pattern> |
| | | </filter-mapping> |
| | | |
| | | <filter> |
| | | <display-name>LoginFilter</display-name> |
| | | <filter-name>LoginFilter</filter-name> |
| | | <filter-class>com.hxzkoa.tools.LoginFilter</filter-class> |
| | | </filter> |
| | | |
| | | <filter> |
| | | <filter-name>openEntityManagerInViewFilter</filter-name> |
| | | <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> |
| | | </filter> |
| | | <filter> |
| | | <description> |
| | | </description> |
| | | <display-name>LoginFilter</display-name> |
| | | <filter-name>LoginFilter</filter-name> |
| | | <filter-class>com.hxzkoa.tools.LoginFilter</filter-class> |
| | | </filter> |
| | | |
| | | <filter-mapping> |
| | | <filter-name>openEntityManagerInViewFilter</filter-name> |
| | |
| | | <button style="float:left;margin-left:10px;" type="button" |
| | | class="btn btn-secondary deleteAll" |
| | | id="deleteAllButton">å
¨é¨å é¤</button> |
| | | <div style="width:120px;float:left;margin-left:10px;"> |
| | | <div style="width:80px;float:left;margin-left:10px;"> |
| | | <input type="text" id="begin" |
| | | class="form-control form-control-sm" |
| | | style="font-size:12px;" placeholder="请è¾å
¥å¼å§æ¶é´"/> |
| | | class="form-control form-control-sm" style="font-size:12px;" |
| | | placeholder="å¼å§æ¶é´" /> |
| | | </div> |
| | | <div style="width:120px;float:left;margin-left:10px;"> |
| | | <div style="width:80px;float:left;margin-left:10px;"> |
| | | <input type="text" id="end" class="form-control form-control-sm" |
| | | style="font-size:12px;" placeholder="请è¾å
¥ç»ææ¶é´"/> |
| | | style="font-size:12px;" placeholder="ç»ææ¶é´" /> |
| | | </div> |
| | | <div style="width:100px;float:left;margin-left:10px;"> |
| | | <input type="text" id="tagida" class="form-control form-control-sm" |
| | | style="font-size:12px;" placeholder="请è¾å
¥æ ç¾id"/> |
| | | <div style="width:60px;float:left;margin-left:10px;"> |
| | | <input type="text" id="tagida" |
| | | class="form-control form-control-sm" style="font-size:12px;" |
| | | placeholder="æ ç¾id" /> |
| | | </div> |
| | | <button style="float:left;margin-left:10px;" type="button" |
| | | class="btn btn-secondary toAllExcel">导åºè¡¨æ ¼</button> |
| | | class="btn btn-secondary toAllExcel">导åºExcel</button> |
| | | <button style="float:left;margin-left:10px;" type="button" |
| | | class="btn btn-secondary toAlltxt">导åºtxt</button> |
| | | |
| | | <label for="perPage" |
| | | class="col-sm-2 col-form-label col-form-label-sm" |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | //æ§è¡ä¸ä¸ªlaydateå®ä¾ |
| | | laydate.render({ |
| | | elem: '#end' //æå®å
ç´ ' |
| | |
| | | document.getElementById("begin").value = ""; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | </script> |
| | |
| | | } |
| | | }) |
| | | }); |
| | | $(".toAlltxt").click(function () { |
| | | var dateaa = $("#dateList").val(); |
| | | window.location.href = "/hxzkoa/totxt.do?date=" + dateaa; |
| | | // swal({ |
| | | // title: "Exported!", |
| | | // text: "å¯¼åºæåï¼", |
| | | // type: "success", |
| | | // showCancelButton: false, |
| | | // showConfirmButton: false, |
| | | // buttons: false |
| | | // }) |
| | | // setTimeout("window.location.reload()", 1000); |
| | | /* $.ajax({ |
| | | async: false, |
| | | type: 'POST', |
| | | url: "/hxzkoa/totxt.do", |
| | | dataType: 'json', |
| | | success: function(data){ |
| | | console.log(data) |
| | | } |
| | | }) */ |
| | | }) |
| | | // 导åºè¡¨æ ¼ |
| | | $(".toAllExcel").click(function () { |
| | | var tag = document.getElementById("tagida").value; |
| | | var begin = document.getElementById("begin").value; |
| | | var end = document.getElementById("end").value; |
| | | var datea = $("#dateList").val(); |
| | | window.location.href = "/hxzkoa/historicalgpsLocation_export.do?tagid="+tag+"&begintime="+begin+"&endtime="+end+"&date="+datea; |
| | | window.location.href = "/hxzkoa/historicalgpsLocation_export.do?tagid=" + tag + "&begintime=" + begin + "&endtime=" + end + "&date=" + datea; |
| | | // $.ajax({ |
| | | // async: false, |
| | | // type: "POST", |
| | |
| | | <form action="form_action.asp" method="get"> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">å´æ åç§°:</label> |
| | | style="font-size:12px;">åºååç§°:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="hidden" id="fencename" /> |
| | | <select class="form-control form-control-lg" id="bumen_m" |
| | |
| | | <input class="form-control" type="text" id="tongdaoid" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Xåæ :</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="posx" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Yåæ :</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="posy" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Zåæ :</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="posz" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">楼å±:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="floor" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">åç§°:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="name" /> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer" style="margin-top:10%; margin-left:10%;float:left;"> |
| | | <button type="button" class="btn btn-primary add">ä¿å</button> |
| | | <a> |
| | |
| | | <form action="form_action.asp" method="get"> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">å´æ åç§°:</label> |
| | | style="font-size:12px;">åºååç§°:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="hidden" id="fencenameg" /> |
| | | <select class="form-control form-control-lg" id="bumen_mg" |
| | |
| | | <input class="form-control" type="text" id="tongdaoidg" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Xåæ :</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="posxg" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Yåæ :</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="posyg" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">Zåæ :</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="poszg" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">楼å±:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="floorg" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row mb-4"> |
| | | <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm" |
| | | style="font-size:12px;">åç§°:</label> |
| | | <div class="col-sm-10"> |
| | | <input class="form-control" type="text" id="nameg" /> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer" style="margin-top:10%; margin-left:10%;float:left;"> |
| | | <button type="button" class="btn btn-primary modify">ä¿å</button> |
| | | <a> |
| | |
| | | <tr align="center"> |
| | | <th class="noExl">éæ©</th> |
| | | <th>ID</th> |
| | | <th>å´æ åç§°</th> |
| | | <th>åºååç§°</th> |
| | | <th>设å¤ç¼å·</th> |
| | | <th>ééç¼å·</th> |
| | | <th>Xåæ </th> |
| | | <th>Yåæ </th> |
| | | <th>Zåæ </th> |
| | | <th>楼å±</th> |
| | | <th>åç§°</th> |
| | | <th>æ·»å æ¶é´</th> |
| | | </tr> |
| | | </thead> |
| | |
| | | <td>${list.fencename}</td> |
| | | <td>${list.shebeiid}</td> |
| | | <td>${list.tongdaoid}</td> |
| | | <td>${list.posx}</td> |
| | | <td>${list.posy}</td> |
| | | <td>${list.posz}</td> |
| | | <td>${list.floor}</td> |
| | | <td>${list.name}</td> |
| | | <td>${list.addtime}</td> |
| | | </tr> |
| | | </c:forEach> |
| | |
| | | var fencename = $('#bumen_m option:selected').val(); |
| | | var shebeiid = $("#shebeiid").val(); |
| | | var tongdaoid = $("#tongdaoid").val(); |
| | | var posx = $("#posx").val(); |
| | | var posy = $("#posy").val(); |
| | | var posz = $("#posz").val(); |
| | | var floor = $("#floor").val(); |
| | | var name = $("#name").val(); |
| | | var reg2 = new RegExp("^[0-9][0-9]*$"); |
| | | var sid = reg2.test(shebeiid); |
| | | var tid = reg2.test(tongdaoid); |
| | | if (fencename == "" || shebeiid == "" || tongdaoid == "") { |
| | | if (fencename == "" || shebeiid == "" || tongdaoid == "" || posx == "" || posy == "" || posz == "" || floor == "" || name == "") { |
| | | swal('è¾å
¥æè¯¯', 'è¾å
¥ä¸è½ä¸ºç©ºï¼', 'error'); return; |
| | | } |
| | | if ((!sid && shebeiid != "") || (!tid && tongdaoid != "")) { |
| | |
| | | data: { |
| | | fencename: fencename, |
| | | shebeiid: shebeiid, |
| | | tongdaoid: tongdaoid |
| | | tongdaoid: tongdaoid, |
| | | posx: posx, |
| | | posy: posy, |
| | | posz: posz, |
| | | floor: floor, |
| | | name: name, |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | |
| | | $("#bumen_mg").val(tr.children[2].innerHTML); |
| | | $("#shebeiidg").val(tr.children[3].innerHTML); |
| | | $("#tongdaoidg").val(tr.children[4].innerHTML); |
| | | $("#posxg").val(tr.children[5].innerHTML); |
| | | $("#posyg").val(tr.children[6].innerHTML); |
| | | $("#poszg").val(tr.children[7].innerHTML); |
| | | $("#floorg").val(tr.children[8].innerHTML); |
| | | $("#nameg").val(tr.children[9].innerHTML); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | $("#bumen_mg").val(tr.children[2].innerHTML); |
| | | $("#shebeiidg").val(tr.children[3].innerHTML); |
| | | $("#tongdaoidg").val(tr.children[4].innerHTML); |
| | | $("#posxg").val(tr.children[5].innerHTML); |
| | | $("#posyg").val(tr.children[6].innerHTML); |
| | | $("#poszg").val(tr.children[7].innerHTML); |
| | | $("#floorg").val(tr.children[8].innerHTML); |
| | | $("#nameg").val(tr.children[9].innerHTML); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | var fencename = $('#bumen_mg option:selected').val(); |
| | | var shebeiid = $("#shebeiidg").val(); |
| | | var tongdaoid = $("#tongdaoidg").val(); |
| | | var posx = $("#posxg").val(); |
| | | var posy = $("#posyg").val(); |
| | | var posz = $("#poszg").val(); |
| | | var floor = $("#floorg").val(); |
| | | var name = $("#nameg").val(); |
| | | for (var k in obj) { |
| | | if (obj[k].checked) { |
| | | checkVal.push(obj[k].id); |
| | |
| | | fencename: fencename, |
| | | shebeiid: shebeiid, |
| | | tongdaoid: tongdaoid, |
| | | posx: posx, |
| | | posy: posy, |
| | | posz: posz, |
| | | floor: floor, |
| | | name: name, |
| | | }, |
| | | dataType: "json" |
| | | }); |
| | |
| | | $.ajax({ |
| | | async: false, //忥ç |
| | | type: "POST", |
| | | url: "/hxzkoa/shipinManagement_search.do", |
| | | url: "/hxzkoa/shipinManagement_ssearch.do", |
| | | data: { |
| | | input: input |
| | | }, |
| | |
| | | } |
| | | }); |
| | | }); |
| | | // $(".namess").click(function () { |
| | | // var input = $("#names").val(); |
| | | // if (input == "") { |
| | | // swal('è¾å
¥æè¯¯', 'è¾å
¥ä¸è½ä¸ºç©ºï¼', 'error'); return; |
| | | // } |
| | | // if (isNaN(input)) { |
| | | // //swal('è¾å
¥æè¯¯','请è¾å
¥æ°åï¼','error');return; |
| | | // } |
| | | // $.ajax({ |
| | | // async: false, //忥ç |
| | | // type: "POST", |
| | | // url: "/hxzkoa/shipinManagement_cesearch.do", |
| | | // data: { |
| | | // input: input |
| | | // }, |
| | | // dataType: "json", |
| | | // success: function (data) { |
| | | // //æç´¢å®æåå·æ°é¡µé¢,åªæ¾ç¤ºæ¥å°çé¨å |
| | | // var str = ""; |
| | | // for (var k in data.dataList) { |
| | | // str += "<tr align=\"center\" class=\"d\"><td class=\"noExl custom-control custom-checkbox\"><input type=\"checkbox\" class=\"custom-control-input\" id="+ data.dataList[k].id +" name=\"selectIds\"><label class=\"custom-control-label\" for="+ data.dataList[k].id +" style=\"position:raletive;left:20px;\"></label></td><td>"+data.dataList[k].id+"</td><td>"+data.dataList[k].fencename+"</td><td>"+data.dataList[k].shebeiid+"</td><td>"+data.dataList[k].tongdaoid+"</td><td>"+data.dataList[k].addtime+"</td></tr>" |
| | | // } |
| | | // $("#nr").html(str); |
| | | // if (!data.pageList.length == 0) { |
| | | // str = ""; |
| | | // str += "<li><a href=\"javascript:page('pre');\">ä¸ä¸é¡µ</a></li>"; |
| | | // for (var k = 0; k < data.pageList.length; k++) { |
| | | // str += "<li id=\"page_" + data.pageList[k] + "\"><a href=\"javascript:page('" + data.pageList[k] + "');\">" + data.pageList[k] + "</a></li>"; |
| | | // } |
| | | // str += "<li><a href=\"javascript:page('next');\">ä¸ä¸é¡µ</a></li>"; |
| | | // $("#pageListId").html(str); |
| | | // } |
| | | // $("#pageListId>li.active").removeClass("active"); |
| | | // $("#page_" + data.curPage).addClass("active"); |
| | | // $("#curPage").val(data.curPage); |
| | | |
| | | // }, |
| | | // error: function () { |
| | | // //console.log('error'); |
| | | // } |
| | | // }); |
| | | // }); |
| | | // 导åºè¡¨æ ¼ |
| | | // $(".toAllExcel").click(function () { |
| | | // window.location.href = '/hxzkoa/anchorManagement_export.do'; |
| | |
| | | var isDelete = false; |
| | | var shipinka = true; |
| | | var tuodong = false; |
| | | var colorbbb = "rgba(255,0,0,0.3)"; |
| | | var sosType = []; |
| | | var sousuoType = true; |
| | | for (var i = 0; i < 500; i++) { |
| | |
| | | _this.fenceMarkCount.push(tmp_count); |
| | | }; |
| | | |
| | | // if (shipinka) { |
| | | //ç»æ ç¾ååºç« |
| | | for (var key in images) { |
| | | if (key == "icon" && _this.playMark) { |
| | | for (var i = 0; i < _this.playMark.length; i++) { |
| | | //_this.trackNow = []; |
| | | var tagzhuangtai = _this.playMark[i][3]; //å¨çº¿ç¶æ |
| | | var shipinzhuangtai = _this.playMark[i][9]; |
| | | if (shipinka) { |
| | | if (shipinzhuangtai == "1") { |
| | | $.ajax({ |
| | | async: false, |
| | | url: "/hxzkoa/shipinzhuangtai.do", |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | | tagid: _this.playMark[i][0], |
| | | }, |
| | | success: function (data) { |
| | | serial = data[0].shebeiid; |
| | | code = data[0].tongdaoid; |
| | | } |
| | | }); |
| | | document.getElementById("popup").style.display = "flex"; |
| | | var tanchuang = document.getElementById("tanchuang") |
| | | var rr = document.createElement("iframe") |
| | | rr.src = "http://39.106.210.13:10000/play.html?serial=" + serial + "&code=" + code + "&aspect=fullscreen"; |
| | | rr.width = "640"; |
| | | rr.height = "360"; |
| | | rr.allowFullscreen = "true"; |
| | | var object = tanchuang.appendChild(rr); |
| | | shipinka = false; |
| | | } |
| | | } |
| | | //var playMarkInKaoQin = true; |
| | | if (((_this.offView == '1' && tagzhuangtai == '1') || (_this.offView == '0')) && ((_this.diskaoqin == "1" && _this.playMarkInKaoQin[i]) || (_this.diskaoqin == "0"))) { |
| | | //æ¯å¦å¼å¯ç¦»çº¿æ¶å¤±ï¼å¹¶å¤æç¶æï¼å¨çº¿1/离线0ï¼ï¼å½å¼å¯ç¦»çº¿æ¶å¤±æ¶ï¼ä»
æ¾ç¤ºå¨çº¿æ ç¾ï¼ï¼å½æªå¼å¯ç¦»çº¿æ¶å¤±æ¶ï¼å
¨é¨æ¾ç¤ºï¼ |
| | | //æ¯å¦å¼å¯åºèå¤åºåæ¶å¤±ï¼å¹¶å¤ææ¯å¦å¨èå¤åºåå
ï¼å½å¼å¯åºèå¤åºåæ¶å¤±æ¶ï¼éè¦å¨èå¤åºåå
ï¼ï¼å½æªå¼å¯æ¶ï¼å
¨é¨æ¾ç¤ºï¼ |
| | | |
| | | //ç»æ ç¾ååºç« |
| | | for (var key in images) { |
| | | if (key == "icon" && _this.playMark) { |
| | | for (var i = 0; i < _this.playMark.length; i++) { |
| | | //_this.trackNow = []; |
| | | var tagzhuangtai = _this.playMark[i][3]; //å¨çº¿ç¶æ |
| | | var shipinzhuangtai = _this.playMark[i][9]; |
| | | if (shipinka) { |
| | | if (shipinzhuangtai == "1") { |
| | | $.ajax({ |
| | | async: false, |
| | | url: "/hxzkoa/shipinzhuangtai.do", |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | | tagid: _this.playMark[i][0], |
| | | }, |
| | | success: function(data){ |
| | | // console.log(data[0].shebeiid) |
| | | serial = data[0].shebeiid; |
| | | // console.log(data[0].tongdaoid) |
| | | code = data[0].tongdaoid; |
| | | //读åå½åå®é
åæ |
| | | var cor_x = new Number(_this.playMark[i][4]); // æ¤å¤_this.playMarkæ¯æ°æ®åºéåå°çå½åç¹åæ ,4æ¯posx,5æ¯posy |
| | | var cor_y = new Number(_this.playMark[i][5]); |
| | | |
| | | //转为å¾ä¸åæ |
| | | var x_cor_now = new Number(_this.imgXList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.x_ratio * (cor_x - _this.x_x0)); |
| | | var y_cor_now = new Number(_this.imgYList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.y_ratio * (cor_y - _this.y_y0)); |
| | | |
| | | //æ¯å¦æè½¨è¿¹æå°¾ |
| | | if (_this.real_trak_time != 0) { |
| | | var trackNow; |
| | | var pm = _this.playMark; |
| | | |
| | | function ftn(current_floor, pm, tn, rtk, ctt, rtc, igxm, igym, igslm, rnlm, xr, yr, xx0, yy0) { |
| | | //trackNow = getTracknow(current_floor, pm[0], rtk) |
| | | if (tn.length == 0) { |
| | | trackNow = []; |
| | | } else if (pm[0] in tn) { |
| | | trackNow = tn[pm[0]]; |
| | | } else { |
| | | trackNow = []; |
| | | }; |
| | | var can = ctt; |
| | | can.beginPath(); |
| | | can.strokeStyle = rtc; |
| | | can.fillStyle = rtc; |
| | | for (var i = 0; i < trackNow.length; i++) { |
| | | var cor_x = new Number(trackNow[i][0]); |
| | | var cor_y = new Number(trackNow[i][1]); |
| | | var x_cor = new Number(igxm + igslm * rnlm * xr * (cor_x - xx0)); |
| | | var y_cor = new Number(igym + igslm * rnlm * yr * (cor_y - yy0)); |
| | | |
| | | // var cor_x2 = new Number(trackNow[i+1][0]); |
| | | // var cor_y2 = new Number(trackNow[i+1][1]); |
| | | // var x_cor2 = new Number(igxm + igslm * rnlm * xr * (cor_x2 - xx0)); |
| | | // var y_cor2 = new Number(igym + igslm * rnlm * yr * (cor_y2 - yy0)); |
| | | |
| | | // can.moveTo(x_cor, y_cor); |
| | | // can.lineTo(x_cor2, y_cor2); |
| | | // can.stroke(); |
| | | // can.fill(); |
| | | can.moveTo(x_cor, y_cor); |
| | | can.arc(x_cor, y_cor, 1, 0, Math.PI * 2, true); |
| | | can.fill(); |
| | | }; |
| | | can.closePath(); |
| | | can.stroke(); |
| | | //_this.trackNow.push([trackNow]); |
| | | } |
| | | }); |
| | | document.getElementById("popup").style.display = "flex"; |
| | | // serial = "34020000001320000003"; |
| | | // code = "34020000001310000002"; |
| | | var tanchuang = document.getElementById("tanchuang") |
| | | var rr = document.createElement("iframe") |
| | | rr.src = "http://192.168.1.100:10000/play.html?serial=" + serial + "&code=" + code + "&aspect=fullscreen"; |
| | | rr.width = "640"; |
| | | rr.height = "360"; |
| | | rr.allowFullscreen = "true"; |
| | | var object = tanchuang.appendChild(rr); |
| | | shipinka = false; |
| | | } |
| | | } |
| | | //var playMarkInKaoQin = true; |
| | | if (((_this.offView == '1' && tagzhuangtai == '1') || (_this.offView == '0')) && ((_this.diskaoqin == "1" && _this.playMarkInKaoQin[i]) || (_this.diskaoqin == "0"))) { |
| | | //æ¯å¦å¼å¯ç¦»çº¿æ¶å¤±ï¼å¹¶å¤æç¶æï¼å¨çº¿1/离线0ï¼ï¼å½å¼å¯ç¦»çº¿æ¶å¤±æ¶ï¼ä»
æ¾ç¤ºå¨çº¿æ ç¾ï¼ï¼å½æªå¼å¯ç¦»çº¿æ¶å¤±æ¶ï¼å
¨é¨æ¾ç¤ºï¼ |
| | | //æ¯å¦å¼å¯åºèå¤åºåæ¶å¤±ï¼å¹¶å¤ææ¯å¦å¨èå¤åºåå
ï¼å½å¼å¯åºèå¤åºåæ¶å¤±æ¶ï¼éè¦å¨èå¤åºåå
ï¼ï¼å½æªå¼å¯æ¶ï¼å
¨é¨æ¾ç¤ºï¼ |
| | | |
| | | //读åå½åå®é
åæ |
| | | var cor_x = new Number(_this.playMark[i][4]); // æ¤å¤_this.playMarkæ¯æ°æ®åºéåå°çå½åç¹åæ ,4æ¯posx,5æ¯posy |
| | | var cor_y = new Number(_this.playMark[i][5]); |
| | | |
| | | //转为å¾ä¸åæ |
| | | var x_cor_now = new Number(_this.imgXList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.x_ratio * (cor_x - _this.x_x0)); |
| | | var y_cor_now = new Number(_this.imgYList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.y_ratio * (cor_y - _this.y_y0)); |
| | | |
| | | //æ¯å¦æè½¨è¿¹æå°¾ |
| | | if (_this.real_trak_time != 0) { |
| | | var trackNow; |
| | | var pm = _this.playMark; |
| | | |
| | | function ftn(current_floor, pm, tn, rtk, ctt, rtc, igxm, igym, igslm, rnlm, xr, yr, xx0, yy0) { |
| | | //trackNow = getTracknow(current_floor, pm[0], rtk) |
| | | if (tn.length == 0) { |
| | | trackNow = []; |
| | | } else if (pm[0] in tn) { |
| | | trackNow = tn[pm[0]]; |
| | | } else { |
| | | trackNow = []; |
| | | }; |
| | | var can = ctt; |
| | | can.beginPath(); |
| | | can.strokeStyle = rtc; |
| | | can.fillStyle = rtc; |
| | | for (var i = 0; i < trackNow.length; i++) { |
| | | var cor_x = new Number(trackNow[i][0]); |
| | | var cor_y = new Number(trackNow[i][1]); |
| | | var x_cor = new Number(igxm + igslm * rnlm * xr * (cor_x - xx0)); |
| | | var y_cor = new Number(igym + igslm * rnlm * yr * (cor_y - yy0)); |
| | | |
| | | // var cor_x2 = new Number(trackNow[i+1][0]); |
| | | // var cor_y2 = new Number(trackNow[i+1][1]); |
| | | // var x_cor2 = new Number(igxm + igslm * rnlm * xr * (cor_x2 - xx0)); |
| | | // var y_cor2 = new Number(igym + igslm * rnlm * yr * (cor_y2 - yy0)); |
| | | |
| | | // can.moveTo(x_cor, y_cor); |
| | | // can.lineTo(x_cor2, y_cor2); |
| | | // can.stroke(); |
| | | // can.fill(); |
| | | can.moveTo(x_cor, y_cor); |
| | | can.arc(x_cor, y_cor, 1, 0, Math.PI * 2, true); |
| | | can.fill(); |
| | | }; |
| | | can.closePath(); |
| | | can.stroke(); |
| | | //_this.trackNow.push([trackNow]); |
| | | } |
| | | setTimeout(ftn(current_floor, _this.playMark[i], _this.trackNow, _this.real_trak_time, _this.context, _this.real_trak_color, _this.imgXList['map'], _this.imgYList['map'], _this.imgScaleList['map'], _this.rateNumList['map'], _this.x_ratio, _this.y_ratio, _this.x_x0, _this.y_y0), 5); |
| | | //var trackNow = getTracknow( _this.playMark[i][0], _this.real_trak_time);//è·åæå®æ¶é´æ®µå
该tagidçæ°æ®è¿è¡ç»å¶ |
| | | } else { |
| | | _this.trackNow = []; |
| | | } |
| | | var isSos = _this.playMark[i][7]; |
| | | if (_this.playMark[i][8] == "1") { |
| | | if (sousuoType) { |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | setTimeout(ftn(current_floor, _this.playMark[i], _this.trackNow, _this.real_trak_time, _this.context, _this.real_trak_color, _this.imgXList['map'], _this.imgYList['map'], _this.imgScaleList['map'], _this.rateNumList['map'], _this.x_ratio, _this.y_ratio, _this.x_x0, _this.y_y0), 5); |
| | | //var trackNow = getTracknow( _this.playMark[i][0], _this.real_trak_time);//è·åæå®æ¶é´æ®µå
该tagidçæ°æ®è¿è¡ç»å¶ |
| | | } else { |
| | | can.drawImage(sousuo0, 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | _this.trackNow = []; |
| | | } |
| | | sousuoType = !sousuoType; |
| | | } else { |
| | | if (isSos) { |
| | | if (sosType[i]) { |
| | | can.drawImage(sos, 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2 + 3, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]) + 2, images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | var isSos = _this.playMark[i][7]; |
| | | if (_this.playMark[i][8] == "1") { |
| | | if (sousuoType) { |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | } else { |
| | | can.drawImage(sos1, 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2 + 3, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]) + 2, images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | can.drawImage(sousuo0, 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | } |
| | | sosType[i] = !sosType[i]; |
| | | sousuoType = !sousuoType; |
| | | } else { |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | if (isSos) { |
| | | if (sosType[i]) { |
| | | can.drawImage(sos, 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2 + 3, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]) + 2, images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | } else { |
| | | can.drawImage(sos1, 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2 + 3, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]) + 2, images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | } |
| | | sosType[i] = !sosType[i]; |
| | | } else { |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //ç»å¨ç¸åºä½ç½®ä¸ |
| | | // can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | //ç»å¨ç¸åºä½ç½®ä¸ |
| | | // can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor_now - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor_now - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key], images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]); |
| | | |
| | | if (_this.tagZb == '1') { //æ¯å¦æ¾ç¤ºæ ç¾åæ |
| | | can.fillStyle = 'red'; |
| | | //var f = 8*( _this.imgScaleList['map']); |
| | | //can.font=f+"px Arial"; |
| | | if (_this.tagZb == '1') { //æ¯å¦æ¾ç¤ºæ ç¾åæ |
| | | can.fillStyle = 'red'; |
| | | //var f = 8*( _this.imgScaleList['map']); |
| | | can.font = "11px Arial"; |
| | | |
| | | tagzuobiao = _this.playMark[i][4] + ',' + _this.playMark[i][5]; |
| | | can.fillText(tagzuobiao, x_cor_now - 20, y_cor_now + 10); |
| | | tagzuobiao = _this.playMark[i][4] + ',' + _this.playMark[i][5]; |
| | | can.fillText(tagzuobiao, x_cor_now - 20, y_cor_now + 10); |
| | | }; |
| | | if (_this.viewName == '1') { //æ¯å¦æ¾ç¤ºäººååç§° |
| | | can.fillStyle = 'white'; |
| | | can.font = '13px sans-serif'; |
| | | if (_this.viewTagid == '1') { //æ¯å¦æ¾ç¤ºæ ç¾id |
| | | fillRoundRect(can, x_cor_now - 40, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 18, images[key].naturalHeight * 2, 20, 4, '#32CD32'); |
| | | can.fillStyle = 'white'; |
| | | can.fillText(_this.playMark[i][1], x_cor_now - 38, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | can.fillText(_this.playMark[i][0], x_cor_now + 5, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | } else { |
| | | fillRoundRect(can, x_cor_now - 20, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 18, images[key].naturalHeight * 1.1, 20, 4, '#32CD32'); |
| | | can.fillStyle = 'white'; |
| | | can.fillText(_this.playMark[i][1], x_cor_now - 19, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | } |
| | | } else { |
| | | can.font = '13px sans-serif'; |
| | | can.fillStyle = 'white'; |
| | | if (_this.viewTagid == '1') { |
| | | fillRoundRect(can, x_cor_now - 20, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 18, images[key].naturalHeight * 1.1, 20, 4, '#32CD32'); |
| | | can.fillStyle = 'white'; |
| | | can.fillText(_this.playMark[i][0], x_cor_now - 14, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | } |
| | | } |
| | | |
| | | if (_this.viewPower == '1') { //æ¯å¦æ¾ç¤ºçµé |
| | | can.font = '10px sans-serif'; |
| | | can.fillStyle = 'red'; |
| | | can.fillText("çµé:" + _this.playMark[i][2], x_cor_now - 20, y_cor_now + 20); |
| | | }; |
| | | }; |
| | | if (_this.viewName == '1') { //æ¯å¦æ¾ç¤ºäººååç§° |
| | | can.fillStyle = 'white'; |
| | | can.font = '13px sans-serif'; |
| | | if (_this.viewTagid == '1') { //æ¯å¦æ¾ç¤ºæ ç¾id |
| | | fillRoundRect(can, x_cor_now - 40, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 18, images[key].naturalHeight * 2, 20, 4, '#32CD32'); |
| | | can.fillStyle = 'white'; |
| | | can.fillText(_this.playMark[i][1], x_cor_now - 38, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | can.fillText(_this.playMark[i][0], x_cor_now + 5, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | } else { |
| | | fillRoundRect(can, x_cor_now - 20, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 18, images[key].naturalHeight * 1.1, 20, 4, '#32CD32'); |
| | | can.fillStyle = 'white'; |
| | | can.fillText(_this.playMark[i][1], x_cor_now - 19, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | } |
| | | } else { |
| | | can.font = '13px sans-serif'; |
| | | can.fillStyle = 'white'; |
| | | if (_this.viewTagid == '1') { |
| | | fillRoundRect(can, x_cor_now - 20, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 18, images[key].naturalHeight * 1.1, 20, 4, '#32CD32'); |
| | | can.fillStyle = 'white'; |
| | | can.fillText(_this.playMark[i][0], x_cor_now - 14, y_cor_now - images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] - 3); |
| | | } |
| | | } |
| | | |
| | | if (_this.viewPower == '1') { //æ¯å¦æ¾ç¤ºçµé |
| | | can.font = '10px sans-serif'; |
| | | can.fillStyle = 'red'; |
| | | can.fillText("çµé:" + _this.playMark[i][2], x_cor_now - 20, y_cor_now + 20); |
| | | } |
| | | } else if (key == 'anchor_online') { |
| | | can.font = '10px sans-serif'; |
| | | if (_this.anckicon == '1') { //æ¯å¦æ¾ç¤ºåºç«å¾æ |
| | | //_this.anchorList = [anchorid, posx,posy,posz,layer,greatetime] |
| | | for (var i = 0; i < _this.onlineAnchorList.length; i++) { |
| | | var cor_x = new Number(_this.onlineAnchorList[i][1]); |
| | | var cor_y = new Number(_this.onlineAnchorList[i][2]); |
| | | var x_cor = new Number(_this.imgXList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.x_ratio * (cor_x - _this.x_x0)); |
| | | var y_cor = new Number(_this.imgYList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.y_ratio * (cor_y - _this.y_y0)); |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth, images[key].naturalHeight); |
| | | if (_this.viewAnckzb == '1') { //æ¯å¦æ¾ç¤ºåºç«åæ |
| | | can.fillStyle = 'red' |
| | | var anchorzuobiao = _this.onlineAnchorList[i][1] + ',' + _this.onlineAnchorList[i][2] + ',' + _this.onlineAnchorList[i][3]; |
| | | can.fillText(anchorzuobiao, x_cor - 15, y_cor + 30); |
| | | }; |
| | | if (_this.viewAnckid == '1') { //æ¯å¦æ¾ç¤ºåºç«id |
| | | can.fillStyle = 'red'; |
| | | var tigidd = _this.onlineAnchorList[i][0]; |
| | | can.fillText(tigidd, x_cor - 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] + 10) / 2); |
| | | }; |
| | | }; |
| | | }; |
| | | } else if (key == 'anchor_offline') { |
| | | can.font = '10px sans-serif'; |
| | | if (_this.anckicon == '1') { //æ¯å¦æ¾ç¤ºåºç«å¾æ |
| | | //_this.anchorList = [anchorid, posx,posy,posz,layer,greatetime] |
| | | for (var i = 0; i < _this.offlineAnchorList.length; i++) { |
| | | var cor_x = new Number(_this.offlineAnchorList[i][1]); |
| | | var cor_y = new Number(_this.offlineAnchorList[i][2]); |
| | | var x_cor = new Number(_this.imgXList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.x_ratio * (cor_x - _this.x_x0)); |
| | | var y_cor = new Number(_this.imgYList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.y_ratio * (cor_y - _this.y_y0)); |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth, images[key].naturalHeight); |
| | | if (_this.viewAnckzb == '1') { //æ¯å¦æ¾ç¤ºåºç«åæ |
| | | can.fillStyle = 'red' |
| | | var anchorzuobiao = _this.offlineAnchorList[i][1] + ',' + _this.offlineAnchorList[i][2] + ',' + _this.offlineAnchorList[i][3]; |
| | | can.fillText(anchorzuobiao, x_cor - 15, y_cor + 30); |
| | | }; |
| | | if (_this.viewAnckid == '1') { //æ¯å¦æ¾ç¤ºåºç«id |
| | | can.fillStyle = 'red'; |
| | | can.fillText(_this.offlineAnchorList[i][0], x_cor - 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] + 10) / 2); |
| | | }; |
| | | }; |
| | | }; |
| | | } |
| | | } else if (key == 'anchor_online') { |
| | | can.font = '10px sans-serif'; |
| | | if (_this.anckicon == '1') { //æ¯å¦æ¾ç¤ºåºç«å¾æ |
| | | //_this.anchorList = [anchorid, posx,posy,posz,layer,greatetime] |
| | | for (var i = 0; i < _this.onlineAnchorList.length; i++) { |
| | | var cor_x = new Number(_this.onlineAnchorList[i][1]); |
| | | var cor_y = new Number(_this.onlineAnchorList[i][2]); |
| | | var x_cor = new Number(_this.imgXList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.x_ratio * (cor_x - _this.x_x0)); |
| | | var y_cor = new Number(_this.imgYList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.y_ratio * (cor_y - _this.y_y0)); |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth, images[key].naturalHeight); |
| | | if (_this.viewAnckzb == '1') { //æ¯å¦æ¾ç¤ºåºç«åæ |
| | | can.fillStyle = 'red' |
| | | var anchorzuobiao = _this.onlineAnchorList[i][1] + ',' + _this.onlineAnchorList[i][2] + ',' + _this.onlineAnchorList[i][3]; |
| | | can.fillText(anchorzuobiao, x_cor - 15, y_cor + 30); |
| | | }; |
| | | if (_this.viewAnckid == '1') { //æ¯å¦æ¾ç¤ºåºç«id |
| | | can.fillStyle = 'red'; |
| | | var tigidd = _this.onlineAnchorList[i][0]; |
| | | can.fillText(tigidd, x_cor - 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] + 10) / 2); |
| | | }; |
| | | }; |
| | | }; |
| | | } else if (key == 'anchor_offline') { |
| | | can.font = '10px sans-serif'; |
| | | if (_this.anckicon == '1') { //æ¯å¦æ¾ç¤ºåºç«å¾æ |
| | | //_this.anchorList = [anchorid, posx,posy,posz,layer,greatetime] |
| | | for (var i = 0; i < _this.offlineAnchorList.length; i++) { |
| | | var cor_x = new Number(_this.offlineAnchorList[i][1]); |
| | | var cor_y = new Number(_this.offlineAnchorList[i][2]); |
| | | var x_cor = new Number(_this.imgXList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.x_ratio * (cor_x - _this.x_x0)); |
| | | var y_cor = new Number(_this.imgYList['map'] + _this.imgScaleList['map'] * _this.rateNumList['map'] * _this.y_ratio * (cor_y - _this.y_y0)); |
| | | can.drawImage(images[key], 0, 0, images[key].naturalWidth, images[key].naturalHeight, x_cor - (images[key].naturalWidth * _this.imgScaleList[key] * _this.rateNumList[key]) / 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key]), images[key].naturalWidth, images[key].naturalHeight); |
| | | if (_this.viewAnckzb == '1') { //æ¯å¦æ¾ç¤ºåºç«åæ |
| | | can.fillStyle = 'red' |
| | | var anchorzuobiao = _this.offlineAnchorList[i][1] + ',' + _this.offlineAnchorList[i][2] + ',' + _this.offlineAnchorList[i][3]; |
| | | can.fillText(anchorzuobiao, x_cor - 15, y_cor + 30); |
| | | }; |
| | | if (_this.viewAnckid == '1') { //æ¯å¦æ¾ç¤ºåºç«id |
| | | can.fillStyle = 'red'; |
| | | can.fillText(_this.offlineAnchorList[i][0], x_cor - 2, y_cor - (images[key].naturalHeight * _this.imgScaleList[key] * _this.rateNumList[key] + 10) / 2); |
| | | }; |
| | | }; |
| | | }; |
| | | } |
| | | }; |
| | | }; |
| | | // } |
| | | |
| | | //å¼å¯é§éå®ä½åï¼éè¦æ¾ç¤ºå½åèå¤åºåå
çæ»æ ç¾æ°é |
| | | //_this.fenceMarkCount(count) |
| | | //_this.realFenceList([name, type, zuobiao_array]) |
| | | //_this.FenceColor(color) |
| | | if (_this.tunlDw == "1") { |
| | | var k = 0; |
| | | fillRoundRect(can, 10, 10, 140, 40 * _this.fenceMarkCount.length, 10, colorbbb); |
| | | for (var i = 0; i < _this.fenceMarkCount.length; i++) { |
| | | // if (_this.realFenceList[i][1] == "èå¤åºå"){ |
| | | can.beginPath(); |
| | | can.fillStyle = getDrawColor(_this.FenceColor[i]); |
| | | can.fillRect(10, 10 + 50 * k, 140, 30); |
| | | can.fillStyle = "red"; |
| | | can.fillText(_this.realFenceList[i][0] + ":" + _this.fenceMarkCount[i], 65, 25 + 50 * k); |
| | | can.fillStyle = "yellow"; |
| | | can.font = "15px Verdana"; |
| | | can.fillText(_this.realFenceList[i][0] + ":" + _this.fenceMarkCount[i], 34, 36 + 40 * k); |
| | | can.closePath(); |
| | | k += 1; |
| | | // }; |
| | | }; |
| | | }; |
| | | |
| | |
| | | if (tuodong == true) { |
| | | return false; |
| | | } |
| | | if (shipinka == false) { |
| | | return false; |
| | | } |
| | | //å½å宿¶åæ |
| | | _this.playMark = getRealPosition(current_floor); |
| | | // var tagid_str = ""; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> |
| | | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
| | | <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"> |
| | | <title></title> |
| | | <link href="/hxzkoa/hxzk/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/img/favicon.ico" rel="icon" type="image/x-icon" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-modal.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-sweetalert.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/dashboard/dash_2.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/elements/custom-pagination.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/loader.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/scrollspyNav.css" rel="stylesheet" type="text/css" /> |
| | | <!-- <link href="/hxzkoa/hxzk/assets/css/main.css" rel="stylesheet" type="text/css" /> --> |
| | | <!-- <link href="/hxzkoa/hxzk/assets/css/structure.css" rel="stylesheet" type="text/css" /> --> |
| | | <!-- <link href="/hxzkoa/hxzk/assets/css/elements/search.css" rel="stylesheet" type="text/css" /> --> |
| | | <link href="/hxzkoa/hxzk/plugins/apex/apexcharts.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/animate/animate.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/highlight/styles/monokai-sublime.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/datatables.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/custom_dt_html5.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/table/datatable/dt-global_style.css" rel="stylesheet" type="text/css"> |
| | | <link href="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" |
| | | type="text/css" /> |
| | | <link href="https://fonts.gstatic.com" rel="preconnect"> |
| | | <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet"> |
| | | <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,600,700&display=swap" |
| | | rel="stylesheet"> |
| | | <style> |
| | | |
| | | </style> |
| | | <script src="/hxzkoa/hxzk/assets/js/app.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/dashboard/dash_2.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/loader.js"></script> |
| | | <script src="/hxzkoa/hxzk/assets/js/libs/jquery-3.1.1.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/bootstrap.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/bootstrap/js/popper.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/apex/apexcharts.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/datatable/button-ext/jszip.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/table/jquery.table2excel.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/promise-polyfill.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/sweetalerts/custom-sweetalert.js"></script> |
| | | <script src="/hxzkoa/hxzk/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script> |
| | | </head> |
| | | <body> |
| | | <div style="border-style: inset;border-color: blue;border-width: 5px;"> |
| | | <div id="web1"> |
| | | |
| | | </div> |
| | | <div id="web2"> |
| | | |
| | | </div> |
| | | <div id="web3"> |
| | | <table> |
| | | <thead> |
| | | <tr> |
| | | <th>id</th> |
| | | <th>name</th> |
| | | <th>password</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr> |
| | | <td></td> |
| | | <td></td> |
| | | <td></td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | <script> |
| | | var wasdData = [10, 41, 35, 51, 49, 62, 69, 91, 148]; |
| | | var wasdOptions = { |
| | | series: [{ |
| | | name: "æ¥æ", |
| | | data: wasdData, |
| | | }], |
| | | chart: { |
| | | id: 'realtime', |
| | | height: 300, |
| | | width: 400, |
| | | type: 'line', |
| | | zoom: { |
| | | enabled: false |
| | | }, |
| | | animations: { |
| | | enabled: true, |
| | | easing: 'linear', |
| | | dynamicAnimation: { |
| | | speed: 10000 |
| | | } |
| | | }, |
| | | toolbar: { |
| | | show: false |
| | | }, |
| | | zoom: { |
| | | enabled: false |
| | | } |
| | | }, |
| | | dataLabels: { |
| | | enabled: false |
| | | }, |
| | | stroke: { |
| | | curve: 'smooth' |
| | | }, |
| | | markers: { |
| | | size: 0 |
| | | }, |
| | | legend: { |
| | | show: false |
| | | }, |
| | | grid: { |
| | | row: { |
| | | colors: ['#f3f3f3', 'transparent'], |
| | | opacity: 0.5 |
| | | }, |
| | | }, |
| | | xaxis: { |
| | | range: 7 |
| | | // categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'], |
| | | }, |
| | | yaxis: { |
| | | max: 1000 |
| | | }, |
| | | }; |
| | | var wasdChart = new ApexCharts(document.getElementById('web1'), wasdOptions); |
| | | wasdChart.render(); |
| | | |
| | | window.setInterval(function () { |
| | | wasdData.push(weizhi); |
| | | wasdChart.updateSeries([{ |
| | | data: wasdData |
| | | }]) |
| | | }, 10000) |
| | | |
| | | var polarAreaChart = { |
| | | chart: { |
| | | height: 250, |
| | | type: 'polarArea', |
| | | toolbar: { |
| | | show: false, |
| | | } |
| | | }, |
| | | dataLabels: { |
| | | enabled: true, |
| | | background: { |
| | | enabled: true, |
| | | borderRadius:1, |
| | | } |
| | | }, |
| | | stroke: { |
| | | colors: '#0e1726' |
| | | }, |
| | | series: reT_v, |
| | | labels: reT_k, |
| | | responsive: [{ |
| | | breakpoint: 480, |
| | | options: { |
| | | chart: { |
| | | width: 200 |
| | | }, |
| | | legend: { |
| | | position: 'bottom' |
| | | } |
| | | } |
| | | }] |
| | | } |
| | | |
| | | var chart = new ApexCharts( |
| | | document.querySelector("#web2"), |
| | | polarAreaChart |
| | | ); |
| | | chart.render(); |
| | | var times = setInterval(leida,10000); |
| | | function leida() { |
| | | $.ajax({ |
| | | url: "/hxzkoa/settongjishuju.do", |
| | | type: "POST", |
| | | dataType: "JSON", |
| | | success(data) { |
| | | chart.updateOptions({ |
| | | series: data[1], |
| | | labels: data[0] |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | </script> |
| | | </html> |
| | |
| | | <li> |
| | | <a href="/hxzkoa/anchorConfiguration.do"> åºç«é
ç½® </a> |
| | | </li> |
| | | <li> |
| | | <a href="/hxzkoa/shows.do"> åé
主页 </a> |
| | | </li> |
| | | <!-- <li> |
| | | <a href="/hxzkoa/hxzk/newindex.jsp"> åé
主页 </a> |
| | | </li> --> |
| | | <!-- <li> |
| | | <a href="/hxzkoa/proximityConfiguration.do"> 临è¿é
ç½® </a> |
| | | </li> |
| | |
| | | <a href="/hxzkoa/personManagement.do"> 人å管ç </a> |
| | | </li> |
| | | <li> |
| | | <a href="http://192.168.3.124:10000" target="_blank"> çæ§ç®¡ç </a> |
| | | <a href="http://192.168.1.220:10000" target="_blank"> çæ§ç®¡ç </a> |
| | | </li> |
| | | </ul> |
| | | </li> |