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
c55e3eaf
Commit
c55e3eaf
authored
Nov 19, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
b5326a45
9dda4bed
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
240 additions
and
68 deletions
+240
-68
linemarker.png
assets/images/home/router/linemarker.png
+0
-0
routerMain1.png
assets/images/home/router/routerMain1.png
+0
-0
welcome.png
assets/images/home/router/welcome.png
+0
-0
wordTree.vue
components/page/wordTree.vue
+6
-1
passRate.vue
pages/bigScreen/passRate.vue
+22
-2
qualityProblem.vue
pages/bigScreen/qualityProblem.vue
+18
-18
suspend.vue
pages/bigScreen/suspend.vue
+5
-5
workingHours.vue
pages/bigScreen/workingHours.vue
+16
-16
index.vue
pages/welcome/index.vue
+173
-26
No files found.
assets/images/home/router/linemarker.png
0 → 100644
View file @
c55e3eaf
161 Bytes
assets/images/home/router/routerMain1.png
deleted
100644 → 0
View file @
b5326a45
654 KB
assets/images/home/router/welcome.png
0 → 100644
View file @
c55e3eaf
601 KB
components/page/wordTree.vue
View file @
c55e3eaf
...
...
@@ -147,4 +147,9 @@ export default {
},
},
};
</
script
>
\ No newline at end of file
</
script
>
<
style
lang=
"less"
scoped
>
.tree-menu {
border: none;
}
</
style
>
\ No newline at end of file
pages/bigScreen/passRate.vue
View file @
c55e3eaf
...
...
@@ -29,7 +29,10 @@ export default {
statistics
()
{
// var lastData = [30, 25, 30, 20, 15, 18, 23, 21, 20, 10];
// var thisData = [30, 0, 10, 20, 10, 30, 0, 10, 20, 20];
var
thisData
=
[
{
value
:
216
,
name
:
"报废"
},
{
value
:
5881
,
name
:
"合格"
},
];
this
.
braking
=
{
// backgroundColor: "rgba(7,28,52,1)",
title
:
{
...
...
@@ -48,7 +51,23 @@ export default {
},
},
legend
:
{
data
:
[
"报废"
,
"合格"
],
formatter
(
params
)
{
var
target
;
if
(
params
==
"报废"
)
{
return
(
target
=
params
+
" "
+
258
+
"件"
);
}
if
(
params
==
"合格"
)
{
return
(
target
=
params
+
" "
+
12514
+
"件"
);
}
},
// data: [
// {
// name: "报废",
// },
// {
// name: "合格",
// },
// ],
top
:
"15%"
,
left
:
"2%"
,
orient
:
"vertical"
,
...
...
@@ -233,6 +252,7 @@ export default {
type
:
"pie"
,
z
:
100
,
radius
:
"20%"
,
// roseType: "radius",//扇形按比例显示
center
:
[
"35%"
,
"25%"
],
labelLine
:
{
normal
:
{
...
...
pages/bigScreen/qualityProblem.vue
View file @
c55e3eaf
...
...
@@ -28,40 +28,40 @@ export default {
hours
:
"116h"
,
},
{
name
:
"
张飞
"
,
name
:
"
李四
"
,
work
:
"操作失败"
,
type
:
"2
0
"
,
hours
:
"11
6
h"
,
type
:
"2
8
"
,
hours
:
"11
2
h"
,
},
{
name
:
"
张飞
"
,
name
:
"
王五
"
,
work
:
"操作失败"
,
type
:
"
2
0"
,
hours
:
"
116
h"
,
type
:
"
1
0"
,
hours
:
"
20
h"
,
},
{
name
:
"
张飞
"
,
name
:
"
李四
"
,
work
:
"操作失败"
,
type
:
"
20
"
,
hours
:
"
11
6h"
,
type
:
"
8
"
,
hours
:
"6h"
,
},
{
name
:
"
张飞
"
,
name
:
"
刘云
"
,
work
:
"操作失败"
,
type
:
"
20
"
,
hours
:
"
116
h"
,
type
:
"
66
"
,
hours
:
"
25
h"
,
},
{
name
:
"张飞"
,
work
:
"操作失败"
,
type
:
"2
0
"
,
hours
:
"1
16
h"
,
type
:
"2"
,
hours
:
"1
8
h"
,
},
{
name
:
"张飞"
,
work
:
"操作失败"
,
type
:
"
20
"
,
hours
:
"
116
h"
,
type
:
"
99
"
,
hours
:
"
55
h"
,
},
],
};
...
...
@@ -77,14 +77,14 @@ export default {
line-height: 50px;
font-size: 17px;
padding-top: 2px;
color: #106
FFE
;
color: #106
ffe
;
font-family: PingFang SC;
font-weight: bold;
}
.row-title {
height: 36px;
line-height: 36px;
background: #2
F2F
57;
background: #2
f2f
57;
}
.item-row {
height: 44px;
...
...
pages/bigScreen/suspend.vue
View file @
c55e3eaf
...
...
@@ -147,11 +147,11 @@ export default {
formatter
:
"{value}%"
,
},
axisLine
:
{
show
:
tru
e
,
lineStyle
:
{
color
:
"white"
,
opacity
:
0.3
,
},
show
:
fals
e
,
//
lineStyle: {
//
color: "white",
//
opacity: 0.3,
//
},
},
splitLine
:
{
show
:
true
,
...
...
pages/bigScreen/workingHours.vue
View file @
c55e3eaf
...
...
@@ -23,40 +23,40 @@ export default {
hours
:
"116h"
,
},
{
name
:
"
张飞
"
,
name
:
"
李四
"
,
work
:
"总装"
,
type
:
"
电工
组"
,
hours
:
"1
1
6h"
,
type
:
"
其他
组"
,
hours
:
"1
0
6h"
,
},
{
name
:
"
张飞
"
,
name
:
"
王三
"
,
work
:
"总装"
,
type
:
"
电工
组"
,
hours
:
"
116
h"
,
type
:
"
其他
组"
,
hours
:
"
20
h"
,
},
{
name
:
"
张飞
"
,
name
:
"
李云
"
,
work
:
"总装"
,
type
:
"
电工组
"
,
hours
:
"
116
h"
,
type
:
"
其他
"
,
hours
:
"
55
h"
,
},
{
name
:
"张飞"
,
work
:
"总装"
,
type
:
"电工组"
,
hours
:
"
116
h"
,
hours
:
"
69
h"
,
},
{
name
:
"
张飞
"
,
name
:
"
王二小
"
,
work
:
"总装"
,
type
:
"电工组"
,
hours
:
"
116
h"
,
hours
:
"
78
h"
,
},
{
name
:
"张飞"
,
work
:
"
总装
"
,
type
:
"
电工
组"
,
hours
:
"
116
h"
,
work
:
"
技术
"
,
type
:
"
技术
组"
,
hours
:
"
99
h"
,
},
],
};
...
...
@@ -69,7 +69,7 @@ export default {
h4 {
height: 40px;
line-height: 40px;
color: #106
FFE
;
color: #106
ffe
;
margin-top: 20px;
margin-left: 35px;
font-size: 17px;
...
...
pages/welcome/index.vue
View file @
c55e3eaf
...
...
@@ -2,14 +2,13 @@
<div
class=
"router-main flex fc-m fa-m pr"
>
<ul
class=
"pa navMenu"
>
<li
class=
"navMenuLi flex fc-m fa-m pr"
v-for=
"(item, ind
e
x) in menus"
:key=
"ind
e
x"
@
mouseenter=
"navClick(item,
inde
x)"
class=
"navMenuLi flex fc-m fa-m pr
cursor
"
v-for=
"(item, indx) in menus"
:key=
"indx"
@
mouseenter=
"navClick(item,
ind
x)"
>
<Icon
:type=
"item.icons"
class=
"f16"
/>
{{
item
.
name
}}
</li>
</ul>
<div
class=
"bdImg pr"
@
click=
"pageClick"
>
<div
...
...
@@ -32,16 +31,89 @@
</li>
</ul>
</div>
<!-- @click="removeLine(s)" -->
<div
v-for=
"(line, s) in lines"
class=
"pa line"
:style=
"lineStyles(line, s)"
:key=
"'s' + s"
:title=
"line.start.join() + ':' + line.end.join()"
>
<div
class=
"lineMarker pa"
></div>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
isInteger
}
from
"lodash"
;
import
{
has
,
hasIn
,
isInteger
}
from
"lodash"
;
import
viewerVue
from
"../test/viewer.vue"
;
export
default
{
data
()
{
return
{
lines
:
[
{
start
:
[
879
,
214
],
end
:
[
922
,
188
],
},
{
start
:
[
387
,
277
],
end
:
[
420
,
298
],
},
{
start
:
[
505
,
351
],
end
:
[
539
,
372
],
},
{
start
:
[
507
,
445
],
end
:
[
547
,
423
],
},
{
start
:
[
639
,
370
],
end
:
[
678
,
345
],
},
{
start
:
[
670
,
400
],
end
:
[
762
,
403
],
},
{
start
:
[
637
,
424
],
end
:
[
740
,
483
],
},
{
start
:
[
874
,
474
],
end
:
[
837
,
496
],
},
{
start
:
[
1050
,
187
],
end
:
[
1081
,
205
],
},
{
start
:
[
1253
,
251
],
end
:
[
1293
,
226
],
},
{
start
:
[
1312
,
371
],
end
:
[
1341
,
390
],
},
{
start
:
[
185
,
648
],
end
:
[
241
,
617
],
},
{
start
:
[
375
,
541
],
end
:
[
432
,
509
],
},
{
start
:
[
873
,
568
],
end
:
[
934
,
600
],
},
],
// start: 0,
// dotA: [],
// dotB: [],
// dots: [],
menus
:
[],
list
:
[],
arrList
:
[],
...
...
@@ -56,37 +128,57 @@ export default {
},
mounted
()
{
this
.
load
();
// this.lineClick();
},
methods
:
{
load
()
{
this
.
$api
.
get
(
`
${
systemUrl
}
/menu/getusermenu?id=mes_roter`
).
then
((
r
)
=>
{
if
(
r
.
result
)
{
let
arr
=
r
.
result
[
0
].
children
.
map
((
l
)
=>
{
if
(
!
this
.
$u
.
isNull
(
l
.
description
)
&&
l
.
description
.
indexOf
(
"{"
)
>
-
1
)
{
if
(
!
this
.
$u
.
isNull
(
l
.
description
)
&&
l
.
description
.
indexOf
(
"{"
)
>
-
1
)
{
l
.
style
=
eval
(
"("
+
l
.
description
+
")"
);
}
return
l
;
});
this
.
arrList
=
arr
;
this
.
arrList
.
map
(
v
=>
{
if
(
v
.
name
==
'项目管理'
)
{
this
.
menus
[
0
]
=
v
;
this
.
menus
[
0
].
icons
=
'ios-list-box-outline'
;
}
else
if
(
v
.
name
==
'文档管理'
)
{
this
.
menus
[
1
]
=
v
;
this
.
menus
[
1
].
icons
=
'md-document'
;
}
else
if
(
v
.
name
==
'大屏展示'
)
{
this
.
menus
[
2
]
=
v
;
this
.
menus
[
2
].
icons
=
'ios-stats'
;
this
.
arrList
.
map
(
(
v
)
=>
{
if
(
v
.
name
==
"项目管理"
)
{
this
.
menus
[
0
]
=
v
;
this
.
menus
[
0
].
icons
=
"ios-list-box-outline"
;
}
else
if
(
v
.
name
==
"文档管理"
)
{
this
.
menus
[
1
]
=
v
;
this
.
menus
[
1
].
icons
=
"md-document"
;
}
else
if
(
v
.
name
==
"大屏展示"
)
{
this
.
menus
[
2
]
=
v
;
this
.
menus
[
2
].
icons
=
"ios-stats"
;
}
})
console
.
log
(
this
.
menus
)
});
}
});
},
pageClick
()
{
pageClick
(
event
)
{
// console.log("event", event);
// console.log(event.layerX, event.layerY);
this
.
menu
=
false
;
this
.
oneShow
=
false
;
// this.dots.push({
// left: event.layerX + "px",
// top: event.layerY + "px",
// });
// if (this.start === 0) {
// this.dotA = [event.layerX, event.layerY];
// this.start = 1;
// } else {
// this.dotB = [event.layerX, event.layerY];
// this.start = 0;
// this.lines.push({
// start: this.dotA,
// end: this.dotB,
// });
// }
},
clickLi
(
v
)
{
if
(
v
)
{
...
...
@@ -104,20 +196,37 @@ export default {
this
.
menuPos
=
{
left
,
top
};
}
},
navClick
(
v
,
index
)
{
navClick
(
v
,
index
)
{
if
(
v
.
children
&&
v
.
children
.
length
>
0
)
{
var
{
left
,
top
}
=
v
.
style
;
this
.
list
=
v
.
children
;
this
.
menuPos
=
{
left
,
top
};
this
.
menuPos
=
{
left
,
top
};
this
.
menu
=
true
;
}
else
{
this
.
menu
=
false
;
}
else
{
this
.
menu
=
false
;
}
},
leavePosition
()
{
this
.
oneShow
=
false
;
this
.
menu
=
false
;
},
removeLine
(
s
){
this
.
lines
.
splice
(
s
,
1
);
},
lineStyles
(
line
,
s
)
{
let
w
=
line
.
end
[
0
]
-
line
.
start
[
0
];
let
h
=
line
.
end
[
1
]
-
line
.
start
[
1
];
let
l
=
Math
.
sqrt
(
Math
.
pow
(
w
,
2
)
+
Math
.
pow
(
h
,
2
));
let
sinA
=
Math
.
atan2
(
line
.
end
[
1
]
-
line
.
start
[
1
],
line
.
end
[
0
]
-
line
.
start
[
0
])
/
0.017453292
;
return
{
width
:
l
+
"px"
,
transform
:
"rotate("
+
sinA
+
"deg)"
,
top
:
line
.
start
[
1
]
+
"px"
,
left
:
line
.
start
[
0
]
+
"px"
,
};
},
},
};
</
script
>
...
...
@@ -130,7 +239,6 @@ export default {
top: 90px;
left: 95px;
.navMenuLi {
cursor: pointer;
width: 185px;
height: 99px;
color: #ffffff;
...
...
@@ -165,7 +273,46 @@ export default {
.bdImg {
height: 822px;
width: 1700px;
background: url("../../assets/images/home/router/routerMain.png") no-repeat;
background: url("../../assets/images/home/router/welcome.png") no-repeat;
.line {
height: 2px;
// top: 50px;
// left: 50px;
// width: 200px;
background: linear-gradient(to right, #a7c4d8, #24bddd);
transform-origin: left;
.lineMarker {
display: inline-block;
width: 7px;
height: 7px;
left: 0;
top: 0;
transform: rotate(50deg) translateY(-4px);
animation: myfirst 1s infinite;
background: url("../../assets/images/home/router/linemarker.png")
no-repeat;
}
@keyframes myfirst {
from {
left: 0%;
}
to {
left: 85%;
}
}
// }
}
.line:hover{
border: 1px dotted red;
height: 6px;
cursor:pointer;
}
.dot {
width: 8px;
height: 8px;
background: red;
border-radius: 50%;
}
}
.menu {
width: 100px;
...
...
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