Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 87bf44ae
authored
Jul 14, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加时间切换
1 parent
165aee7c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
10 deletions
src/mixins/changeMixin.js
src/views/home/solar/ContentLeft.vue
src/views/home/solar/MerchantTrends.vue
src/views/home/solar/PurchaseTrends.vue
src/mixins/changeMixin.js
View file @
87bf44a
/*
* @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
:
{
...
...
src/views/home/solar/ContentLeft.vue
View file @
87bf44a
...
@@ -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-1
3 18:01:02
* @LastEditTime: 2023-07-1
4 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
)
...
...
src/views/home/solar/MerchantTrends.vue
View file @
87bf44a
...
@@ -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-1
3 17:55:09
* @LastEditTime: 2023-07-1
4 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
({
...
...
src/views/home/solar/PurchaseTrends.vue
View file @
87bf44a
...
@@ -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-1
3 17:12:23
* @LastEditTime: 2023-07-1
4 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
({
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment