From 76208975bffec39eb62f8599a68d583a5cb6da18 Mon Sep 17 00:00:00 2001
From: leesam <leesam@leesam.cn>
Date: 星期二, 19 三月 2024 16:53:01 +0800
Subject: [PATCH] [add]支持其他平台通过ApiKey调用系统相关接口

---
 web_src/src/components/PushVideoList.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/web_src/src/components/PushVideoList.vue b/web_src/src/components/PushVideoList.vue
old mode 100644
new mode 100755
index 5ca7194..e69f56d
--- a/web_src/src/components/PushVideoList.vue
+++ b/web_src/src/components/PushVideoList.vue
@@ -89,6 +89,8 @@
           <el-button size="medium" icon="el-icon-position" type="text" v-if="!!scope.row.gbId"
                      @click="removeFromGB(scope.row)">绉诲嚭鍥芥爣
           </el-button>
+          <el-button size="medium" icon="el-icon-cloudy" type="text" @click="queryCloudRecords(scope.row)">浜戠褰曞儚
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -171,7 +173,7 @@
       this.getDeviceListLoading = true;
       this.$axios({
         method: 'get',
-        url: `./api/push/list`,
+        url: `/api/push/list`,
         params: {
           page: that.currentPage,
           count: that.count,
@@ -197,7 +199,7 @@
       this.getListLoading = true;
       this.$axios({
         method: 'get',
-        url: './api/push/getPlayUrl',
+        url: '/api/push/getPlayUrl',
         params: {
           app: row.app,
           stream: row.stream,
@@ -223,7 +225,7 @@
       let that = this;
       that.$axios({
         method: "post",
-        url: "./api/push/stop",
+        url: "/api/push/stop",
         params: {
           app: row.app,
           streamId: row.stream
@@ -247,7 +249,7 @@
       let that = this;
       that.$axios({
         method: "delete",
-        url: "./api/push/remove_form_gb",
+        url: "/api/push/remove_form_gb",
         data: row
       }).then((res) => {
         if (res.data.code === 0) {
@@ -256,6 +258,10 @@
       }).catch(function (error) {
         console.error(error);
       });
+    },
+    queryCloudRecords: function (row) {
+
+      this.$router.push(`/cloudRecordDetail/${row.app}/${row.stream}`)
     },
     importChannel: function () {
       this.$refs.importChannel.openDialog(() => {
@@ -274,7 +280,7 @@
         let that = this;
         that.$axios({
           method: "delete",
-          url: "./api/push/batchStop",
+          url: "/api/push/batchStop",
           data: {
             gbStreams: this.multipleSelection
           }

--
Gitblit v1.8.0