diff --git a/src/views/base/processStation/index.vue b/src/views/base/processStation/index.vue index 9df0261..0b707f2 100644 --- a/src/views/base/processStation/index.vue +++ b/src/views/base/processStation/index.vue @@ -289,7 +289,7 @@ export default { }); findProductLineList({productLineType: 1}).then(response => { this.productLineList = response.data; - this.queryParams.productLineCode = response.data[1].productLineCode + this.queryParams.productLineCode = response.data.find(val=>val.productLineName === '一产线')?.productLineCode }); findProductLineList({productLineType: 2}).then(response => { this.findStationList = response.data;