old mode 100644
new mode 100755
|  |  |  | 
|---|
|  |  |  | {{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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-table-column label="音频" min-width="120" > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <div slot="reference" class="name-wrapper"> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enable_audio">已启用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" type="info" v-if="!scope.row.enable_audio">未启用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enableAudio">已启用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" type="info" v-if="!scope.row.enableAudio">未启用</el-tag> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="录制" min-width="120" > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <div slot="reference" class="name-wrapper"> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enable_mp4">已启用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" type="info" v-if="!scope.row.enable_mp4">未启用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enableMp4">已启用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" type="info" v-if="!scope.row.enableMp4">未启用</el-tag> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="无人观看" min-width="160" > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <div slot="reference" class="name-wrapper"> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enable_remove_none_reader">移除</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enable_disable_none_reader">停用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" type="info" v-if="!scope.row.enable_remove_none_reader && !scope.row.enable_disable_none_reader">不做处理</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enableRemoveNoneReader">移除</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" v-if="scope.row.enableDisableNoneReader">停用</el-tag> | 
|---|
|  |  |  | <el-tag size="medium" type="info" v-if="!scope.row.enableRemoveNoneReader && !scope.row.enableDisableNoneReader">不做处理</el-tag> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-button size="medium" icon="el-icon-check" type="text" :loading="scope.row.startBtnLoading" v-if="!scope.row.enable" @click="start(scope.row)">启用</el-button> | 
|---|
|  |  |  | <el-divider v-if="!scope.row.enable" direction="vertical"></el-divider> | 
|---|
|  |  |  | <el-button size="medium" icon="el-icon-delete" type="text" style="color: #f56c6c" @click="deleteStreamProxy(scope.row)">删除</el-button> | 
|---|
|  |  |  | <el-button size="medium" icon="el-icon-cloudy" type="text" @click="queryCloudRecords(scope.row)">云端录像 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 { | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | queryCloudRecords: function (row) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.$router.push(`/cloudRecordDetail/${row.app}/${row.stream}`) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | deleteStreamProxy: function(row){ | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | that.$axios({ | 
|---|
|  |  |  | method:"delete", | 
|---|
|  |  |  | url:"/api/proxy/del", | 
|---|
|  |  |  | params:{ | 
|---|
|  |  |  | app: row.app, | 
|---|
|  |  |  | stream: row.stream | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }).then((res)=>{ | 
|---|
|  |  |  | that.initData() | 
|---|
|  |  |  | }).catch(function (error) { | 
|---|
|  |  |  | console.log(error); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.$confirm('确定删除此代理吗?', '提示', { | 
|---|
|  |  |  | confirmButtonText: '确定', | 
|---|
|  |  |  | cancelButtonText: '取消', | 
|---|
|  |  |  | type: 'warning' | 
|---|
|  |  |  | }).then(() => { | 
|---|
|  |  |  | that.$axios({ | 
|---|
|  |  |  | method:"delete", | 
|---|
|  |  |  | url:"/api/proxy/del", | 
|---|
|  |  |  | params:{ | 
|---|
|  |  |  | app: row.app, | 
|---|
|  |  |  | stream: row.stream | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }).then((res)=>{ | 
|---|
|  |  |  | that.initData() | 
|---|
|  |  |  | }).catch(function (error) { | 
|---|
|  |  |  | console.log(error); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }).catch(() => { | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | start: function(row){ | 
|---|
|  |  |  | this.stopUpdateList() | 
|---|