|
@ -359,9 +359,9 @@ import request from '@/common/request.js' |
|
|
return this.$store.getters.userInfo.roleCode=='companyAdmin' |
|
|
return this.$store.getters.userInfo.roleCode=='companyAdmin' |
|
|
}, |
|
|
}, |
|
|
isEmpty(){ |
|
|
isEmpty(){ |
|
|
if(!baseIndex)return (this.baseInfo.farmWork||[]).length+(baseInfo.farmingInput||[]).length<=0 |
|
|
if(!this.baseIndex)return (this.baseInfo.farmWork||[]).length+(this.baseInfo.farmingInput||[]).length<=0 |
|
|
else if(baseIndex=='record')return (this.baseInfo.farmWork||[]).length<=0 |
|
|
else if(this.baseIndex=='record')return (this.baseInfo.farmWork||[]).length<=0 |
|
|
else return (baseInfo.farmingInput||[]).length<=0 |
|
|
else return (this.baseInfo.farmingInput||[]).length<=0 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
@ -410,7 +410,6 @@ import request from '@/common/request.js' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async getBaseInfo(plantBaseId){ |
|
|
async getBaseInfo(plantBaseId){ |
|
|
console.log('-------------getBaseInfo-----------------') |
|
|
|
|
|
var res=await request("/api/plantIndex/queryFarmWorkAndInput",{ |
|
|
var res=await request("/api/plantIndex/queryFarmWorkAndInput",{ |
|
|
params:{plantBaseId} |
|
|
params:{plantBaseId} |
|
|
}) |
|
|
}) |
|
|