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:{},