This commit is contained in:
duanxiaohai 2024-10-29 11:58:23 +08:00
parent d7dea0cc3c
commit df0d957e8e
3 changed files with 62 additions and 37 deletions

BIN
dist.zip Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 484 KiB

View File

@ -26,7 +26,27 @@
}" }"
> >
<template v-for="item in data.columns"> <template v-for="item in data.columns">
<el-table-column :label="item.label" v-if="item.type == 'slot'">
<template #default="scope">
<el-button
size="small"
color="#2c40ea"
@click="handleEdit(scope.$index, scope.row)"
>
完成
</el-button>
<el-popconfirm
title="是否确定该人员不符合要求?"
@confirm="confirmEvent(scope.$index, scope.row)"
>
<template #reference>
<el-button size="small" type="warning"> 不符合 </el-button>
</template>
</el-popconfirm>
</template>
</el-table-column>
<el-table-column <el-table-column
v-else
:prop="item.property" :prop="item.property"
:label="item.label" :label="item.label"
:width="item.width" :width="item.width"
@ -186,12 +206,12 @@
}" }"
:row-style="{ background: 'rgba(245, 246, 247, 1)' }" :row-style="{ background: 'rgba(245, 246, 247, 1)' }"
> >
<template v-for="item in data.columns"> <template v-for="item in data.columns">
<el-table-column <el-table-column
:prop="item.property" :prop="item.property"
:label="item.label" :label="item.label"
:width="item.width" :width="item.width"
:fixed="item.fixed" :fixed="item.fixed"
/> />
</template> </template>
<!-- <el-table-column prop="index" label="序号" width="60" /> <!-- <el-table-column prop="index" label="序号" width="60" />
@ -257,12 +277,12 @@
}" }"
:row-style="{ background: 'rgba(245, 246, 247, 1)' }" :row-style="{ background: 'rgba(245, 246, 247, 1)' }"
> >
<template v-for="item in data.columns"> <template v-for="item in data.columns">
<el-table-column <el-table-column
:prop="item.property" :prop="item.property"
:label="item.label" :label="item.label"
:width="item.width" :width="item.width"
:fixed="item.fixed" :fixed="item.fixed"
/> />
</template> </template>
<!-- <el-table-column prop="index" label="序号" width="60" /> <!-- <el-table-column prop="index" label="序号" width="60" />
@ -343,19 +363,19 @@
background: 'rgba(231, 233, 235, 1)', background: 'rgba(231, 233, 235, 1)',
color: 'black', color: 'black',
}" }"
> >
<template v-for="item in data.columns"> <template v-for="item in data.columns">
<el-table-column <el-table-column
:prop="item.property" :prop="item.property"
:label="item.label" :label="item.label"
:width="item.width" :width="item.width"
:fixed="item.fixed" :fixed="item.fixed"
/> />
</template> </template>
<!-- <el-table-column prop="ahax0004" label="申请救助" width="170" /> --> <!-- <el-table-column prop="ahax0004" label="申请救助" width="170" /> -->
<!-- <el-table-column prop="ahax0011" label="银行账号" width="170" /> --> <!-- <el-table-column prop="ahax0011" label="银行账号" width="170" /> -->
<!-- <el-table-column prop="azdf0005" label="家庭总人口" width="100" /> --> <!-- <el-table-column prop="azdf0005" label="家庭总人口" width="100" /> -->
<!-- <el-table-column prop="bhax0003" label="用电户号" width="170" /> --> <!-- <el-table-column prop="bhax0003" label="用电户号" width="170" /> -->
<!-- <el-table-column prop="bhax0004" label="减免地址" width="170" /> --> <!-- <el-table-column prop="bhax0004" label="减免地址" width="170" /> -->
<!-- <el-table-column prop="bhax0005" label="人员类别" width="170" /> --> <!-- <el-table-column prop="bhax0005" label="人员类别" width="170" /> -->
<!-- <el-table-column prop="bhax0008" label="致贫原因" width="170" /> --> <!-- <el-table-column prop="bhax0008" label="致贫原因" width="170" /> -->
@ -363,7 +383,7 @@
<!-- <el-table-column prop="bhax0011" label="水费户号" width="170" /> --> <!-- <el-table-column prop="bhax0011" label="水费户号" width="170" /> -->
<!-- <el-table-column prop="bhax0012" label="燃气户号" width="170" /> --> <!-- <el-table-column prop="bhax0012" label="燃气户号" width="170" /> -->
<!-- <el-table-column prop="bhax0013" label="有线电视户号" width="170" /> --> <!-- <el-table-column prop="bhax0013" label="有线电视户号" width="170" /> -->
<!-- <el-table-column prop="bhax0035" label="低保类型" width="170" /> --> <!-- <el-table-column prop="bhax0035" label="低保类型" width="170" /> -->
<!-- <el-table-column prop="index" label="序号" fixed width="60" /> <!-- <el-table-column prop="index" label="序号" fixed width="60" />
<el-table-column prop="ahap0016" label="姓名" fixed width="70" /> <el-table-column prop="ahap0016" label="姓名" fixed width="70" />
<el-table-column prop="ahap0015" label="身份证" width="170" /> <el-table-column prop="ahap0015" label="身份证" width="170" />
@ -375,7 +395,6 @@
<el-table-column prop="dz" label="地址" /> <el-table-column prop="dz" label="地址" />
<el-table-column prop="bhax0033" label="救助日期" width="170" /> --> <el-table-column prop="bhax0033" label="救助日期" width="170" /> -->
</el-table> </el-table>
<div class="pagePart"> <div class="pagePart">
<el-pagination <el-pagination
@ -439,7 +458,7 @@ const data = reactive({
code: "", code: "",
xh: "", xh: "",
bm: "", bm: "",
url:"", url: "",
pagination: { pagination: {
current: 1, current: 1,
pageSize: 20, pageSize: 20,
@ -493,32 +512,32 @@ const columnsList = reactive({
{ {
title: "服务项目(未完成)", title: "服务项目(未完成)",
id: 1, id: 1,
col:'columns', col: "columns",
url:'/api/ggfwyth/pg/wxsbmRyxx' url: "/api/ggfwyth/pg/wxsbmRyxx",
}, },
{ {
title: "在册低保户", title: "在册低保户",
id: 2, id: 2,
col:'columns', col: "columns",
url:'/api/ggfwyth/pg/wxsbmRyxx' url: "/api/ggfwyth/pg/wxsbmRyxx",
}, },
{ {
title: "在册低保人员", title: "在册低保人员",
id: 3, id: 3,
col:'columns2', col: "columns2",
url:'/api/ggfwyth/pg/zcdbry' url: "/api/ggfwyth/pg/zcdbry",
}, },
{ {
title: "新增低保人员", title: "新增低保人员",
id: 4, id: 4,
col:'columns', col: "columns",
url:'/api/ggfwyth/pg/wxsbmRyxx' url: "/api/ggfwyth/pg/wxsbmRyxx",
}, },
{ {
title: "退出低保人员", title: "退出低保人员",
id: 5, id: 5,
col:'columns', col: "columns",
url:'/api/ggfwyth/pg/wxsbmRyxx' url: "/api/ggfwyth/pg/wxsbmRyxx",
}, },
], ],
columns: [ columns: [
@ -526,19 +545,18 @@ const columnsList = reactive({
label: "序号", label: "序号",
property: "index", property: "index",
width: "60", width: "60",
fixed:'left' fixed: "left",
}, },
{ {
label: "姓名", label: "姓名",
property: "xm", property: "xm",
width: "70", width: "70",
fixed:'left' fixed: "left",
}, },
{ {
label: "身份证", label: "身份证",
property: "sfzhm", property: "sfzhm",
width: "170", width: "170",
}, },
{ {
label: "低保证号", label: "低保证号",
@ -569,25 +587,30 @@ const columnsList = reactive({
property: "jzrq", property: "jzrq",
width: "100", width: "100",
}, },
{
label: "操作",
property: "cz",
type: "slot",
width: "160",
},
], ],
columns2: [ columns2: [
{ {
label: "序号", label: "序号",
property: "index", property: "index",
width: "60", width: "60",
fixed:'left' fixed: "left",
}, },
{ {
label: "姓名", label: "姓名",
property: "ahap0016", property: "ahap0016",
width: "70", width: "70",
fixed:'left' fixed: "left",
}, },
{ {
label: "身份证", label: "身份证",
property: "ahap0015", property: "ahap0015",
width: "170", width: "170",
}, },
{ {
label: "低保证号", label: "低保证号",
@ -625,7 +648,7 @@ const columnsList = reactive({
{ {
title: "服务项目(未完成)", title: "服务项目(未完成)",
id: 1, id: 1,
col:'columns', col: "columns",
}, },
], ],
columns: [ columns: [
@ -702,11 +725,13 @@ const searchT1 = (val) => {
// } // }
}; };
const onTypel = (val) => { const onTypel = (val) => {
console.log(val);
//url, //url,
chooseTitle.value = val.id; chooseTitle.value = val.id;
data.columns=columnsList['最低生活保障'][val.col]; data.columns = columnsList["最低生活保障"][val.col];
data.url=val.url; data.url = val.url;
data.pagination.current=1; data.pagination.current = 1;
if (val.id == 1) { if (val.id == 1) {
personDetails(); personDetails();
} else if (val.id == 3) { } else if (val.id == 3) {
@ -778,8 +803,7 @@ const personDetails = () => {
res.data.forEach((item, index) => { res.data.forEach((item, index) => {
item.index = index + 1 + (currentPage - 1) * pageSize; item.index = index + 1 + (currentPage - 1) * pageSize;
}); });
console.log(2222222222,data.tableData); // console.log(2222222222, data.tableData);
} else { } else {
ElMessage.warning({ ElMessage.warning({
message: res.message, message: res.message,
@ -802,9 +826,10 @@ onMounted(() => {
// data.tableData = JSON.parse(routers.query.personDetails); // data.tableData = JSON.parse(routers.query.personDetails);
data.xh = routers.query.xh; data.xh = routers.query.xh;
data.bm = routers.query.bm; data.bm = routers.query.bm;
data.columns=columnsList['最低生活保障'][columnsList['最低生活保障'].titleList[0].col]; data.columns =
data.url=columnsList['最低生活保障'].titleList[0].url; columnsList["最低生活保障"][columnsList["最低生活保障"].titleList[0].col];
titleList=columnsList['最低生活保障'].titleList; data.url = columnsList["最低生活保障"].titleList[0].url;
titleList = columnsList["最低生活保障"].titleList;
personDetails(); personDetails();
}); });
</script> </script>