管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-08-09 6f07da9344da3c3a2c099c33c3e98fb9e247fdeb
src/views/datamanage/catalogueManage.vue
@@ -416,6 +416,26 @@
      src=""
      style="display: none; border: 0; padding: 0; height: 0; width: 0"
    ></iframe>
    <div
      class="loadBox"
      v-if="loadDialogVisible"
    >
      <div style="widht:100%; margin:20px; color:white">
        <div style="margin-left:99%">
          <!-- <el-link
            @click="setloadDialogVisible()"
            style="color:white"
          > X</el-link> -->
        </div>
      </div>
      <div
        v-loading="true"
        element-loading-background="rgba(0, 0, 0, 0.0) "
        element-loading-text="目录上传中,请等待..."
        style="margin: 0px 20px;widht:100%;height:calc(100% - 80px); "
      >
      </div>
    </div>
  </div>
</template>
@@ -540,6 +560,7 @@
      showRightMenu: false,
      checksData: null,
      checksCopyData: null,
      loadDialogVisible: false
    };
  },
  methods: {
@@ -679,6 +700,7 @@
      }
      this.tableData = arr;
      this.setInsertData(this.tableData);
    },
    getNameAndPname(res, result, flag) {
@@ -714,6 +736,7 @@
      }
    },
    async getAllNodeId(res) {
      this.loadDialogVisible = true;
      for (let i = 0; i < res.length; i++) {
        var val = res[i];
        if (val.pname == null) {
@@ -730,6 +753,9 @@
        const data = await insertDir(val);
        if (data.code != 200) {
          this.$message.error("目录上传失败" + data.msg);
          this.loadDialogVisible = false;
          break;
        }
        this.tableData.filter((child) => {
@@ -739,12 +765,15 @@
          }
        });
        this.itemaName = data.result;
        this.getDirTree();
        // this.getDirTree();
        // if (res[i].children) {
        //   this.getAllNodeId(res[i].children);
        // }
      }
      this.getDirTree();
      this.loadDialogVisible = false;
    },
    excelData(source) {
      let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆
@@ -1445,6 +1474,18 @@
    }
  }
}
.loadBox {
  z-index: 2002;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  .el-loading-mask {
    background: transparent !important;
  }
}
.btnBox {
  position: absolute;
  bottom: 0;