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"
@ -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
@ -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,9 +725,11 @@ 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) {
@ -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>