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
cd8c728c
Commit
cd8c728c
authored
May 15, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into ting-p
parents
a4bd4a28
455988b4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
59 deletions
+100
-59
departmentSelect.vue
components/page/departmentSelect.vue
+77
-35
index.vue
pages/aps/dispatch/index.vue
+0
-2
index.vue
pages/order/monitoring/index.vue
+1
-2
index.vue
pages/produce/execute/ProcessCase/index.vue
+14
-7
execute.less
pages/produce/execute/execute.less
+5
-5
u.vue
pages/test/u.vue
+3
-8
No files found.
components/page/departmentSelect.vue
View file @
cd8c728c
<
template
>
<TreeSelect
v-model=
"dep"
:data=
"data"
@
on-change=
"change"
:disabled=
"disabled"
:multiple=
"multiple"
:transfer=
"true"
/>
<TreeSelect
v-model=
"dep"
:data=
"data"
@
on-change=
"change"
:disabled=
"disabled"
:multiple=
"multiple"
clearable
:transfer=
"true"
/>
</
template
>
<
script
>
export
default
{
model
:
{
prop
:
'value'
,
event
:
'on-change'
prop
:
"value"
,
event
:
"on-change"
},
data
()
{
return
{
dep
:
''
,
dep
:
""
,
data
:
[],
list
:[]
}
list
:
[]
}
;
},
created
()
{
this
.
dep
=
this
.
value
|
''
;
this
.
$api
.
get
(
`
${
systemUrl
}
/Department/GetDepartments`
).
then
((
r
)
=>
{
this
.
list
=
r
.
result
.
items
;
var
data
=
this
.
$u
.
toTree
(
r
.
result
.
items
,
0
,
u
=>
{
u
.
title
=
u
.
name
;
u
.
value
=
u
.
id
;
u
.
expand
=
true
;
u
.
selected
=
false
;
u
.
checked
=
false
;
},
"parent_Id"
)
this
.
data
=
this
.
$u
.
clone
(
data
)
;
})
this
.
dep
=
this
.
value
|
""
;
this
.
$api
.
get
(
`
${
systemUrl
}
/Department/GetDepartments`
).
then
(
r
=>
{
var
items
=
r
.
result
.
items
;
this
.
list
=
r
.
result
.
items
;
if
(
this
.
type
==
-
1
)
{
var
data
=
this
.
$u
.
toTree
(
r
.
result
.
items
,
0
,
u
=>
{
u
.
title
=
u
.
name
;
u
.
value
=
u
.
id
;
u
.
expand
=
true
;
u
.
selected
=
false
;
u
.
checked
=
false
;
},
"parent_Id"
);
this
.
data
=
this
.
$u
.
clone
(
data
);
}
else
{
var
result
=
[];
items
.
map
(
u
=>
{
if
(
u
[
"property"
])
{
var
ps
=
u
[
"property"
].
split
(
","
);
if
(
ps
.
length
>
0
&&
ps
.
indexOf
(
this
.
type
+
''
)
>
-
1
)
{
result
.
push
(
u
);
}
}
});
this
.
data
=
result
.
map
(
u
=>
{
return
{
title
:
u
.
name
,
value
:
u
.
id
};
});
}
});
},
props
:
{
value
:
[
String
,
Number
,
Array
],
placeholder
:
{
type
:
String
,
default
:
'请选择部门'
default
:
"请选择部门"
},
multiple
:
{
type
:
Boolean
,
default
:
false
},
type
:
{
type
:
Number
,
default
:
-
1
/*
默认返回所有部门
1 返回所有生产班组
2 返回排产资源
3 返回所有车间
*/
},
disabled
:
{
type
:
Boolean
,
default
:
false
}
,
}
},
methods
:
{
change
(
v
){
console
.
log
(
v
)
this
.
dep
=
v
;
var
item
;
var
items
=
this
.
list
.
filter
(
u
=>
{
return
u
.
id
==
v
})
if
(
items
&&
items
.
length
>
0
){
item
=
items
[
0
];
}
this
.
$emit
(
"on-change"
,
v
,
item
)
},
change
(
v
)
{
// console.log(v);
this
.
dep
=
v
;
var
item
;
var
items
=
this
.
list
.
filter
(
u
=>
{
return
u
.
id
==
v
;
});
if
(
items
&&
items
.
length
>
0
)
{
item
=
items
[
0
];
}
this
.
$emit
(
"on-change"
,
v
,
item
);
}
},
watch
:
{
value
:
{
handler
(
v
,
o
)
{
this
.
dep
=
v
|
''
this
.
dep
=
v
|
""
;
},
deep
:
true
}
}
}
}
;
</
script
>
\ No newline at end of file
pages/aps/dispatch/index.vue
View file @
cd8c728c
...
...
@@ -178,10 +178,8 @@
<Col
span=
"8"
class=
"dispatch_card02"
v-for=
"(item,index) in listMan"
:key=
"index"
>
<CheckboxGroup
class=
"man_body"
>
<Checkbox
v-model=
"item.checked"
border
class=
"checkUser"
>
<!--
<Tooltip
:content=
"item.userName"
placement=
"top-start"
>
-->
<span
class=
"svg_name"
:title=
"item.userName"
>
{{
item
.
userName
}}
</span>
<!--
<span
class=
"svg"
>
{{
item
.
id
}}
</span>
-->
<!--
</Tooltip>
-->
</Checkbox>
</CheckboxGroup>
</Col>
...
...
pages/order/monitoring/index.vue
View file @
cd8c728c
...
...
@@ -4,8 +4,7 @@
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
style=
"margin-top:5px;"
>
<FormItem
prop=
"productingpreparationpeople"
style=
"width:200px"
>
<!--
<departmentSelect
v-model=
"easySearch.productingpreparationpeople.value"
></departmentSelect>
-->
<workShop
v-model=
"easySearch.productingpreparationpeople.value"
></workShop>
<departmentSelect
v-model=
"easySearch.productingpreparationpeople.value"
:type=
"3"
></departmentSelect>
</FormItem>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入订单编号"
v-model=
"easySearch.keys.value"
/>
...
...
pages/produce/execute/ProcessCase/index.vue
View file @
cd8c728c
...
...
@@ -5,13 +5,10 @@
<div
class=
"sear_btn"
>
<Input
search
class=
"search_box mr10"
enter-button
placeholder=
"请输入文件名"
/>
<a
@
click=
"allChecked"
><Icon
type=
"md-checkbox-outline"
/>
全选
</a>
<a
@
click=
"copyCard"
><Icon
type=
"ios-browsers-outline"
/>
复制
</a>
<a
@
click=
"deliteCard"
><Icon
type=
"ios-trash-outline"
/>
删除
</a>
<!--
<a
@
click=
"copyCard"
><Icon
type=
"ios-browsers-outline"
/>
复制
</a>
-->
<a
@
click=
"importCard"
><Icon
type=
"ios-log-in"
/>
导入
</a>
<a
@
click=
"exportCard"
><Icon
type=
"ios-log-out"
/>
导出
</a>
<a
@
click=
"addCard"
><Icon
type=
"ios-add-circle-outline"
/>
新建
</a>
<span>
共
{{
cardlist
.
length
}}
个案例;
</span>
<span>
已选择
{{
checkCards
}}
个案例
</span>
</div>
<a
class=
"slip fr"
@
click=
"starFun"
><Icon
type=
"md-swap"
/></a>
</div>
...
...
@@ -38,7 +35,8 @@
v-for=
"(item,index) in cardlist"
:label=
"item.id"
:key=
"index"
>
<div
class=
"file"
>
<Icon
type=
"ios-paper"
v-if=
"item.id%3==0"
/>
<Icon
type=
"ios-film"
v-else
/>
<!--
<Icon
type=
"ios-film"
v-else
/>
-->
<Icon
type=
"md-film"
v-else
/>
</div>
<div
class=
"list"
>
<ul>
...
...
@@ -49,8 +47,13 @@
</div>
</Checkbox>
</CheckboxGroup>
</div>
<FooterToolbar
style=
"height:65px"
v-show=
"checkCards!=0"
>
<span>
已选择
{{
checkCards
}}
个案例
</span>
<Button
class=
"span ml20"
type=
"primary"
@
click=
"deliteCard"
><Icon
type=
"ios-trash-outline"
/>
删除
</Button>
<Button
class=
"span ml20"
type=
"primary"
@
click=
"exportCard"
><Icon
type=
"ios-log-out"
/>
导出
</Button>
<Button
@
click=
"cancel"
>
取消
</Button>
</FooterToolbar>
</div>
</
template
>
<
script
>
...
...
@@ -60,6 +63,7 @@ export default {
return
{
caseLise
:[],
checkCards
:
0
,
footerToolbar
:
false
,
cardlist
:[
{
name
:
'工艺文档名称'
,
...
...
@@ -252,12 +256,15 @@ export default {
addCard
(){
this
.
$Message
.
success
(
"新建工艺案例"
)
},
changeCards
(
list
){
changeCards
(
list
){
//多选方法
this
.
checkCards
=
list
.
length
},
changeCard
(
value
){
console
.
log
(
111
)
},
cancel
(){
//底部取消
this
.
checkCards
=
0
;
}
},
}
</
script
>
pages/produce/execute/execute.less
View file @
cd8c728c
...
...
@@ -355,7 +355,7 @@
}
}
.slip{
margin-right:
2
0px;
margin-right:
1
0px;
i.ivu-icon{
font-size: 32px;
transform:rotate(90deg);
...
...
@@ -367,13 +367,13 @@
}
}
.case_box{
padding: 10px 20px;
padding: 10px 20px
44px
;
height: calc(100vh - 210px);
overflow-y: auto;
.file_card{
background: #F5F6FA;
margin: 1
0
px 50px;
width: 36
0
px;
margin: 1
5
px 50px;
width: 36
7
px;
padding: 18px;
height: 110px;
line-height: 24px;
...
...
@@ -387,7 +387,7 @@
float: left;
margin: 0 8px 0 0;
i{
font-size:
58
px;
font-size:
62
px;
}
}
}
...
...
pages/test/u.vue
View file @
cd8c728c
...
...
@@ -26,16 +26,11 @@
<h2>
时间段展示
</h2>
<!-- 默认为datetime类型,可设置为date型,type="date";默认展示快捷时间段,包括当天、本周、本月,如不需要:showFast="false" -->
<DTSearch
v-model=
"testDate1"
@
on-change=
"setTime"
type=
"date"
></DTSearch>
<div>
<i-switch
v-model=
"
s
itch"
/>
<i-switch
v-model=
"
w
itch"
/>
</div>
<div
style=
"text-align:center"
>
<User
value=
"46"
/>
<User
value=
"43"
/>
<User
value=
"44"
/>
<User
value=
"115"
/>
<User
value=
"37"
/>
<DepartmentSelect
:type=
"3"
/>
</div>
<User
value=
"46"
/>
</div>
</
template
>
<
script
>
...
...
@@ -47,7 +42,7 @@ export default {
data
()
{
return
{
user
:
0
,
s
witch
:
false
,
witch
:
false
,
parms
:
{
app
:
'bug'
,
//服务名
eid
:
'10000'
,
//数据的id
...
...
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