From 60f72cf53391b60d27b1a0ed49b3ed1e9574f6d2 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Wed, 6 Mar 2024 17:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages/husbandryForm/detail.vue | 4 +- pages/landDetail/index.vue | 8 +-- pages/plantAdmin/houseDetail.vue | 4 +- pages/plantAdmin/moreBreed.vue | 63 +++++++++++--------- pages/record/record.vue | 5 +- unpackage/dist/build/app-plus/app-service.js | 2 +- unpackage/dist/build/app-plus/manifest.json | 4 +- 8 files changed, 53 insertions(+), 41 deletions(-) diff --git a/manifest.json b/manifest.json index 389d101..a4338e6 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "养殖溯源", "appid" : "__UNI__C509A32", "description" : "", - "versionName" : "1.0.3", - "versionCode" : 103, + "versionName" : "1.0.4", + "versionCode" : 104, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/husbandryForm/detail.vue b/pages/husbandryForm/detail.vue index 3dd20bd..f91cac7 100644 --- a/pages/husbandryForm/detail.vue +++ b/pages/husbandryForm/detail.vue @@ -221,7 +221,9 @@ if (res.code == 1) { - datalist.splice(0, datalist.length, ...res.data) + res.data.forEach(item=>{ + datalist.push(item) + }) res.data.detai // console.log(res.data) } diff --git a/pages/landDetail/index.vue b/pages/landDetail/index.vue index af43266..988e48e 100644 --- a/pages/landDetail/index.vue +++ b/pages/landDetail/index.vue @@ -213,10 +213,10 @@ }).then((res) => { if (res.code == 1) { - dataList.splice(0, dataList.length, ...res.data); - dataList.forEach(item => { - item.showCode = false - }) + res.data.forEach(item=>{ + item.showCode = false + dataList.push(item) + }) console.log(dataList) } }); diff --git a/pages/plantAdmin/houseDetail.vue b/pages/plantAdmin/houseDetail.vue index 0f576f6..d448a33 100644 --- a/pages/plantAdmin/houseDetail.vue +++ b/pages/plantAdmin/houseDetail.vue @@ -298,7 +298,9 @@ item.pic = JSON.parse(item.pic||'[]'); return item }) - dataList.splice(0, dataList.length, ...res.data.lists); + res.data.lists.forEach(item=>{ + dataList.push(item) + }) // console.log(dataList) } }); diff --git a/pages/plantAdmin/moreBreed.vue b/pages/plantAdmin/moreBreed.vue index 69994b5..cb83495 100644 --- a/pages/plantAdmin/moreBreed.vue +++ b/pages/plantAdmin/moreBreed.vue @@ -8,10 +8,13 @@ - + - - + + {{item.sn}} 品类: @@ -47,7 +50,7 @@ - + {{options.code.split('d_')[1]}} @@ -60,7 +63,6 @@