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