This commit is contained in:
parent
f0f8d78d9e
commit
1129f1a555
|
@ -12,7 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="content_item" v-for="(item, index) in personTotal" :class="{ choose: item.id == choose.person }"
|
<div class="content_item" v-for="(item, index) in personTotal" :class="{ choose: item.id == choose.person }"
|
||||||
@click="getData(item.id, item.age)" :key="index">
|
@click="getData(item.id, item.age), getDatas('溪口镇', 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>
|
||||||
|
@ -1865,8 +1865,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) => {
|
||||||
|
@ -1902,7 +1902,7 @@ onMounted(() => {
|
||||||
reset_font();
|
reset_font();
|
||||||
initMap();
|
initMap();
|
||||||
getData();
|
getData();
|
||||||
getDatas('溪口镇')
|
getDatas('溪口镇', null)
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in New Issue