This commit is contained in:
duanxiaohai 2024-08-16 17:32:28 +08:00
parent febecca990
commit c91516817e
1 changed files with 50 additions and 32 deletions

View File

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