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
ee3ec524
Commit
ee3ec524
authored
Apr 10, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plan
parent
2a5cc640
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
188 additions
and
18 deletions
+188
-18
dataGrid.vue
components/page/dataGrid.vue
+4
-2
index.vue
pages/mesPlan/index.vue
+184
-16
No files found.
components/page/dataGrid.vue
View file @
ee3ec524
...
...
@@ -252,7 +252,7 @@ export default {
mounted
()
{
if
(
this
.
data
&&
this
.
data
.
length
>
0
)
{
this
.
list
=
this
.
data
;
return
;
//
return;
}
this
.
keys
=
""
;
this
.
intY
();
...
...
@@ -260,6 +260,7 @@ export default {
return
;
}
this
.
loadUserConfig
();
if
(
this
.
height
===
0
)
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
...
...
@@ -271,6 +272,7 @@ export default {
}
else
{
this
.
tableHeight
=
this
.
height
;
}
//注册拖拽事件。
this
.
$dragging
.
$on
(
"dragend"
,
e
=>
{
// console.log("dragend",e);
...
...
pages/mesPlan/index.vue
View file @
ee3ec524
...
...
@@ -92,7 +92,7 @@ export default {
detailModal
:
false
,
deletelModal
:
false
,
curId
:
0
,
id
:
"id"
,
id
:
"id"
,
columns
:
[
{
key
:
"selection"
,
...
...
@@ -103,7 +103,7 @@ export default {
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
hide
:
true
},
{
key
:
"mesCode"
,
...
...
@@ -112,7 +112,25 @@ export default {
width
:
240
,
easy
:
true
,
high
:
true
,
tree
:
true
tree
:
true
,
render
:
(
h
,
params
)
=>
{
let
name
=
params
.
row
.
mesCode
;
let
isUpId
=
params
.
row
.
upId
;
let
isDivideMark
=
params
.
row
.
divideMark
;
let
rowChildren
=
params
.
row
.
children
;
return
h
(
"div"
,
{
style
:
{
cursor
:
"pointer"
,
display
:
"inline"
,
marginLeft
:
isDivideMark
==
0
&&
isUpId
==
0
?
"20px"
:
"0px"
}
},
params
.
row
.
mesCode
);
}
},
{
key
:
"taskType"
,
...
...
@@ -261,7 +279,7 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"
remove
"
},
attrs
:
{
oprate
:
"
detail
"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"分解"
...
...
@@ -272,8 +290,6 @@ export default {
],
listTemp
:
[
{
actualFinishDate
:
"2020-04-09 18:36:31"
,
actualStartDate
:
"2020-04-09 17:52:42"
,
batchNumber
:
"5"
,
creationTime
:
"2020-04-09 17:32:06"
,
creatorUserId
:
0
,
...
...
@@ -314,6 +330,7 @@ export default {
upId
:
0
,
urgencyLevel
:
"1"
,
_disabled
:
true
,
divideMark
:
1
,
children
:
[
{
actualFinishDate
:
"2020-04-09 18:36:31"
,
...
...
@@ -327,7 +344,7 @@ export default {
drawnNumber
:
"TY9-06-0803"
,
functionaryOffice
:
""
,
guestName
:
""
,
id
:
54
0
,
id
:
54
1
,
isDeleted
:
0
,
mainDepartmentId
:
""
,
mainRoutingPeople
:
""
,
...
...
@@ -355,9 +372,57 @@ export default {
taskRequire
:
"5"
,
taskType
:
"1"
,
technologyDocmentCode
:
"5"
,
upId
:
0
,
upId
:
540
,
urgencyLevel
:
"1"
,
_disabled
:
false
,
divideMark
:
0
,
children
:
[]
},
{
actualFinishDate
:
"2020-04-09 18:36:31"
,
actualStartDate
:
"2020-04-09 17:52:42"
,
batchNumber
:
"5"
,
creationTime
:
"2020-04-09 17:32:06"
,
creatorUserId
:
0
,
demandFinishDate
:
"2020-04-10 00:00:00"
,
demandStartDate
:
"2020-04-09 00:00:00"
,
designer
:
""
,
drawnNumber
:
"TY9-06-0803"
,
functionaryOffice
:
""
,
guestName
:
""
,
id
:
542
,
isDeleted
:
0
,
mainDepartmentId
:
""
,
mainRoutingPeople
:
""
,
materialId
:
"1"
,
mesCode
:
"DDBH_20200409_13_02"
,
modelVersion
:
""
,
officeFunctionary
:
""
,
orderQuotationStatus
:
0
,
outerDrawnNumber
:
""
,
outer_Envelope_Size
:
"4"
,
printSupply
:
""
,
productId
:
27
,
productName
:
"气源分配器壳体"
,
projectNumber
:
"5"
,
putintDocmentCode
:
"5"
,
quantity
:
10
,
remark
:
"555"
,
rootCode
:
"DDBH_20200409_13"
,
rootId
:
540
,
routing_Method
:
"1"
,
stage
:
"1"
,
status
:
13
,
taskCode
:
"5"
,
taskInputDate
:
"2020-04-09 17:32:06"
,
taskRequire
:
"5"
,
taskType
:
"1"
,
technologyDocmentCode
:
"5"
,
upId
:
540
,
urgencyLevel
:
"1"
,
_disabled
:
false
_disabled
:
true
,
divideMark
:
0
,
children
:
[]
}
]
},
...
...
@@ -373,7 +438,7 @@ export default {
drawnNumber
:
"TY9-06-0803"
,
functionaryOffice
:
""
,
guestName
:
""
,
id
:
54
0
,
id
:
54
3
,
isDeleted
:
0
,
mainDepartmentId
:
""
,
mainRoutingPeople
:
""
,
...
...
@@ -404,6 +469,8 @@ export default {
upId
:
0
,
urgencyLevel
:
"1"
,
_disabled
:
false
,
divideMark
:
0
,
children
:
[]
},
{
actualFinishDate
:
"2020-04-09 18:36:31"
,
...
...
@@ -417,7 +484,7 @@ export default {
drawnNumber
:
"TY9-06-0803"
,
functionaryOffice
:
""
,
guestName
:
""
,
id
:
54
0
,
id
:
54
4
,
isDeleted
:
0
,
mainDepartmentId
:
""
,
mainRoutingPeople
:
""
,
...
...
@@ -448,7 +515,102 @@ export default {
upId
:
0
,
urgencyLevel
:
"1"
,
_disabled
:
false
,
}
divideMark
:
0
,
children
:
[]
},
{
actualFinishDate
:
"2020-04-09 18:36:31"
,
actualStartDate
:
"2020-04-09 17:52:42"
,
batchNumber
:
"5"
,
creationTime
:
"2020-04-09 17:32:06"
,
creatorUserId
:
0
,
demandFinishDate
:
"2020-04-10 00:00:00"
,
demandStartDate
:
"2020-04-09 00:00:00"
,
designer
:
""
,
drawnNumber
:
"TY9-06-0803"
,
functionaryOffice
:
""
,
guestName
:
""
,
id
:
545
,
isDeleted
:
0
,
mainDepartmentId
:
""
,
mainRoutingPeople
:
""
,
materialId
:
"1"
,
mesCode
:
"DDBH_20200409_16"
,
modelVersion
:
""
,
officeFunctionary
:
""
,
orderQuotationStatus
:
0
,
outerDrawnNumber
:
""
,
outer_Envelope_Size
:
"4"
,
printSupply
:
""
,
productId
:
27
,
productName
:
"气源分配器壳体"
,
projectNumber
:
"5"
,
putintDocmentCode
:
"5"
,
quantity
:
10
,
remark
:
"555"
,
rootCode
:
"DDBH_20200409_13"
,
rootId
:
540
,
routing_Method
:
"1"
,
stage
:
"1"
,
status
:
13
,
taskCode
:
"5"
,
taskInputDate
:
"2020-04-09 17:32:06"
,
taskRequire
:
"5"
,
taskType
:
"1"
,
technologyDocmentCode
:
"5"
,
upId
:
0
,
urgencyLevel
:
"1"
,
_disabled
:
false
,
divideMark
:
0
,
children
:
[]
},
{
actualFinishDate
:
"2020-04-09 18:36:31"
,
actualStartDate
:
"2020-04-09 17:52:42"
,
batchNumber
:
"5"
,
creationTime
:
"2020-04-09 17:32:06"
,
creatorUserId
:
0
,
demandFinishDate
:
"2020-04-10 00:00:00"
,
demandStartDate
:
"2020-04-09 00:00:00"
,
designer
:
""
,
drawnNumber
:
"TY9-06-0803"
,
functionaryOffice
:
""
,
guestName
:
""
,
id
:
546
,
isDeleted
:
0
,
mainDepartmentId
:
""
,
mainRoutingPeople
:
""
,
materialId
:
"1"
,
mesCode
:
"DDBH_20200409_17"
,
modelVersion
:
""
,
officeFunctionary
:
""
,
orderQuotationStatus
:
0
,
outerDrawnNumber
:
""
,
outer_Envelope_Size
:
"4"
,
printSupply
:
""
,
productId
:
27
,
productName
:
"气源分配器壳体"
,
projectNumber
:
"5"
,
putintDocmentCode
:
"5"
,
quantity
:
10
,
remark
:
"555"
,
rootCode
:
"DDBH_20200409_13"
,
rootId
:
540
,
routing_Method
:
"1"
,
stage
:
"1"
,
status
:
13
,
taskCode
:
"5"
,
taskInputDate
:
"2020-04-09 17:32:06"
,
taskRequire
:
"5"
,
taskType
:
"1"
,
technologyDocmentCode
:
"5"
,
upId
:
0
,
urgencyLevel
:
"1"
,
_disabled
:
false
,
divideMark
:
0
,
children
:
[]
},
],
treeData
:
[],
treeInputSearch
:
""
,
...
...
@@ -683,11 +845,17 @@ export default {
}
};
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
>
.full {
margin-top: 0;
.content {
margin-top: 10px;
.ivu-icon-ios-add:before {
content: "\f341";
}
.ivu-icon-ios-remove:before {
content: "\f33d";
}
}
}
</
style
>
\ No newline at end of file
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