Commit 2fc63a88 by xiaotong

QRTMGS查询逻辑调整

parent d0d16acc
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
this.load = true; this.load = true;
let rtnmsg = await Api.post("/frontend/case/query", { let rtnmsg = await Api.post("/frontend/case/query", {
...this.model, ...this.model,
pageNum: this.pagination.pageNum, pageNumber: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
dts: moment(dts).format("YYYY-MM-DD"), dts: moment(dts).format("YYYY-MM-DD"),
dte: moment(dte).format("YYYY-MM-DD"), dte: moment(dte).format("YYYY-MM-DD"),
...@@ -32,17 +32,18 @@ export default { ...@@ -32,17 +32,18 @@ export default {
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
this.stmData.data = []; this.stmData.data = [];
const {list} = rtnmsg.data; this.stmData.data=rtnmsg.data.list;
const {codes:{sta1}} = this; // const {list} = rtnmsg.data;
// const {codes:{sta1}} = this;
list.forEach(v=>{ //
for(let i in sta1){ // list.forEach(v=>{
if(sta1[i].value == v.sta){ // for(let i in sta1){
v.sta = sta1[i].label; // if(sta1[i].value == v.sta){
} // v.sta = sta1[i].label;
} // }
}) // }
this.stmData.data = list; // })
// this.stmData.data = list;
this.pagination = { this.pagination = {
pageNum: rtnmsg.data.pageNum || 1, pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10, 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