From 158d1a5a6b9c24e6b875fecfb696a87db428d7b9 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Fri, 28 Jul 2023 17:13:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A7=8D=E5=85=BB=E6=AE=96?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6,=E4=BF=AE=E6=94=B9residents=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/newArchives/breeding.vue | 194 ++++++++++++++++++++++-----
components/newArchives/residents.vue | 27 +---
subpkg/newArchives/newArchives.vue | 26 ++++
3 files changed, 190 insertions(+), 57 deletions(-)
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: {