From cdef522e0c8a4f220033f9dca763645d0152a2c3 Mon Sep 17 00:00:00 2001 From: sjz-mxj <1375998991@qq.com> Date: Sun, 25 Jun 2023 10:28:08 +0800 Subject: [PATCH] =?UTF-8?q?type:refactor=20commit:=E5=86=9C=E4=BA=8B?= =?UTF-8?q?=E6=8A=95=E5=85=A5=E5=A2=9E=E5=8A=A0=E5=B7=A5=E6=97=B6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 2 +- pages/massif/add_farming.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index 36e6987..25e3e36 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -432,7 +432,7 @@ import request,{host} from '@/common/request' this.plantBase=[res.data] this.$store.commit("setBaseId", {id:res.data[0].id,name:res.data[0].baseName}) }else{ - uni.showToast({title:"请在管理端维护基地!",icon:"none",duration:3000}) + uni.showToast({title:"请在管理端维护基地!",icon:"none",duration:5000}) } }else{ uni.showModal({ diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index 4a261bb..fa778e4 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -240,7 +240,7 @@ export default { farmingTime:{label:"操作日期",styleType:"parallel",type:"calendar"}, userNum:{label:"人工投入(个)",type:"number"}, farmingPlanId:{label:"种植计划",type:"select",columns:[],value:[]}, - workTime:{label:"工时",type:"number"}, + workTime:{label:"工时(天)",type:"number"}, images:{label:"农事图片",type:"upImg",num:3}, farmingRemarks:{label:"备注",type:"textarea"}, @@ -253,15 +253,16 @@ export default { images:[], farmingRemarks:"", userNum:0, + workTime:0, inputList:[], farmPests:null,//病虫害 - plotId:"", plantBaseInfoId: this.$store.state.baseInfo.id, }, rules:{ userNum:{required:true,type:'number',message:"人工投入必填!",trigger:'blur'}, farmingTime:{required:true,message:"操作日期必填!",trigger:'blur'}, + workTime:{required:true,type:'number',message:"工时必填!",trigger:'blur'}, farmingPlanId:{required:true,message:"种植计划必选!",trigger:'blur'}, }, massif:{},