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 0ae2113b
authored
Aug 04, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
表格、日历样式
1 parent
a7974bb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
6 deletions
src/views/crowdfundingDetail/ActivityDetail.vue
src/views/crowdfundingDetail/ActivityTable.vue
src/views/crowdfundingDetail/Calendar.vue
src/views/crowdfundingDetail/ActivityDetail.vue
View file @
0ae2113
...
...
@@ -3,7 +3,8 @@
<box-title
title=
"活动数据明细"
></box-title>
<div
class=
"content-box"
>
<div
class=
"flex"
>
<DateTab></DateTab>
<DateTab
@
changeDate=
"changeDate"
class=
"date-tab"
></DateTab>
<Calendar
v-show=
"showCalendar"
></Calendar>
</div>
<ActivityTable
class=
"activity-table"
:tableData=
"tableData"
:dataTotal=
"dataTotal"
></ActivityTable>
</div>
...
...
@@ -13,11 +14,13 @@
<
script
>
import
DateTab
from
'./DateTab.vue'
import
ActivityTable
from
'./ActivityTable.vue'
import
Calendar
from
'./Calendar.vue'
export
default
{
name
:
'ActivityDetail'
,
components
:
{
DateTab
,
ActivityTable
ActivityTable
,
Calendar
},
data
()
{
return
{
...
...
@@ -47,13 +50,23 @@ export default {
reject
:
'32%'
}
],
dataTotal
:
20
dataTotal
:
20
,
showCalendar
:
false
}
},
mounted
()
{},
methods
:
{}
methods
:
{
changeDate
(
val
)
{
console
.
log
(
val
);
if
(
val
===
3
)
{
this
.
showCalendar
=
true
}
else
{
this
.
showCalendar
=
false
}
}
}
}
</
script
>
...
...
@@ -64,7 +77,10 @@ export default {
.content-box
{
padding
:
1.78vh
1.39vw
;
.activity-table
{
margin-top
:
2.22vh
;
margin-top
:
2.22vh
;
}
.date-tab
{
margin-right
:
0.69vw
;
}
}
}
...
...
src/views/crowdfundingDetail/ActivityTable.vue
View file @
0ae2113
...
...
@@ -44,7 +44,7 @@ export default {
type
:
Array
,
default
:
()
=>
[]
},
dataTotal
:
String
||
Number
dataTotal
:
Number
},
data
()
{
return
{
...
...
src/views/crowdfundingDetail/Calendar.vue
0 → 100644
View file @
0ae2113
<
template
>
<div>
<el-date-picker
v-model=
"dateValue"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Calendar'
,
data
()
{
return
{
dateValue
:
''
}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
>
.el-date-editor.el-input
,
.el-date-editor.el-input__inner
{
width
:
17.5vw
;
height
:
3.56vh
;
line-height
:
3.56vh
;
border-radius
:
0
;
border
:
none
;
background-image
:
linear-gradient
(
270deg
,
#6578ff
0%
,
#079ff1
100%
);
}
.el-date-editor
.el-range__icon
,
.el-date-editor
.el-range__close-icon
{
line-height
:
3vh
;
}
.el-date-editor
.el-range-input
{
background
:
transparent
;
font-size
:
12px
;
color
:
#ffffff
;
line-height
:
3.56vh
;
}
.el-date-editor
.el-range-separator
{
font-size
:
12px
;
color
:
#ffffff
;
line-height
:
2.76vh
;
}
.el-popper
.popper__arrow
,
.el-popper
.popper__arrow
::after
{
border-style
:
none
;
}
.el-picker-panel
{
font-size
:
14px
;
color
:
#ffffff
d9
;
background
:
#051526
;
border
:
2px
solid
;
border-image
:
linear-gradient
(
90deg
,
#074989
,
#30dcff
,
#074989
)
1
;
border-radius
:
0
;
}
.el-picker-panel__icon-btn
,
.el-date-table
th
{
color
:
#ffffff
d9
;
}
.el-date-table
th
{
border-bottom
:
none
;
}
.el-date-table
td
.today
span
{
color
:
#5894ff
;
background-image
:
-webkit-linear-gradient
(
left
,
#24d8ff
,
#7787ff
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
.el-date-table
td
.next-month
,
.el-date-table
td
.prev-month
{
color
:
#808080
;
}
.el-date-range-picker__content.is-left
{
border-right
:
none
;
}
.el-date-range-picker__content
{
padding
:
0
;
}
.el-date-range-picker__header
{
height
:
4.44vh
;
line-height
:
4.44vh
;
padding
:
0
1.11vw
;
border-bottom
:
2px
solid
;
border-image
:
linear-gradient
(
90deg
,
#074989
,
#30dcff
)
1
;
}
.is-right
.el-date-range-picker__header
{
border-image
:
linear-gradient
(
90deg
,
#30dcff
,
#074989
)
1
!important
;
}
.el-date-range-picker
table
{
border-collapse
:
inherit
;
padding
:
1.78vh
0.95vw
1.78vh
1.67vw
;
}
.el-date-table
td
.in-range
div
,
.el-date-table
td
.in-range
div
:hover
,
.el-date-table.is-week-mode
.el-date-table__row.current
div
,
.el-date-table.is-week-mode
.el-date-table__row
:hover
div
{
background-color
:
#244888
;
}
.el-date-table
td
.end-date
span
,
.el-date-table
td
.start-date
span
{
background-image
:
linear-gradient
(
270deg
,
#6578FF
0%
,
#079FF1
100%
);
}
.el-date-table
td
.start-date
div
{
margin-left
:
0.547vw
;
}
.el-date-table
td
div
{
height
:
1.683vw
;
}
.el-date-table
td
.end-date
div
{
margin-right
:
0.547vw
;
}
</
style
>
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