From d8fcf4c20cd4638a3def6227a71ea2c81fbc0885 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期五, 23 十月 2020 17:23:15 +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