| | |
| | | </flex-box> |
| | | </div> |
| | | </div> |
| | | <!-- 导出用的图表 可变的那组图 --> |
| | | <div class="hideContain"> |
| | | <normal-lines id="hideChart" ref="hideChart"></normal-lines> |
| | | </div> |
| | | </flex-layout> |
| | | </template> |
| | | |
| | |
| | | actualCapOption: null, |
| | | residualCapOption: null, |
| | | residualTimeOption: null, |
| | | unit: '' |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | series: SingleVol, |
| | | }; |
| | | let testCapOption = { |
| | | unit: 'AH', |
| | | xData: times, |
| | | series: [ |
| | | { |
| | |
| | | ], |
| | | }, |
| | | actualCapOption = { |
| | | unit: 'AH', |
| | | xData: times, |
| | | series: [ |
| | | { |
| | |
| | | ], |
| | | }, |
| | | residualCapOption = { |
| | | unit: 'AH', |
| | | xData: times, |
| | | series: [ |
| | | { |
| | |
| | | ], |
| | | }, |
| | | residualTimeOption = { |
| | | unit: '', |
| | | xData: times, |
| | | series: [ |
| | | { |
| | |
| | | }, |
| | | // 导出报表 |
| | | exportExcel() { |
| | | // axios({ |
| | | // url: 'export', |
| | | // method: 'POST', |
| | | // params: { |
| | | // filePath: this.info.filePath |
| | | // } |
| | | |
| | | // }).then((res) => { |
| | | // res = res.data; |
| | | // console.log(res, '======res'); |
| | | // }); |
| | | // 容量折线图 |
| | | let arr = ['testCap', 'actualCap']; |
| | | let o_pic = {}; |
| | | arr.forEach((v) => { |
| | | let option = this[v + 'Option']; |
| | | this.unit = option.unit; |
| | | this.$refs.hideChart.setData(option); |
| | | o_pic[v] = this.$refs.hideChart.getDataURL(); |
| | | }); |
| | | let params = { |
| | | filePath: this.info.filePath, |
| | | groupVol_echart: this.$refs.groupVol.getDataURL(), |
| | | curr_echart: this.$refs.groupCurr.getDataURL(), |
| | | vol_echart: this.$refs.vol.getDataURL(), |
| | | cap_echart: this.$refs.cap.getDataURL(), |
| | | cap_echart: o_pic.testCap, |
| | | actualCap_echart: o_pic.actualCap |
| | | }; |
| | | let baseURL = axios.defaults.baseURL; |
| | | baseURL = baseURL ? baseURL : ""; |
| | |
| | | .flex-row + .flex-row { |
| | | margin-top: 8px; |
| | | } |
| | | .hideContain { |
| | | position: absolute; |
| | | width: 0; |
| | | height: 0; |
| | | display: none; |
| | | } |
| | | </style> |