bihuisong 4 月之前
父节点
当前提交
55366044f7

+ 13 - 7
qmjszx-admin/src/main/resources/templates/system/hik/hik.html

@@ -70,20 +70,24 @@
                 <a-affix :offset-top="8">
                     <div id="player"></div>
                 </a-affix>
-                <a-form-item>
-                    <a-button @click="wholeFullScreen" v-show="!isMoveDevice">整体全屏</a-button>
-                </a-form-item>
+                <!--                <a-form-item>-->
+                <!--                    <a-button @click="wholeFullScreen" v-show="!isMoveDevice">整体全屏</a-button>-->
+                <!--                </a-form-item>-->
             </a-col>
             <a-col :span="24" :md="12">
                 <div class="actions">
                     <a-form :label-col="labelCol" :wrapper-col="wrapperCol" v-show="tabActive !== 'log'">
                         <a-form-item>
-                            <a-button id="btn-realplay" @click="realplay">开始预览</a-button>
-                            <a-button id="btn-realplay-stop" @click="stopPlay">停止预览</a-button>
+                            <a-row>
+                                <a-col :span="8">
+                                    <a-button id="btn-realplay" @click="realplay">开始预览</a-button>
+                                    <a-button id="btn-realplay-stop" @click="stopPlay">停止预览</a-button>
+                                </a-col>
+                            </a-row>
                         </a-form-item>
                         <a-form-item>
                             <a-row>
-                                <a-col :span="4">
+                                <a-col :span="8">
                                     <a-button id="btn-sound-open" @click="openSound">开启声音</a-button>
                                     <a-button id="btn-sound-close" @click="closeSound">关闭声音</a-button>
                                 </a-col>
@@ -120,6 +124,7 @@
     const MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse
     getCameraPreviewURL()
     var prefix = ctx;
+
     function getCameraPreviewURL() {
         // alert(prefix+"ctx")
         $.ajax({
@@ -135,7 +140,8 @@
             }
         })
     }
-    function initPage(initUrl){
+
+    function initPage(initUrl) {
         const app = new Vue({
             el: '#app',
             data() {

+ 2 - 0
qmjszx-framework/src/main/java/beilv/framework/config/ShiroConfig.java

@@ -291,6 +291,8 @@ public class ShiroConfig {
         filterChainDefinitionMap.put("/weixin-mini-app/login", "anon,captchaValidate");
         // 微信小程序所有接口请求全部放权
         filterChainDefinitionMap.put("/app-api/**", "anon,captchaValidate");
+        // 微信小程序直播请求接口
+        filterChainDefinitionMap.put("/system/hik/getCameraPreviewURL", "anon,captchaValidate");
         // 注册相关
         filterChainDefinitionMap.put("/register", "anon,captchaValidate");
         // 系统权限列表