Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
姚宇浩 2024-07-24 18:46:32 +08:00
commit 3b2e60a7f3
1 changed files with 5 additions and 10 deletions

View File

@ -11,13 +11,8 @@
<div class="title_line"></div> <div class="title_line"></div>
</div> </div>
<div class="content"> <div class="content">
<div <div class="content_item" v-for="(item, index) in personTotal" :class="{ choose: item.id == choose.person }"
class="content_item" @click="getData(item.id, item.age), getDatas('溪口镇', item.age)" :key="index">
v-for="(item, index) in personTotal"
:class="{ choose: item.id == choose.person }"
@click="getData(item.id, item.age)"
:key="index"
>
<div class="content_item_name">{{ item.ages }}</div> <div class="content_item_name">{{ item.ages }}</div>
<div class="content_item_value">{{ item.rksl }}</div> <div class="content_item_value">{{ item.rksl }}</div>
</div> </div>
@ -1965,8 +1960,8 @@ const getData = async (i, e) => {
changeRs(i); changeRs(i);
} }
}; };
const getDatas = async (e) => { const getDatas = async (e, i) => {
await http.get(`/api/ggfwyth/ysyzt/getCssrksl?town=${e}`).then((res) => { await http.get(`/api/ggfwyth/ysyzt/getCssrksl?town=${e}&age=${i || null}`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
res.data.committee.map((item) => { res.data.committee.map((item) => {
xkzCenter.map((items) => { xkzCenter.map((items) => {
@ -1999,7 +1994,7 @@ onMounted(() => {
reset_font(); reset_font();
initMap(); initMap();
getData(); getData();
getDatas("溪口镇"); getDatas('溪口镇', null)
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>