fix:日常监督超期添加翻页

This commit is contained in:
shijing 2023-09-06 13:25:47 +08:00
parent 22b761f644
commit 2599aab7d0
2 changed files with 30 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -274,11 +274,11 @@
<span class="cardTitle">超期报告</span>
</div>
<el-table
:data="rc2List"
:data="rc2List.results"
fit
stripe
highlight-current-row
height="250px"
height="219px"
id="table2"
>
<el-table-column label="序号" type="index" width="50" />
@ -287,6 +287,13 @@
<el-table-column label="报告/证书应发日期" prop="date_expect"></el-table-column>
<el-table-column label="报告/证书实际发放日期" prop="date_issue"></el-table-column>
</el-table>
<pagination
:total="rc2List.count"
:page-sizes="pageSizes"
:page.sync="rc2ListQuery.page"
:limit.sync="rc2ListQuery.page_size"
@pagination="getRc2List"
/>
</el-card>
</el-col>
<el-col :span="12" style="margin-top: 5px;">
@ -543,11 +550,15 @@ export default {
deptOptions: [],
task2doItem:{},
rcList:[],//报告证书{应发/超期}
rc2List:[],
rc2List:{},
ptList:[],//能力验证
riskList:[],//风险
complaintList:[],//投诉
oinspectList:[],//外部监查
rc2ListQuery:{
page: 1,
page_size: 20,
},
};
},
created() {
@ -657,6 +668,7 @@ export default {
this.task2do = row.id;
this.getPtList();
this.getRcList();
this.getRc2List();
this.getRiskList();
this.getComplaintList();
this.getOinspectList();
@ -680,6 +692,7 @@ export default {
this.task2do = row.id;
this.getPtList();
this.getRcList();
this.getRc2List();
this.getRiskList();
this.getComplaintList();
this.getOinspectList();
@ -765,10 +778,20 @@ export default {
getRcList({task2do:that.task2do,etype:10,page:0}).then((res) => {
that.rcList =res.data;
});
getRcList({task2do:that.task2do,etype:20,page:0}).then((res) => {
that.rc2List =res.data;
});
},
getRc2List(){
let that = this;
let obj = {};
obj.task2do = that.task2do;
obj.etype = 20;
obj.page = that.rc2ListQuery.page;
obj.page_size = that.rc2ListQuery.page_size;
getRcList(obj).then((res) => {
if (res.code >= 200) {
that.rc2List =res.data;
}
});
},
getPtList(){
let that = this;
getPtList({task2do:that.task2do,page:0}).then((res) => {