From b843ec4ebeea58664944f1df4b4860585e23f0fa Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期六, 07 十月 2023 09:12:10 +0800
Subject: [PATCH] 应急预案查询加入时间倒序提交

---
 ard-work/src/main/resources/templates/test.html |   47 ++++++++++++++++++++++++-----------------------
 1 files changed, 24 insertions(+), 23 deletions(-)

diff --git a/ard-work/src/main/resources/templates/test.html b/ard-work/src/main/resources/templates/test.html
index 680e784..5b3d7d9 100644
--- a/ard-work/src/main/resources/templates/test.html
+++ b/ard-work/src/main/resources/templates/test.html
@@ -134,6 +134,7 @@
 
     var cameraId, opt, optOpen, optClose, token;
     window.onload = function () {
+        console.log(RTCRtpReceiver.getCapabilities('video').codecs)
         $.ajax({
             url: "../hik/list",
             type: "get",
@@ -308,7 +309,7 @@
 
     $("#setPreset").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1, "speed": 8, "presetIndex": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1, "speed": 8, "presetIndex": 1};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -326,7 +327,7 @@
     })
     $("#gotoPreset").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1, "speed": 8, "presetIndex": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1, "speed": 8, "presetIndex": 1};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -344,7 +345,7 @@
     })
     $("#getPTZ").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -370,7 +371,7 @@
         var z = $('#z').val();
         //瀹氫箟涓�涓甫鏈塎ap瀛楁鐨勫疄浣撳璞�
         var myEntity = {
-            channelNum: 1,
+            chanNo: 1,
             cameraId: cameraId,
             ptzMap: {
                 p: p,
@@ -401,7 +402,7 @@
         var targetP = $('#targetPostion').val();
         //瀹氫箟涓�涓甫鏈塎ap瀛楁鐨勫疄浣撳璞�
         var myEntity = {
-            channelNum: 1,
+            chanNo: 1,
             cameraId: cameraId,
             targetPosition: targetP,
             camPosition: camP,
@@ -424,7 +425,7 @@
     })
     $("#setZeroPTZ").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -442,7 +443,7 @@
     })
     $("#WiperPwron").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1, "speed": 8, "enable": true, "code": 16};
+        opt = {"cameraId": cameraId, "chanNo": 1, "speed": 8, "enable": true, "code": 16};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -461,8 +462,8 @@
     var defogflag = true;
     $("#Defogcfg").click(function () {
         cameraId = $('#select option:selected').val();
-        optOpen = {"cameraId": cameraId, "channelNum": 1, "enable": true};
-        optClose = {"cameraId": cameraId, "channelNum": 1, "enable": false};
+        optOpen = {"cameraId": cameraId, "chanNo": 1, "enable": true};
+        optClose = {"cameraId": cameraId, "chanNo": 1, "enable": false};
         if (defogflag) {
             $(this).text("鍏抽棴閫忛浘");
             defogflag = false;
@@ -503,8 +504,8 @@
     var infrareflag = true;
     $("#Infrarecfg").click(function () {
         cameraId = $('#select option:selected').val();
-        optOpen = {"cameraId": cameraId, "channelNum": 1, "enable": true};
-        optClose = {"cameraId": cameraId, "channelNum": 1, "enable": false};
+        optOpen = {"cameraId": cameraId, "chanNo": 1, "enable": true};
+        optClose = {"cameraId": cameraId, "chanNo": 1, "enable": false};
         if (infrareflag) {
             $(this).text("鍏抽棴绾㈠");
             infrareflag = false;
@@ -545,8 +546,8 @@
     var focusModeflag = true;
     $("#FocusMode").click(function () {
         cameraId = $('#select option:selected').val();
-        optOpen = {"cameraId": cameraId, "channelNum": 1, "enable": true};
-        optClose = {"cameraId": cameraId, "channelNum": 1, "enable": false};
+        optOpen = {"cameraId": cameraId, "chanNo": 1, "enable": true};
+        optClose = {"cameraId": cameraId, "chanNo": 1, "enable": false};
         if (focusModeflag) {
             $(this).text("鑷姩鑱氱劍");
             focusModeflag = false;
@@ -585,7 +586,7 @@
     })
     $("#getFocusPos").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1};
         $.ajax({
                 headers: {
                     'Accept': 'application/json',
@@ -605,8 +606,8 @@
     var heateRpwronflag = true;
     $("#HeateRpwron").click(function () {
         cameraId = $('#select option:selected').val();
-        optOpen = {"cameraId": cameraId, "channelNum": 1, "enable": true};
-        optClose = {"cameraId": cameraId, "channelNum": 1, "enable": false};
+        optOpen = {"cameraId": cameraId, "chanNo": 1, "enable": true};
+        optClose = {"cameraId": cameraId, "chanNo": 1, "enable": false};
         if (heateRpwronflag) {
             $(this).text("鍏抽棴浜戝彴鍔犵儹");
             heateRpwronflag = false;
@@ -646,8 +647,8 @@
     var CameraDeicingflag = true;
     $("#CameraDeicing").click(function () {
         cameraId = $('#select option:selected').val();
-        optOpen = {"cameraId": cameraId, "channelNum": 1, "enable": true};
-        optClose = {"cameraId": cameraId, "channelNum": 1, "enable": false};
+        optOpen = {"cameraId": cameraId, "chanNo": 1, "enable": true};
+        optClose = {"cameraId": cameraId, "chanNo": 1, "enable": false};
         if (CameraDeicingflag) {
             $(this).text("鍏抽棴闀滃ご鍔犵儹");
             CameraDeicingflag = false;
@@ -685,7 +686,7 @@
     })
     $("#realCutPic").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -704,7 +705,7 @@
     })
     $("#saveCutPic").click(function () {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1};
+        opt = {"cameraId": cameraId, "chanNo": 1};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -724,8 +725,8 @@
     var recordflag = true;
     $("#record").click(function () {
         cameraId = $('#select option:selected').val();
-        optOpen = {"cameraId": cameraId, "channelNum": 1, "enable": true};
-        optClose = {"cameraId": cameraId, "channelNum": 1, "enable": false};
+        optOpen = {"cameraId": cameraId, "chanNo": 1, "enable": true};
+        optClose = {"cameraId": cameraId, "chanNo": 1, "enable": false};
         if (recordflag) {
             $(this).text("鍋滄褰曞儚");
             recordflag = false;
@@ -768,7 +769,7 @@
     /*浜戝彴鍏叡鏂规硶*/
     function commondMethod(url, code, enable) {
         cameraId = $('#select option:selected').val();
-        opt = {"cameraId": cameraId, "channelNum": 1, "speed": 8, "enable": enable, "code": code};
+        opt = {"cameraId": cameraId, "chanNo": 1, "speed": 8, "enable": enable, "code": code};
         $.ajax({
             headers: {
                 'Accept': 'application/json',

--
Gitblit v1.9.3