| | |
| | | <div v-if="radio===0"> |
| | | <lims-table :tableData="tableData" :column="column" |
| | | :isSelection="true" :handleSelectionChange="handleSelectionChange" |
| | | @pagination="pagination" |
| | | :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | <div class="table" v-if="radio===1" v-loading="pageLoading" @scroll="scrollFn"> |
| | | <el-row :gutter="16"> |
| | | <el-col :span="6" v-for="(m,i) in list" :key="i" :xs="24" :sm="12" :md="8" :lg="6" :xl="6" style="margin-bottom: 16px;"> |
| | | <el-col :span="8" v-for="(m,i) in list" :key="i" :xs="24" :sm="12" :md="8" :lg="8" :xl="6" style="margin-bottom: 16px;"> |
| | | <div class="table-item"> |
| | | <el-image style="width: 102px;height: 102px;margin-right: 20px;border-radius: 16px;" :src="process.env.VUE_APP_BASE_API+'/img/'+m.imageUrl"> |
| | | <el-image style="width: 102px;height: 102px;margin-right: 20px;border-radius: 16px;" :src="javaApi +'/img/'+m.imageUrl"> |
| | | <div slot="error" class="image-error" style="width: 100px; |
| | | height: 100px; |
| | | border-radius: 16px; |
| | |
| | | page: { |
| | | total:0, |
| | | size:10, |
| | | current:0 |
| | | current:1 |
| | | }, |
| | | tableLoading: false, |
| | | qualificationsList:[], |
| | |
| | | }, |
| | | methods: { |
| | | selectorSwitch(radio) { |
| | | if(radio === '1'){ |
| | | if(radio === 1){ |
| | | this.list = []; |
| | | this.refreshTable(); |
| | | } |
| | | }, |
| | | refreshTable() { |
| | | if (this.radio === '0') { |
| | | if (this.radio === 0) { |
| | | this.tableLoading = true; |
| | | getCertificationDetail({...this.page,...this.queryParams,}).then(res => { |
| | | getCertificationDetail({...this.page,...this.queryParams}).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 200) { |
| | | this.tableData = res.data |
| | | this.page.total = res.total |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | } |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | |
| | | window.addEventListener("scroll", this.throttle(this.scrollFn, 20000)); |
| | | } |
| | | getCertificationDetail({ |
| | | page: { |
| | | current: this.currentPage, |
| | | size: this.pageSize |
| | | }, |
| | | entity: this.queryParams |
| | | current: this.currentPage, |
| | | size: this.pageSize, |
| | | ...this.queryParams |
| | | }).then(res => { |
| | | if(res.code===200){ |
| | | this.total = res.data.body.total |
| | | let list = res.data.body.records; |
| | | this.total = res.data.total |
| | | let list = res.data.records; |
| | | if(list.length===0){ |
| | | this.finishLoding = true; |
| | | }else{ |
| | |
| | | }, |
| | | // 重置 |
| | | refresh() { |
| | | this.queryParams.name = '' |
| | | this.page.size = 10 |
| | | this.page.current = 1 |
| | | this.refreshTable() |
| | | if(this.radio === 0){ |
| | | this.queryParams.name = '' |
| | | this.page.size = 10 |
| | | this.page.current = 1 |
| | | this.refreshTable() |
| | | } else { |
| | | this.finishLoding = false; |
| | | this.currentPage= 1; |
| | | this.list=[]; |
| | | this.refreshTable() |
| | | } |
| | | }, |
| | | // 表格多选 |
| | | handleSelectionChange (selection) { |
| | | this.selection = selection; |
| | | }, |
| | | pagination (page) { |
| | | this.page.size = page.pageNum.limit |
| | | this.refreshTable() |
| | | }, |
| | | // 资质明细批量删除 |
| | | handleDel(){ |
| | |
| | | line-height: 40px; |
| | | margin-bottom: 10px; |
| | | } |
| | | .table-item{ |
| | | border-radius: 8px 8px 8px 8px; |
| | | box-shadow: 4px 4px 8px 0px rgba(51,51,51,0.04); |
| | | border: 1px solid #EEEEEE; |
| | | box-sizing: border-box; |
| | | padding: 14px 12px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |