| | |
| | | <el-table |
| | | :data="gdbData" |
| | | style="width: 100%" |
| | | max-height="38.54167vw" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | |
| | | 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> |
| | | |
| | |
| | | gdbData: [], |
| | | gdbDialog: false, |
| | | gdbGuid: null, |
| | | loadDialogVisible: false |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | // 删除多条 |
| | | deleteMetaInfo() { |
| | | if (this.multipleSelection.length <= 0) { |
| | | return this.$message("请选择要删除的数据"); |
| | | } |
| | | this.$confirm("确定是否删除所选内容?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | |
| | | 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: "删除成功!", |
| | |
| | | this.multipleSelection = []; |
| | | // this.listData.pageSize = 10 |
| | | this.listData.pageIndex = 1; |
| | | |
| | | this.getMetaData(); |
| | | } else { |
| | | this.loadDialogVisible = false; |
| | | this.$message.error("删除失败"); |
| | | |
| | | this.multipleSelection = []; |
| | | } |
| | | }); |
| | |
| | | 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> |