This commit is contained in:
姚宇浩 2024-08-08 10:30:13 +08:00
parent 971f1f0fd4
commit dec210d2f6
3 changed files with 39 additions and 277 deletions

View File

@ -120,6 +120,8 @@ const getOption = () => {
show: true, show: true,
color: "#ffffff", color: "#ffffff",
position: "top", position: "top",
fontSize: 16,
formatter: function (data) { formatter: function (data) {
return data.value; return data.value;
}, },
@ -168,6 +170,7 @@ const getOption = () => {
show: true, show: true,
color: "#ffffff", color: "#ffffff",
position: "top", position: "top",
fontSize: 16,
formatter: function (data) { formatter: function (data) {
return data.value; return data.value;
}, },
@ -216,6 +219,7 @@ const getOption = () => {
show: true, show: true,
color: "#ffffff", color: "#ffffff",
position: "top", position: "top",
fontSize: 16,
formatter: function (data) { formatter: function (data) {
return data.value; return data.value;
}, },

View File

@ -119,7 +119,7 @@
v-for="(item, index) in jbfwqTotal" v-for="(item, index) in jbfwqTotal"
:key="index" :key="index"
> >
<div class="jbggfwq_content_item_left">{{ item.name}}</div> <div class="jbggfwq_content_item_left">{{ item.name }}</div>
<div class="jbggfwq_content_item_right"> <div class="jbggfwq_content_item_right">
<div <div
class="jbggfwq_content_item_right_item" class="jbggfwq_content_item_right_item"
@ -619,276 +619,25 @@ const data = reactive({
zoomLevel: null, // zoomLevel: null, //
}); });
// //
const jbfwqTotal = ref([ const jbfwqTotal = ref([]);
// { const jbfwqPx = reactive([
// id: 0, "龙洲街道",
// name: "", "东华街道",
// child: [ "小南海镇",
// { "湖镇镇",
// id: 100, "溪口镇",
// name: "", "詹家镇",
// }, "塔石镇",
// { "横山镇",
// id: 200, "模环乡",
// name: "", "石佛乡",
// }, "沐尘畲族乡",
// { "罗家乡",
// id: 300, "庙下乡",
// name: "", "大街乡",
// }, "社阳乡",
// { ]);
// id: 400, //
// name: "",
// },
// {
// id: 500,
// name: "",
// },
// {
// id: 600,
// name: "",
// },
// ],
// },
// {
// id: 1,
// name: "",
// child: [
// {
// id: 11,
// name: "",
// },
// ],
// },
// {
// id: 2,
// name: "",
// child: [
// {
// id: 21,
// name: "",
// },
// {
// id: 22,
// name: "",
// },
// {
// id: 23,
// name: "",
// },
// ],
// },
// {
// id: 3,
// name: "",
// child: [
// {
// id: 31,
// name: "",
// },
// ],
// },
// {
// id: 4,
// name: "",
// child: [
// {
// id: 41,
// name: "",
// center: [119.1845892, 28.8540481],
// fwqList: [],
// },
// {
// id: 42,
// name: "",
// },
// {
// id: 43,
// name: "",
// },
// ],
// },
// {
// id: 5,
// name: "",
// child: [
// {
// id: 51,
// name: "",
// },
// ],
// },
// {
// id: 6,
// name: "",
// child: [
// {
// id: 61,
// name: "",
// },
// {
// id: 62,
// name: "",
// },
// ],
// },
// {
// id: 7,
// name: "",
// child: [
// {
// id: 71,
// name: "",
// },
// {
// id: 72,
// name: "",
// },
// {
// id: 73,
// name: "",
// },
// ],
// },
// {
// id: 8,
// name: "",
// child: [
// {
// id: 81,
// name: "",
// },
// {
// id: 82,
// name: "",
// },
// {
// id: 83,
// name: "",
// },
// ],
// },
// {
// id: 9,
// name: "",
// child: [
// {
// id: 91,
// name: "",
// },
// {
// id: 92,
// name: "",
// },
// {
// id: 93,
// name: "",
// },
// ],
// },
// {
// id: 10,
// name: "",
// child: [
// {
// id: 101,
// name: "",
// },
// {
// id: 102,
// name: "",
// },
// {
// id: 103,
// name: "",
// },
// {
// id: 104,
// name: "",
// },
// {
// id: 105,
// name: "",
// },
// {
// id: 106,
// name: "",
// },
// {
// id: 107,
// name: "西",
// },
// {
// id: 108,
// name: "",
// },
// {
// id: 109,
// name: "",
// },
// ],
// },
// {
// id: 11,
// name: "",
// child: [
// {
// id: 111,
// name: "",
// },
// {
// id: 112,
// name: "",
// },
// {
// id: 113,
// name: "",
// },
// {
// id: 114,
// name: "",
// },
// ],
// },
// {
// id: 12,
// name: "",
// child: [
// {
// id: 121,
// name: "",
// },
// {
// id: 122,
// name: "",
// },
// {
// id: 123,
// name: "",
// },
// ],
// },
// {
// id: 13,
// name: "",
// child: [
// {
// id: 131,
// name: "",
// },
// ],
// },
// {
// id: 14,
// name: "",
// child: [
// {
// id: 141,
// name: "",
// },
// ],
// },
]); //
var circle; var circle;
const fwqList = ref([]); const fwqList = ref([]);
@ -2035,6 +1784,15 @@ const getFwq = () => {
}); });
}); });
}); });
let arr=[]
jbfwqPx.forEach((item,index)=>{
jbfwqTotal.value.forEach((item2,index2)=>{
if(item==item2.name){
arr.push(item2)
}
})
})
jbfwqTotal.value=arr;
} }
}); });
}; };
@ -2070,7 +1828,7 @@ const changeFwq = async (id, name, names) => {
); // ); //
}, 500); }, 500);
} else { } else {
console.log('无数据11'); console.log("无数据11");
ElMessage.warning("无数据"); ElMessage.warning("无数据");
} }
} }
@ -2324,7 +2082,7 @@ const updateFwqList = (data, townName, communityName) => {
let updatedFwqList = []; let updatedFwqList = [];
jbfwqTotal.value.forEach((town) => { jbfwqTotal.value.forEach((town) => {
if (town.name === townName) { if (town.name === townName) {
town.child.forEach((community) => { town.child.forEach((community, index) => {
if (community.name === communityName) { if (community.name === communityName) {
updatedFwqList = data updatedFwqList = data
.filter( .filter(
@ -3383,7 +3141,7 @@ onMounted(() => {
// //
.tsbq { .tsbq {
margin-top: 40px; margin-top: 30px;
.content { .content {
box-sizing: border-box; box-sizing: border-box;

View File

@ -335,7 +335,7 @@ const data = reactive({
}, },
{ {
id: "2", id: "2",
name: "法律援助服务", name: "公共法律服务",
}, },
{ {
id: "3", id: "3",
@ -369,7 +369,7 @@ const data = reactive({
}, },
{ {
id: "9", id: "9",
name: "体有所", name: "体有所",
img: icon10, img: icon10,
visible: false, visible: false,
son: [ son: [