| | |
| | | {{scope.row.url}} |
| | | </el-tag> |
| | | <el-tag size="medium" v-if="scope.row.type != 'default'"> |
| | | <i class="cpoy-btn el-icon-document-copy" title="点击拷贝" v-clipboard="scope.row.src_url" @success="$message({type:'success', message:'成功拷贝到粘贴板'})"></i> |
| | | {{scope.row.src_url}} |
| | | <i class="cpoy-btn el-icon-document-copy" title="点击拷贝" v-clipboard="scope.row.srcUrl" @success="$message({type:'success', message:'成功拷贝到粘贴板'})"></i> |
| | | {{scope.row.srcUrl}} |
| | | </el-tag> |
| | | </div> |
| | | </template> |
| | |
| | | let that = this; |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/proxy/list`, |
| | | url:`/api/proxy/list`, |
| | | params: { |
| | | page: that.currentPage, |
| | | count: that.count |
| | |
| | | addOnvif: function(){ |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/onvif/search?timeout=3000`, |
| | | url:`/api/onvif/search?timeout=3000`, |
| | | }).then((res) =>{ |
| | | if (res.data.code === 0 ){ |
| | | if (res.data.data.length > 0) { |
| | | this.$refs.onvifEdit.openDialog(res.data.data, (url)=>{ |
| | | if (url != null) { |
| | | this.$refs.onvifEdit.close(); |
| | | this.$refs.streamProxyEdit.openDialog({type: "default", url: url, src_url: url}, this.initData()) |
| | | this.$refs.streamProxyEdit.openDialog({type: "default", url: url, srcUrl: url}, this.initData()) |
| | | } |
| | | }) |
| | | }else { |
| | |
| | | let that = this; |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/push/getPlayUrl`, |
| | | url:`/api/push/getPlayUrl`, |
| | | params: { |
| | | app: row.app, |
| | | stream: row.stream, |
| | |
| | | let that = this; |
| | | that.$axios({ |
| | | method:"delete", |
| | | url:"./api/proxy/del", |
| | | url:"/api/proxy/del", |
| | | params:{ |
| | | app: row.app, |
| | | stream: row.stream |
| | |
| | | this.$set(row, 'startBtnLoading', true) |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/proxy/start`, |
| | | url:`/api/proxy/start`, |
| | | params: { |
| | | app: row.app, |
| | | stream: row.stream |
| | |
| | | let that = this; |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/proxy/stop`, |
| | | url:`/api/proxy/stop`, |
| | | params: { |
| | | app: row.app, |
| | | stream: row.stream |