diff --git a/src/views/report/repairRateReport/index.vue b/src/views/report/repairRateReport/index.vue index 94790b5..5317c0a 100644 --- a/src/views/report/repairRateReport/index.vue +++ b/src/views/report/repairRateReport/index.vue @@ -240,8 +240,8 @@ export default { repairRateReportList({ ...this.queryParams, - STATION_CODE: [2001,2006,2007], - stationCodeList: '2001,2006,2007', + STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2001,2006,2007] : [2101,2106,2107], + stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2001,2006,2007' : '2101,2106,2107' , }).then(response => { let e = response.data this.$refs.chart11.setData({ @@ -330,8 +330,8 @@ export default { repairRateReportList({ ...this.queryParams, - STATION_CODE: [2002,2003], - stationCodeList: '2002,2003', + STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2002,2003] : [2102,2103], + stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2002,2003' : '2102,2103', }).then(response => { let e = response.data this.$refs.chart12.setData({ @@ -420,8 +420,8 @@ export default { repairRateReportList({ ...this.queryParams, - STATION_CODE: [2005], - stationCodeList: '2005', + STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2005] : [2105], + stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2005' : '2105', }).then(response => { let e = response.data this.$refs.chart13.setData({ @@ -510,8 +510,8 @@ export default { repairRateReportList({ ...this.queryParams, - STATION_CODE: [2008,2009,2010,2011], - stationCodeList: '2008,2009,2010,2011', + STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2008,2009,2010,2011] : [2108,2109,2110,2111] , + stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2008,2009,2010,2011' : '2108,2109,2110,2111', }).then(response => { let e = response.data this.$refs.chart14.setData({ @@ -785,6 +785,9 @@ export default { /** 搜索按钮操作 */ handleQuery() { // this.queryParams.pageNum = 1; + if (this.queryParams.STATION_CODE.length === 0){ + this.getChart() + } this.getList() }, /** 重置按钮操作 */ diff --git a/src/views/report/weldLeakRate/index.vue b/src/views/report/weldLeakRate/index.vue index de6e9a4..655f76b 100644 --- a/src/views/report/weldLeakRate/index.vue +++ b/src/views/report/weldLeakRate/index.vue @@ -1,6 +1,16 @@