This commit is contained in:
duanxiaohai 2024-09-09 17:30:52 +08:00
parent 23d7326778
commit 42f1c4d168
8 changed files with 268 additions and 47 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
src/assets/sy-table/red.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -122,7 +122,7 @@
体检记录 体检记录
</div> </div>
</div> </div>
<div v-if="data.name == '老年人福利补贴'" class="lampState"> <div v-else class="lampState">
<div> <div>
<img <img
:src=" :src="
@ -135,7 +135,9 @@
:style="{ :style="{
cursor: selectedLamp1.green ? 'not-allowed' : 'pointer', cursor: selectedLamp1.green ? 'not-allowed' : 'pointer',
}" }"
@click="selectedLamp1.green ? null : lampScreen(1)" @click="
selectedLamp1.green ? null : lampScreen(1, data.tableData2)
"
/> />
<img <img
:src=" :src="
@ -148,7 +150,9 @@
:style="{ :style="{
cursor: selectedLamp1.red ? 'not-allowed' : 'pointer', cursor: selectedLamp1.red ? 'not-allowed' : 'pointer',
}" }"
@click="selectedLamp1.red ? null : lampScreen(2)" @click="
selectedLamp1.red ? null : lampScreen(2, data.tableData2)
"
/> />
<img <img
:src=" :src="
@ -161,11 +165,13 @@
:style="{ :style="{
cursor: selectedLamp1.yellow ? 'not-allowed' : 'pointer', cursor: selectedLamp1.yellow ? 'not-allowed' : 'pointer',
}" }"
@click="selectedLamp1.yellow ? null : lampScreen(3)" @click="
selectedLamp1.yellow ? null : lampScreen(3, data.tableData2)
"
/> />
</div> </div>
</div> </div>
<span class="text" v-else-if="data.tabelshow"> <!-- <span class="text" v-else-if="data.tabelshow">
<img <img
v-if="data.first" v-if="data.first"
src="@/assets/sy-table/sy_details4.png" src="@/assets/sy-table/sy_details4.png"
@ -180,8 +186,9 @@
style="width: 350px" style="width: 350px"
@click="change" @click="change"
/> />
</span> </span> -->
<div v-else class="text_1">未享受对象</div>
<!-- <div v-else class="text_1">未享受对象</div> -->
</div> </div>
</div> </div>
<div style="width: 97.5%; position: relative"> <div style="width: 97.5%; position: relative">
@ -251,15 +258,16 @@ import http from "@/utils/request.js";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import tools from "@/utils/tools"; import tools from "@/utils/tools";
import lamp1 from "../assets/sy-table/lampGreen1.png"; import lamp1 from "../assets/sy-table/green.gif";
import lamp2 from "../assets/sy-table/lampRed1.png"; import lamp2 from "../assets/sy-table/red.gif";
import lamp3 from "../assets/sy-table/lampYellow1.png"; import lamp3 from "../assets/sy-table/yellow.gif";
import lamp4 from "../assets/sy-table/lampGreen2.png"; import lamp4 from "../assets/sy-table/green1.gif";
import lamp5 from "../assets/sy-table/lampRed2.png"; import lamp5 from "../assets/sy-table/red1.gif";
import lamp6 from "../assets/sy-table/lampYellow2.png"; import lamp6 from "../assets/sy-table/yellow1.gif";
import lamp7 from "../assets/sy-table/lampGreen3.png"; import lamp7 from "../assets/sy-table/lampGreen3.png";
import lamp8 from "../assets/sy-table/lampRed3.png"; import lamp8 from "../assets/sy-table/lampRed3.png";
import lamp9 from "../assets/sy-table/lampYellow3.png"; import lamp9 from "../assets/sy-table/lampYellow3.png";
const router = useRouter(); const router = useRouter();
const routers = useRoute(); const routers = useRoute();
const mxbtabelshow = ref(true); const mxbtabelshow = ref(true);
@ -1232,7 +1240,7 @@ const formData = reactive({
}, },
], ],
resultsList: [], resultsList: [],
resultsList1: [], tableData2: [],
}, },
shbz_knxs_TableData: { shbz_knxs_TableData: {
url: "", url: "",
@ -1285,6 +1293,13 @@ const formData = reactive({
property: "xm", property: "xm",
width: "90", width: "90",
}, },
{
label: "状态",
property: "zt",
width: "90",
align: "center",
type: "slot",
},
{ {
label: "学校", label: "学校",
property: "xx", property: "xx",
@ -1430,6 +1445,98 @@ const formData = reactive({
subsidyType: "", subsidyType: "",
}, },
], ],
tableData2: [
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
],
}, },
yygs_knxs_TableData: { yygs_knxs_TableData: {
url: "", url: "",
@ -1475,29 +1582,35 @@ const formData = reactive({
column_2: [ column_2: [
{ {
label: "姓名", label: "姓名",
property: "fullName", property: "xm",
width: "90", width: "90",
}, },
{ {
label: "地址", label: "状态",
property: "address", property: "zt",
width: "90",
align: "center",
type: "slot",
}, },
{ {
label: "年龄", label: "学校",
property: "age", property: "xx",
width: "60",
}, },
{ {
label: "补助类型", label: "补助类型",
property: "subsidyType", property: "bzlx",
}, },
// {
// label: "",
// property: "ident_no",
// },
], ],
tableData: [ tableData: [
{ {
SerialNumber: "01", SerialNumber: "01",
SubsidyType: "义务教育家庭经济困难学生生活补助", SubsidyType: "义务教育家庭经济困难学生生活补助",
SubsidRecipients: SubsidRecipients:
"本人及其家庭的经济能力准以满足其在校(或幼儿园)期间的学习和生活基本支出的在籍学生。(一)特殊群体主要包括城市低保家庭学生、特因供养学生、弧儿、烈士子女、持正武疾学生、城市低保边缘家庭学生、低收入农户家庭学生、档立卡贫困家庭学生等,(二)其他群体 1.因遭受自然灾言、意外事件、重大疾病等突发情况导致家庭经济困难的学生2.学校结合家庭经济因素、地区经济社会发层水平通过家访、个别访谈、信函索证、大数摆分析、民主评议等方式,根据实事求是的原则认定需要资助的学生,", "本人及其家庭的经济能力准以满足其在校(或幼儿园)期间的学习和生活基本支出的在籍学生。(一)特殊群体主要包括城市低保家庭学生、特因供养学生、弧儿、烈士子女、持正武疾学生、城市低保边缘家庭学生、低收入农户家庭学生、档立卡贫困家庭学生等,(二)其他群体 '1'.因遭受自然灾言、意外事件、重大疾病等突发情况导致家庭经济困难的学生2.学校结合家庭经济因素、地区经济社会发层水平通过家访、个别访谈、信函索证、大数摆分析、民主评议等方式,根据实事求是的原则认定需要资助的学生,",
SubsidyStandards: SubsidyStandards:
"家庭经济困难寄宿生生活费补助标准小学生每人1250元年初中生1500元年家庭经济困难非寄宿生生活补助按寄宿自生生活国家基础标准的50%核定。", "家庭经济困难寄宿生生活费补助标准小学生每人1250元年初中生1500元年家庭经济困难非寄宿生生活补助按寄宿自生生活国家基础标准的50%核定。",
ProcessingMethod: "每学明初申请学校认定、公示后给予安助", ProcessingMethod: "每学明初申请学校认定、公示后给予安助",
@ -1624,6 +1737,98 @@ const formData = reactive({
subsidyType: "", subsidyType: "",
}, },
], ],
tableData2: [
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '1',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '2',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
{
xm: "何*媱",
zt: '3',
xx: "寺后小学",
bzlx: "原外地建档",
},
],
}, },
}); });
// 123 // 123
@ -1765,26 +1970,35 @@ const selectedLamp1 = reactive({
red: false, red: false,
yellow: false, yellow: false,
}); });
const lampScreen = (val) => { const lampScreen = (val, data) => {
if (selectedLamp.value === val) { if (selectedLamp.value === val) {
return; return;
} }
selectedLamp.value = val; selectedLamp.value = val;
const filteredData = formData.hjlnrTableData.tableData2.filter(
(element) => element.zt === val
);
data.tableData2 = filteredData;
selectedLamp1.green = !formData.hjlnrTableData.tableData2.some( console.log(222,data.tableData2,data);
(element) => element.zt === 1 const filteredData = data.filter((element) => element.zt === val);
); data.tableData2 = filteredData;
selectedLamp1.red = !formData.hjlnrTableData.tableData2.some( console.log(333,data.tableData2,data);
(element) => element.zt === 2 selectedLamp1.green = !data.some((element) => element.zt === 1);
); selectedLamp1.red = !data.some((element) => element.zt === 2);
selectedLamp1.yellow = !formData.hjlnrTableData.tableData2.some( selectedLamp1.yellow = !data.some((element) => element.zt === 3);
(element) => element.zt === 3
); // const filteredData = formData.hjlnrTableData.tableData2.filter(
console.log(111, selectedLamp1, val); // (element) => element.zt === val
// );
// data.tableData2 = filteredData;
// selectedLamp1.green = !formData.hjlnrTableData.tableData2.some(
// (element) => element.zt === 1
// );
// selectedLamp1.red = !formData.hjlnrTableData.tableData2.some(
// (element) => element.zt === 2
// );
// selectedLamp1.yellow = !formData.hjlnrTableData.tableData2.some(
// (element) => element.zt === 3
// );
console.log(111,data.tableData2, selectedLamp1, val);
}; };
const getTable = (pagination) => { const getTable = (pagination) => {
@ -1922,8 +2136,11 @@ const updateFormDataAndTable = (formDataName, tableData) => {
data.column_2 = tableData.column_2; data.column_2 = tableData.column_2;
data.tableData = tableData.resultsList; data.tableData = tableData.resultsList;
data.tableData1 = tableData.tableData; data.tableData1 = tableData.tableData;
data.tableData2 = tableData.resultsList1; data.tableData2 = tableData.tableData2;
pagination1.total = tableData.tableData.length; pagination1.total = tableData.tableData.length;
console.log(6666, data.tableData2);
lampScreen(1, data.tableData2);
handleCurrentChange(1); handleCurrentChange(1);
}; };
@ -1946,7 +2163,7 @@ const listAssignment = () => {
pagination2.url = "/api/ggfwyth/pg/ylzlFlbt"; pagination2.url = "/api/ggfwyth/pg/ylzlFlbt";
getServiceList(pagination, 1); getServiceList(pagination, 1);
// //
data.tableData2 = formData.hjlnrTableData.tableData2; // data.tableData2 = formData.hjlnrTableData.tableData2;
// getServiceList(pagination2, 0); // getServiceList(pagination2, 0);
break; break;
case "慢性病患者健康管理": case "慢性病患者健康管理":
@ -1955,17 +2172,21 @@ const listAssignment = () => {
pagination.url = "/api/ggfwyth/pg/ggwsMxbFwdx"; pagination.url = "/api/ggfwyth/pg/ggwsMxbFwdx";
pagination2.url = "/api/ggfwyth/pg/ggwsMxbSfjl"; pagination2.url = "/api/ggfwyth/pg/ggwsMxbSfjl";
getTable(pagination); getTable(pagination);
getTable1(pagination2); // getTable1(pagination2);
break; break;
case "义务教育学生生活补助": case "义务教育学生生活补助":
updateFormDataAndTable("困难学生", formData.shbz_knxs_TableData); updateFormDataAndTable("困难学生", formData.shbz_knxs_TableData);
pagination.url = "/api/ggfwyth/pg/ywjyShbz"; pagination.url = "/api/ggfwyth/pg/ywjyShbz";
getTable(pagination); getTable(pagination);
//
// data.tableData2 = formData.shbz_knxs_TableData.tableData2;
break; break;
case "义务教育学生营养改善计划": case "义务教育学生营养改善计划":
updateFormDataAndTable("困难学生", formData.yygs_knxs_TableData); updateFormDataAndTable("困难学生", formData.yygs_knxs_TableData);
pagination.url = "/api/ggfwyth/pg/ywjyShbz"; pagination.url = "/api/ggfwyth/pg/ywjyShbz";
getTable(pagination); getTable(pagination);
//
// data.tableData2 = formData.hjlnrTableData.tableData2;
break; break;
default: default:
break; break;
@ -1976,9 +2197,9 @@ onMounted(() => {
if (routers.query.name) { if (routers.query.name) {
data.name = routers.query.name; data.name = routers.query.name;
listAssignment(); listAssignment();
if (data.name == "老年人福利补贴") { // if (data.name == "") {
lampScreen(1); // lampScreen(1);
} // }
} }
}); });
</script> </script>

View File

@ -182,10 +182,10 @@
<ePie3d v-if="showEchart" :list="data.rkgk"></ePie3d> <ePie3d v-if="showEchart" :list="data.rkgk"></ePie3d>
<div class="btList" ref="mainRef"> <div class="btList" ref="mainRef">
<div class="btListding"> <div class="btListding">
<span>年龄段</span> <span>年龄段</span>
<span>总数/</span> <span>总数</span>
<span>男性人数/</span> <span>男性人数</span>
<span>女性人数/</span> <span>女性人数</span>
</div> </div>
<div class="btList_item" v-for="(item, index) in btList"> <div class="btList_item" v-for="(item, index) in btList">
<div class="btList_item_color" :style="bt(index)"></div> <div class="btList_item_color" :style="bt(index)"></div>