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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
34 deletions
+17
-34
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
+2
-8
QuickVisit.vue
src/views/Home/cells/QuickVisit.vue
+2
-8
index.vue
src/views/Home/index.vue
+10
-10
index.vue
src/views/TaskList/index.vue
+1
-1
No files found.
src/components/Row.vue
View file @
91d13d3d
<
template
>
<
template
>
<el-row
v-
on=
"$attrs"
v-bind
=
"$listeners"
>
<el-row
v-
bind=
"$attrs"
v-on
=
"$listeners"
>
<slot></slot>
<slot></slot>
</el-row>
</el-row>
</
template
>
</
template
>
...
...
src/views/Home/cells/NoticeAnnouncement.vue
View file @
91d13d3d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<span
class=
"el-icon-more"
title=
"操作"
></span>
<span
class=
"el-icon-more"
title=
"操作"
></span>
</CellHeaderVue>
</CellHeaderVue>
<el-scrollbar
:style=
"
{ height:
scrollbar
Height + 'px' }">
<el-scrollbar
:style=
"
{ height:
cellScroll
Height + 'px' }">
<div
class=
"cell-content"
>
<div
class=
"cell-content"
>
<div
class=
"notice-item"
v-for=
"(item, idx) in noticeList"
:key=
"idx"
>
<div
class=
"notice-item"
v-for=
"(item, idx) in noticeList"
:key=
"idx"
>
<div
class=
"notice-title"
:class=
"
{ active: idx === 0 }">
<div
class=
"notice-title"
:class=
"
{ active: idx === 0 }">
...
@@ -34,11 +34,6 @@ export default {
...
@@ -34,11 +34,6 @@ export default {
required
:
true
,
required
:
true
,
},
},
},
},
computed
:
{
scrollbarHeight
()
{
return
window
.
document
.
body
.
clientHeight
-
this
.
cellScrollHeight
;
},
},
data
()
{
data
()
{
return
{
return
{
noticeList
:
[
noticeList
:
[
...
...
src/views/Home/cells/QuickSearch.vue
View file @
91d13d3d
...
@@ -2,17 +2,16 @@
...
@@ -2,17 +2,16 @@
<div
class=
"home-cell"
id=
"quickSearch"
>
<div
class=
"home-cell"
id=
"quickSearch"
>
<CellHeaderVue
title=
"快速查询"
>
</CellHeaderVue>
<CellHeaderVue
title=
"快速查询"
>
</CellHeaderVue>
<el-scrollbar
:style=
"
{ height:
scrollbar
Height + 'px' }">
<el-scrollbar
:style=
"
{ height:
cellScroll
Height + 'px' }">
<div
class=
"cell-content"
>
<div
class=
"cell-content"
>
<div
<div
class=
"content-wrapper"
class=
"content-wrapper"
v-for=
"(item, index) in options"
v-for=
"(item, index) in options"
:key=
"index"
: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-wrapper"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<!--
<i
class=
"el-icon-set-up"
></i>
-->
<img
:src=
"item.icon"
alt=
""
/>
<img
:src=
"item.icon"
alt=
""
/>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
</div>
</div>
...
@@ -35,11 +34,6 @@ export default {
...
@@ -35,11 +34,6 @@ export default {
required
:
true
,
required
:
true
,
},
},
},
},
computed
:
{
scrollbarHeight
()
{
return
window
.
document
.
body
.
clientHeight
-
this
.
cellScrollHeight
;
},
},
data
()
{
data
()
{
return
{
return
{
options
:
[
options
:
[
...
...
src/views/Home/cells/QuickVisit.vue
View file @
91d13d3d
...
@@ -2,17 +2,16 @@
...
@@ -2,17 +2,16 @@
<div
class=
"home-cell"
id=
"quickVisit"
>
<div
class=
"home-cell"
id=
"quickVisit"
>
<CellHeaderVue
title=
"快速访问"
>
</CellHeaderVue>
<CellHeaderVue
title=
"快速访问"
>
</CellHeaderVue>
<el-scrollbar
:style=
"
{ height:
scrollbar
Height + 'px' }">
<el-scrollbar
:style=
"
{ height:
cellScroll
Height + 'px' }">
<div
class=
"cell-content"
>
<div
class=
"cell-content"
>
<div
<div
class=
"content-wrapper"
class=
"content-wrapper"
v-for=
"(item, index) in quickVisitItem"
v-for=
"(item, index) in quickVisitItem"
:key=
"index"
: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-wrapper"
>
<div
class=
"visit-item"
>
<div
class=
"visit-item"
>
<!--
<i
class=
"el-icon-set-up"
></i>
-->
<img
:src=
"item.icon"
alt=
""
/>
<img
:src=
"item.icon"
alt=
""
/>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
</div>
</div>
...
@@ -35,11 +34,6 @@ export default {
...
@@ -35,11 +34,6 @@ export default {
required
:
true
,
required
:
true
,
},
},
},
},
computed
:
{
scrollbarHeight
()
{
return
window
.
document
.
body
.
clientHeight
-
this
.
cellScrollHeight
;
},
},
data
()
{
data
()
{
return
{
return
{
quickVisitItem
:
[
quickVisitItem
:
[
...
...
src/views/Home/index.vue
View file @
91d13d3d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"eContainer-home"
>
<div
class=
"eContainer-home"
>
<QuickVisitVue
:cellScrollHeight=
"cellScrollHeight"
></QuickVisitVue>
<QuickVisitVue
:cellScrollHeight=
"cellScrollHeight"
></QuickVisitVue>
<TaskStatisticsVue></TaskStatisticsVue>
<TaskStatisticsVue></TaskStatisticsVue>
<NoticeAnnouncementVue
:cellScrollHeight=
"cellScrollHeight"
></NoticeAnnouncementVue>
<NoticeAnnouncementVue
:cellScrollHeight=
"cellScrollHeight"
></NoticeAnnouncementVue>
<HallVue></HallVue>
<HallVue></HallVue>
<CustomerAnalyseVue></CustomerAnalyseVue>
<CustomerAnalyseVue></CustomerAnalyseVue>
<QuickSearchVue
:cellScrollHeight=
"cellScrollHeight"
></QuickSearchVue>
<QuickSearchVue
:cellScrollHeight=
"cellScrollHeight"
></QuickSearchVue>
...
@@ -27,24 +27,24 @@ export default {
...
@@ -27,24 +27,24 @@ export default {
CustomerAnalyseVue
,
CustomerAnalyseVue
,
QuickSearchVue
,
QuickSearchVue
,
},
},
crea
ted
()
{
moun
ted
()
{
this
.
calcCellScrollHeight
();
this
.
calcCellScrollHeight
();
this
.
calcCellScrollHeightBind
=
this
.
calcCellScrollHeight
.
bind
(
this
)
this
.
calcCellScrollHeightBind
=
this
.
calcCellScrollHeight
.
bind
(
this
)
;
window
.
addEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
window
.
addEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
;
},
},
data
()
{
data
()
{
return
{
return
{
cellScrollHeight
:
null
,
cellScrollHeight
:
0
,
};
};
},
},
methods
:
{
methods
:
{
calcCellScrollHeight
()
{
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
()
{
destroyed
()
{
window
.
removeEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
window
.
removeEventListener
(
"resize"
,
this
.
calcCellScrollHeightBind
)
;
}
}
,
};
};
</
script
>
</
script
>
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
height
:
calc
(
100%
-
52px
);
height
:
calc
(
100%
-
52px
);
overflow
:
auto
;
overflow
:
auto
;
}
}
.home-cell
>>>
.el-scrollbar__wrap
{
.home-cell
>>>
.el-scrollbar__wrap
{
overflow-y
:
scroll
;
overflow-y
:
scroll
;
overflow-x
:
auto
;
overflow-x
:
auto
;
}
}
...
...
src/views/TaskList/index.vue
View file @
91d13d3d
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
<
style
scoped
>
<
style
scoped
>
.eContainer-taskList
{
.eContainer-taskList
{
padding
:
3px
15px
;
/* padding: 3px 15px; */
}
}
</
style
>
</
style
>
<
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