高度设置以及不分页展示数据

This commit is contained in:
shijing 2023-07-10 13:18:14 +08:00
parent 3a0d68c91b
commit f4a6ac4605
2 changed files with 31 additions and 34 deletions

View File

@ -251,7 +251,7 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight" max-height="300"
> >
<el-table-column label="序号" type="index" width="50" /> <el-table-column label="序号" type="index" width="50" />
<el-table-column label="检查类型"> <el-table-column label="检查类型">
@ -286,7 +286,6 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight"
id="oinspect" id="oinspect"
style="display: none;" style="display: none;"
> >
@ -326,7 +325,7 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight" max-height="300"
> >
<el-table-column label="序号" type="index" width="50" /> <el-table-column label="序号" type="index" width="50" />
<el-table-column label="报告/证书编号" prop="number"></el-table-column> <el-table-column label="报告/证书编号" prop="number"></el-table-column>
@ -386,7 +385,7 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight" max-height="300"
> >
<el-table-column label="序号" type="index" width="50" /> <el-table-column label="序号" type="index" width="50" />
<el-table-column label="超期报告/证书编号" prop="number"></el-table-column> <el-table-column label="超期报告/证书编号" prop="number"></el-table-column>
@ -453,7 +452,7 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight" max-height="300"
> >
<el-table-column label="序号" type="index" width="50" /> <el-table-column label="序号" type="index" width="50" />
<el-table-column label="能力验证名称" prop="name"></el-table-column> <el-table-column label="能力验证名称" prop="name"></el-table-column>
@ -540,7 +539,7 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight" max-height="300"
> >
<el-table-column label="序号" type="index" width="50" /> <el-table-column label="序号" type="index" width="50" />
<el-table-column label="投诉人/机构" prop="complainant"></el-table-column> <el-table-column label="投诉人/机构" prop="complainant"></el-table-column>
@ -619,7 +618,7 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
:height="tableHeight" max-height="300"
> >
<el-table-column label="序号" type="index" width="50" /> <el-table-column label="序号" type="index" width="50" />
<el-table-column label="风险事实描述" prop="content"></el-table-column> <el-table-column label="风险事实描述" prop="content"></el-table-column>
@ -841,7 +840,7 @@
}, },
mounted(){ mounted(){
let height1 = document.getElementsByClassName('app-main')[0].clientHeight; let height1 = document.getElementsByClassName('app-main')[0].clientHeight;
this.leftHeight = height1-15; this.leftHeight = height1-25;
this.listQuery.belong_dept =this.$store.getters.dept; this.listQuery.belong_dept =this.$store.getters.dept;
this.getOrgList(); this.getOrgList();
this.getList(); this.getList();
@ -989,46 +988,46 @@
}, },
getRcList(){ getRcList(){
let that = this; let that = this;
getRcList({task2do:that.task2do,etype:10}).then((res) => { getRcList({task2do:that.task2do,etype:10,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.rcList =res.data.results; that.rcList =res.data;
} }
}); });
getRcList({task2do:that.task2do,etype:20}).then((res) => { getRcList({task2do:that.task2do,etype:20,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.rc2List =res.data.results; that.rc2List =res.data;
} }
}); });
}, },
getPtList(){ getPtList(){
let that = this; let that = this;
getPtList({task2do:that.task2do}).then((res) => { getPtList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.ptList=res.data.results; that.ptList=res.data;
} }
}); });
}, },
getRiskList(){ getRiskList(){
let that = this; let that = this;
getRiskList({task2do:that.task2do}).then((res) => { getRiskList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.riskList = res.data.results; that.riskList = res.data;
} }
}); });
}, },
getComplaintList(){ getComplaintList(){
let that = this; let that = this;
getComplaintList({task2do:that.task2do}).then((res) => { getComplaintList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.complaintList = res.data.results; that.complaintList = res.data;
} }
}); });
}, },
getOinspectList(){ getOinspectList(){
let that = this; let that = this;
getOinspectList({task2do:that.task2do}).then((res) => { getOinspectList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.oinspectList=res.data.results; that.oinspectList=res.data;
} }
}); });
}, },

View File

@ -641,48 +641,46 @@ export default {
}, },
getRcList(){ getRcList(){
let that = this; let that = this;
getRcList({task2do:that.task2do,etype:10}).then((res) => { getRcList({task2do:that.task2do,etype:10,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.rcList =res.data.results; that.rcList =res.data;
} }
}); });
getRcList({task2do:that.task2do,etype:20}).then((res) => { getRcList({task2do:that.task2do,etype:20,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.rc2List =res.data.results; that.rc2List =res.data;
} }
}); });
}, },
getPtList(){ getPtList(){
let that = this; let that = this;
getPtList({task2do:that.task2do}).then((res) => { getPtList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.ptList=res.data.results; that.ptList=res.data;
} }
}); });
}, },
getRiskList(){ getRiskList(){
let that = this; let that = this;
getRiskList({task2do:that.task2do}).then((res) => { getRiskList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
// debugger; that.riskList = res.data;
console.log(res)
that.riskList = res.data.results;
} }
}); });
}, },
getComplaintList(){ getComplaintList(){
let that = this; let that = this;
getComplaintList({task2do:that.task2do}).then((res) => { getComplaintList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.complaintList = res.data.results; that.complaintList = res.data;
} }
}); });
}, },
getOinspectList(){ getOinspectList(){
let that = this; let that = this;
getOinspectList({task2do:that.task2do}).then((res) => { getOinspectList({task2do:that.task2do,page:0}).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.oinspectList=res.data.results; that.oinspectList=res.data;
} }
}); });
}, },