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