Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
91d13d3d
Commit
91d13d3d
authored
Jan 18, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页
parent
bea0a5dc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
36 deletions
+19
-36
Row.vue
src/components/Row.vue
+1
-1
NoticeAnnouncement.vue
src/views/Home/cells/NoticeAnnouncement.vue
+1
-6
QuickSearch.vue
src/views/Home/cells/QuickSearch.vue
+3
-9
QuickVisit.vue
src/views/Home/cells/QuickVisit.vue
+2
-8
index.vue
src/views/Home/index.vue
+11
-11
index.vue
src/views/TaskList/index.vue
+1
-1
No files found.
src/components/Row.vue
View file @
91d13d3d
<
template
>
<el-row
v-
on=
"$attrs"
v-bind
=
"$listeners"
>
<el-row
v-
bind=
"$attrs"
v-on
=
"$listeners"
>
<slot></slot>
</el-row>
</
template
>
...
...
src/views/Home/cells/NoticeAnnouncement.vue
View file @
91d13d3d
...
...
@@ -5,7 +5,7 @@
<span
class=
"el-icon-more"
title=
"操作"
></span>
</CellHeaderVue>
<el-scrollbar
:style=
"
{ height:
scrollbar
Height + 'px' }">
<el-scrollbar
:style=
"
{ height:
cellScroll
Height + 'px' }">
<div
class=
"cell-content"
>
<div
class=
"notice-item"
v-for=
"(item, idx) in noticeList"
:key=
"idx"
>
<div
class=
"notice-title"
:class=
"
{ active: idx === 0 }">
...
...
@@ -34,11 +34,6 @@ export default {
required
:
true
,
},
},
computed
:
{
scrollbarHeight
()
{
return
window
.
document
.
body
.
clientHeight
-
this
.
cellScrollHeight
;
},
},
data
()
{
return
{
noticeList
:
[
...
...
src/views/Home/cells/QuickSearch.vue
View file @
91d13d3d
<
template
>
<div
class=
"home-cell"
id=
"quickSearch"
>
<CellHeaderVue
title=
"快速查询"
>
</CellHeaderVue>
<el-scrollbar
:style=
"
{ height:
scrollbar
Height + 'px' }">
<el-scrollbar
:style=
"
{ height:
cellScroll
Height + 'px' }">
<div
class=
"cell-content"
>
<div
class=
"content-wrapper"
v-for=
"(item, index) in options"
:key=
"index"
:style=
"
{ height: Math.floor(
scrollbar
Height * 0.3) + 'px' }"
:style=
"
{ height: Math.floor(
cellScroll
Height * 0.3) + 'px' }"
>
<div
class=
"search-item-wrapper"
>
<div
class=
"search-item"
>
<!--
<i
class=
"el-icon-set-up"
></i>
-->
<img
:src=
"item.icon"
alt=
""
/>
<span>
{{
item
.
name
}}
</span>
</div>
...
...
@@ -35,11 +34,6 @@ export default {
required
:
true
,
},
},
computed
:
{
scrollbarHeight
()
{
return
window
.
document
.
body
.
clientHeight
-
this
.
cellScrollHeight
;
},
},
data
()
{
return
{
options
:
[
...
...
src/views/Home/cells/QuickVisit.vue
View file @
91d13d3d
...
...
@@ -2,17 +2,16 @@
<div
class=
"home-cell"
id=
"quickVisit"
>
<CellHeaderVue
title=
"快速访问"
>
</CellHeaderVue>
<el-scrollbar
:style=
"
{ height:
scrollbar
Height + 'px' }">
<el-scrollbar
:style=
"
{ height:
cellScroll
Height + 'px' }">
<div
class=
"cell-content"
>
<div
class=
"content-wrapper"
v-for=
"(item, index) in quickVisitItem"
:key=
"index"
:style=
"
{ height: Math.floor(
scrollbar
Height * 0.3) + 'px' }"
:style=
"
{ height: Math.floor(
cellScroll
Height * 0.3) + 'px' }"
>
<div
class=
"visit-item-wrapper"
>
<div
class=
"visit-item"
>
<!--
<i
class=
"el-icon-set-up"
></i>
-->
<img
:src=
"item.icon"
alt=
""
/>
<span>
{{
item
.
name
}}
</span>
</div>
...
...
@@ -35,11 +34,6 @@ export default {
required
:
true
,
},
},
computed
:
{
scrollbarHeight
()
{
return
window
.
document
.
body
.
clientHeight
-
this
.
cellScrollHeight
;
},
},
data
()
{
return
{
quickVisitItem
:
[
...
...
src/views/Home/index.vue
View file @
91d13d3d
...
...
@@ -2,7 +2,7 @@
<div
class=
"eContainer-home"
>
<QuickVisitVue
:cellScrollHeight=
"cellScrollHeight"
></QuickVisitVue>
<TaskStatisticsVue></TaskStatisticsVue>
<NoticeAnnouncementVue
:cellScrollHeight=
"cellScrollHeight"
></NoticeAnnouncementVue>
<NoticeAnnouncementVue
:cellScrollHeight=
"cellScrollHeight"
></NoticeAnnouncementVue>
<HallVue></HallVue>
<CustomerAnalyseVue></CustomerAnalyseVue>
<QuickSearchVue
:cellScrollHeight=
"cellScrollHeight"
></QuickSearchVue>
...
...
@@ -27,24 +27,24 @@ export default {
CustomerAnalyseVue
,
QuickSearchVue
,
},
crea
ted
()
{
moun
ted
()
{
this
.
calcCellScrollHeight
();
this
.
calcCellScrollHeightBind
=
this
.
calcCellScrollHeight
.
bind
(
this
)
window
.
addEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
this
.
calcCellScrollHeightBind
=
this
.
calcCellScrollHeight
.
bind
(
this
)
;
window
.
addEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
;
},
data
()
{
return
{
cellScrollHeight
:
null
,
cellScrollHeight
:
0
,
};
},
methods
:
{
calcCellScrollHeight
()
{
this
.
cellScrollHeight
=
window
.
document
.
body
.
clientHeight
-
(
window
.
document
.
body
.
clientHeight
-
110
-
52
*
2
-
10
)
/
2
;
}
this
.
cellScrollHeight
=
this
.
$el
.
clientHeight
*
0.49
-
5
2
;
}
,
},
destroyed
()
{
window
.
removeEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
}
window
.
removeEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
;
}
,
};
</
script
>
...
...
@@ -70,8 +70,8 @@ export default {
height
:
calc
(
100%
-
52px
);
overflow
:
auto
;
}
.home-cell
>>>
.el-scrollbar__wrap
{
.home-cell
>>>
.el-scrollbar__wrap
{
overflow-y
:
scroll
;
overflow-x
:
auto
;
overflow-x
:
auto
;
}
</
style
>
src/views/TaskList/index.vue
View file @
91d13d3d
...
...
@@ -106,7 +106,7 @@ export default {
<
style
scoped
>
.eContainer-taskList
{
padding
:
3px
15px
;
/* padding: 3px 15px; */
}
</
style
>
<
style
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment