This commit is contained in:
littleeewolf 2024-08-10 11:03:11 +08:00
parent 1dccba82ec
commit fa8fce9798
5 changed files with 140 additions and 94 deletions

View File

@ -197,6 +197,7 @@ import { reactive, ref, onMounted, watch, computed } from "vue";
import Dialog from "@/view/dialog/dialog.vue"; import Dialog from "@/view/dialog/dialog.vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import http from "@/utils/request.js"; import http from "@/utils/request.js";
import tools from "@/utils/tools";
const identNo = ref(""); const identNo = ref("");
const jump = ref(""); const jump = ref("");
const props = defineProps({ const props = defineProps({
@ -238,26 +239,26 @@ const dataMyTag = reactive({
jkName: "tyjr", jkName: "tyjr",
show: 0, show: 0,
}, },
{ // {
name: "留守", // name: "",
jkName: "jzzt", // jkName: "jzzt",
show: 0, // show: 0,
}, // },
{ {
name: "困境儿童", name: "困境儿童",
jkName: "kjet", jkName: "kjet",
show: 0, show: 0,
}, },
{ // {
name: "医保支出万元以上", // name: "",
jkName: "", // jkName: "",
show: 0, // show: 0,
}, // },
{ // {
name: "残疾", // name: "",
jkName: "cj", // jkName: "cj",
show: 0, // show: 0,
}, // },
{ {
name: "高血压", name: "高血压",
jkName: "gxy", jkName: "gxy",
@ -268,26 +269,26 @@ const dataMyTag = reactive({
jkName: "tnb", jkName: "tnb",
show: 0, show: 0,
}, },
{ // {
name: "高血脂", // name: "",
jkName: "", // jkName: "",
show: 0, // show: 0,
}, // },
{ // {
name: "高血糖", // name: "",
jkName: "", // jkName: "",
show: 0, // show: 0,
}, // },
{ // {
name: "其他疾病", // name: "",
jkName: "", // jkName: "",
show: 0, // show: 0,
}, // },
{ // {
name: "大病住院", // name: "",
jkName: "", // jkName: "",
show: 0, // show: 0,
}, // },
], ],
title: "出生", title: "出生",
myTag1: [ myTag1: [
@ -634,11 +635,22 @@ watch(
} }
); );
onMounted(() => { onMounted(() => {
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
if (routers.query.type) { if (routers.query.type) {
baseInfo.value.nm = routers.query.nm; baseInfo.value.nm = routers.query.nm;
baseInfo.value.dz = routers.query.dz; baseInfo.value.dz = routers.query.dz;
baseInfo.value.identNo = routers.query.identNo; baseInfo.value.identNo = routers.query.identNo;
baseInfo.value.bq = routers.query.bq;
jump.value = "detail"; jump.value = "detail";
dataMyTag.myTag.forEach((item) => {
item.show = 0;
if(item.name=='特困'&& baseInfo.value.bq.includes('贫困')){
item.show = 1;
}
if(baseInfo.value.bq.includes(item.name)){
item.show = 1;
}
});
// getData("3"); // getData("3");
// identNo.value = "3"; // identNo.value = "3";
onClickTag2("出生"); onClickTag2("出生");

View File

@ -139,6 +139,7 @@
import { ref, reactive, onMounted } from "vue"; import { ref, reactive, onMounted } from "vue";
import http from "@/utils/request.js"; import http from "@/utils/request.js";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import tools from "@/utils/tools";
const router = useRouter(); const router = useRouter();
const routers = useRoute(); const routers = useRoute();
const data = reactive({ const data = reactive({
@ -600,10 +601,11 @@ const handleRowClick = (row, column, event) => {
console.log(row); console.log(row);
router.push({ router.push({
path: `/home/index/person`, path: `/home/index/person`,
query: { nm: row.xm, identNo: row.sfzhm, dz: row.dz, type: "detail" }, query: { nm: row.xm, identNo: row.sfzhm, dz: row.dz,bq:row.bq, type: "detail" },
}); });
}; };
onMounted(() => { onMounted(() => {
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
getTable("/api/ggfwyth/pg/lyxsdbrymd", pagination.currentPage); getTable("/api/ggfwyth/pg/lyxsdbrymd", pagination.currentPage);
handleCurrentChange(1); handleCurrentChange(1);
}); });

View File

@ -374,30 +374,37 @@ const tsbq_id_total = ref([
{ {
name: "残疾人", name: "残疾人",
id: "cjr", id: "cjr",
tagId:5,
}, },
{ {
name: "低边", name: "低边",
id: "dibian", id: "dibian",
tagId:2,
}, },
{ {
name: "低保", name: "低保",
id: "db", id: "db",
tagId:1,
}, },
{ {
name: "高血压", name: "高血压",
id: "gxy", id: "gxy",
tagId:9,
}, },
{ {
name: "糖尿病", name: "糖尿病",
id: "tnb", id: "tnb",
tagId:7,
}, },
{ {
name: "退役军人", name: "退役军人",
id: "tyjr", id: "tyjr",
tagId:8,
}, },
{ {
name: "困境儿童", name: "困境儿童",
id: "kjer", id: "kjer",
tagId:3,
}, },
]); ]);
// //
@ -762,6 +769,10 @@ const tableType = reactive({
{ {
label: "性别", label: "性别",
property: "gender", property: "gender",
},
{
label: "年龄",
property: "age",
}, },
{ {
label: "户口登记地", label: "户口登记地",
@ -1683,27 +1694,31 @@ const to_jd = (item_name) => {
// //
const open_detail = () => { const open_detail = () => {
let age = ""; let age = "";
// if (choose.value.person == "9999") { let tagId;
// age = "";
// person_detail(age);
// dialogShow.value = true;
// } else if (choose.value.person == "6666") {
// age = "";
// } else if (choose.value.person == 1) {
// age = "0";
// person_detail(age);
// dialogShow.value = true;
// } else {
// age = choose.value.person - 1;
// person_detail(age);
// dialogShow.value = true;
// }
if (choose.value.person == "9999") { if (choose.value.person == "9999") {
age = ""; age = "";
person_detail(age); person_detail(age);
dialogShow.value = true; dialogShow.value = true;
} else if (choose.value.person == "6666") { } else if (choose.value.person == "6666") {
age = ""; age = "";
} else if (
choose.value.person == "cjr" ||
choose.value.person == "dibian" ||
choose.value.person == "db" ||
choose.value.person == "gxy" ||
choose.value.person == "tnb" ||
choose.value.person == "tyjr" ||
choose.value.person == "kjer"
) {
console.log(88888);
age = "";
tsbq_id_total.value.forEach((item,index)=>{
if(choose.value.person==item.id){
tagId=item.tagId;
}
})
person_detail(age, tagId);
dialogShow.value = true;
} else { } else {
age = choose.value.person; age = choose.value.person;
person_detail(age); person_detail(age);
@ -1720,6 +1735,7 @@ const close = () => {
const handlePagination = (current) => { const handlePagination = (current) => {
pagination.currentPage = current; pagination.currentPage = current;
let age = ""; let age = "";
let tagId;
// if (choose.value.person == "9999") { // if (choose.value.person == "9999") {
// age = ""; // age = "";
// } else if (choose.value.person == "6666") { // } else if (choose.value.person == "6666") {
@ -1731,12 +1747,30 @@ const handlePagination = (current) => {
// } // }
if (choose.value.person == "9999") { if (choose.value.person == "9999") {
age = ""; age = "";
person_detail(age);
} else if (choose.value.person == "6666") { } else if (choose.value.person == "6666") {
age = ""; age = "";
} else if (
choose.value.person == "cjr" ||
choose.value.person == "dibian" ||
choose.value.person == "db" ||
choose.value.person == "gxy" ||
choose.value.person == "tnb" ||
choose.value.person == "tyjr" ||
choose.value.person == "kjer"
) {
age = "";
tsbq_id_total.value.forEach((item,index)=>{
if(choose.value.person==item.id){
tagId=item.tagId;
}
})
person_detail(age, tagId);
} else { } else {
age = choose.value.person; age = choose.value.person;
}
person_detail(age); person_detail(age);
}
}; };
// //
const openMessage = (e) => { const openMessage = (e) => {
@ -1752,13 +1786,15 @@ const closeDetail = () => {
window.removeEventListener("resize", reset_font2); window.removeEventListener("resize", reset_font2);
}; };
// //
const person_detail = (age) => { const person_detail = (age, tagId) => {
http http
.get( .get(
`/api/ggfwyth/ysyzt/getRyJbxxList?page=${pagination.currentPage}&size=${ `/api/ggfwyth/ysyzt/getRyJbxxList?page=${pagination.currentPage}&size=${
pagination.pageSize pagination.pageSize
}&age=${age || ""}&committee=${cfCsZs.value || ""}&town=${ }&age=${age || ""}&committee=${cfCsZs.value || ""}&town=${
cfJd.value || "" cfJd.value || ""
}&tagId=${
tagId || ""
}` }`
) )
.then((res) => { .then((res) => {
@ -1786,14 +1822,14 @@ const getFwq = () => {
}); });
}); });
}); });
let arr=[] let arr = [];
jbfwqPx.forEach((item, index) => { jbfwqPx.forEach((item, index) => {
jbfwqTotal.value.forEach((item2, index2) => { jbfwqTotal.value.forEach((item2, index2) => {
if (item == item2.name) { if (item == item2.name) {
arr.push(item2) arr.push(item2);
} }
}) });
}) });
jbfwqTotal.value = arr; jbfwqTotal.value = arr;
} }
}); });
@ -2756,18 +2792,18 @@ const createCs2 = (polygon, indexx) => {
map.addOverlay(cs_number_name_arr.value[indexx]); map.addOverlay(cs_number_name_arr.value[indexx]);
cs_number_name_arr.value[indexx].addEventListener("click", () => { cs_number_name_arr.value[indexx].addEventListener("click", () => {
cfCsZs.value = polygon.name; cfCsZs.value = polygon.name;
if ( // if (
choose.value.person == "cjr" || // choose.value.person == "cjr" ||
choose.value.person == "dibian" || // choose.value.person == "dibian" ||
choose.value.person == "db" || // choose.value.person == "db" ||
choose.value.person == "gxy" || // choose.value.person == "gxy" ||
choose.value.person == "tnb" || // choose.value.person == "tnb" ||
choose.value.person == "tyjr" || // choose.value.person == "tyjr" ||
choose.value.person == "kjer" // choose.value.person == "kjer"
) { // ) {
} else { // } else {
open_detail(); open_detail();
} // }
}); });
}; };
// //
@ -2825,10 +2861,6 @@ const DGcreateCs = (polygon, indexx) => {
}; };
//(+) //(+)
const DGcreateCs2 = (polygon, indexx) => { const DGcreateCs2 = (polygon, indexx) => {
// console.log(choose.value.person, "", polygon);
// console.log("", polygon.name);
// console.log("", polygon.number);
// console.log("", polygon.swrs);
function createLabelDOM() { function createLabelDOM() {
var content = document.createElement("div"); var content = document.createElement("div");
content.style.display = "flex"; content.style.display = "flex";
@ -2907,19 +2939,18 @@ const DGcreateCs2 = (polygon, indexx) => {
cs_dd_arr.value[indexx].addEventListener("click", () => { cs_dd_arr.value[indexx].addEventListener("click", () => {
console.log(cfJd.value, polygon.name); console.log(cfJd.value, polygon.name);
cfCsZs.value = polygon.name; cfCsZs.value = polygon.name;
if ( // if (
choose.value.person == "cjr" || // choose.value.person == "cjr" ||
choose.value.person == "dibian" || // choose.value.person == "dibian" ||
choose.value.person == "db" || // choose.value.person == "db" ||
choose.value.person == "gxy" || // choose.value.person == "gxy" ||
choose.value.person == "tnb" || // choose.value.person == "tnb" ||
choose.value.person == "tyjr" || // choose.value.person == "tyjr" ||
choose.value.person == "kjer" // choose.value.person == "kjer"
) { // ) {
} else { // } else {
open_detail(); open_detail();
} // }
// open_detail();
}); });
}; };
// //

View File

@ -662,6 +662,7 @@ const sevenYX = (name) => {
}; };
onMounted(() => { onMounted(() => {
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
getData("弱有所扶", "社会救助服务"); getData("弱有所扶", "社会救助服务");
sevenYX("弱有众扶"); sevenYX("弱有众扶");
}); });

View File

@ -15,8 +15,8 @@ export default defineConfig({
// 第一个代理 // 第一个代理
"/api": { "/api": {
// 匹配到啥来进行方向代理 // 匹配到啥来进行方向代理
target: "http://10.0.0.65:8095/", //刘进 // target: "http://10.0.0.65:8095/", //刘进
// target: "http://220.191.238.50:996/", //线上 target: "http://220.191.238.50:996/", //线上
changeOrigin: true, //是否支持跨域 changeOrigin: true, //是否支持跨域
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个 //rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
}, },