From d7afcab6016f46fa5f40962a079d003ebdf9172b Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期日, 30 一月 2022 16:39:15 +0800
Subject: [PATCH] 优化媒体服务器配置展示界面

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

diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue
index b8633b1..7dda69a 100644
--- a/web_src/src/components/channelList.vue
+++ b/web_src/src/components/channelList.vue
@@ -54,6 +54,14 @@
                 </el-table-column>
                 <el-table-column prop="subCount" label="瀛愯妭鐐规暟">
                 </el-table-column>
+                <el-table-column prop="manufacture" label="鍘傚">
+                </el-table-column>
+                <el-table-column label="浣嶇疆淇℃伅" align="center">
+                  <template slot-scope="scope">
+                    <span>{{scope.row.longitude}},{{scope.row.latitude}}</span>
+                  </template>
+                </el-table-column>
+              <el-table-column prop="ptztypeText" label="浜戝彴绫诲瀷"/>
                 <el-table-column label="寮�鍚煶棰�" align="center">
                     <template slot-scope="scope">
                         <el-switch @change="updateChannel(scope.row)" v-model="scope.row.hasAudio" active-color="#409EFF">
@@ -68,8 +76,8 @@
                         </div>
                     </template>
                 </el-table-column>
-                <el-table-column prop="ptztypeText" label="浜戝彴绫诲瀷">
-                </el-table-column>
+
+
                 <el-table-column label="鎿嶄綔" width="280" align="center" fixed="right">
                     <template slot-scope="scope">
                         <el-button-group>
@@ -204,10 +212,10 @@
                 url: '/api/play/start/' + deviceId + '/' + channelId
             }).then(function (res) {
                 that.isLoging = false;
-                if (res.data.code == 0) {
+                if (res.data.code === 0) {
 
                   setTimeout(()=>{
-                    console.log("涓嬭浇鎴浘")
+
                     let snapId = deviceId + "_" + channelId;
                     that.loadSnap[snapId] = 0;
                     that.getSnapErrorEvent(snapId)
@@ -216,7 +224,10 @@
                     streamInfo: res.data.data,
                     hasAudio: itemData.hasAudio
                   });
-                  that.initData();
+                  setTimeout(()=>{
+                    that.initData();
+                  },1000)
+
                 }else {
                   that.$message.error(res.data.msg);
                 }

--
Gitblit v1.8.0