| | |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | height="90%" |
| | | height="500px" |
| | | border |
| | | style="width: 100%" |
| | | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | |
| | | >{{$t('common.details')}}</el-link |
| | | > |
| | | <el-link class="elLink" |
| | | @click="getAttachTable" |
| | | @click="getAttachTable(scope.$index, scope.row)" |
| | | style="margin-left: 20px; " |
| | | >{{$t('common.enclosure')}}</el-link |
| | | > |
| | |
| | | showinfoBox: false, |
| | | itemdetail: {}, |
| | | |
| | | tableData: [], |
| | | attributeData: [], |
| | | currentPage: 1, |
| | | searchName: '', |
| | |
| | | }, |
| | | getClickTable: null, |
| | | attacgSelection: [], |
| | | upAttach:{ |
| | | tabName:null, |
| | | eventid:null, |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | 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, |
| | |
| | | }); |
| | | }, |
| | | async getAttacthFlieList() { |
| | | var obj = { |
| | | tabName: 'lf.sys_style', |
| | | eventid: 'fa25979a5ef8b43ba82a0be35b3fb0d4' |
| | | } |
| | | var obj =this.upAttach |
| | | const res = await dataQuery_selectFiles(obj); |
| | | if (res.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | |
| | | }, |
| | | |
| | | |
| | | getAttachTable() { |
| | | getAttachTable(index, row) { |
| | | if(row.eventid != null){ |
| | | this.upAttach.eventid = row.eventid; |
| | | }else{ |
| | | this.upAttach.eventid = ''; |
| | | } |
| | | this.getAttacthFlieList(); |
| | | this.dialogFormVisible = true; |
| | | }, |
| | |
| | | this.listData.pageIndex =1; |
| | | this.listData.pageSize=10; |
| | | this.count = 0; |
| | | this.upAttach.tabName= data.ns+"."+data.tab; |
| | | this.filedsLayer = this.getCollapseDomFiled(); //获取每个表字段名称及阈值 |
| | | |
| | | //获取table信息 |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.tableData = data.result; |
| | | this.$refs.filterTable.doLayout(); |
| | | }, |
| | | //获取每个表字段名称及阈值 |
| | | async getCollapseDomFiled() { |