hanbaoshan
2020-10-20 fd6485e57b787a893accf8261cf740e24844318a
数据栈文件更新(排序,删除,添加),刷新独立场景数据栈文件
1个文件已修改
17 ■■■■■ 已修改文件
src/pages/cameraAccess/components/DataStackInfo.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) {