diff --git a/components/newArchives/breeding.vue b/components/newArchives/breeding.vue
index afa6fad..4fc2daf 100644
--- a/components/newArchives/breeding.vue
+++ b/components/newArchives/breeding.vue
@@ -1,39 +1,120 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -43,20 +124,71 @@
export default {
data() {
return {
- formData:{
-
+ landPlanList: ['自己种养', '出租', '代种养', '租更多地扩大种植'],
+ formData: {
+ breedingList: [{
+ landPlan: '', //土地规划
+ }]
},
- rules:{
-
+ rules: {
+
}
}
},
methods: {
-
+ // 选择土地规划
+ changeLanPlan(e) {
+ let index = e.currentTarget.dataset.index;
+ this.formData.breedingList[index].landPlan = this.landPlanList[e.detail.value];
+ },
+ // 新增种养殖
+ pushBreedingList() {
+ this.formData.breedingList.push({
+ nickname: '',
+ birthday: '',
+ jobType: '',
+ skill: '',
+ })
+ },
+ // 删除种养殖
+ removeBreedingList(index) {
+ uni.showModal({
+ confirmColor: '#f56c6c',
+ content: '确定删除吗?',
+ success: (res) => {
+ if (res.confirm) {
+ this.formData.breedingList.splice(index, 1);
+ }
+ }
+ })
+ },
},
}
\ No newline at end of file
diff --git a/components/newArchives/residents.vue b/components/newArchives/residents.vue
index 98d503e..117d926 100644
--- a/components/newArchives/residents.vue
+++ b/components/newArchives/residents.vue
@@ -76,29 +76,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -127,9 +105,6 @@
remark: '' //备注
}
],
- is_car: '',//汽车是否能到家
- is_smartphone: '',//是否使用智能手机
- wechat: '', //微信号
},
rules: {
diff --git a/subpkg/newArchives/newArchives.vue b/subpkg/newArchives/newArchives.vue
index a453791..0159dd4 100644
--- a/subpkg/newArchives/newArchives.vue
+++ b/subpkg/newArchives/newArchives.vue
@@ -28,6 +28,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
常住人口
@@ -59,6 +82,9 @@
sex: '',
nickname: '',
account: '', //电话
+ is_car: '',//汽车是否能到家
+ is_smartphone: '',//是否使用智能手机
+ wechat: '', //微信号
},
rules: {
account: {