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
087f6e52
Commit
087f6e52
authored
Aug 10, 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
c188f9dd
e3445ba4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
243 additions
and
196 deletions
+243
-196
iview-reset.less
assets/css/iview-reset.less
+2
-1
product.vue
layouts/basic-layout/product.vue
+75
-16
api.js
pages/aps/results/api.js
+3
-0
compare.vue
pages/aps/results/compare.vue
+10
-3
gantt.vue
pages/aps/results/gantt.vue
+116
-123
api.js
pages/home/api.js
+1
-3
index.vue
pages/home/index.vue
+20
-43
set.vue
pages/resourceManagement/productionResources/set.vue
+2
-2
details.vue
pages/technology/setProcess/details.vue
+0
-5
index.js
store/index.js
+14
-0
No files found.
assets/css/iview-reset.less
View file @
087f6e52
...
...
@@ -96,7 +96,8 @@
.ivu-page-item-active:hover {
background-color: @primary-color;
color: white;
// background-color: #d7e8fb;
a {color: white!important;}
}
.ivu-page-item-active>a {
...
...
layouts/basic-layout/product.vue
View file @
087f6e52
...
...
@@ -24,13 +24,13 @@
</ul>
</td>
</tr>
<tr
v-for=
"(item,i) in filterSider"
>
<tr
v-for=
"(item,i) in filterSider"
:key=
"i"
>
<td
class=
"t_title"
>
<b
class=
"title"
>
{{
item
.
title
}}
</b>
</td>
<td>
<ul
class=
"table_row_ul"
>
<li
v-for=
"(li
) in item.children
"
>
<li
v-for=
"(li
,i) in item.children"
:key=
"i
"
>
<a
@
click=
"goPage(item,li)"
:class=
"
{'active': li.id === isActive}"
...
...
@@ -56,6 +56,9 @@
</BreadcrumbItem>
<BreadcrumbItem>
{{
homeMenu
}}
</BreadcrumbItem>
<BreadcrumbItem
:to=
"parthto"
class=
"white"
>
{{
homeMenuItem
}}
</BreadcrumbItem>
<Tooltip
:content=
"content"
placement=
"top-start"
:class=
"showStar?'icon-show':'icom-hide'"
>
<Icon
type=
"md-star"
@
click=
"shoucang"
/>
</Tooltip>
</Breadcrumb>
<i-header-search
v-if=
"showSearch && !headerMenu && !isMobile && !showBreadcrumb"
/>
<div
class=
"header_right"
>
...
...
@@ -125,7 +128,7 @@ export default {
iHeaderSetting
,
iHeaderNotice
,
iTabs
,
iHeaderBug
iHeaderBug
,
},
data
()
{
return
{
...
...
@@ -136,10 +139,12 @@ export default {
oldScrollTop
:
0
,
isDelayHideSider
:
false
,
// hack,当从隐藏侧边栏的 header 切换到正常 header 时,防止 Logo 抖动
loadRouter
:
true
,
showStar
:
null
,
content
:
"收藏"
,
menuId
:
null
,
homeMenu
:
""
,
homeMenuItem
:
""
,
parthto
:
""
parthto
:
""
,
};
},
computed
:
{
...
...
@@ -166,7 +171,7 @@ export default {
"showLog"
,
"showI18n"
,
"showReload"
,
"enableSetting"
"enableSetting"
,
]),
...
mapState
(
"admin/page"
,
[
"keepAlive"
]),
...
mapGetters
(
"admin/menu"
,
[
"hideSider"
,
"filterSider"
]),
...
...
@@ -193,8 +198,8 @@ export default {
"i-layout-header-stick"
:
this
.
isHeaderStick
&&
!
this
.
isMobile
,
"i-layout-header-with-menu"
:
this
.
headerMenu
,
"i-layout-header-with-hide-sider"
:
this
.
hideSider
||
this
.
isDelayHideSider
}
this
.
hideSider
||
this
.
isDelayHideSider
,
}
,
];
},
headerStyle
()
{
...
...
@@ -206,20 +211,20 @@ export default {
return
this
.
isMobile
||
!
this
.
headerFix
?
{}
:
{
width
:
`calc(100% -
${
menuWidth
}
px)`
width
:
`calc(100% -
${
menuWidth
}
px)`
,
};
},
siderClasses
()
{
return
{
"i-layout-sider-fix"
:
this
.
siderFix
,
"i-layout-sider-dark"
:
this
.
siderTheme
===
"dark"
"i-layout-sider-dark"
:
this
.
siderTheme
===
"dark"
,
};
},
contentClasses
()
{
return
{
"i-layout-content-fix-with-header"
:
this
.
headerFix
,
"i-layout-content-with-tabs"
:
this
.
tabs
,
"i-layout-content-with-tabs-fix"
:
this
.
tabs
&&
this
.
tabsFix
"i-layout-content-with-tabs-fix"
:
this
.
tabs
&&
this
.
tabsFix
,
};
},
insideClasses
()
{
...
...
@@ -228,7 +233,7 @@ export default {
"i-layout-inside-fix-with-sider-collapse"
:
this
.
siderFix
&&
this
.
menuCollapse
,
"i-layout-inside-with-hide-sider"
:
this
.
hideSider
,
"i-layout-inside-mobile"
:
this
.
isMobile
"i-layout-inside-mobile"
:
this
.
isMobile
,
};
},
drawerClasses
()
{
...
...
@@ -238,7 +243,7 @@ export default {
},
menuSideWidth
()
{
return
this
.
menuCollapse
?
80
:
Setting
.
menuSideWidth
;
}
}
,
},
watch
:
{
hideSider
()
{
...
...
@@ -248,13 +253,35 @@ export default {
},
0
);
},
$route
(
to
,
from
)
{
// alert(to.path)
if
(
to
.
name
===
from
.
name
)
{
// 相同路由,不同参数,跳转时,重载页面
if
(
Setting
.
sameRouteForceUpdate
)
{
this
.
handleReload
();
}
}
}
console
.
warn
(
"to-from"
,
to
,
from
,
this
.
filterSider
);
//获取收藏列表,判断的当前路由是否收藏
let
star
=
false
;
// console.warn("to-from======", this.$store.state.collect);
this
.
$store
.
state
.
collect
.
map
((
u
)
=>
{
if
(
u
.
url
==
to
.
path
)
{
star
=
true
;
}
else
{
star
=
false
;
}
});
this
.
showStar
=
star
;
// alert(this.showStar);
//获取菜单path并与当前路由比对,获取当前菜单id
let
dataTemp
=
this
.
$u
.
treeToList
(
this
.
filterSider
);
dataTemp
.
forEach
((
data
)
=>
{
if
(
data
.
path
==
to
.
path
)
{
this
.
menuId
=
data
.
id
;
}
});
},
},
methods
:
{
...
mapMutations
(
"admin/layout"
,
[
"updateMenuCollapse"
]),
...
...
@@ -333,7 +360,30 @@ export default {
this
.
homeMenu
=
""
;
this
.
homeMenuItem
=
""
;
this
.
isActive
=
0
;
}
},
shoucang
()
{
if
(
this
.
showStar
)
{
let
url
=
`
${
systemUrl
}
/favorite/delete`
;
let
menuId
=
[];
menuId
.
push
(
this
.
menuId
);
this
.
$api
.
post
(
url
,
menuId
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
showStar
=
false
;
this
.
$Message
.
success
(
"已取消收藏"
);
this
.
content
=
"收藏"
;
}
});
}
else
{
let
url
=
`
${
systemUrl
}
/favorite/create`
;
this
.
$api
.
post
(
url
,
{
menuId
:
this
.
menuId
}).
then
((
r
)
=>
{
if
(
r
.
result
)
{
this
.
showStar
=
true
;
this
.
$Message
.
success
(
"收藏成功"
);
this
.
content
=
"取消收藏"
;
}
});
}
},
},
mounted
()
{
document
.
addEventListener
(
"scroll"
,
this
.
handleScroll
,
{
passive
:
true
});
...
...
@@ -343,7 +393,7 @@ export default {
},
created
()
{
if
(
this
.
isTablet
&&
this
.
showSiderCollapse
)
this
.
updateMenuCollapse
(
true
);
}
}
,
};
</
script
>
...
...
@@ -507,5 +557,14 @@ export default {
line-height: 50px;
}
}
.icon-show {
color: #2680eb;
font-size: 20px;
cursor: pointer;
}
.icom-hide {
cursor: pointer;
font-size: 20px;
}
}
</
style
>
\ No newline at end of file
pages/aps/results/api.js
View file @
087f6e52
...
...
@@ -4,6 +4,9 @@ export default {
paged
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/scheduletotal/getall`
,
params
);
},
getalldetails
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/scheduletotal/getalldetails`
,
params
);
},
getall
(
params
)
{
return
Api
.
get
(
`
${
apsUrl
}
/schema/getall`
,
params
);
},
...
...
pages/aps/results/compare.vue
View file @
087f6e52
...
...
@@ -29,7 +29,7 @@
<ul
class=
"right_ul"
>
<li
class=
"right_ul_title"
>
<span
class=
"case"
>
{{
li
.
scheduleId
}}
</span>
<span
class=
"case_time"
>
2020-03-22 13:26:35
</span>
<span
class=
"case_time"
>
{{
li
.
planDate
}}
</span>
</li>
<li>
{{
li
.
deferNum
}}
</li>
<li>
{{
li
.
deferTime
}}
</li>
...
...
@@ -101,8 +101,15 @@ export default {
items
(){
var
items
=
[];
this
.
schemas
.
map
(
p
=>
{
var
info
=
this
.
list
.
filter
(
u
=>
u
.
scheduleId
==
p
.
schedule_Id
)[
0
];
items
.
push
(
info
);
if
(
this
.
list
.
length
>
0
){
var
info
=
this
.
list
.
filter
(
u
=>
u
.
scheduleId
==
p
.
schedule_Id
)[
0
];
items
.
push
(
info
);
items
.
forEach
(
itr
=>
{
if
(
itr
.
scheduleId
==
p
.
schedule_Id
){
itr
.
planDate
=
p
.
plan_Date
}
})
}
else
{
return
}
})
return
items
;
}
...
...
pages/aps/results/gantt.vue
View file @
087f6e52
This diff is collapsed.
Click to expand it.
pages/home/api.js
View file @
087f6e52
...
...
@@ -22,7 +22,5 @@ export default {
list
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/newmessage/list`
,
params
);
//获取列表信息
},
favoriteList
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/favorite/list`
,
params
);
//获取收藏列表信息
},
}
\ No newline at end of file
pages/home/index.vue
View file @
087f6e52
...
...
@@ -8,7 +8,7 @@
<div
class=
"user-text"
>
<p>
你好:
{{
userData
.
userName
}}
,欢迎登录MES系统!
</p>
<p>
<span
>
{{
userData
.
departmentTitle
}}
</span>
&
nbsp
&
nbsp
<span
class=
"mr20"
>
{{
userData
.
departmentTitle
}}
</span>
<span>
{{
userData
.
roleTitles
}}
</span>
</p>
</div>
...
...
@@ -16,37 +16,9 @@
<div
class=
"bg-b"
>
<Icon
type=
"ios-arrow-back"
/>
</div>
<
!--
<div
class=
"bg"
v-for=
"(item,index) in listFavorite"
:key=
"index
"
>
<Icon
:type=
"item.icon
"
/>
<
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"
>
<Icon
type=
"ios-cube"
/>
<p>
电子对账单
</p>
</div>
<div
class=
"bg"
>
<Icon
type=
"md-mail"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg"
>
<Icon
type=
"md-map"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg"
>
<Icon
type=
"ios-cube"
/>
<p>
电子对账单
</p>
</div>
<div
class=
"bg"
>
<Icon
type=
"ios-cube"
/>
<p>
电子对账单
</p>
</div>
<div
class=
"bg"
>
<Icon
type=
"md-mail"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg"
>
<Icon
type=
"md-mail"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg-l"
>
<Icon
type=
"ios-arrow-forward"
/>
...
...
@@ -93,7 +65,7 @@ import Api from "./api";
import
Approval
from
"./component/approval"
;
import
UnreadMessage
from
"./component/unreadMessage"
;
import
StaChart
from
"./component/staChart"
;
import
{
mapState
}
from
"vuex"
;
export
default
{
components
:
{
Approval
,
...
...
@@ -110,10 +82,17 @@ export default {
imgPath
:
true
,
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"collectList"
);
// 加载数据字典
},
created
()
{
this
.
get
();
this
.
getUserInfoFn
();
this
.
getList
();
console
.
log
(
this
.
$store
.
state
.
collect
);
// this.getList();
},
computed
:
{
...
mapState
({
collect
:
"collect"
}),
},
methods
:
{
getUserInfoFn
()
{
...
...
@@ -139,27 +118,24 @@ export default {
this
.
$api
.
get
(
url
).
then
((
r
)
=>
{
list
=
r
.
result
;
list
.
forEach
((
data
)
=>
{
// console.log(data.totalUrl)
console
.
log
(
data
.
totalUrl
);
let
ulrt
=
`http://
${
address
}
:`
+
data
.
totalUrl
;
data
.
totalUrl
=
0
;
this
.
$api
.
get
(
ulrt
).
then
((
r
)
=>
{
return
(
data
.
totalUrl
=
r
.
result
);
});
});
console
.
log
(
list
);
this
.
listTask
=
list
;
});
},
getList
()
{
let
conditions
=
[];
Api
.
favoriteList
({
conditions
:
conditions
}).
then
((
r
)
=>
{
this
.
listFavorite
=
r
.
result
;
});
},
goPage
(
u
)
{
// alert(u.menuUrl)
this
.
$router
.
push
(
u
.
menuUrl
);
},
toPage
(
u
)
{
this
.
$router
.
push
(
u
.
url
);
},
},
};
</
script
>
...
...
@@ -207,11 +183,12 @@ export default {
}
.bg {
text-align: center;
width: 1
0
0px;
width: 1
2
0px;
float: left;
.ivu-icon {
font-size: 35px;
color: #2680eb;
cursor: pointer;
}
p {
margin-top: 8px;
...
...
pages/resourceManagement/productionResources/set.vue
View file @
087f6e52
...
...
@@ -61,7 +61,7 @@ export default {
formItem
:
{
equip_name
:
""
,
equip_id
:
""
,
isimportant
:
""
,
isimportant
:
1
,
capabilityValue
:
""
},
formItem1
:
{
...
...
@@ -113,7 +113,7 @@ export default {
this
.
formItem
.
equip_name
=
r
.
result
.
title
;
this
.
formItem
.
equip_id
=
r
.
result
.
code
;
this
.
formItem
.
capabilityValue
=
r
.
result
.
capabilityValue
;
this
.
formItem
.
isimportant
=
r
.
result
.
isimportant
+
"
"
;
this
.
formItem
.
isimportant
=
r
.
result
.
isimportant
||
"1
"
;
this
.
formItem1
.
calendarwork_pk
=
r
.
result
.
calKey
;
this
.
formItem2
.
calendarovertime_pk
=
r
.
result
.
holidayKey
;
this
.
formItem1
.
equip_pk
=
r
.
result
.
id
;
...
...
pages/technology/setProcess/details.vue
View file @
087f6e52
...
...
@@ -14,12 +14,7 @@ export default {
data
()
{
return
{
data1
:
[],
// easySearch: {
// keys: { op: "unicode,name,code", value: null },
// },
columns
:
[
// { type: "selection", width: 70, align: "center" },
{
title
:
"#"
,
type
:
"index"
,
...
...
store/index.js
View file @
087f6e52
...
...
@@ -11,6 +11,7 @@ export const state = () => ({
},
departments
:{},
//部门列表
cart
:
[],
collect
:[],
//用户收藏
count
:
0
,
countAps
:
0
,
//aps排产
countAi
:
0
,
//智能排产
...
...
@@ -66,6 +67,9 @@ export const mutations = {
addUser
(
state
,
user
)
{
state
.
userMap
.
push
(
user
);
},
setCollect
(
state
,
collectData
)
{
state
.
collect
=
collectData
;
},
setDictionary
(
state
,
dictionary
)
{
state
.
dictionary
=
dictionary
;
},
...
...
@@ -94,6 +98,16 @@ export const mutations = {
}
export
const
actions
=
{
async
collectList
({
commit
})
{
let
{
result
}
=
await
Api
.
post
(
`
${
systemUrl
}
/favorite/listbyuser`
);
console
.
warn
(
"result"
,
result
)
commit
(
"setCollect"
,
result
);
},
async
loadUser
({
commit
},
key
)
{
...
...
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