diff --git a/components/newArchives/breeding.vue b/components/newArchives/breeding.vue new file mode 100644 index 0000000..afa6fad --- /dev/null +++ b/components/newArchives/breeding.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/components/newArchives/residents.vue b/components/newArchives/residents.vue index baca0a0..98d503e 100644 --- a/components/newArchives/residents.vue +++ b/components/newArchives/residents.vue @@ -13,7 +13,7 @@ - + @@ -107,6 +107,7 @@ export default { data() { return { + jobTypeList: ['公务员','国企事业单位','民营企业','自由职业','其他'], // 常住人口 residents: { userList: [{ @@ -136,8 +137,15 @@ } }, methods: { + // 选择生日 changeBirthday(e){ - console.log(e); + let index = e.currentTarget.dataset.index; + this.residents.userList[index].birthday = e.detail.value; + }, + // 选择就业 + changeJobType(e){ + let index = e.currentTarget.dataset.index; + this.residents.userList[index].jobType = this.jobTypeList[e.detail.value]; }, // 添加人口 pushUserList() { diff --git a/subpkg/newArchives/newArchives.vue b/subpkg/newArchives/newArchives.vue index 913cb6e..a453791 100644 --- a/subpkg/newArchives/newArchives.vue +++ b/subpkg/newArchives/newArchives.vue @@ -33,6 +33,10 @@ 常住人口 + + 种养殖 + + @@ -45,8 +49,9 @@ import { Toast } from "../../libs/uniApi" import districtSelector from "@/components/districtSelector/districtSelector.vue" //地区选择器 import residents from "@/components/newArchives/residents.vue" // 常住人口 + import breeding from "@/components/newArchives/breeding.vue" // 种养殖 export default { - components:{districtSelector, residents}, + components:{districtSelector, residents, breeding}, data() { return { formData: {