|
@@ -3368,7 +3368,7 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
{
|
|
{
|
|
|
title: t('table.workOrderNo'),
|
|
title: t('table.workOrderNo'),
|
|
|
dataIndex: 'orderNo',
|
|
dataIndex: 'orderNo',
|
|
|
- width: '12%',
|
|
|
|
|
|
|
+ width: '9%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
render: (orderNo: string, record: WorkJobVO) => orderNo || record.code || '-',
|
|
render: (orderNo: string, record: WorkJobVO) => orderNo || record.code || '-',
|
|
|
},
|
|
},
|
|
@@ -3397,7 +3397,7 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
{
|
|
{
|
|
|
title: t('table.workStatus'),
|
|
title: t('table.workStatus'),
|
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
|
- width: '10%',
|
|
|
|
|
|
|
+ width: '9%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
render: (status: string | number) => {
|
|
render: (status: string | number) => {
|
|
|
const statusItem = jobStatusDictList.find(item => String(item.value) === String(status));
|
|
const statusItem = jobStatusDictList.find(item => String(item.value) === String(status));
|
|
@@ -3417,14 +3417,24 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
{
|
|
{
|
|
|
title: t('table.currentTask'),
|
|
title: t('table.currentTask'),
|
|
|
dataIndex: 'currentNodeName',
|
|
dataIndex: 'currentNodeName',
|
|
|
- width: '12%',
|
|
|
|
|
|
|
+ width: '10%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- render: (currentNodeName: string, record: WorkJobVO) => currentNodeName || record.currentNode || '-',
|
|
|
|
|
|
|
+ render: (currentNodeName: string, record: WorkJobVO) => {
|
|
|
|
|
+ const text = currentNodeName || record.currentNode || '-';
|
|
|
|
|
+ if (!text || text === '-') return text;
|
|
|
|
|
+ return (
|
|
|
|
|
+ <Tooltip title={text}>
|
|
|
|
|
+ <span className="inline-block max-w-[140px] truncate align-middle">
|
|
|
|
|
+ {text}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </Tooltip>
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: t('table.workContent'),
|
|
title: t('table.workContent'),
|
|
|
dataIndex: 'description',
|
|
dataIndex: 'description',
|
|
|
- width: '20%',
|
|
|
|
|
|
|
+ width: '15%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
render: (description: string, record: WorkJobVO) => {
|
|
render: (description: string, record: WorkJobVO) => {
|
|
|
const content = description || record.content || '-';
|
|
const content = description || record.content || '-';
|
|
@@ -3444,14 +3454,14 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
{
|
|
{
|
|
|
title: t('table.initiator'),
|
|
title: t('table.initiator'),
|
|
|
dataIndex: 'initiatorName',
|
|
dataIndex: 'initiatorName',
|
|
|
- width: '10%',
|
|
|
|
|
|
|
+ width: '8%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
render: (initiatorName: string, record: WorkJobVO) => initiatorName || record.initiator || '-',
|
|
render: (initiatorName: string, record: WorkJobVO) => initiatorName || record.initiator || '-',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: t('table.initiationTime'),
|
|
title: t('table.initiationTime'),
|
|
|
dataIndex: 'initiationTime',
|
|
dataIndex: 'initiationTime',
|
|
|
- width: '16%',
|
|
|
|
|
|
|
+ width: '13%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
render: (time: string | Date | number, record: WorkJobVO) => {
|
|
render: (time: string | Date | number, record: WorkJobVO) => {
|
|
|
const actualTime = time || record.initiateTime;
|
|
const actualTime = time || record.initiateTime;
|
|
@@ -3477,8 +3487,8 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
{
|
|
{
|
|
|
title: t('table.urgencyLevel'),
|
|
title: t('table.urgencyLevel'),
|
|
|
dataIndex: 'urgencyLevel',
|
|
dataIndex: 'urgencyLevel',
|
|
|
- minWidth: '150px',
|
|
|
|
|
- width: '150px',
|
|
|
|
|
|
|
+
|
|
|
|
|
+ width: '9%',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
render: (urgencyLevel: string | number | undefined, record: WorkJobVO) => {
|
|
render: (urgencyLevel: string | number | undefined, record: WorkJobVO) => {
|
|
|
const urgencyValue = urgencyLevel || record.urgency || record.urgencyLevel;
|
|
const urgencyValue = urgencyLevel || record.urgency || record.urgencyLevel;
|