From 6f07da9344da3c3a2c099c33c3e98fb9e247fdeb Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期三, 09 八月 2023 15:48:43 +0800 Subject: [PATCH] 项目管理修改批量上传功能 --- src/views/datamanage/catalogueManage.vue | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/src/views/datamanage/catalogueManage.vue b/src/views/datamanage/catalogueManage.vue index 8d67230..a6a4fe1 100644 --- a/src/views/datamanage/catalogueManage.vue +++ b/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; -- Gitblit v1.9.3