数据栈文件更新(排序,删除,添加),刷新独立场景数据栈文件
| | |
| | | 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; |
| | |
| | | }) |
| | | 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) { |