From 5570ea0e7febed5c5929b5fcde2d95ec80dad661 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Thu, 29 Apr 2021 10:21:12 +0800
Subject: [PATCH] update

---
 src/main/resources/public/js/history/historyComponent.js |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/public/js/history/historyComponent.js b/src/main/resources/public/js/history/historyComponent.js
index 6776c09..712e79d 100755
--- a/src/main/resources/public/js/history/historyComponent.js
+++ b/src/main/resources/public/js/history/historyComponent.js
@@ -9,7 +9,7 @@
             return;
         }
         this.elem = opt.elem;
-        appendContent(this.elem);
+        //appendContent(this.elem);
 
         let stream_path;
         let cameraId = opt.cameraId;
@@ -82,7 +82,7 @@
     HistoryComponent.prototype.playVideo = function (video_id,starttime, callback) {
         $.ajax({
             type: "get",
-            url: "../../webapi/media/historical?param=" + video_id+ "&startTime=" + starttime+"&endTime=",
+            url: "../../monica/history?param=" + video_id+ "&startTime=" + starttime+"&endTime=",
             timeout: 5000,
             async: false,
             success: function (result) {
@@ -94,7 +94,7 @@
     HistoryComponent.prototype.playVideoRTSP = function (rtspURL,starttime, callback) {
         $.ajax({
             type: "get",
-            url: "../../webapi/media/rtsp/historical?param=" + rtspURL+ "&startTime=" + starttime+"&endTime=",
+            url: "../../monica/rtsp/history?param=" + rtspURL+ "&startTime=" + starttime+"&endTime=",
             timeout: 5000,
             async: false,
             success: function (result) {
@@ -108,7 +108,7 @@
         if (streamPath && typeof streamPath === "string") {
             $.ajax({
                 type: "get",
-                url: "../../webapi/media/stop?param=" + streamPath,
+                url: "../../monica/stop?param=" + streamPath,
                 async: false,
                 success: function (result) {
                 }
@@ -120,6 +120,20 @@
         this.closeVideo(this.stream_path);
     };
 
+
+    //精确时间选择器
+    jeDate("#currentTimer",{
+        festival:false,                     //是否显示农历节日
+        minDate:"1900-01-01",              //最小日期
+        maxDate:"2099-12-31",              //最大日期
+        method:{
+            choose:function (params) {
+
+            }
+        },
+        format: "YYYY-MM-DD hh:mm:ss"
+    });
+
     window.HistoryComponent = HistoryComponent;
 
 })()

--
Gitblit v1.9.1