|
@ -76,7 +76,7 @@ |
|
|
<d-search v-model="searchVal.search" @search="clean();search()"/> |
|
|
<d-search v-model="searchVal.search" @search="clean();search()"/> |
|
|
|
|
|
|
|
|
<scroll-view scroll-y @scrollotower="search"> |
|
|
<scroll-view scroll-y @scrollotower="search"> |
|
|
<view class="card" v-for="(v,k) in list" :key="k" @click="toAddSpecs(v.id)"> |
|
|
<view class="card" v-for="(v,k) in list" :key="k"> |
|
|
<view class="info"> |
|
|
<view class="info"> |
|
|
<text>{{v.agriculturalGoods}}</text> <text>{{v.substanceName}}</text> <text>({{v.specDescribe}})</text> |
|
|
<text>{{v.agriculturalGoods}}</text> <text>{{v.substanceName}}</text> <text>({{v.specDescribe}})</text> |
|
|
</view> |
|
|
</view> |
|
@ -104,11 +104,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
list:[], |
|
|
list:[], |
|
|
total:0, |
|
|
total:0, |
|
|
intoPage:"",//formRecord 从农事记录进入 |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options){ |
|
|
onLoad(options){ |
|
|
this.intoPage=options.intoPage |
|
|
|
|
|
this.search() |
|
|
this.search() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
@ -137,13 +135,6 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
toAddSpecs(id){ |
|
|
|
|
|
if(this.intoPage=='formRecord'){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:`/pages/massif/agrSpecs?id=${id}` |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |