This commit is contained in:
duanxiaohai 2024-08-27 17:16:52 +08:00
parent 035827670d
commit b691ad3faf
1 changed files with 60 additions and 9 deletions

View File

@ -215,11 +215,11 @@
</div> </div>
<div> <div>
<div class="my-label"> <div class="my-label">
<div class="my-label-title">一卡通</div> <div class="my-label-title">走访记录</div>
</div> </div>
<div class="my-table"> <div class="my-table">
<el-table <el-table
:data="dataMyTag.form.data" :data="dataMyTag.zfForm.data"
border border
style="width: 100%" style="width: 100%"
height="270" height="270"
@ -237,7 +237,7 @@
color: '#fff', color: '#fff',
}" }"
> >
<template v-for="item in dataMyTag.form.column"> <template v-for="item in dataMyTag.zfForm.column">
<el-table-column <el-table-column
:width="item.width" :width="item.width"
:prop="item.property" :prop="item.property"
@ -248,12 +248,12 @@
<el-pagination <el-pagination
background background
layout="prev, pager, next" layout="prev, pager, next"
:page-size="zhpagination.pageSize" :page-size="zfpagination.pageSize"
:total="zhpagination.total" :total="zfpagination.total"
prev-text="上一页" prev-text="上一页"
next-text="下一页" next-text="下一页"
v-model:current-page="zhpagination.current" v-model:current-page="zfpagination.current"
@current-change="handlePagination1" @current-change="handlePagination2"
/> />
</div> </div>
</div> </div>
@ -529,6 +529,10 @@ const dataMyTag = reactive({
data: [], data: [],
column: [], column: [],
}, },
zfForm: {
data: [],
column: [],
},
}); });
// //
const pagination = reactive({ const pagination = reactive({
@ -544,6 +548,13 @@ const zhpagination = reactive({
total: 10, total: 10,
showTotal: 0, showTotal: 0,
}); });
//访
const zfpagination = reactive({
current: 1,
pageSize: 10,
total: 10,
showTotal: 0,
});
// //
const paginationDialog = reactive({ const paginationDialog = reactive({
current: 1, current: 1,
@ -740,6 +751,27 @@ const columnsList = reactive({
}, },
], ],
}, },
走访记录: {
url: "/api/ggfwyth/ysyzt/getSmgczfjl",
column: [
{
label: "走访人",
property: "name",
},
{
label: "来访者",
property: "visitor",
},
{
label: "来访日期",
property: "visitTime",
},
{
label: "来访记录",
property: "content",
},
],
},
}); });
// //
@ -781,7 +813,9 @@ const onClickTag2 = (name, label) => {
if (name == "婚育") { if (name == "婚育") {
} else if (name == "综合") { } else if (name == "综合") {
dataMyTag.form.column = columnsList["一卡通"].column; dataMyTag.form.column = columnsList["一卡通"].column;
dataMyTag.zfForm.column = columnsList["走访记录"].column;
oneCardSolution(); oneCardSolution();
visitRecords();
getTable(tableType.url, true); getTable(tableType.url, true);
} else { } else {
getTable(tableType.url, true); getTable(tableType.url, true);
@ -858,6 +892,11 @@ const handlePagination1 = (currentPage) => {
zhpagination.current = currentPage; zhpagination.current = currentPage;
oneCardSolution(); oneCardSolution();
}; };
//访
const handlePagination2 = (currentPage) => {
zfpagination.current = currentPage;
visitRecords();
};
// //
const handlePaginationDialog = (currentPage) => { const handlePaginationDialog = (currentPage) => {
// dialogShow.value = false; // dialogShow.value = false;
@ -896,6 +935,18 @@ const oneCardSolution = () => {
} }
}); });
}; };
const visitRecords = () => {
http
.get(
`/api/ggfwyth/ysyzt/getSmgczfjl?identNo=${dataMyTag.identNo}&page=${zfpagination.current}&size=${zfpagination.pageSize}`
)
.then((res) => {
if (res.code == 200) {
dataMyTag.zfForm.data = res.data;
zfpagination.total = res.count;
}
});
};
// //
const openCamera = () => { const openCamera = () => {
// if (errorMessage.value) { // if (errorMessage.value) {
@ -903,7 +954,7 @@ const openCamera = () => {
// message: errorMessage.value, // message: errorMessage.value,
// }); // });
// }else{ // }else{
getCameraUrl(); getCameraUrl();
// } // }
}; };