|
@@ -15,6 +15,7 @@
|
|
|
placeholder="牧场"
|
|
|
class="filter-item"
|
|
|
style="width: 120px"
|
|
|
+ @change="chosePasture"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in findAllPasture"
|
|
@@ -170,9 +171,9 @@ export default {
|
|
|
width: '80'
|
|
|
},
|
|
|
{
|
|
|
- label: `运转率\n(截止导出日期)`,
|
|
|
+ label: `运转率`,
|
|
|
prop: 'runningRate',
|
|
|
- width: '140'
|
|
|
+ width: '150'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -182,6 +183,16 @@ export default {
|
|
|
this.getTableList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 点击
|
|
|
+ chosePasture(val) {
|
|
|
+ const arr = this.findAllPasture.filter((item) => {
|
|
|
+ if ((item.name = val)) {
|
|
|
+ return item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(val, arr, 'hss')
|
|
|
+ this.getdataListParm.pastureId = arr[0].id
|
|
|
+ },
|
|
|
// 点击搜索
|
|
|
handlerSerch() {
|
|
|
this.getdataListParm.pagecount = 10
|