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
0ae95bab
Commit
0ae95bab
authored
Sep 07, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiaoxi
parent
16b5767f
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
114 additions
and
22 deletions
+114
-22
custom.less
assets/css/custom.less
+6
-0
iview-reset.less
assets/css/iview-reset.less
+9
-3
materielChart.vue
pages/home/component/materielChart.vue
+2
-1
message.vue
pages/home/component/message.vue
+54
-0
staChart.vue
pages/home/component/staChart.vue
+2
-1
suspendChart.vue
pages/home/component/suspendChart.vue
+3
-5
unqualifiedEcharts.vue
pages/home/component/unqualifiedEcharts.vue
+2
-1
unreadMessage.vue
pages/home/component/unreadMessage.vue
+30
-4
workChart.vue
pages/home/component/workChart.vue
+3
-5
index.vue
pages/home/index.vue
+3
-2
No files found.
assets/css/custom.less
View file @
0ae95bab
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
@home-mene: #2680eb;
@home-mene: #2680eb;
@layout-header: #515A6E;
@layout-header: #515A6E;
//bady颜色
@layout-content-bg-color: #fff;
@card-bg: #fff;
//收藏夹自体图标颜色
@icon-color: #2680eb;
//弹框颜色
//弹框颜色
@modal-header-bg-color: #515A6E;
@modal-header-bg-color: #515A6E;
assets/css/iview-reset.less
View file @
0ae95bab
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
}
}
.ivu-layout-content {
.ivu-layout-content {
background-color:
#fff
;
background-color:
@layout-content-bg-color
;
}
}
.ivu-modal-wrap * {
.ivu-modal-wrap * {
...
@@ -77,6 +77,10 @@
...
@@ -77,6 +77,10 @@
float: left;
float: left;
}
}
.ivu-card-body {
background-color: @card-bg;
}
/* tab颜色为绿色 */
/* tab颜色为绿色 */
.ivu-tabs-nav .ivu-tabs-tab-active {
.ivu-tabs-nav .ivu-tabs-tab-active {
color: @primary-color;
color: @primary-color;
...
@@ -272,10 +276,12 @@
...
@@ -272,10 +276,12 @@
width: 300px;
width: 300px;
height: 25px;
height: 25px;
}
}
//顶部导航
//顶部导航
.ivu-layout-header{
.ivu-layout-header
{
background-color: @layout-header !important;
background-color: @layout-header !important;
}
}
//重新定义弹框的footer--[工艺规程管理有用到]
//重新定义弹框的footer--[工艺规程管理有用到]
.model_footer {
.model_footer {
border-top: 1px solid #e8eaec;
border-top: 1px solid #e8eaec;
...
...
pages/home/component/materielChart.vue
View file @
0ae95bab
...
@@ -196,8 +196,9 @@ export default {
...
@@ -196,8 +196,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import "../../../assets/css/custom.less";
.stachart {
.stachart {
background:
rgba(255, 255, 255, 1)
;
background:
@card-bg
;
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;
padding: 10px;
padding: 10px;
...
...
pages/home/component/message.vue
0 → 100644
View file @
0ae95bab
<
template
>
<div
class=
"msg-main"
>
<p
class=
"title"
>
发送时间:
{{
msg
.
creationTime
}}
<span
class=
"fr"
>
发送人:
<User
:value=
"msg.senderId"
/></span>
</p>
<div
class=
"content"
v-html=
"msg.content"
></div>
<div
v-if=
"msg.attachment"
class=
"file"
>
附件:
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
''
,
data
()
{
return
{
msg
:{}
}
},
mounted
(){
this
.
load
();
},
methods
:{
load
(){
this
.
$api
.
get
(
`
${
systemUrl
}
/usermessage/read`
,{
id
:
this
.
eid
}).
then
(
r
=>
{
this
.
msg
=
r
.
result
;
})
}
},
props
:[
"eid"
],
watch
:{
eid
(
v
,
o
){
if
(
v
){
this
.
load
();
}
}
}
}
</
script
>
<
style
lang=
"less"
>
.msg-main{
.title{
font-size:14px;
line-height: 45px;
}
.content{
padding: 10px 20px;
}
.file{
padding: 10px 20px;
}
}
</
style
>
\ No newline at end of file
pages/home/component/staChart.vue
View file @
0ae95bab
...
@@ -316,8 +316,9 @@ export default {
...
@@ -316,8 +316,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import "../../../assets/css/custom.less";
.stachart {
.stachart {
background:
rgba(255, 255, 255, 1)
;
background:
@card-bg
;
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;
padding: 10px;
padding: 10px;
...
...
pages/home/component/suspendChart.vue
View file @
0ae95bab
<
template
>
<
template
>
<div
<div
class=
"stachart"
style=
"width:'100%',height:'100%'"
>
class=
"stachart"
style=
"width:'100%',height:'100%'"
>
<div
class=
"row_head"
v-if=
"setStatistics?false:true"
>
<div
class=
"row_head"
v-if=
"setStatistics?false:true"
>
<Icon
type=
"ios-images"
class=
"f20"
/>
<Icon
type=
"ios-images"
class=
"f20"
/>
<span
class=
"ml10"
>
暂停任务统计
</span>
<span
class=
"ml10"
>
暂停任务统计
</span>
...
@@ -192,8 +189,9 @@ export default {
...
@@ -192,8 +189,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import "../../../assets/css/custom.less";
.stachart {
.stachart {
background:
rgba(255, 255, 255, 1)
;
background:
@card-bg
;
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;
padding: 10px;
padding: 10px;
...
...
pages/home/component/unqualifiedEcharts.vue
View file @
0ae95bab
...
@@ -174,8 +174,9 @@ export default {
...
@@ -174,8 +174,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import "../../../assets/css/custom.less";
.stachart {
.stachart {
background:
rgba(255, 255, 255, 1)
;
background:
@card-bg
;
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;
padding: 10px 20px 0 20px;
padding: 10px 20px 0 20px;
...
...
pages/home/component/unreadMessage.vue
View file @
0ae95bab
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
<Row
v-for=
"(item,index) in messageList"
:key=
"index"
class=
"row-text"
>
<Row
v-for=
"(item,index) in messageList"
:key=
"index"
class=
"row-text"
>
<Col
:span=
"1"
>
{{
index
+
1
}}
</Col>
<Col
:span=
"1"
>
{{
index
+
1
}}
</Col>
<Col
:span=
"8"
>
<Col
:span=
"8"
>
<
Icon
:type=
"item.icon||'md-mail'"
:style=
"
{color:item.color||'#2680eb'}" /
>
<
!-- :style="
{color:item.color||'#2680eb'}" --
>
<Icon
:type=
"item.icon||'md-mail'"
style=
"color:#2680eb"
/>
{{
item
.
title
}}
<span
@
click=
"clickItem(item,index)"
class=
"text"
>
{{
item
.
title
}}
</span>
</Col>
</Col>
<Col
:span=
"7"
class=
"sender"
>
<Col
:span=
"7"
class=
"sender"
>
<User
:value=
"item.senderId"
/>
<User
:value=
"item.senderId"
/>
...
@@ -21,6 +21,12 @@
...
@@ -21,6 +21,12 @@
<Col
:span=
"8"
class=
"sender-time"
>
{{
item
.
creationTime
}}
</Col>
<Col
:span=
"8"
class=
"sender-time"
>
{{
item
.
creationTime
}}
</Col>
</Row>
</Row>
</div>
</div>
<Modal
v-model=
"modal1"
:title=
"title"
width=
"1200"
>
<component
:is=
"detail"
:eid=
"eid"
/>
<div
slot=
"footer"
>
<Button
type=
"primary"
@
click=
"modal1=false"
>
取消
</Button>
</div>
</Modal>
</Card>
</Card>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -33,6 +39,10 @@ export default {
...
@@ -33,6 +39,10 @@ export default {
imgUrl
:
iconImg
,
imgUrl
:
iconImg
,
// listTask: [],
// listTask: [],
messageList
:
[],
messageList
:
[],
title
:
"消息"
,
modal1
:
false
,
detail
:
null
,
eid
:
0
,
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -61,7 +71,16 @@ export default {
...
@@ -61,7 +71,16 @@ export default {
});
});
// console.log("message55", this.messageList);
// console.log("message55", this.messageList);
},
},
clickItem
(
item
,
i
)
{
this
.
modal1
=
true
;
this
.
msg
=
item
;
item
.
color
=
"#ccc"
;
item
.
status
=
1
;
this
.
$set
(
this
.
messageList
,
i
,
item
);
this
.
title
=
item
.
title
||
" "
;
this
.
eid
=
item
.
id
;
this
.
detail
=
()
=>
import
(
"./message"
);
},
link
()
{
link
()
{
this
.
$router
.
push
(
"/home/msgRecord"
);
this
.
$router
.
push
(
"/home/msgRecord"
);
},
},
...
@@ -97,6 +116,13 @@ export default {
...
@@ -97,6 +116,13 @@ export default {
height: 40px;
height: 40px;
line-height: 40px;
line-height: 40px;
border-bottom: 1px solid #eee;
border-bottom: 1px solid #eee;
.text {
cursor: pointer;
}
.text:hover {
color: #2680eb;
}
.sender {
.sender {
text-align: center;
text-align: center;
}
}
...
...
pages/home/component/workChart.vue
View file @
0ae95bab
<
template
>
<
template
>
<div
<div
class=
"stachart"
style=
"width:'100%',height:'100%'"
>
class=
"stachart"
style=
"width:'100%',height:'100%'"
>
<div
:gutter=
"16"
class=
"row_head"
v-if=
"setStatistics?false:true"
>
<div
:gutter=
"16"
class=
"row_head"
v-if=
"setStatistics?false:true"
>
<Icon
type=
"ios-images"
class=
"f20"
/>
<Icon
type=
"ios-images"
class=
"f20"
/>
<span
class=
"ml10"
>
工单任务状态分布
</span>
<span
class=
"ml10"
>
工单任务状态分布
</span>
...
@@ -293,8 +290,9 @@ export default {
...
@@ -293,8 +290,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import "../../../assets/css/custom.less";
.stachart {
.stachart {
background:
rgba(255, 255, 255, 1)
;
background:
@card-bg
;
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;
padding: 10px;
padding: 10px;
...
...
pages/home/index.vue
View file @
0ae95bab
...
@@ -353,6 +353,7 @@ export default {
...
@@ -353,6 +353,7 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import "../../assets/css/custom.less";
.ivu-layout-content {
.ivu-layout-content {
background-color: none !important;
background-color: none !important;
}
}
...
@@ -364,7 +365,7 @@ export default {
...
@@ -364,7 +365,7 @@ export default {
.card-user {
.card-user {
padding: 25px 0 0 15px;
padding: 25px 0 0 15px;
height: 120px;
height: 120px;
background
: rgba(255, 255, 255, 1)
;
background
-color: @card-bg
;
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;
...
@@ -441,7 +442,7 @@ export default {
...
@@ -441,7 +442,7 @@ export default {
width: 122px;
width: 122px;
.ivu-icon {
.ivu-icon {
font-size: 35px;
font-size: 35px;
color:
#2680eb
;
color:
@icon-color
;
cursor: pointer;
cursor: pointer;
}
}
p {
p {
...
...
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