From 78bedea18bd3bf6d74d56a62612fb8723a1eeaea Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Fri, 28 Jul 2023 16:29:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=B8=E4=BD=8F=E4=BA=BA?=
=?UTF-8?q?=E5=8F=A3=E7=BB=84=E4=BB=B6,=E6=96=B0=E5=A2=9E=E7=A7=8D?=
=?UTF-8?q?=E5=85=BB=E6=AE=96=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/newArchives/breeding.vue | 62 ++++++++++++++++++++++++++++
components/newArchives/residents.vue | 12 +++++-
subpkg/newArchives/newArchives.vue | 7 +++-
3 files changed, 78 insertions(+), 3 deletions(-)
create mode 100644 components/newArchives/breeding.vue
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: {