| | |
| | | <el-image |
| | | v-if="row.type==2" |
| | | style="width: 30x; height: 30px" |
| | | :src="`/files/${row.identifier}.jpg`" |
| | | :src="`/files/${row.path.substr(row.path.lastIndexOf('/')+1)}`" |
| | | fit="fill" |
| | | :preview-src-list="[`/files/${row.identifier}.jpg`]" |
| | | :preview-src-list="[`/files/${row.path.substr(row.path.lastIndexOf('/')+1)}`]" |
| | | > |
| | | <div slot="error" :class="snapshotClass"></div> |
| | | </el-image> |
| | |
| | | beforeDestroy() { |
| | | this.taskUid = 0; |
| | | }, |
| | | watch:{ |
| | | 'fileList.length':{ |
| | | handler(n,o){ |
| | | //数据栈文件数量变更 |
| | | //更新独立场景数据栈文件 |
| | | console.log(this.$root.$children[0].$children[1].$refs['sepRule']) |
| | | this.$root.$children[0].$children[1].$refs['sepRule'].getStackFiles(); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | preview(row) { |
| | | this.previewDialog = true; |
| | |
| | | this.videoUrl = "/files/" + row.identifier + ".mp4" |
| | | }else if(row.type===2){ |
| | | |
| | | this.imgUrl = "/files/" + row.identifier + ".jpg" |
| | | this.imgUrl = "/files/" + row.path.substr(row.path.lastIndexOf('/')+1) |
| | | } |
| | | }, |
| | | // 清空输入框 |
| | |
| | | this.fileList = []; |
| | | }, |
| | | selectDir(node) { |
| | | debugger |
| | | |
| | | if (node.id === "") { |
| | | return |
| | | } |
| | |
| | | findAllFileByStackId({ name: this.searchInput, stackId: this.form.id, page: this.page, size: this.size, type: 0 }).then(rsp => { |
| | | if (rsp && rsp.success && rsp.data.total > 0) { |
| | | this.fileList = rsp.data.dataList; |
| | | |
| | | this.total = rsp.data.total; |
| | | |
| | | // 定时刷新会清空选中状态,在这里恢复 |
| | |
| | | }) |
| | | if (res && res.success) { |
| | | this.fetchFileList(); |
| | | //更新独立场景数据栈文件 |
| | | console.log(this.$root.$children[0].$children[1].$refs['sepRule']) |
| | | this.$root.$children[0].$children[1].$refs['sepRule'].getStackFiles(); |
| | | this.$notify({ |
| | | type: "success", |
| | | message: "文件排序成功!" |
| | |
| | | cmd.cb(cmd.data); |
| | | }, |
| | | handleFileDelete(rows, multi = false) { |
| | | let _this = this; |
| | | let ids = this.multipleSelection; |
| | | if (!multi) { |
| | | ids = [rows.id]; |
| | |
| | | type: "error", |
| | | message: "文件已删除" |
| | | }) |
| | | }) |
| | | }); |
| | | |
| | | }).catch(() => { }) |
| | | }, |
| | | handleFileMove(row) { |