管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-08-04 d3215f0051943a83f459009359d0039c3a0e1a4e
src/views/datamanage/metadataManage.vue
@@ -932,6 +932,7 @@
        <el-table
          :data="gdbData"
          style="width: 100%"
          max-height="38.54167vw"
        >
          <el-table-column
            type="selection"
@@ -1062,6 +1063,27 @@
      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>
@@ -1231,6 +1253,7 @@
      gdbData: [],
      gdbDialog: false,
      gdbGuid: null,
      loadDialogVisible: false
    };
  },
  created() {
@@ -1709,6 +1732,9 @@
    },
    // 删除多条
    deleteMetaInfo() {
      if (this.multipleSelection.length <= 0) {
        return this.$message("请选择要删除的数据");
      }
      this.$confirm("确定是否删除所选内容?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
@@ -1719,8 +1745,10 @@
          for (var i in this.multipleSelection) {
            std.push(this.multipleSelection[i].id);
          }
          this.loadDialogVisible = true;
          deleteMeta({ ids: std.toString() }).then((res) => {
            if (res.code == 200) {
              this.loadDialogVisible = false;
              this.$message({
                type: "success",
                message: "删除成功!",
@@ -1728,9 +1756,12 @@
              this.multipleSelection = [];
              // this.listData.pageSize = 10
              this.listData.pageIndex = 1;
              this.getMetaData();
            } else {
              this.loadDialogVisible = false;
              this.$message.error("删除失败");
              this.multipleSelection = [];
            }
          });
@@ -2053,5 +2084,17 @@
    height: 740px;
    overflow-y: auto;
  }
  .loadBox {
    position: fixed;
    z-index: 2002;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    .el-loading-mask {
      background: transparent !important;
    }
  }
}
</style>