|
@@ -2315,6 +2315,20 @@ export default {
|
|
|
this.requestParam.parammaps.laidType = this.getdataListParm.parammaps.laidType
|
|
|
this.requestParam.parammaps.startTime = this.getdataListParm.parammaps.startTime
|
|
|
this.requestParam.parammaps.stopTime = this.getdataListParm.parammaps.stopTime
|
|
|
+
|
|
|
+ // 对于多选的牧场,根据数组的名称来转换 pastureArr =》 pastureId TODO:
|
|
|
+ if (this.getdataListParm.parammaps.pastureArr && this.getdataListParm.parammaps.pastureArr.length > 0) {
|
|
|
+ const arr = this.findAllPasture.filter((item) => {
|
|
|
+ if (this.getdataListParm.parammaps.pastureArr.includes(item.name)) {
|
|
|
+ return item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ const ids = arr.map((child) => { return child.id })
|
|
|
+ console.log(arr,ids,'999999')
|
|
|
+ this.getdataListParm.parammaps.pastureId = ids.toString();
|
|
|
+ }
|
|
|
+ this.requestParam.parammaps.pastureId = this.getdataListParm.parammaps.pastureId
|
|
|
+
|
|
|
GetAccount(this.requestParam).then(response => {
|
|
|
if (response.data.list !== '') {
|
|
|
this.percentage = 99
|