From fd6485e57b787a893accf8261cf740e24844318a Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期二, 20 十月 2020 16:58:42 +0800 Subject: [PATCH] 数据栈文件更新(排序,删除,添加),刷新独立场景数据栈文件 --- src/pages/cameraAccess/components/DataStackInfo.vue | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/pages/cameraAccess/components/DataStackInfo.vue b/src/pages/cameraAccess/components/DataStackInfo.vue index 8a29a18..4bd21d6 100644 --- a/src/pages/cameraAccess/components/DataStackInfo.vue +++ b/src/pages/cameraAccess/components/DataStackInfo.vue @@ -413,6 +413,16 @@ 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; @@ -594,6 +604,9 @@ }) 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: "鏂囦欢鎺掑簭鎴愬姛锛�" @@ -632,6 +645,7 @@ cmd.cb(cmd.data); }, handleFileDelete(rows, multi = false) { + let _this = this; let ids = this.multipleSelection; if (!multi) { ids = [rows.id]; @@ -653,7 +667,8 @@ type: "error", message: "鏂囦欢宸插垹闄�" }) - }) + }); + }).catch(() => { }) }, handleFileMove(row) { -- Gitblit v1.8.0