| | |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <div class="panerPage"> |
| | | <div class="panerPage" v-show="!isMenuActive"> |
| | | <div class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | |
| | | { validator: repasswordValidator, trigger: 'blur' }, |
| | | ], |
| | | }, |
| | | upAttach:{ |
| | | tabName:null, |
| | | eventid:null, |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | 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) { |
| | |
| | | for (var i in this.multipleSelection1) { |
| | | std.push(this.multipleSelection1[i].id) |
| | | } |
| | | debugger |
| | | var obj = { |
| | | pwd: encrypt.encrypt(this.codeForm.repassword), |
| | | ids: std |
| | |
| | | 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 |
| | |
| | | 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); |
| | |
| | | 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(); |
| | | }, |
| | |
| | | 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, |
| | |
| | | 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('附件添加失败'); |
| | | } |
| | | }); |
| | |
| | | |
| | | |
| | | 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('列表调用失败'); |
| | |
| | | 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); |
| | |
| | | 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]; |
| | | |
| | |
| | | this.$message.error('列表调用失败'); |
| | | return; |
| | | } |
| | | |
| | | const domains = await dataLib_selectDomains({ |
| | | name: this.listTypeData.name, |
| | | }); |
| | | |
| | | if (domains.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | return; |
| | |
| | | } |
| | | 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; |