特殊标签

This commit is contained in:
姚宇浩 2024-08-23 09:31:22 +08:00
parent 2568a0e6c8
commit cb14963e11
2 changed files with 96 additions and 159 deletions

View File

@ -717,6 +717,7 @@ const onClickTag = (item) => {
};
//
const onClickTag2 = (name, label) => {
//
if (name == "身后事" && !isShs.value) {
} else {
tableType.title = name;
@ -743,6 +744,7 @@ const rightList = ref([]);
const getTable = (url, csh) => {
/**
* csh为true时代表初始化为false时代表分页
* rightType为1表示显示表格0为列表
*/
http
.get(url, {

View File

@ -179,7 +179,7 @@
<div class="btnsave" v-if="!add_mode && !edit_mode" @click="deleteCs">
删除地块
</div>
<div class="btnclose" @click="backEdit">退出</div>
<div class="btnclose" @click="backEdit" v-if="!add_mode && !edit_mode">退出</div>
</div>
<Dialog
@ -468,12 +468,14 @@ const tsbq_id_total = ref([
id: "gxy",
tagId: 9,
},
{
{
name: "精神病人",
id: "jsbr",
tagId: 10,
},
]);
//choose.person.value
const tsbq_pp = ref([]);
//
const chooseCsList = ref([]);
//
@ -639,51 +641,6 @@ const PopulationRatio = ref([
]);
//
const tsbqTotal = ref([
{
id: 10,
name: "退役军人",
value: "26737",
},
{
id: 20,
name: "留守",
value: "26737",
},
{
id: 30,
name: "困境儿童",
value: "26737",
},
{
id: 40,
name: "特困",
value: "26737",
},
{
id: 0,
name: "低边",
value: "26737",
},
{
id: 1,
name: "低保",
value: "26737",
},
{
id: 2,
name: "高血压",
value: "26737",
},
{
id: 3,
name: "糖尿病",
value: "26737",
},
{
id: 4,
name: "残疾人",
value: "26737",
},
]);
const data = reactive({
serviceCircleList: [],
@ -907,7 +864,7 @@ const getCssj = async () => {
};
//
const editmode = () => {
drawing.value=true;
drawing.value = true;
edit_mode.value = true;
};
//
@ -928,6 +885,10 @@ const bd09 = (x, y) => {
};
//
const openEdit = () => {
map.removeEventListener("click", markera);
if (currentMarker !== null) {
map.removeOverlay(currentMarker);
}
arrJWD = [[[]]];
cs_choose_arr.value[0].enableEditing();
drawing.value = true;
@ -1628,16 +1589,17 @@ const getDatas2 = async (e, i, cs) => {
//i1i
let i1 = i;
if (
i == "残疾人" ||
i == "低边" ||
i == "低保" ||
i == "高血压" ||
i == "糖尿病" ||
i == "退役军人" ||
i == "困境儿童" ||
i == "孤儿" ||
i == "特困" ||
i=="精神病人"
// i == "" ||
// i == "" ||
// i == "" ||
// i == "" ||
// i == "尿" ||
// i == "退" ||
// i == "" ||
// i == "" ||
// i == "" ||
// i == ""
tsbq_pp.value.includes(i)
) {
i = "";
}
@ -1749,16 +1711,17 @@ const getDatas2 = async (e, i, cs) => {
}
});
if (
i1 == "残疾人" ||
i1 == "低边" ||
i1 == "低保" ||
i1 == "高血压" ||
i1 == "糖尿病" ||
i1 == "退役军人" ||
i1 == "困境儿童" ||
i1 == "孤儿" ||
i1 == "特困" ||
i1=="精神病人"
// i1 == "" ||
// i1 == "" ||
// i1 == "" ||
// i1 == "" ||
// i1 == "尿" ||
// i1 == "退" ||
// i1 == "" ||
// i1 == "" ||
// i1 == "" ||
// i1 == ""
tsbq_pp.value.includes(i1)
) {
} else {
if (choose.value.person == "") {
@ -1808,6 +1771,29 @@ const getDataBq = async (jd, cs) => {
}
});
};
//
const getDataBqFirst = async () => {
await http.get(`/api/ggfwyth/ysyzt/getBqRs`).then((res) => {
if (res.code == 200) {
tsbqTotal.value.length = 0;
tsbq_pp.value.lenth = 0;
tsbq_id_total.value.length = 0;
res.data.forEach((item, index) => {
tsbq_pp.value.push(item.bq);
tsbq_id_total.value.push({
name: item.bq,
tagId: item.tagId,
});
tsbqTotal.value.push({
id: item.bq,
name: item.bq,
rksl: item.rs || 0,
tagId: item.tagId,
});
});
}
});
};
const getDataBqs = async (jd, cs, bq) => {
await getDataBqJD(bq);
if (cfJd.value == "") {
@ -2147,16 +2133,17 @@ const to_jd = async (item_name) => {
loadingss.value = false;
}
if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "尿" ||
// choose.value.person == "退" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == ""
tsbq_pp.value.includes(choose.value.person)
) {
await getDatas(cfJd.value, "", false);
getDataBqs4(cfJd.value, cfCs.value, choose.value.person);
@ -2183,16 +2170,17 @@ const open_detail = () => {
dialogShow.value = true;
person_detail2();
} else if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "尿" ||
// choose.value.person == "退" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == ""
tsbq_pp.value.includes(choose.value.person)
) {
age = "";
tsbq_id_total.value.forEach((item, index) => {
@ -2229,16 +2217,17 @@ const handlePagination = (current) => {
age = "";
person_detail2();
} else if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "尿" ||
// choose.value.person == "退" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == "" ||
// choose.value.person == ""
tsbq_pp.value.includes(choose.value.person)
) {
age = "";
tsbq_id_total.value.forEach((item, index) => {
@ -2721,16 +2710,7 @@ const addPolygonCounty = () => {
loadingss.value = false;
}
if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
tsbq_pp.value.includes(choose.value.person)
) {
await getDatas(cfJd.value, "", false);
//使awaitloadingloading
@ -2868,16 +2848,7 @@ const createCustomOverlayJd2 = (polygon, indexx) => {
if (choose.value.person == "6666") {
num = "swrs";
} else if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
tsbq_pp.value.includes(choose.value.person)
) {
num = "numbers";
} else {
@ -2993,16 +2964,7 @@ const addPolygonCountyCs = () => {
});
await getDataBq(cfJd.value, cfCs.value);
if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
tsbq_pp.value.includes(choose.value.person)
) {
await getDataBqs3(cfJd.value, cfCs.value, choose.value.person);
} else {
@ -3101,16 +3063,7 @@ const addCsUnChoose = () => {
await getDataBq(cfJd.value, cfCs.value);
await getDatas2(cfJd.value, choose.value.person, cfCs.value);
if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
tsbq_pp.value.includes(choose.value.person)
) {
await getDataBqs3(cfJd.value, cfCs.value, choose.value.person);
}
@ -3236,16 +3189,7 @@ const createCs2 = (polygon, indexx) => {
if (choose.value.person == "6666") {
num = "swrs";
} else if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
tsbq_pp.value.includes(choose.value.person)
) {
num = "numbers";
} else {
@ -3389,16 +3333,7 @@ const DGcreateCs2 = (polygon, indexx) => {
if (choose.value.person == "6666") {
num = "swrs";
} else if (
choose.value.person == "残疾人" ||
choose.value.person == "低边" ||
choose.value.person == "低保" ||
choose.value.person == "高血压" ||
choose.value.person == "糖尿病" ||
choose.value.person == "退役军人" ||
choose.value.person == "困境儿童" ||
choose.value.person == "孤儿" ||
choose.value.person == "特困" ||
choose.value.person == "精神病人"
tsbq_pp.value.includes(choose.value.person)
) {
num = "numbers";
} else {
@ -3457,7 +3392,7 @@ onMounted(async () => {
BMAP();
getFwq();
getCssj();
await getDataBq();
await getDataBqFirst();
loadingss.value = false;
});
</script>