Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-kanban
Project
Project
Details
Activity
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
ximai
mes-kanban
Commits
b0da36f6
Commit
b0da36f6
authored
Nov 23, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整表格的滚动距离
parent
20ee88eb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
18 deletions
+24
-18
index.tsx
...ban/ProductionProgress/components/ProgressTable/index.tsx
+0
-2
index.less
...nban/materialSynthesis/components/partProgress/index.less
+7
-3
index.tsx
...anban/materialSynthesis/components/partProgress/index.tsx
+1
-1
index.less
.../materialSynthesis/components/partProgressLeft/index.less
+7
-3
index.tsx
...n/materialSynthesis/components/partProgressLeft/index.tsx
+9
-9
No files found.
src/pages/kanban/ProductionProgress/components/ProgressTable/index.tsx
View file @
b0da36f6
...
@@ -3,9 +3,7 @@ import styles from './index.less';
...
@@ -3,9 +3,7 @@ import styles from './index.less';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
useIntl
}
from
'umi'
;
import
{
useIntl
}
from
'umi'
;
type
ErrorDetailCriteria
=
KANBAN
.
ProductionComprehens
.
ErrorDetailCriteria
;
type
ProductionProgressKanbanData
=
KANBAN
.
ProductionProgress
.
ProductionProgressKanbanDataDto
;
type
ProductionProgressKanbanData
=
KANBAN
.
ProductionProgress
.
ProductionProgressKanbanDataDto
;
type
ProductionProgressKanbanSetting
=
KANBAN
.
ProductionProgress
.
ProductionProgressKanbanSetting
;
type
ProgressTableProps
=
{
type
ProgressTableProps
=
{
lineName
:
string
;
lineName
:
string
;
...
...
src/pages/kanban/materialSynthesis/components/partProgress/index.less
View file @
b0da36f6
...
@@ -58,11 +58,15 @@
...
@@ -58,11 +58,15 @@
}
}
.row {
.row {
display: flex;
display: flex;
line-
height: 60px;
height: 60px;
.item {
.item {
flex: 1;
justify-content: center;
word-break: break-all;
flex: 1 1;
line-height: 20px;
font-size: 18px;
font-size: 18px;
text-align: center;
display: flex;
align-items: center;
}
}
}
}
}
}
...
...
src/pages/kanban/materialSynthesis/components/partProgress/index.tsx
View file @
b0da36f6
...
@@ -58,7 +58,7 @@ const Main: React.FC<{ data: PartScheduleIndexDataDto[]; rowMovingTime: any }> =
...
@@ -58,7 +58,7 @@ const Main: React.FC<{ data: PartScheduleIndexDataDto[]; rowMovingTime: any }> =
behavior
:
'instant'
,
behavior
:
'instant'
,
});
});
}
else
{
}
else
{
leftScroll
.
current
.
scrollTop
+=
3
0
leftScroll
.
current
.
scrollTop
+=
6
0
}
}
},
rowMovingTime
*
1000
)
},
rowMovingTime
*
1000
)
}
}
...
...
src/pages/kanban/materialSynthesis/components/partProgressLeft/index.less
View file @
b0da36f6
...
@@ -58,11 +58,15 @@
...
@@ -58,11 +58,15 @@
}
}
.row {
.row {
display: flex;
display: flex;
line-
height: 60px;
height: 60px;
.item {
.item {
flex: 1;
justify-content: center;
word-break: break-all;
flex: 1 1;
line-height: 20px;
font-size: 18px;
font-size: 18px;
text-align: center;
display: flex;
align-items: center;
}
}
}
}
}
}
...
...
src/pages/kanban/materialSynthesis/components/partProgressLeft/index.tsx
View file @
b0da36f6
...
@@ -56,7 +56,7 @@ const Main: React.FC<{ data: PartScheduleIndexDataDto1[]; rowMovingTime: any }>
...
@@ -56,7 +56,7 @@ const Main: React.FC<{ data: PartScheduleIndexDataDto1[]; rowMovingTime: any }>
behavior
:
'instant'
,
behavior
:
'instant'
,
});
});
}
else
{
}
else
{
leftScroll
.
current
.
scrollTop
+=
3
0
leftScroll
.
current
.
scrollTop
+=
6
0
}
}
},
rowMovingTime
*
1000
)
},
rowMovingTime
*
1000
)
}
}
...
@@ -74,26 +74,26 @@ const Main: React.FC<{ data: PartScheduleIndexDataDto1[]; rowMovingTime: any }>
...
@@ -74,26 +74,26 @@ const Main: React.FC<{ data: PartScheduleIndexDataDto1[]; rowMovingTime: any }>
</
div
>
</
div
>
<
div
className=
"table-container"
>
<
div
className=
"table-container"
>
<
div
className=
"table-header"
>
<
div
className=
"table-header"
>
<
div
className=
"item"
>
{
intl
.
formatMessage
({
id
:
'生产工单'
})
}
</
div
>
<
div
className=
"item"
style=
{
{
flex
:
0.75
}
}
>
{
intl
.
formatMessage
({
id
:
'生产工单'
})
}
</
div
>
<
div
className=
"item"
>
{
intl
.
formatMessage
({
id
:
'产品名称'
})
}
</
div
>
<
div
className=
"item"
>
{
intl
.
formatMessage
({
id
:
'产品名称'
})
}
</
div
>
<
div
className=
"item"
>
{
intl
.
formatMessage
({
id
:
'计划完成时间'
})
}
</
div
>
<
div
className=
"item"
style=
{
{
flex
:
0.8
}
}
>
{
intl
.
formatMessage
({
id
:
'计划完成时间'
})
}
</
div
>
<
div
className=
"item"
>
{
intl
.
formatMessage
({
id
:
'计划数量'
})
}
</
div
>
<
div
className=
"item"
style=
{
{
flex
:
0.5
}
}
>
{
intl
.
formatMessage
({
id
:
'计划数量'
})
}
</
div
>
<
div
className=
"item"
>
{
intl
.
formatMessage
({
id
:
'完成数量'
})
}
</
div
>
<
div
className=
"item"
style=
{
{
flex
:
0.6
}
}
>
{
intl
.
formatMessage
({
id
:
'完成数量'
})
}
</
div
>
</
div
>
</
div
>
<
div
className=
"table-body"
style=
{
{
height
:
'225px'
}
}
ref=
{
leftScroll
}
>
<
div
className=
"table-body"
style=
{
{
height
:
'225px'
}
}
ref=
{
leftScroll
}
>
{
data
?.
map
((
item
,
index
)
=>
{
{
data
?.
map
((
item
,
index
)
=>
{
return
(
return
(
<
div
className=
"row"
key=
{
index
}
>
<
div
className=
"row"
key=
{
index
}
>
<
div
className=
"item"
>
{
item
.
workorderNo
}
</
div
>
<
div
className=
"item"
style=
{
{
flex
:
0.75
}
}
>
{
item
.
workorderNo
}
</
div
>
<
div
className=
"item"
>
{
item
.
itemName
}
</
div
>
<
div
className=
"item"
>
{
item
.
itemName
}
</
div
>
<
div
className=
"item"
>
{
item
.
planFinishDate
}
</
div
>
<
div
className=
"item"
style=
{
{
flex
:
0.8
}
}
>
{
item
.
planFinishDate
}
</
div
>
<
div
<
div
className=
"item"
className=
"item"
style=
{
{
flex
:
0.5
}
}
>
>
{
item
.
planQuantity
}
{
item
.
planQuantity
}
</
div
>
</
div
>
<
div
<
div
className=
"item"
className=
"item"
style=
{
{
flex
:
0.6
}
}
>
>
{
item
.
finishQuantity
}
{
item
.
finishQuantity
}
</
div
>
</
div
>
...
...
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