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;