From 2eeeaa8d8bb9e754779f4de276a6d77095606921 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 8 Feb 2023 15:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E5=86=9C=E4=BA=8B=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/baseMana/formReacord.vue | 12 ++++++++++-- pages/massif/add_farming.vue | 17 ++++++++++++++++- .../d-search/components/d-search/d-search.vue | 12 ++++++++---- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/pages/baseMana/formReacord.vue b/pages/baseMana/formReacord.vue index 6d54217..d6d12ed 100644 --- a/pages/baseMana/formReacord.vue +++ b/pages/baseMana/formReacord.vue @@ -17,11 +17,15 @@ line-height: 60rpx; text-align:center; position:relative; + color:#333; &:before{ transform: rotate(90deg); position:absolute; right:10rpx; } + &.noData{ + color:#999; + } } } @@ -75,10 +79,12 @@ @@ -100,6 +107,7 @@ import request from '@/common/request.js' return{ searchVal:{ search:"", + value:"", pageNo:1, pageSize:6, plotId:"", diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index d8def27..e12491d 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -106,7 +106,8 @@ 农事类型 - 自定义+ + {{v.label}} + 自定义+ @@ -141,6 +142,7 @@ import request from '@/common/request' export default { data(){ return{ + typeList:[], fields:{ people:{label:"操作人",styleType:"parallel"}, date:{label:"操作日期",styleType:"parallel",type:"calendar"}, @@ -173,9 +175,22 @@ export default { } }, onLoad(options){ + this.init() this.getMassifDetail(options.plotId) }, methods:{ + async init(){ + var res=await request("/api/plantFarming/listFarmName") + if(res.statu){ + this.typeList=res.data + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"获取农事类型失败!", + showCancel:false, + }) + } + }, async getMassifDetail(id){ var res=await request("/api/plantPlot/queryById",{ params:{id} diff --git a/uni_modules/d-search/components/d-search/d-search.vue b/uni_modules/d-search/components/d-search/d-search.vue index 98abdfe..b458d65 100644 --- a/uni_modules/d-search/components/d-search/d-search.vue +++ b/uni_modules/d-search/components/d-search/d-search.vue @@ -87,13 +87,13 @@ - - + + 猜你想搜 - {{v.label}} + {{v.label}} @@ -109,7 +109,11 @@ export default { list:{ type:Array, default:()=>[] - } + }, + selectVal:{ + type:[String,Number], + default:'' + }, }, data(){ return{