This commit is contained in:
duanxiaohai 2024-09-14 11:08:41 +08:00
parent 772dad5a10
commit 449b4f56be
1 changed files with 19 additions and 198 deletions

View File

@ -313,6 +313,7 @@ const formData = reactive({
{ {
label: "人口标签", label: "人口标签",
property: "bzlx", property: "bzlx",
type: "slot",
}, },
], ],
column_1: [ column_1: [
@ -364,6 +365,7 @@ const formData = reactive({
{ {
label: "人口标签", label: "人口标签",
property: "bzlx", property: "bzlx",
type: "slot",
}, },
], ],
column_3: [ column_3: [
@ -395,55 +397,7 @@ const formData = reactive({
age: "87", age: "87",
bzlx: "1", bzlx: "1",
}, },
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "杨*根",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{ {
xm: "舒*香", xm: "舒*香",
identNo: "309601", identNo: "309601",
@ -467,64 +421,7 @@ const formData = reactive({
age: "87", age: "87",
bzlx: "2", bzlx: "2",
}, },
{ {
xm: "舒*香",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "2",
},
{
xm: "舒*香",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "2",
},
{
xm: "舒*香",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "2",
},
{
xm: "舒*香",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "2",
},
{
xm: "舒*香",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "2",
},
{
xm: "舒*香",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "2",
},
{
xm: "罗*华",
zt: 3,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "罗*华",
zt: 3,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "罗*华", xm: "罗*华",
zt: 3, zt: 3,
dz: "浙江省龙游县龙*****号", dz: "浙江省龙游县龙*****号",
@ -546,21 +443,6 @@ const formData = reactive({
bzlx: "1", bzlx: "1",
}, },
{
xm: "罗*华",
zt: 3,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "罗*华",
zt: 3,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{ {
xm: "周*田", xm: "周*田",
zt: 3, zt: 3,
@ -603,28 +485,6 @@ const formData = reactive({
age: "87", age: "87",
bzlx: "1", bzlx: "1",
}, },
{
xm: "徐*英",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "徐*英",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "徐*英",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{ {
xm: "王*奶", xm: "王*奶",
zt: 1, zt: 1,
@ -632,48 +492,6 @@ const formData = reactive({
age: "87", age: "87",
bzlx: "1", bzlx: "1",
}, },
{
xm: "王*奶",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "王*奶",
zt: 1,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "王*奶",
zt: 3,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "王*奶",
zt: 3,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "王*奶",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{
xm: "王*奶",
zt: 2,
dz: "浙江省龙游县龙*****号",
age: "87",
bzlx: "1",
},
{ {
xm: "夏*香", xm: "夏*香",
zt: 1, zt: 1,
@ -681,7 +499,6 @@ const formData = reactive({
age: "87", age: "87",
bzlx: "1", bzlx: "1",
}, },
{ {
xm: "夏*寿", xm: "夏*寿",
zt: 3, zt: 3,
@ -3321,15 +3138,12 @@ const handlePagination1 = (val) => {
}; };
const handlePagination2 = (current) => { const handlePagination2 = (current) => {
console.log("页数", current); console.log("页数", current);
pagination2.currentPage = current; pagination2.currentPage = current;
switch (data.name) { switch (data.name) {
case "最低生活保障": case "最低生活保障":
// getTable(pagination); // getTable(pagination);
pagination2.url = "/api/ggfwyth/pg/shjzShbz"; // pagination2.url = "/api/ggfwyth/pg/shjzShbz"; //
getTable3(pagination2); getTable2(pagination2);
break; break;
case "老年人福利补贴": case "老年人福利补贴":
getServiceList(pagination2, 0); getServiceList(pagination2, 0);
@ -3347,14 +3161,12 @@ const handlePagination2 = (current) => {
}; };
const handlePagination3 = (current) => { const handlePagination3 = (current) => {
console.log("页数", current); console.log("页数", current);
pagination2.currentPage = current; pagination2.currentPage = current;
switch (data.name) { switch (data.name) {
case "最低生活保障": case "最低生活保障":
// getTable(pagination); // getTable(pagination);
pagination2.url = "/api/ggfwyth/pg/shjzShbz"; // pagination2.url = "/api/ggfwyth/pg/shjzShbz"; //
getTable3(pagination2); getTable2(pagination2);
break; break;
case "老年人福利补贴": case "老年人福利补贴":
getServiceList(pagination2, 0); getServiceList(pagination2, 0);
@ -3409,7 +3221,7 @@ const lampScreen = (val, val2) => {
} else if (val == 1) { } else if (val == 1) {
pagination2.currentPage = 1; pagination2.currentPage = 1;
pagination2.url = "/api/ggfwyth/pg/shjzShbz"; // pagination2.url = "/api/ggfwyth/pg/shjzShbz"; //
getTable3(pagination2); getTable2(pagination2);
} }
} else { } else {
const filteredData = val2.filter((element) => element.zt === val); const filteredData = val2.filter((element) => element.zt === val);
@ -3532,6 +3344,10 @@ const statusDetails = (val) => {
} }
break; break;
default: default:
ElMessage.warning({
message: `${val.xm}无id!`,
offset: 100, //
});
break; break;
} }
}; };
@ -3566,7 +3382,7 @@ const getTable1 = (pagination) => {
} }
}); });
}; };
const getTable3 = (pagination) => { const getTable2 = (pagination) => {
http http
.get( .get(
`${pagination.url}?page=${pagination.currentPage}&size=${pagination.pageSize}` `${pagination.url}?page=${pagination.currentPage}&size=${pagination.pageSize}`
@ -3684,6 +3500,10 @@ const handleRowClick = (row) => {
} }
break; break;
default: default:
ElMessage.warning({
message: `${row.xm}无id!`,
offset: 100, //
});
break; break;
} }
}; };
@ -3722,7 +3542,7 @@ const listAssignment = () => {
// 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);
getTable3(pagination); getTable2(pagination);
break; break;
case "老年人福利补贴": case "老年人福利补贴":
@ -3759,6 +3579,7 @@ const listAssignment = () => {
break; break;
default: default:
updateFormDataAndTable(data.name, formData.jiaTableData); updateFormDataAndTable(data.name, formData.jiaTableData);
pagination.total = formData.jiaTableData.tableData1.length;
break; break;
} }
}; };