From 97a5a337e1e1f4b507426742828fa86a161c366a Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Sat, 29 Jul 2023 18:02:50 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/newArchives/breeding.vue | 304 +++++++++++-----------------
1 file changed, 123 insertions(+), 181 deletions(-)
diff --git a/components/newArchives/breeding.vue b/components/newArchives/breeding.vue
index a8d5ec3..68488ae 100644
--- a/components/newArchives/breeding.vue
+++ b/components/newArchives/breeding.vue
@@ -1,130 +1,125 @@
种养殖
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -134,9 +129,7 @@
data() {
return {
landPlanList: ['自己种养', '出租', '代种养', '租更多地扩大种植'],
- formData: [{
- "category_id": "1",
- "category_child": "0",
+ formData: {
"cultivated_area": "20", //耕地总面积
"planning": 66, //土地规划
"breeding_training": 1, //有无种养殖培训
@@ -159,7 +152,7 @@
"expand_business_needs": 0, //是否有扩大经营需求
"demand": "没有述求", //种养殖述求
"policy_subsidies": "无补助" //政策补助
- }],
+ },
rules: {
}
@@ -171,13 +164,11 @@
methods: {
// 初始化校验
initRules(){
- let arr = Object.keys(this.formData[0]);
+ let arr = Object.keys(this.formData);
arr.forEach(key=>{
this.rules[key] = {
validator: (rule, value, callback )=>{
- if(Array.isArray(this.$refs.breedingForm)) for(let i = 0;i {
- if (res.confirm) {
- this.formData.splice(index, 1);
- }
- }
- })
+ this.formData[data.value] = e.detail.value;
},
},
}