This commit is contained in:
姚宇浩 2024-08-19 16:53:38 +08:00
commit f1ee85fcf6
1 changed files with 50 additions and 32 deletions

View File

@ -192,6 +192,7 @@ const router = useRouter();
const routers = useRoute();
const data = reactive({
name: "",
identNo: "",
tabelshow: true,
pagedData: [],
first: 1,
@ -859,24 +860,6 @@ const formData = reactive({
lmbhzTableData: {
url: "",
columns: [
// {
// label: "",
// property: "fullName",
// width: "90",
// },
// {
// label: "",
// property: "address",
// },
// {
// label: "",
// property: "age",
// width: "60",
// },
// {
// label: "",
// property: "subsidyType",
// },
{
label: "时间",
property: "sfsj",
@ -1275,23 +1258,19 @@ const formData = reactive({
yygs_knxs_TableData: {
url: "",
columns: [
{
{
label: "姓名",
property: "fullName",
property: "xm",
width: "90",
},
{
label: "地址",
property: "address",
},
{
label: "年龄",
property: "age",
width: "60",
label: "学校",
property: "xx",
},
{
label: "补助类型",
property: "subsidyType",
property: "bzlx",
},
],
column_1: [
@ -1508,6 +1487,7 @@ const handlePagination = (current) => {
getTable(pagination);
break;
case "义务教育学生营养改善计划":
getTable(pagination);
break;
default:
break;
@ -1625,10 +1605,45 @@ const getServiceList = async (pagination, sfxs) => {
const handleRowClick = (row, column, event) => {
// row
console.log(row);
router.push({
path: `/home/index/person`,
query: { identNo: row.identNo, type: "detail" },
});
switch (data.name) {
case "最低生活保障":
data.identNo = row.sfzhm;
router.push({
path: `/home/index/person`,
query: { identNo: data.identNo, type: "detail" },
});
break;
case "老年人福利补贴":
data.identNo = row.identNo;
router.push({
path: `/home/index/person`,
query: { identNo: data.identNo, type: "detail" },
});
break;
case "慢性病患者健康管理":
data.identNo = row.identNo;
router.push({
path: `/home/index/person`,
query: { identNo: data.identNo, type: "detail" },
});
break;
case "义务教育学生生活补助":
data.identNo = row.ident_no;
router.push({
path: `/home/index/person`,
query: { identNo: data.identNo, type: "detail" },
});
break;
case "义务教育学生营养改善计划":
data.identNo = row.ident_no;
router.push({
path: `/home/index/person`,
query: { identNo: data.identNo, type: "detail" },
});
break;
default:
break;
}
};
const updateFormDataAndTable = (formDataName, tableData) => {
formData.name = formDataName;
@ -1651,6 +1666,7 @@ const listAssignment = () => {
updateFormDataAndTable("低保", formData.dbTableData);
data.tableData2 = formData.dbTableData.resultsList;
pagination.url = "/api/ggfwyth/pg/shjzShbz";
getTable(pagination);
break;
case "老年人福利补贴":
@ -1673,6 +1689,8 @@ const listAssignment = () => {
break;
case "义务教育学生营养改善计划":
updateFormDataAndTable("困难学生", formData.yygs_knxs_TableData);
pagination.url = "/api/ggfwyth/pg/ywjyShbz";
getTable(pagination);
break;
default:
break;