From 15f44b0d235b04dd0207c707d0996ebc6cec5f90 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Tue, 16 Jul 2024 18:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=89=E6=B5=81=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/StreamProxyEdit.vue | 217 +++++++++++++++++++ web_src/src/components/StreamProxyList.vue | 229 +++++++++++---------- 2 files changed, 339 insertions(+), 107 deletions(-) create mode 100644 web_src/src/components/StreamProxyEdit.vue diff --git a/web_src/src/components/StreamProxyEdit.vue b/web_src/src/components/StreamProxyEdit.vue new file mode 100644 index 00000000..b168d5a1 --- /dev/null +++ b/web_src/src/components/StreamProxyEdit.vue @@ -0,0 +1,217 @@ + + + + diff --git a/web_src/src/components/StreamProxyList.vue b/web_src/src/components/StreamProxyList.vue index eb1f7d82..e2c740c0 100755 --- a/web_src/src/components/StreamProxyList.vue +++ b/web_src/src/components/StreamProxyList.vue @@ -1,113 +1,120 @@ @@ -116,12 +123,14 @@ import onvifEdit from './dialog/onvifEdit.vue' import devicePlayer from './dialog/devicePlayer.vue' import uiHeader from '../layout/UiHeader.vue' + import StreamProxyEdit from "./StreamProxyEdit"; export default { name: 'streamProxyList', components: { devicePlayer, streamProxyEdit, onvifEdit, + StreamProxyEdit, uiHeader }, data() { @@ -134,7 +143,8 @@ currentPage:1, count:15, total:0, - startBtnLoading: false + startBtnLoading: false, + streamProxy: null }; }, computed: { @@ -187,7 +197,8 @@ }); }, addStreamProxy: function(){ - this.$refs.streamProxyEdit.openDialog(null, this.initData) + // this.$refs.streamProxyEdit.openDialog(null, this.initData) + this.streamProxy = {} }, addOnvif: function(){ this.$axios({ @@ -214,7 +225,11 @@ }); }, - saveStreamProxy: function(){ + edit: function(row){ + this.streamProxy = row + }, + closeEdit: function(row){ + this.streamProxy = null }, play: function(row){ let that = this;