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
0945cf9b
Commit
0945cf9b
authored
Apr 22, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程管理框架
parent
773de260
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
53 deletions
+127
-53
calendar.vue
pages/basicData/calendar.vue
+1
-1
gongxu.vue
pages/technology/details/component/gongxu.vue
+39
-0
index.vue
pages/technology/details/index.vue
+28
-36
index.vue
pages/technology/index.vue
+14
-10
technolog.less
pages/technology/technolog.less
+45
-6
No files found.
pages/basicData/calendar.vue
View file @
0945cf9b
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
}},
}},
created
()
{
created
()
{
...
...
pages/technology/details/component/gongxu.vue
0 → 100644
View file @
0945cf9b
<
style
lang=
"less"
>
@import '../../technolog.less';
</
style
>
<
template
>
<div>
1231323
</div>
</
template
>
<
script
>
export
default
{
components
:
{},
data
()
{
return
{
showMenu
:
true
,
treeHeight
:
''
,
actNum
:
'1'
,
}
},
created
()
{
this
.
treeHeight
=
window
.
innerHeight
-
140
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
mounted
()
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
this
.
treeHeight
=
window
.
innerHeight
-
140
})()
}
},
computed
:
{
},
methods
:
{
back
(){
},
}
}
</
script
>
pages/technology/details/index.vue
View file @
0945cf9b
...
@@ -2,32 +2,28 @@
...
@@ -2,32 +2,28 @@
@import '../technolog.less';
@import '../technolog.less';
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"details_box"
>
<Layout
class=
"pt10 details_box"
>
<h4
class=
"details_top tc"
>
<Header>
<a
class=
"back_href"
@
click=
"back"
>
<Icon
type=
"ios-undo-outline"
/>
返回工艺规程
</a>
<h4
class=
"details_top tc"
>
<div>
工艺信息
</div>
<a
class=
"back_href"
@
click=
"back"
>
<Icon
type=
"ios-undo-outline"
/>
返回工艺规程
</a>
</h4>
<div>
工艺信息
</div>
<div
class=
"details_body"
>
</h4>
<Menu
mode=
"horizontal"
theme=
"light"
:active-name=
"actNum"
>
<div
class=
"details_body"
>
<MenuItem
name=
"1"
>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"1"
>
<Icon
type=
"ios-paper"
/>
<MenuItem
name=
"1"
>
工序
</MenuItem>
工序
<MenuItem
name=
"2"
to=
"/technology/details/component/gongxu"
>
质控卡
</MenuItem>
</MenuItem>
<MenuItem
name=
"3"
>
工艺BOM
</MenuItem>
<MenuItem
name=
"2"
>
<MenuItem
name=
"4"
>
生产准备
</MenuItem>
<Icon
type=
"ios-people"
/>
<!-- -->
质控卡
</Menu>
</MenuItem>
</div>
<MenuItem
name=
"4"
>
</Header>
<Icon
type=
"ios-construct"
/>
<!--
<Content>
-->
工艺BOM
<Layout
class=
"bottom_box"
>
</MenuItem>
<nuxt-child
keep-alive
></nuxt-child>
<MenuItem
name=
"5"
>
</Layout>
<Icon
type=
"ios-construct"
/>
<!--
</Content>
-->
生产准备
</Layout>
</MenuItem>
</Menu>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -54,17 +50,13 @@ export default {
...
@@ -54,17 +50,13 @@ export default {
})()
})()
}
}
},
},
computed
:
{
computed
:
{
},
},
methods
:
{
methods
:
{
hideMenu
(){
back
(){
this
.
showMenu
=
false
this
.
$router
.
push
({
this
.
$Message
.
info
(
"收起左侧树"
)
name
:
"technology"
,
},
// params: { transmitData: lemData }
showMenuFn
(){
});
this
.
showMenu
=
true
this
.
$Message
.
info
(
"展开左侧树"
)
},
},
}
}
}
}
...
...
pages/technology/index.vue
View file @
0945cf9b
...
@@ -4,20 +4,24 @@
...
@@ -4,20 +4,24 @@
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<Layout>
<Layout>
<Sider
hide-trigger
v-if=
"showMenu"
style=
"color: #fff;
"
>
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side
"
>
<div
class=
"side_tree"
:style=
"
{ height: treeHeight + 'px' }">
<div
class=
"side_tree"
:style=
"
{ height: treeHeight + 'px' }">
<h3
class=
"tree_tit"
>
产品结构
<h4
class=
"tree_tit pl5"
>
产品结构
<a
class=
"menu_play fr"
@
click=
"hideMenu"
><Icon
type=
"md-arrow-back"
/></a>
<a
class=
"menu_play fr"
@
click=
"hideMenu"
title=
"收起"
>
</h3>
<Icon
type=
"ios-arrow-back"
size=
"24"
/>
<!--
<Icon
type=
"md-arrow-round-back"
/>
-->
</a>
</h4>
</div>
</div>
</Sider>
</Sider>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
<a
class=
"menu_play fr"
@
click=
"showMenuFn"
><Icon
type=
"md-arrow-forward"
/></a>
<a
class=
"menu_play fr"
@
click=
"showMenuFn"
title=
"展开"
>
<Icon
type=
"ios-arrow-forward"
size=
"24"
/>
<!--
<Icon
type=
"md-arrow-round-forward"
/>
-->
</a>
</div>
</div>
<Layout>
<Layout>
<!--
<Header
style=
"color: #fff;"
>
Header
</Header>
-->
<Content
:class=
"showMenu?'tech_body':'tech_body02'"
:style=
"
{ height: treeHeight + 'px' }">Content
</Content>
<Content
:style=
"
{ height: treeHeight + 'px' }">Content
</Content>
<!--
<Footer>
Footer
</Footer>
-->
</Layout>
</Layout>
</Layout>
</Layout>
</div>
</div>
...
@@ -33,7 +37,7 @@ export default {
...
@@ -33,7 +37,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
treeHeight
=
window
.
innerHeight
-
1
4
0
this
.
treeHeight
=
window
.
innerHeight
-
1
2
0
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
...
@@ -42,7 +46,7 @@ export default {
...
@@ -42,7 +46,7 @@ export default {
window
.
onresize
=
()
=>
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
///浏览器窗口大小变化
return
(()
=>
{
return
(()
=>
{
this
.
treeHeight
=
window
.
innerHeight
-
1
4
0
this
.
treeHeight
=
window
.
innerHeight
-
1
2
0
})()
})()
}
}
},
},
...
...
pages/technology/technolog.less
View file @
0945cf9b
.menu_side{
width: 300px!important;
min-width: 300px!important;
max-width: 300px!important;
flex: 0 0 300px!important;
background: #fff;
margin: 5px 0 0 0;
}
.side_tree{
.side_tree{
background: #ffffff;
background: #ffffff;
//
width: 300px;
width: 300px;
border: 1px solid #ddd;
border: 1px solid #ddd;
.tree_tit{
.tree_tit{
background: #afabab;
background: #F5F6FA;
color: #000;
height: 50px;
line-height: 50px;
font-size: 14px;
color: #515A6E;
.menu_play{
.menu_play{
width: 30px;
width: 30px;
height: 50px;
line-height: 50px;
text-align: center;
text-align: center;
color: #646464;
color: #646464;
border: 1px solid #000;
}
}
}
}
}
}
.show_menu{
.show_menu{
width: 30px;
height: 30px;
position: fixed;
top: 100px;
left: 0;
.menu_play{
.menu_play{
width: 30px;
width: 30px;
height: 30px;
line-height: 34px;
font-size: 14px;
text-align: center;
text-align: center;
color: #646464;
color: #515A6E;
border: 1px solid #000;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
// position: absolute;
// top: 100px;
// left: 0px;
background: #ffffff;
box-shadow: #ccc 2px 2px 4px 1px;
}
}
}
}
.tech_body{
margin: 5px 5px 5px 20px;
padding: 2px 18px;
box-shadow: #98929294 2px 1px 5px 1px;
}
.tech_body02{
margin: 5px;
padding: 2px 18px;
box-shadow: #98929294 2px 1px 5px 1px;
}
.details_box{
.details_box{
.details_top{
.details_top{
height: 32px;
height: 32px;
line-height: 32px;
line-height: 32px;
position: relative;
position: relative;
background: #fff;
border-bottom: 1px solid #ccc;
.back_href{
.back_href{
position: absolute;
position: absolute;
left: 110px;
left: 110px;
...
...
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