| | |
| | | <!-- 上 --> |
| | | <div class="row-1"> |
| | | <card class="card row-1" title="基础资源信息" content-class="base-card"> |
| | | <!-- TODO 设备数量等接口改好 --> |
| | | <total-data |
| | | class="row-item" |
| | | :type="0" |
| | |
| | | pwrProd: [], |
| | | pwrProdDialog: false, |
| | | pwrProdList: [], |
| | | // 因为投运年限有四个级别 所以要存四份 |
| | | battProdAnalysis: [[], [], [], []], |
| | | // 因为投运年限有八个级别 所以要存八份 |
| | | battProdAnalysis: [[], [], [], [], [], [], [], []], |
| | | }, |
| | | toObj: {}, |
| | | listVisible: false, |
| | |
| | | years: [ |
| | | { |
| | | value: 0, |
| | | label: "3年以内", |
| | | label: "1年以内", |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "3-5年", |
| | | label: "2年以内", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "5-7年", |
| | | label: "3年以内", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "4年以内", |
| | | }, |
| | | { |
| | | value: 4, |
| | | label: "5年以内", |
| | | }, |
| | | { |
| | | value: 5, |
| | | label: "6年以内", |
| | | }, |
| | | { |
| | | value: 6, |
| | | label: "7年以内", |
| | | }, |
| | | { |
| | | value: 7, |
| | | label: "7年以上", |
| | | }, |
| | | ], |
| | |
| | | data2: { node, stationType }, |
| | | }, |
| | | resProductQuaAnalysis: { |
| | | data: { threeYear, fiveYear, sevenYear, otherYear }, |
| | | data: { year1, year2, year3, year4, year5, year6, year7, yearOther }, |
| | | }, |
| | | resPwrdevInfAnalysis: { data2: power }, |
| | | battGroupInfo: { |
| | |
| | | let analysis = [], |
| | | analysis1 = []; |
| | | // let prodList = []; |
| | | [threeYear, fiveYear, sevenYear, otherYear].forEach((item, idx) => { |
| | | [year1, year2, year3, year4, year5, year6, year7, yearOther].forEach((item, idx) => { |
| | | analysis.push(this.formatTestData(item, idx)); |
| | | analysis1.push(Object.keys(item).map((v) => ({ name: v, ...item[v] }))); |
| | | // prodList.push(...Object.keys(item)); |
| | |
| | | this.$refs.battChart.setData(analysis[this.year0]); |
| | | this.year0Change(this.year0); |
| | | |
| | | let { getTestData, year1, battProd } = this; |
| | | let { getTestData, battProd } = this; |
| | | // 性能2 |
| | | this.$refs.analysis1.setData(getTestData(year1, battProd)); |
| | | this.$refs.analysis1.setData(getTestData(this.year1, battProd)); |
| | | if (!this.updateFlag) { |
| | | this.updateFlag = true; |
| | | this.resizeChart(); |
| | |
| | | path: "/dataMager/powerMager", |
| | | query: { |
| | | producer: JSON.stringify(producer), |
| | | // TODO |
| | | pageFlag: Math.random() |
| | | }, |
| | | }); |
| | | }, |
| | |
| | | ][this.testLevel]; |
| | | let testType = params.name == "核容放电" ? "3" : "2"; |
| | | this.$router.push({ |
| | | path: "/dataTest/historyInfoMager", |
| | | // TODO |
| | | path: "/dataTest/historyInfoMager?pageFlag="+Math.random(), |
| | | query: { |
| | | testType, |
| | | startDrsj, |
| | |
| | | ? this.others.battProdAnalysis[this.year0] |
| | | : [params.name]; |
| | | this.$router.push({ |
| | | path: "/reportStatistics/taskplan", |
| | | // TODO |
| | | path: "/reportStatistics/taskplan?pageFlag="+Math.random(), |
| | | query: { |
| | | quality, |
| | | dateRange: this.year0, |
| | |
| | | let quality = params.name == "损坏" ? "0" : "1"; |
| | | let battProduct = [this.battProd]; |
| | | this.$router.push({ |
| | | path: "/reportStatistics/taskplan", |
| | | // TODO |
| | | path: "/reportStatistics/taskplan?pageFlag="+Math.random(), |
| | | query: { |
| | | quality, |
| | | dateRange: this.year1, |