|
@@ -7,6 +7,7 @@
|
|
|
placeholder="牧场"
|
|
|
style="width:120px"
|
|
|
class="filter-item"
|
|
|
+ @change="changePastureName"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in findAllPasture"
|
|
@@ -244,7 +245,7 @@ export default {
|
|
|
],
|
|
|
getdataListParm: {
|
|
|
name: 'getuserallL', offset: 1, pagecount: 50, returntype: 'Map',
|
|
|
- parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '' }
|
|
|
+ parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '', }
|
|
|
},
|
|
|
updateParam: {
|
|
|
name: 'getMaintenanceTypeByUser', offset: 1, pagecount: 0, returntype: 'list',
|
|
@@ -277,6 +278,11 @@ export default {
|
|
|
this.get_table_data()
|
|
|
},
|
|
|
methods: {
|
|
|
+ changePastureName(item) {
|
|
|
+ this.getdataListParm.parammaps.pastureId = this.findAllPasture.find(
|
|
|
+ (obj) => obj.name == item
|
|
|
+ ).id
|
|
|
+ },
|
|
|
tableSort(column) {
|
|
|
sortChange(column, this.list)
|
|
|
},
|