Commit 2e8c8fb3 by 匡雅琴

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v1.0.0

2 parents 6f256411 87bf44ae
/*
* @Description:
* @Author: huyue
* @Date: 2023-07-07 11:23:06
* @LastEditors: huyue
* @LastEditTime: 2023-07-14 10:41:28
*/
export default {
watch: {
watchReportParams: {
// watchReportParams: {
// immediate: true,
// handler(newval) {
// this && this.init && this.init(newval)
// }
// },
watchSolarYear: {
immediate: true,
handler(newval) {
this && this.init && this.init(newval)
......@@ -8,8 +21,11 @@ export default {
}
},
computed: {
watchReportParams() {
return this.$store.state.app.reportParams
// watchReportParams() {
// return this.$store.state.app.reportParams
// },
watchSolarYear() {
return this.$store.state.app.solarYear
}
},
method: {
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditTime: 2023-07-13 18:01:02
* @LastEditTime: 2023-07-14 10:29:24
-->
<template>
<div class="left">
......@@ -90,8 +90,7 @@ export default {
this.getSolarList()
},
async getSolarList() {
console.log(this.$store.state)
const _data = await this.api.solar.getAllPurchase({ year: 2023 })
const _data = await this.api.solar.getAllPurchase({ year: this.$store.state.app.solarYear })
const _dataList = _data.data.dataList[0]
console.log(_dataList)
this.$bus.$emit('businessstarttime', _dataList.businessstarttime)
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-06 16:19:15
* @LastEditors: huyue
* @LastEditTime: 2023-07-13 17:55:09
* @LastEditTime: 2023-07-14 10:29:38
-->
<template>
<div class="merchant-box">
......@@ -61,7 +61,7 @@ export default {
// })
},
async getTrendData() {
const _data = await this.api.solar.getAllOpenBuyTrend({ year: 2023 })
const _data = await this.api.solar.getAllOpenBuyTrend({ year: this.$store.state.app.solarYear })
const _dataList = _data.data.dataList
_dataList.forEach(item => {
this.dataList.push({
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-06 16:19:15
* @LastEditors: huyue
* @LastEditTime: 2023-07-13 17:12:23
* @LastEditTime: 2023-07-14 10:29:34
-->
<template>
<div class="purchase-box">
......@@ -73,7 +73,7 @@ export default {
// })
},
async getDataList() {
const _data = await this.api.solar.getAllPurchaseTrend({ year: 2023 })
const _data = await this.api.solar.getAllPurchaseTrend({ year: this.$store.state.app.solarYear })
const _dataList = _data.data.dataList
_dataList.forEach(item => {
this.dataList.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!