Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
9b108084
Commit
9b108084
authored
Aug 11, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
740242ea
6ec99da9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
106 additions
and
77 deletions
+106
-77
materielChart.vue
pages/home/component/materielChart.vue
+1
-1
staChart.vue
pages/home/component/staChart.vue
+3
-3
suspendChart.vue
pages/home/component/suspendChart.vue
+7
-3
unqualifiedEcharts.vue
pages/home/component/unqualifiedEcharts.vue
+3
-3
workChart.vue
pages/home/component/workChart.vue
+3
-3
index.vue
pages/home/index.vue
+89
-64
No files found.
pages/home/component/materielChart.vue
View file @
9b108084
...
...
@@ -204,7 +204,7 @@ export default {
margin: 0 auto;
.echarts-map {
width: 100%;
height:
30
0px;
height:
28
0px;
.echarts {
height: 280px;
}
...
...
pages/home/component/staChart.vue
View file @
9b108084
...
...
@@ -9,7 +9,7 @@
<div
class=
"echarts-map"
>
<v-chart
:options=
"braking"
:style=
"setStatistics?
{width:'
350px',height:'30
0px'}:{width:'100%',height:'100%'}"
:style=
"setStatistics?
{width:'
400px',height:'27
0px'}:{width:'100%',height:'100%'}"
/>
</div>
</Col>
...
...
@@ -34,7 +34,7 @@
<div
class=
"echarts-map"
>
<v-chart
:options=
"braking1"
:style=
"setStatistics?
{width:'800px',height:'
30
0px'}:{width:'100%',height:'100%'}"
:style=
"setStatistics?
{width:'800px',height:'
27
0px'}:{width:'100%',height:'100%'}"
/>
</div>
</Col>
...
...
@@ -325,7 +325,7 @@ export default {
padding: 10px;
.echarts-map {
width: 100%;
height:
30
0px;
height:
27
0px;
.echarts {
width: 100%;
height: 100%;
...
...
pages/home/component/suspendChart.vue
View file @
9b108084
<
template
>
<div
class=
"stachart"
:style=
"setStatistics?
{width:'620px',height:'300px'}:{width:'100%',height:'100%'}">
<div
class=
"stachart"
:style=
"setStatistics?
{width:'620px',height:'280px'}:{width:'100%',height:'100%'}"
>
<div
class=
"row_head"
v-if=
"setStatistics?false:true"
>
<Icon
type=
"ios-images"
class=
"f20"
/>
<span
class=
"ml10"
>
暂停任务统计
</span>
...
...
@@ -96,7 +99,8 @@ export default {
grid
:
{
left
:
"3%"
,
right
:
"4%"
,
bottom
:
"3%"
,
bottom
:
"5%"
,
top
:
"8%"
,
containLabel
:
true
,
},
tooltip
:
{
...
...
@@ -197,7 +201,7 @@ export default {
.echarts-map {
width: 100%;
height:
30
0px;
height:
28
0px;
.echarts {
height: 280px;
}
...
...
pages/home/component/unqualifiedEcharts.vue
View file @
9b108084
...
...
@@ -9,13 +9,13 @@
<div
class=
"echarts-map"
>
<v-chart
:options=
"braking"
:style=
"setStatistics?
{width:'
400px',height:'30
0px'}:{width:'100%',height:'100%'}"
:style=
"setStatistics?
{width:'
380px',height:'28
0px'}:{width:'100%',height:'100%'}"
/>
</div>
</Col>
<Col
:span=
"16"
>
<div
class=
"table-b"
>
<Table
border
:columns=
"columns1"
:data=
"data1"
height=
"2
8
0"
></Table>
<Table
border
:columns=
"columns1"
:data=
"data1"
height=
"2
6
0"
></Table>
</div>
</Col>
</Row>
...
...
@@ -185,7 +185,7 @@ export default {
width: 100%;
.echarts-map {
width: 100%;
height:
30
0px;
height:
28
0px;
.echarts {
height: 280px;
}
...
...
pages/home/component/workChart.vue
View file @
9b108084
<
template
>
<div
class=
"stachart"
:style=
"setStatistics?
{width:'620px',height:'
30
0px'}:{width:'100%',height:'100%'}"
:style=
"setStatistics?
{width:'620px',height:'
28
0px'}:{width:'100%',height:'100%'}"
>
<div
:gutter=
"16"
class=
"row_head"
v-if=
"setStatistics?false:true"
>
<Icon
type=
"ios-images"
class=
"f20"
/>
...
...
@@ -298,11 +298,11 @@ export default {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
border-radius: 8px;
padding: 10px;
margin: 0 auto;
.echarts-map {
width: 100%;
height:
30
0px;
height:
28
0px;
// margin: 0 auto;
// text-align: center;
.echarts {
...
...
pages/home/index.vue
View file @
9b108084
...
...
@@ -16,36 +16,40 @@
<div
class=
"bg-b"
>
<Icon
type=
"ios-arrow-back"
/>
</div>
<div
class=
"bg"
v-for=
"(item,i) in collect"
:key=
"i"
@
click=
"toPage(item)"
>
<Icon
:type=
"item.icon||'md-mail'"
/>
<p>
{{
item
.
title
}}
</p>
</div>
<div
class=
"bg-l"
>
<Icon
type=
"ios-arrow-forward"
/>
</div>
</div>
</div>
<div
class=
"card-list"
>
<div
class=
"bg-b"
>
<Icon
type=
"ios-arrow-back"
/>
</div>
<Card
v-for=
"(item,index) in listTask"
:key=
"index"
:class=
"item.name=='物料复验' ? 'img_bg02':(item.name=='产品合格证' ? 'img_bg03':(item.name=='生产执行' ? 'img_bg04' : 'img_bg01'))"
@
click
.
native=
"goPage(item)"
>
<div
class=
"leftIco"
>
<img
class=
"img_icon"
:src=
"imgUrl + item.image"
alt
/>
</div>
<div
class=
"text-p"
>
<p>
{{
item
.
totalUrl
}}
</p>
<p>
{{
item
.
name
}}
</p>
<!--
<div
class=
"bg-b"
>
-->
<Icon
type=
"ios-arrow-back"
class=
"bg-b"
/>
<!--
</div>
-->
<div
class=
"list-c"
>
<div
v-for=
"(item,index) in listTask"
:key=
"index"
:class=
"item.name=='订单报价' ? 'img_bg02':(item.name=='质量检验' ? 'img_bg03':(item.name=='生产执行' ? 'img_bg04' : 'img_bg01'))"
@
click=
"goPage(item)"
>
<div
class=
"leftIco"
>
<img
class=
"img_icon"
:src=
"imgUrl + item.image"
alt
/>
</div>
<div
class=
"text-p"
>
<p>
{{
item
.
totalUrl
}}
</p>
<p>
{{
item
.
name
}}
</p>
</div>
</div>
</Card>
<div
class=
"bg-l"
>
<Icon
type=
"ios-arrow-forward"
/>
</div>
<!--
<div
class=
"bg-l"
>
-->
<Icon
type=
"ios-arrow-forward"
class=
"bg-l"
/>
<!--
</div>
-->
</div>
<Row
class=
"table"
:gutter=
"16"
>
<Col
:span=
"15"
>
...
...
@@ -87,7 +91,7 @@
<MaterielChart
/>
</Col>
</Row>
<Modal
v-model=
"modal1"
title=
"统计列表显示设置"
width=
"1
3
00"
footer-hide
>
<Modal
v-model=
"modal1"
title=
"统计列表显示设置"
width=
"1
2
00"
footer-hide
>
<Divider>
<span
style=
"color: #2680eb;"
>
生产计划状态监控
...
...
@@ -95,34 +99,42 @@
</span>
</Divider>
<StaChart
:setStatistics=
"setStatistics"
/>
<Divider>
<span
style=
"color: #2680eb;"
>
不合格品审理单统计
<Icon
:type=
"show1?'md-eye':'md-eye-off'"
@
click=
"clickEye1"
/>
</span>
</Divider>
<UnqualifiedEcharts
:setStatistics=
"setStatistics"
/>
<Divider>
<span
style=
"color: #2680eb;"
>
班组工单监控
<Icon
:type=
"show2?'md-eye':'md-eye-off'"
@
click=
"clickEye2"
/>
</span>
</Divider>
<WorkChart
:setStatistics=
"setStatistics"
/>
<Divider>
<span
style=
"color: #2680eb;"
>
暂停任务统计
<Icon
:type=
"show3?'md-eye':'md-eye-off'"
@
click=
"clickEye3"
/>
</span>
</Divider>
<SuspendChart
:setStatistics=
"setStatistics"
/>
<Divider>
<span
style=
"color: #2680eb;"
>
物料相关统计
<Icon
:type=
"show4?'md-eye':'md-eye-off'"
@
click=
"clickEye4"
/>
</span>
</Divider>
<MaterielChart
:setStatistics=
"setStatistics"
/>
<div
class=
"divider-t"
>
<Divider>
<span
style=
"color: #2680eb;"
>
不合格品审理单统计
<Icon
:type=
"show1?'md-eye':'md-eye-off'"
@
click=
"clickEye1"
/>
</span>
</Divider>
<UnqualifiedEcharts
:setStatistics=
"setStatistics"
/>
</div>
<div
class=
"divider-t"
>
<Divider>
<span
style=
"color: #2680eb;"
>
班组工单监控
<Icon
:type=
"show2?'md-eye':'md-eye-off'"
@
click=
"clickEye2"
/>
</span>
</Divider>
<WorkChart
:setStatistics=
"setStatistics"
/>
</div>
<div
class=
"divider-t"
>
<Divider>
<span
style=
"color: #2680eb;"
>
暂停任务统计
<Icon
:type=
"show3?'md-eye':'md-eye-off'"
@
click=
"clickEye3"
/>
</span>
</Divider>
<SuspendChart
:setStatistics=
"setStatistics"
/>
</div>
<div
class=
"divider-t"
>
<Divider>
<span
style=
"color: #2680eb;"
>
物料相关统计
<Icon
:type=
"show4?'md-eye':'md-eye-off'"
@
click=
"clickEye4"
/>
</span>
</Divider>
<MaterielChart
:setStatistics=
"setStatistics"
/>
</div>
</Modal>
</div>
</
template
>
...
...
@@ -208,11 +220,9 @@ export default {
return
(
data
.
totalUrl
=
r
.
result
);
});
});
this
.
listTask
=
list
;
});
},
goPage
(
u
)
{
this
.
$router
.
push
(
u
.
menuUrl
);
},
...
...
@@ -299,58 +309,76 @@ export default {
}
}
.card-list {
display: flex;
display: -webkit-flex;
margin-top: 15px;
justify-content: space-around;
position: relative;
text-align: center;
.bg-b {
margin-top: 40px;
font-size: 30px;
color: #dcdfe6;
width: 35px;
position: absolute;
top: 45px;
left: 0;
}
.list-c {
// display: flex;
// display: -webkit-flex;
// justify-content: space-around;
width: 98%;
margin: 0 auto;
display: -webkit-inline-box;
overflow-x: hidden;
}
.bg-l {
margin-top: 40px
;
position: absolute
;
font-size: 30px;
color: #dcdfe6;
top: 45px;
right: 0;
width: 35px;
}
.img_bg01 {
background-color: #ff9100;
width: 290px;
height: 130px;
border-radius: 8px;
cursor: pointer;
margin: 0 40px;
background: linear-gradient(to left, #0673df, #26c2e9);
}
.img_bg02 {
width: 290px;
height: 130px;
cursor: pointer;
margin: 0 40px;
border-radius: 8px;
background: linear-gradient(to left, #5140e9, #8a92fc);
}
.img_bg03 {
cursor: pointer;
width: 290px;
height: 130px;
margin: 0 40px;
border-radius: 8px;
background: linear-gradient(to left, #04b573, #69fc8a);
}
.img_bg04 {
cursor: pointer;
width: 290px;
height: 130px;
margin: 0 40px;
border-radius: 8px;
background: linear-gradient(to left, #6514cf, #a972fe);
}
.img_icon {
width: 40px;
height: 40px;
margin:
45% 0 0 20%
;
margin:
72% 0 0 38px
;
}
.text-p {
text-align: center;
color: #fff;
padding:
2% 0 0 40
%;
padding:
7% 0 0 35
%;
p:first-child {
font-size: 30px;
font-weight: bold;
...
...
@@ -372,11 +400,6 @@ export default {
}
.title-r {
position: relative;
// .echart-c {
// width: 600px;
// margin: auto;
// }
}
.a-r {
position: absolute;
...
...
@@ -387,7 +410,9 @@ export default {
.set-p {
width: 100%;
margin: 0 auto;
// text-align: center;
}
}
.divider-t {
padding-top: 25px;
}
</
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