| | |
| | | count: that.count |
| | | } |
| | | }).then(function (res) { |
| | | that.total = res.data.total; |
| | | for (let i = 0; i < res.data.list.length; i++) { |
| | | res.data.list[i]["startBtnLoading"] = false; |
| | | if (res.data.code === 0) { |
| | | that.total = res.data.data.total; |
| | | for (let i = 0; i < res.data.data.list.length; i++) { |
| | | res.data.data.list[i]["startBtnLoading"] = false; |
| | | } |
| | | that.streamProxyList = res.data.data.list; |
| | | } |
| | | that.streamProxyList = res.data.list; |
| | | that.getListLoading = false; |
| | | that.getListLoading = false; |
| | | }).catch(function (error) { |
| | | console.log(error); |
| | | that.getListLoading = false; |
| | |
| | | url:`/api/onvif/search?timeout=3000`, |
| | | }).then((res) =>{ |
| | | this.getListLoading = false; |
| | | if (res.data.code == 0 ){ |
| | | if (res.data.code === 0 ){ |
| | | if (res.data.data.length > 0) { |
| | | this.$refs.onvifEdit.openDialog(res.data.data, (url)=>{ |
| | | if (url != null) { |
| | |
| | | this.getListLoading = true; |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`/api/media/stream_info_by_app_and_stream`, |
| | | url:`/api/push/getPlayUrl`, |
| | | params: { |
| | | app: row.app, |
| | | stream: row.stream, |
| | |
| | | }).then(function (res) { |
| | | that.getListLoading = false; |
| | | that.$set(row, 'startBtnLoading', false) |
| | | if (res.data == "success"){ |
| | | if (res.data.code === 0){ |
| | | that.initData() |
| | | }else { |
| | | that.$message({ |