From c960e2add5751edbe728dd5d297079b36544d11a Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 20 十二月 2022 17:40:17 +0800 Subject: [PATCH] 1 --- src/views/Archive/index.vue | 66 +++++++++++++++++++++++++------- 1 files changed, 51 insertions(+), 15 deletions(-) diff --git a/src/views/Archive/index.vue b/src/views/Archive/index.vue index 4adec2e..565591d 100644 --- a/src/views/Archive/index.vue +++ b/src/views/Archive/index.vue @@ -225,7 +225,7 @@ </el-table> </div> </div> - <div class="panerPage"> + <div class="panerPage" v-show="!isMenuActive"> <div class="pagination_box"> <el-pagination @size-change="handleSizeChange" @@ -590,6 +590,10 @@ { validator: repasswordValidator, trigger: 'blur' }, ], }, + upAttach:{ + tabName:null, + eventid:null, + } }; }, computed: { @@ -644,12 +648,28 @@ this.showMapVisible =true; this.$store.state.mapMenuBoolean = true; this.$store.state.mapMenuBoxFlag = '1'; + this.$store.state.mapPopBoolean = false; + this.$store.state.mapPopBoxFlag = null; + this.$store.state.download = true; + }, handleMapClose(){ - this.dialogMapVisible =false; + this.$confirm('纭鍏抽棴锛�') + .then((_) => { + this.closeMapDown(); + }) + .catch((_) => {}); + + + }, + closeMapDown(){ + this.dialogMapVisible =false; this.showMapVisible =false; this.$store.state.mapMenuBoolean = false; this.$store.state.mapMenuBoxFlag = null; + this.$store.state.download = false; + this.$store.state.mapPopBoolean = false; + this.$store.state.mapPopBoxFlag = null; }, moreEvent(res) { switch (res) { @@ -755,7 +775,6 @@ for (var i in this.multipleSelection1) { std.push(this.multipleSelection1[i].id) } - debugger var obj = { pwd: encrypt.encrypt(this.codeForm.repassword), ids: std @@ -771,9 +790,8 @@ guid: res.result, pwd: encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)) } - debugger - const data = await dataLib_selectDownloadFile(downObj) + const data = await dataLib_selectDownloadFile(downObj) if (data.code != 200) { this.$message.error('涓嬭浇璇锋眰澶辫触'); return @@ -856,6 +874,7 @@ this.listTypeData.pageIndex = 1; this.listTypeData.pageSize = 10; this.dialogtitle = res.tabDesc + '(' + res.tab + ')'; + this.upAttach.tabName= res.ns+"."+res.tab; this.filedsLayer = this.getCollapseDomFiled(); this.getCollapseTable(this.filedsLayer); @@ -877,7 +896,12 @@ this.itemdetail = std; this.innerVisible = true; }, - getAttachTable() { + getAttachTable(index, row) { + if(row.eventid != null){ + this.upAttach.eventid = row.eventid; + }else{ + this.upAttach.eventid =""; + } this.outerVisible = true; this.getAttacthFlieList(); }, @@ -905,7 +929,7 @@ formData.append('file', fs.files[i]); // fs.files[i].name,file } - $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName=lf.sys_style&eventid=fa25979a5ef8b43ba82a0be35b3fb0d4", { + $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName="+this.upAttach.tabName+"&eventid="+this.upAttach.eventid, { type: "post", data: formData, async: true, @@ -918,13 +942,16 @@ type: 'success' }); document.getElementById("insertFile").value = ""; - this.formInline = { + this.fromfile = { file: '', } this.getAttacthFlieList(); }, error: (e) => { document.getElementById("insertFile").value = ""; + this.fromfile = { + file: '', + } this.$message.error('闄勪欢娣诲姞澶辫触'); } }); @@ -932,10 +959,7 @@ async getAttacthFlieList(){ - var obj = { - tabName: 'lf.sys_style', - eventid: 'fa25979a5ef8b43ba82a0be35b3fb0d4' - } + var obj =this.upAttach; const res = await dataLib_selectFiles(obj); if (res.code != 200) { this.$message.error('鍒楄〃璋冪敤澶辫触'); @@ -967,9 +991,9 @@ this.attributeData = val; }); if (this.ruleForm.name != null) { - this.listData.filter = 'name like ' + this.ruleForm.name; + this.listTypeData.filter = 'name like ' + this.ruleForm.name; } else { - this.listData.filter = null; + this.listTypeData.filter = null; } const data = await dataLib_selectByPage(this.listTypeData); @@ -977,8 +1001,10 @@ this.$message.error('璋冪敤鍒楄〃澶辫触,璇疯仈绯诲伐浣滀汉鍛�!'); return; } + var res_val = this.attributeData; this.count1 = data.count; + for (var i in data.result) { let val_Data = data.result[i]; @@ -1012,9 +1038,11 @@ this.$message.error('鍒楄〃璋冪敤澶辫触'); return; } + const domains = await dataLib_selectDomains({ name: this.listTypeData.name, }); + if (domains.code != 200) { this.$message.error('鍒楄〃璋冪敤澶辫触'); return; @@ -1032,7 +1060,15 @@ } return std; }, - + //鍊煎煙瀛楁鍖归厤 + getDomainNaFild(res, result) { + for (var i in result) { + if (result[i].domName == res) { + return result[i].codeDesc; + } + } + return null; + }, handleSizeChange(res) { this.listData.pageIndex = 1; this.listData.pageSize = res; -- Gitblit v1.9.3