南昌市物联网技防平台-前端
shuishen
2021-03-19 45cd61569d9593c1f1db965b618edfba2c39aab8
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 10:58:01
 * @Last Modified time: 2021-03-19 11:31:46
 */
<template>
  <basic-container>
@@ -693,7 +693,6 @@
          done();
        },
        (error) => {
          window.console.log(error);
          loading();
        }
      );
@@ -710,7 +709,6 @@
          done();
        },
        (error) => {
          window.console.log(error);
          loading();
        }
      );
@@ -986,7 +984,6 @@
      });
    },
    handleManage(row) {
      console.log(row);
      this.form = row;
      this.peopleList = [
        { label: row.oneContacts, value: row.onePhone },
@@ -1191,9 +1188,7 @@
      // 一键呼叫相关函数
      if (this.isActive == true) {
        alert(1);
        this.isActive = false;
        newCallAxios
          .post(
            `/api_control`,
@@ -1213,7 +1208,6 @@
            formData.append("file", fileOfBlob);
            // var dom = document.getElementById("real_audio");
            // console.log(dom);
            // dom.setAttribute("src", URL.createObjectURL(blob));
            // this.recorder.play();
@@ -1232,9 +1226,7 @@
              .then((result) => {});
          });
      } else {
        alert(2);
        this.isActive = true;
        Recorder.getPermission().then(() => {
          this.recorder.start().then(() => {
            // 开始录音