Commit 2fc63a88 by xiaotong

QRTMGS查询逻辑调整

parent d0d16acc
......@@ -24,7 +24,7 @@ export default {
this.load = true;
let rtnmsg = await Api.post("/frontend/case/query", {
...this.model,
pageNum: this.pagination.pageNum,
pageNumber: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
dts: moment(dts).format("YYYY-MM-DD"),
dte: moment(dte).format("YYYY-MM-DD"),
......@@ -32,17 +32,18 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
const {codes:{sta1}} = this;
list.forEach(v=>{
for(let i in sta1){
if(sta1[i].value == v.sta){
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.stmData.data=rtnmsg.data.list;
// const {list} = rtnmsg.data;
// const {codes:{sta1}} = this;
//
// list.forEach(v=>{
// for(let i in sta1){
// if(sta1[i].value == v.sta){
// v.sta = sta1[i].label;
// }
// }
// })
// this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment