From d874cdc354465eeed76f7039de9e4d7e5b17dabc Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 20 Apr 2021 18:23:19 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue

---
 src/views/policeTracking/policeTracking.vue |   44 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index 3372671..df39cc2 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -295,6 +295,31 @@
               class="el-collapse-item__header focusing is-active"
             >
               <div class="avue-group__header avue-group">
+                <i class="el-icon-document avue-group__icon"></i>
+                <h1 class="avue-group__title">对讲信息</h1>
+              </div>
+            </div>
+          </div>
+
+          <el-card class="receiving-alarm-box">
+            <div v-for="(item, index) in audios" :key="index" style="margin: 10px 0; width: 100%; height: 40px;">
+              <audio :src="item.address" style="width: 40%; height: 100%;"  controls></audio>
+            </div>
+          </el-card>
+
+          <div
+            style="margin-top: 20px"
+            role="tab"
+            aria-expanded="true"
+            aria-controls="el-collapse-content-823"
+            aria-describedby="el-collapse-content-823"
+          >
+            <div
+              role="button"
+              tabindex="0"
+              class="el-collapse-item__header focusing is-active"
+            >
+              <div class="avue-group__header avue-group">
                 <i class="el-icon-s-custom avue-group__icon"></i>
                 <h1 class="avue-group__title">保安信息</h1>
               </div>
@@ -608,6 +633,7 @@
       baseUrl: "",
       oldVideoSatart: false,
       vaddress: null,
+      audios: [],
     };
   },
   created() {
@@ -618,7 +644,7 @@
   },
   mounted() {
     this.getList();
-
+    this.getAudios();
     this.$refs.mapDiv.onload = () => {
       window.frames[0].init("AlertSecurity", {
         x: this.form.jd,
@@ -790,7 +816,9 @@
     getList() {
       var that = this;
       axios
-        .get(`/api/blade-user/pages?current=1&size=9999&work_status=&deptId=${that.form.deptId}`)
+        .get(
+          `/api/blade-user/pages?current=1&size=9999&work_status=&deptId=${that.form.deptId}`
+        )
         .then(function (res) {
           that.tableData = [];
           var i = 0;
@@ -849,6 +877,18 @@
         this.$refs.multipleTable.clearSelection();
       }
     },
+
+    getAudios() {
+      axios({
+        method: "get",
+        url: "/api/blade-jfpts/avideo/list",
+        params: {
+          jid: this.form.id,
+        },
+      }).then((resdata) => {
+        this.audios = resdata.data.data.records;
+      });
+    },
   },
 };
 </script>

--
Gitblit v1.9.3