Commit ba246036 by 闫泽浩

infpts更新

parent 18c7a8e4
......@@ -5,6 +5,9 @@ export function queryById(data) {
export function queryByPage(data) {
return Api.post("/manager/pts/queryByPage", data)
}
export function queryByPage2(data) {
return Api.post("/manager/pts/queryByPage2", data)
}
export function insert(data) {
return Api.post("/manager/pts/insert", data)
}
......
......@@ -73,7 +73,7 @@
<script>
import codes from "~/config/CodeTable";
import { queryById,queryByPage } from "~/service/test/pts.js";
import { queryById,queryByPage,queryByPage2 } from "~/service/test/pts.js";
export default {
name: "",
......@@ -90,9 +90,12 @@ export default {
],
ptaData: [],
ptaColumns: [
{ label: "客户号", prop: "extkey", width: "auto" },
{ label: "客户号", prop: "objkey", width: "auto" },
{ label: "客户名称", prop: "nam", width: "auto" },
{ label: "所属机构", prop: "branch", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
{ label: "经办机构", prop: "bchname", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
],
};
},
......@@ -111,6 +114,7 @@ export default {
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfptsSearch();
this.onInfptsSearch2();
},
onInfptsSearch() {
queryByPage(this.model).then(res => {
......@@ -129,6 +133,22 @@ export default {
})
},
onInfptsSearch2() {
queryByPage2(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total:
* totalPage: 0
*/
const list = res.list
this.ptaData = list
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
......
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