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 d9064f44
authored
Aug 14, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.3.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v1.3.0
2 parents
f6c4463e
d616df2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
src/components/SelectBox.vue
src/views/crowdfunding/components/MainTab.vue
src/components/SelectBox.vue
View file @
d9064f4
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-05 15:11:53
* @LastEditors: huyue
* @LastEditTime: 2023-08-14 1
1:20:44
* @LastEditTime: 2023-08-14 1
4:06:17
-->
<
template
>
<div
v-click-outside=
"handleClickOutside"
@
mouseleave=
"handleMouseLeave"
v-show=
"isShow"
class=
"select-box"
:style=
"
{'width': boxWidth}">
...
...
@@ -73,9 +73,9 @@ export default {
}
},
mounted
()
{
console
.
log
(
this
.
defaultValue
,
this
.
dataList
,
'00000000'
)
const
{
valueName
,
isObject
,
dataList
,
defaultValue
}
=
this
this
.
value
=
defaultValue
||
(
isObject
?
dataList
[
0
][
valueName
]
:
dataList
[
0
])
const
isDefaultObject
=
(
defaultValue
instanceof
Object
)
this
.
value
=
isDefaultObject
?
defaultValue
[
valueName
]
:
defaultValue
||
(
isObject
?
dataList
[
0
][
valueName
]
:
dataList
[
0
])
},
methods
:
{
select
(
item
)
{
...
...
src/views/crowdfunding/components/MainTab.vue
View file @
d9064f4
...
...
@@ -39,7 +39,8 @@ export default {
tabActive
:
0
,
isShow
:
false
,
defaultMonth
:
{
label
:
new
Date
().
format
(
'yyyy年MM月'
)
label
:
new
Date
().
format
(
'yyyy-MM'
),
statMonth
:
new
Date
().
format
(
'yyyy-MM'
)
},
dataList
:
[],
month
:
''
...
...
@@ -57,11 +58,11 @@ export default {
const
_dataList
=
_result
.
data
.
dataList
_dataList
.
forEach
(
item
=>
{
this
.
dataList
.
push
({
label
:
new
Date
(
item
.
statMonth
).
format
(
'yyyy年MM月'
)
,
label
:
item
.
statMonth
,
statMonth
:
item
.
statMonth
})
})
this
.
defaultMonth
=
this
.
month
=
this
.
dataList
[
0
].
label
this
.
defaultMonth
=
this
.
month
=
this
.
dataList
[
0
].
statMonth
this
.
$bus
.
$emit
(
'crowdFundingMonth'
,
this
.
dataList
[
0
].
statMonth
)
},
// tab切换
...
...
@@ -73,7 +74,7 @@ export default {
this
.
isShow
=
!
this
.
isShow
},
selectVal
(
val
)
{
this
.
defaultMonth
=
this
.
month
=
val
.
label
this
.
defaultMonth
=
this
.
month
=
val
.
statMonth
this
.
$bus
.
$emit
(
'crowdFundingMonth'
,
val
.
statMonth
)
this
.
switchMonth
()
},
...
...
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