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
82ad026f
Commit
82ad026f
authored
Aug 13, 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
9a3d4ffa
9c1c529f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
95 deletions
+123
-95
approval.vue
pages/home/component/approval.vue
+10
-45
index.vue
pages/home/index.vue
+113
-50
No files found.
pages/home/component/approval.vue
View file @
82ad026f
...
@@ -13,32 +13,16 @@
...
@@ -13,32 +13,16 @@
</div>
</div>
</Card>
</Card>
<Modal
v-model=
"viewModal"
width=
"800"
title=
"详情"
>
<Modal
v-model=
"viewModal"
width=
"800"
title=
"详情"
>
<Row
class=
"mo_cont"
>
<div
class=
"detail"
>
<Col
span=
"12"
class=
"label"
>
<Row>
<span
class=
"title"
>
编号:
</span>
<Filed
:span=
"12"
name=
"编号:"
>
{{
viewData
.
code
}}
</Filed>
{{
viewData
.
code
}}
<Filed
:span=
"12"
name=
"审批类型:"
>
{{
viewData
.
schemaName
}}
</Filed>
</Col>
<Filed
:span=
"12"
name=
"当前环节:"
>
{{
viewData
.
currentNodeName
}}
</Filed>
<Col
span=
"12"
class=
"label"
>
<Filed
:span=
"12"
name=
"下一环节:"
>
{{
viewData
.
nextNodeName
}}
</Filed>
<span
class=
"title"
>
审批类型:
</span>
<Filed
:span=
"12"
name=
"创建人:"
>
{{
viewData
.
creator
}}
</Filed>
{{
viewData
.
schemaName
}}
<Filed
:span=
"12"
name=
"创建时间:"
>
{{
viewData
.
creationTime
}}
</Filed>
</Col>
</Row>
<Col
span=
"12"
class=
"label"
>
</div>
<span
class=
"title"
>
当前环节:
</span>
{{
viewData
.
currentNodeName
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
下一环节:
</span>
{{
viewData
.
nextNodeName
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
创建人:
</span>
{{
viewData
.
creator
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
创建时间:
</span>
{{
viewData
.
creationTime
}}
</Col>
</Row>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
...
@@ -137,23 +121,4 @@ export default {
...
@@ -137,23 +121,4 @@ export default {
.row_card_body {
.row_card_body {
margin-top: 10px;
margin-top: 10px;
}
}
.mo_cont {
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
.label {
display: table-cell;
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
// margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.title {
background: #e8eaf1;
display: inline-block;
width: 100px;
text-align: right;
padding: 0 5px;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/home/index.vue
View file @
82ad026f
...
@@ -14,10 +14,7 @@
...
@@ -14,10 +14,7 @@
</div>
</div>
<div
class=
"incon-carousel"
>
<div
class=
"incon-carousel"
>
<Icon
type=
"ios-arrow-back"
class=
"bg-b"
@
click=
"clickLeft"
:class=
"num1
<0
?'
bg-b1
'
:
'
bg-b
'"
/>
<Icon
type=
"ios-arrow-back"
class=
"bg-b"
@
click=
"clickLeft"
:class=
"num1
<0
?'
bg-b1
'
:
'
bg-b
'"
/>
<div
<div
class=
"list-shoucang"
:style=
"
{'margin-left': num1 * 230 + 'px',width :'990px',}">
class=
"list-shoucang"
:style=
"
{'margin-left': num1 * 230 + 'px','transition': 'all .3s ease-out .1s',}"
>
<div
class=
"bg"
v-for=
"(item,i) in collect"
:key=
"i"
@
click=
"toPage(item)"
>
<div
class=
"bg"
v-for=
"(item,i) in collect"
:key=
"i"
@
click=
"toPage(item)"
>
<Icon
:type=
"item.icon||'md-mail'"
/>
<Icon
:type=
"item.icon||'md-mail'"
/>
<p>
{{
item
.
title
}}
</p>
<p>
{{
item
.
title
}}
</p>
...
@@ -29,10 +26,13 @@
...
@@ -29,10 +26,13 @@
@
click=
"clickRight"
@
click=
"clickRight"
:class=
"collect.length>8 && showIcon ?'bg-l1':'bg-l'"
:class=
"collect.length>8 && showIcon ?'bg-l1':'bg-l'"
/>
/>
<a
class=
"down-delete"
@
click=
"setDelete"
>
<Icon
type=
"md-settings"
class=
"f20"
/>
</a>
</div>
</div>
</div>
</div>
<div
class=
"card-list"
>
<div
class=
"card-list"
>
<Icon
type=
"ios-arrow-back"
@
click=
"leftmove"
:class=
"
shuliang
<
=
5
?'
bg-b1
'
:
'
bg-b
'"
/>
<Icon
type=
"ios-arrow-back"
@
click=
"leftmove"
:class=
"
num
<0
?'
bg-b1
'
:
'
bg-b
'"
/>
<div
class=
"list-c"
:style=
"
{width:'98%','margin-left': num * 740 + 'px',}">
<div
class=
"list-c"
:style=
"
{width:'98%','margin-left': num * 740 + 'px',}">
<div
<div
v-for=
"(item,index) in listTask"
v-for=
"(item,index) in listTask"
...
@@ -49,7 +49,11 @@
...
@@ -49,7 +49,11 @@
</div>
</div>
</div>
</div>
</div>
</div>
<Icon
type=
"ios-arrow-forward"
:class=
"shuliang>5?'bg-l1':'bg-l'"
@
click=
"rightmove"
/>
<Icon
type=
"ios-arrow-forward"
:class=
"listTask.length>5&& showArrow?'bg-l1':'bg-l'"
@
click=
"rightmove"
/>
</div>
</div>
<Row
class=
"table"
:gutter=
"16"
>
<Row
class=
"table"
:gutter=
"16"
>
<Col
:span=
"15"
>
<Col
:span=
"15"
>
...
@@ -91,7 +95,7 @@
...
@@ -91,7 +95,7 @@
<MaterielChart
/>
<MaterielChart
/>
</Col>
</Col>
</Row>
</Row>
<Modal
v-model=
"modal1"
title=
"统计列表显示设置"
width=
"900"
footer-hide
>
<Modal
v-model=
"modal1"
title=
"统计列表显示设置"
width=
"900"
footer-hide
:mask-closable=
"false"
>
<Divider>
<Divider>
<span
style=
"color: #2680eb;"
>
<span
style=
"color: #2680eb;"
>
生产计划状态监控
生产计划状态监控
...
@@ -138,6 +142,22 @@
...
@@ -138,6 +142,22 @@
<img
src=
"@/assets/images/home/user-img5.png"
style=
"width:310px;height:165px"
/>
<img
src=
"@/assets/images/home/user-img5.png"
style=
"width:310px;height:165px"
/>
</div>
</div>
</Modal>
</Modal>
<Modal
v-model=
"modal"
title=
"删除收藏"
width=
"300"
footer-hide
:mask-closable=
"false"
>
<ul
class=
"modal-r"
>
<li
v-for=
"(li,i) in collect"
:key=
"i"
class=
"right-delete"
v-dragging=
"
{ item: li, list: collect}"
>
<Icon
:type=
"li.icon||'md-mail'"
/>
<span>
{{
li
.
title
}}
</span>
<a
@
click=
"remover(li.menuId)"
>
<Icon
type=
"md-trash"
/>
</a>
</li>
</ul>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -163,6 +183,7 @@ export default {
...
@@ -163,6 +183,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
modal
:
false
,
modal1
:
false
,
modal1
:
false
,
listTask
:
[],
listTask
:
[],
listFavorite
:
[],
listFavorite
:
[],
...
@@ -178,12 +199,8 @@ export default {
...
@@ -178,12 +199,8 @@ export default {
show4
:
false
,
show4
:
false
,
num
:
0
,
num
:
0
,
num1
:
0
,
num1
:
0
,
shuliang
:
0
,
showIcon
:
true
,
showIcon
:
true
,
// listdatas: [],
showArrow
:
true
,
// index: 0,
// collectNum: this.$store.state.collect.length,
// collectNum1: this.$store.state.collect.length,
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -192,62 +209,52 @@ export default {
...
@@ -192,62 +209,52 @@ export default {
created
()
{
created
()
{
this
.
get
();
this
.
get
();
this
.
getUserInfoFn
();
this
.
getUserInfoFn
();
this
.
listdatas
=
this
.
collect
;
// console.log(this.$store.state.collect);
// console.log(this.$store.state.collect);
// this.getList();
// this.getList();
},
},
mounted
()
{
this
.
$dragging
.
$on
(
"dragged"
,
({
value
})
=>
{
// console.log("-----------" + value);
});
},
computed
:
{
computed
:
{
...
mapState
({
collect
:
"collect"
}),
...
mapState
({
collect
:
"collect"
}),
// newList() {
// var arr = [];
// let data = this.listdatas;
// arr = data.slice(0, 8);
// return arr;
// },
},
},
methods
:
{
methods
:
{
clickLeft
()
{
clickLeft
()
{
if
(
this
.
num1
<
0
)
{
if
(
this
.
num1
<
0
)
{
this
.
num1
+=
1
;
this
.
num1
+=
1
;
if
(
this
.
num1
==
0
)
{
this
.
showIcon
=
true
;
}
}
}
alert
(
this
.
num1
);
},
},
clickRight
()
{
clickRight
()
{
alert
(
"----:"
+
this
.
num1
);
alert
(
"----:"
+
this
.
collect
.
length
);
if
(
this
.
num1
+
this
.
collect
.
length
>
8
)
{
if
(
this
.
num1
+
this
.
collect
.
length
>
8
)
{
this
.
num1
-=
1
;
this
.
num1
-=
1
;
if
(
this
.
num1
+
this
.
collect
.
length
==
8
)
{
// if (this.num1 + this.collect.length == 8) {
this
.
showIcon
=
false
;
// this.showIcon = true;
}
// return false;
// }
// } else if (
// this.num1
<
-
(
this
.
collect
.
length
+
this
.
num1
)
&&
// -(this.collect.length + this.num1) != -0
// ) {
// if (this.num1 + this.collect.length == 8) {
// this.showIcon = true;
// return false;
// }
alert
(
"-====:"
+
this
.
num1
);
}
else
{
}
else
{
this
.
showIcon
=
false
;
this
.
showIcon
=
false
;
}
}
alert
(
this
.
num1
);
},
},
leftmove
()
{
leftmove
()
{
if
(
this
.
shuliang
<=
5
)
{
if
(
this
.
num
<
0
)
{
if
(
this
.
num
<
0
)
{
this
.
num
+=
1
;
this
.
num
+=
1
;
if
(
this
.
num
==
0
)
{
this
.
sh
uliang
+=
1
;
this
.
sh
owArrow
=
true
;
}
}
}
}
},
},
rightmove
()
{
rightmove
()
{
if
(
this
.
shuliang
>
5
)
{
if
(
this
.
num
+
this
.
listTask
.
length
>
5
)
{
this
.
num
-=
1
;
this
.
num
-=
1
;
this
.
shuliang
-=
1
;
if
(
this
.
num
+
this
.
listTask
.
length
==
5
)
{
this
.
showArrow
=
false
;
}
}
else
{
this
.
showArrow
=
false
;
}
}
},
},
getUserInfoFn
()
{
getUserInfoFn
()
{
...
@@ -309,6 +316,32 @@ export default {
...
@@ -309,6 +316,32 @@ export default {
clickEye4
()
{
clickEye4
()
{
this
.
show4
=
!
this
.
show4
;
this
.
show4
=
!
this
.
show4
;
},
},
setDelete
()
{
this
.
modal
=
true
;
},
remover
(
id
)
{
this
.
$Modal
.
confirm
({
title
:
"删除收藏"
,
content
:
"<p>您确定要删除收藏吗</p>"
,
onOk
:
()
=>
{
let
url
=
`
${
systemUrl
}
/favorite/delete`
;
let
menuId
=
[];
menuId
.
push
(
id
);
this
.
$api
.
post
(
url
,
menuId
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"收藏已删除"
);
this
.
$store
.
dispatch
(
"collectList"
);
}
});
},
onCancel
:
()
=>
{
// this.$Message.info("Clicked cancel");
},
});
},
cancel
()
{
this
.
modal
=
false
;
},
},
},
};
};
</
script
>
</
script
>
...
@@ -319,15 +352,18 @@ export default {
...
@@ -319,15 +352,18 @@ export default {
.home {
.home {
padding: 10px 0;
padding: 10px 0;
.card-user {
.card-user {
padding: 25px 15px;
padding: 25px
0 0
15px;
height: 120px;
height: 120px;
background: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
border-radius: 8px;
border-radius: 8px;
display: flex;
display: flex;
display: -webkit-flex;
display: -webkit-flex;
.img-header {
.img-header {
margin-top: -10px;
margin-top: -10px;
z-index: 999;
background: rgba(255, 255, 255, 1);
}
}
.ivu-avatar > img {
.ivu-avatar > img {
width: 100%;
width: 100%;
...
@@ -335,19 +371,23 @@ export default {
...
@@ -335,19 +371,23 @@ export default {
}
}
.user-text {
.user-text {
width: 43%;
width: 43%;
z-index: 999;
background: rgba(255, 255, 255, 1);
p {
p {
margin: 10px 20px;
margin: 10px 20px;
}
}
}
}
.incon-carousel {
.incon-carousel {
width:
98
0px;
width:
100
0px;
position: relative;
position: relative;
text-align: center;
text-align: center;
z-index: 100;
.bg-b {
.bg-b {
margin-top: 10px;
margin-top: 10px;
font-size: 30px;
font-size: 30px;
color: #dcdfe6;
color: #dcdfe6;
position: absolute;
position: absolute;
width: 40px;
top: 13px;
top: 13px;
left: 0;
left: 0;
}
}
...
@@ -357,11 +397,12 @@ export default {
...
@@ -357,11 +397,12 @@ export default {
color: #a7b8cc;
color: #a7b8cc;
cursor: pointer;
cursor: pointer;
position: absolute;
position: absolute;
width: 40px;
top: 13px;
top: 13px;
left: 0;
left: 0;
}
}
.bg-l {
.bg-l {
float: right
;
width: 40px
;
margin-top: 10px;
margin-top: 10px;
font-size: 30px;
font-size: 30px;
color: #dcdfe6;
color: #dcdfe6;
...
@@ -370,7 +411,7 @@ export default {
...
@@ -370,7 +411,7 @@ export default {
right: 0;
right: 0;
}
}
.bg-l1 {
.bg-l1 {
float: right
;
width: 40px
;
margin-top: 10px;
margin-top: 10px;
font-size: 30px;
font-size: 30px;
color: #a7b8cc;
color: #a7b8cc;
...
@@ -380,15 +421,14 @@ export default {
...
@@ -380,15 +421,14 @@ export default {
right: 0;
right: 0;
}
}
.list-shoucang {
.list-shoucang {
width: 960px;
//
width: 960px;
display: -webkit-inline-box;
display: -webkit-inline-box;
display: inline-box;
display: inline-box;
transition: margin-left 1s;
transition: margin-left 1s;
}
}
.bg {
.bg {
text-align: center;
text-align: center;
width: 120px;
width: 122px;
.ivu-icon {
.ivu-icon {
font-size: 35px;
font-size: 35px;
color: #2680eb;
color: #2680eb;
...
@@ -398,6 +438,14 @@ export default {
...
@@ -398,6 +438,14 @@ export default {
margin-top: 8px;
margin-top: 8px;
}
}
}
}
.down-delete {
position: absolute;
top: -17px;
right: 7px;
.ivu-icon {
font-size: 16px;
}
}
}
}
}
}
.card-list {
.card-list {
...
@@ -524,4 +572,19 @@ export default {
...
@@ -524,4 +572,19 @@ export default {
text-align: center;
text-align: center;
margin-bottom: 25px;
margin-bottom: 25px;
}
}
.modal-r {
height: 400px;
overflow: auto;
.right-delete {
height: 35px;
line-height: 35px;
border-bottom: 1px solid #eee;
.ivu-icon {
color: #2680eb;
}
a {
float: right;
}
}
}
</
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