From 38152047ce43892d40cec6e2e5e52a709402a15a Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Thu, 8 Aug 2024 17:23:13 +0800 Subject: [PATCH] gx --- src/view/person/index.vue | 43 ++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/view/person/index.vue b/src/view/person/index.vue index f3fe6f8..15e83e3 100644 --- a/src/view/person/index.vue +++ b/src/view/person/index.vue @@ -215,7 +215,7 @@ :tableData="tableType.data" :pagination="paginationDialog" @close="close" - @handle="handlePagination" + @handle="handlePaginationDialog" > @@ -578,8 +578,8 @@ const getTable = (url) => { size: paginationDialog.pageSize, }) .then((res) => { - if(res.code==200){ - tableType.data=res.data; + if (res.code == 200) { + tableType.data = res.data; } }); }; @@ -587,15 +587,11 @@ const close = (pagination) => { dialogShow.value = false; }; //医疗金分页 -const handlePaginationYLJ=(pagination)=>{ - -} +const handlePaginationYLJ = (pagination) => {}; //养老金分页 -const handlePaginationYL=(pagination)=>{ - -} +const handlePaginationYL = (pagination) => {}; //弹框分页 -const handlePaginationDlog = (pagination) => { +const handlePaginationDialog = (pagination) => { // dialogShow.value = false; }; //地图过来接口 @@ -657,14 +653,20 @@ const getData = (identNo) => { // } // }); // }; -const getYlj=()=>{ - http.get('/api/ggfwyth/ysyzt/getRyylxxList',{identNo:identNo.value}).then(res=>{ - if(res.code==200){ - data.value=res.data; - // tableType.total=res.data.total; - } - }) -} +const getYlj = () => { + http + .get("/api/ggfwyth/ysyzt/getRyylxxList", { + identNo: identNo.value, + current: pagination.current, + size: pagination.pageSize, + }) + .then((res) => { + if (res.code == 200) { + data.value = res.data; + // tableType.total=res.data.total; + } + }); +}; const back = () => { if (jump.value == "detail") { router.back(); @@ -677,7 +679,7 @@ watch( (newValue, oldValue) => { identNo.value = props.message.identNo; getData(props.message.identNo); - getYlj() + getYlj(); jump.value = "map"; } ); @@ -689,11 +691,10 @@ onMounted(() => { jump.value = "detail"; // getData("3"); // identNo.value="3" - getYlj() + getYlj(); } else { jump.value = "map"; } - });