From e0028a87cb4fc37759c9c33ecd20591fe6dd0aa7 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期一, 07 二月 2022 14:12:34 +0800 Subject: [PATCH] 为推流列表增加搜索功能 --- web_src/src/components/channelList.vue | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index 3891ab5..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> @@ -174,12 +182,12 @@ method: 'get', url: `/api/device/query/devices/${this.$route.params.deviceId}/channels`, params:{ - page: that.currentPage, + page: that.currentPage, count: that.count, query: that.searchSrt, online: that.online, channelType: that.channelType - } + } }).then(function (res) { that.total = res.data.total; that.deviceChannelList = res.data.list; @@ -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