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
dca83651
Commit
dca83651
authored
Nov 19, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
f9f4ce1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
kanban.ts
src/locales/th-TH/kanban.ts
+3
-1
kanban.ts
src/locales/zh-CN/kanban.ts
+3
-1
DeviceItem.tsx
...intingProcessKanban/components/DeviceGroup/DeviceItem.tsx
+4
-2
No files found.
src/locales/th-TH/kanban.ts
View file @
dca83651
...
...
@@ -52,7 +52,9 @@ export default {
'处理中'
:
'ในการประมวลผล'
,
'原因'
:
'เหตุผล'
,
'状态'
:
'สถานะ'
,
'产线选择'
:
'การเลือกสายการผลิต'
'产线选择'
:
'การเลือกสายการผลิต'
,
'日产出'
:
'นิสสัน'
,
'产出率'
:
'ผลผลิต'
}
;
\ No newline at end of file
src/locales/zh-CN/kanban.ts
View file @
dca83651
...
...
@@ -52,6 +52,8 @@ export default {
'处理中'
:
'处理中'
,
'原因'
:
'原因'
,
'状态'
:
'状态'
,
'产线选择'
:
'产线选择'
'产线选择'
:
'产线选择'
,
'日产出'
:
'日产出'
,
'产出率'
:
'产出率'
};
\ No newline at end of file
src/pages/kanban/paintingProcessKanban/components/DeviceGroup/DeviceItem.tsx
View file @
dca83651
...
...
@@ -2,6 +2,7 @@ import ProTable, { ActionType } from '@ant-design/pro-table';
import
{
queryEquipmentDetail
}
from
'@/pages/kanban/productionComprehens/services/api'
;
import
React
,
{
useEffect
,
useRef
}
from
'react'
;
import
{
Progress
}
from
'antd'
;
import
{
useIntl
}
from
'umi'
;
type
ErrorDetailSetting
=
KANBAN
.
ProductionComprehens
.
ErrorDetailSetting
;
import
styles
from
'../../index.less'
;
export
type
InfoProps
=
{
...
...
@@ -10,6 +11,7 @@ export type InfoProps = {
};
const
DeviceItem
:
React
.
FC
<
InfoProps
>
=
(
props
)
=>
{
const
intl
=
useIntl
();
useEffect
(()
=>
{
console
.
log
(
'props'
,
props
.
data
)
},
[
props
.
data
]);
...
...
@@ -29,8 +31,8 @@ const DeviceItem: React.FC<InfoProps> = (props) => {
<
div
className=
{
styles
.
round
}
style=
{
{
'background'
:
(
Number
(
props
.
data
.
state
)
===
0
?
'#1be223'
:
Number
(
props
.
data
.
state
)
===
1
?
'#8497b5'
:
'#e50105'
)}
}
></
div
>
</
div
>
<
div
className=
{
styles
.
deviceBottom
}
>
<
div
><
span
>
日产出
:
</
span
><
span
className=
{
styles
.
statusNum
}
>
{
props
.
data
.
output
}
</
span
></
div
>
<
div
><
span
>
产出率
:
</
span
>
<
div
><
span
>
{
intl
.
formatMessage
({
id
:
'日产出'
})
}
:
</
span
><
span
className=
{
styles
.
statusNum
}
>
{
props
.
data
.
output
}
</
span
></
div
>
<
div
><
span
>
{
intl
.
formatMessage
({
id
:
'利用率'
})
}
:
</
span
>
<
div
>
<
Progress
percent=
{
props
.
data
.
outputRatio
}
strokeColor=
{
props
.
data
.
outputRatio
<
50
?
'#ff561b'
:
props
.
data
.
outputRatio
<
80
?
'#fef000'
:
'#2f9a91'
}
className=
{
styles
.
process
}
strokeWidth=
{
15
}
/></
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