| | |
| | | <el-progress :percentage="percentage"></el-progress> |
| | | </el-col> |
| | | <el-col :span="6" > |
| | | <el-button icon="el-icon-download" v-if="percentage < 100" size="mini" title="点击下载可将以缓存部分下载到本地" @click="download()">停止缓存并下载</el-button> |
| | | <el-button icon="el-icon-download" v-if="downloadFile" size="mini" title="点击下载" @click="downloadFileClientEvent()">点击下载</el-button> |
| | | <el-button icon="el-icon-download" v-if="downloadFile" size="mini" title="点击下载" @click="downloadFileClientEvent()">下载</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-dialog> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "四倍速下载中...", |
| | | title: "下载中...", |
| | | deviceId: "", |
| | | channelId: "", |
| | | app: "", |
| | |
| | | getFileDownload: function (){ |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`/record_proxy/${this.mediaServerId}/api/record/file/download/task/add`, |
| | | url:`/api/cloud/record/task/add`, |
| | | params: { |
| | | app: this.app, |
| | | stream: this.stream, |
| | | mediaServerId: this.mediaServerId, |
| | | startTime: null, |
| | | endTime: null, |
| | | } |
| | |
| | | getProgressForFile: function (callback){ |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`/record_proxy/${this.mediaServerId}/api/record/file/download/task/list`, |
| | | url:`/api/cloud/record/task/list`, |
| | | params: { |
| | | app: this.app, |
| | | stream: this.stream, |
| | | mediaServerId: this.mediaServerId, |
| | | taskId: this.taskId, |
| | | isEnd: true, |
| | | } |