南昌市物联网技防平台-前端
shuishen
2021-03-19 2cddcc5f2e4ce21526980d9e9d7c7972ba51fcb8
逻辑处理部分
1 files modified
19 ■■■■■ changed files
src/views/realTimePolice/real.vue 19 ●●●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus 
 * @Date: 2021-03-17 15:21:33 
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-03-19 15:21:40
 * @Last Modified time: 2021-03-19 16:56:35
 */
<template>
  <basic-container>
@@ -797,10 +797,16 @@
        ...params,
      };
      console.log(this.$router.query, 111)
      console.log(this.$router.query, 111);
      if (
        this.$router.query &&
        this.$router.query != null &&
        this.$router.query != ""
      ) {
      params = {
        alarmType:this.$router.query.alarmType
          alarmType: this.$router.query.alarmType,
        };
      }
     
      if (releaseTimeRange) {
@@ -1163,7 +1169,6 @@
          //     });
        });
    },
    closeRealVideoBox() {
      var dom = document.getElementById("video_conversation");
@@ -1197,9 +1202,9 @@
        },
      });
      var that = this;
      Recorder.getPermission().then(() => {
      setInterval(() => {
        // 一键呼叫相关函数
        Recorder.getPermission().then(() => {
          that.recorder.start().then(() => {
            // 开始录音
            newCallAxios
@@ -1213,6 +1218,7 @@
                }
              )
              .then((result) => {
                setTimeout(() => {
                var formData = new FormData();
                var blob = that.recorder.getPCMBlob(); //获取pcm格式音频数据
                //此处获取到blob对象后需要设置fileName满足当前项目上传需求,其它项目可直接传把blob作为file塞入formData
@@ -1240,10 +1246,11 @@
                    },
                  })
                  .then((result) => {});
              });
                }, 10000);
          });
        });
      }, 5000);
      });
    },
    aKeyToCall111(e, form) {