Browse Source

fix label

dev
CODE 2 years ago
parent
commit
38da941b5e
  1. 12
      web/client/src/sections/workOrder/containers/aboutMe.jsx
  2. 14
      web/client/src/sections/workOrder/containers/preserve.jsx
  3. 16
      web/client/src/sections/workOrder/containers/receipt.jsx
  4. 14
      web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx

12
web/client/src/sections/workOrder/containers/aboutMe.jsx

@ -1,7 +1,7 @@
import React, { useEffect, useRef, useState } from 'react'; import React, { useEffect, useRef, useState } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { ApiTable, EmisApiTable, EmisRequest, parseProcessData, judgmentProcessState } from '$utils' import { ApiTable, EmisApiTable, EmisRequest, parseProcessData, judgmentProcessState } from '$utils'
import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast,Tooltip } from '@douyinfe/semi-ui'; import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast, Tooltip } from '@douyinfe/semi-ui';
import { IconSearch } from '@douyinfe/semi-icons'; import { IconSearch } from '@douyinfe/semi-icons';
import { SkeletonScreen, WorkflowApprovalModal } from "$components"; import { SkeletonScreen, WorkflowApprovalModal } from "$components";
import moment from "moment"; import moment from "moment";
@ -83,16 +83,16 @@ const Rest = (props) => {
title: '项目名称', title: '项目名称',
dataIndex: 'pomsProject', dataIndex: 'pomsProject',
render: (text, record, index) => { render: (text, record, index) => {
return record.name==='运维中台售后问题处理工单'? return record.name === '运维中台售后问题处理工单' ?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || '' pomsProjectBasicAll?.find(item => item.value == record?.pomsNeedData?.pomsProjectId?.value)?.label || '' : record?.pomsNeedData?.projectName?.value || ''
} }
}, { }, {
title: '申请内容描述', title: '申请内容描述',
dataIndex: 'applyContent', dataIndex: 'applyContent',
render: (text, record, index) => { render: (text, record, index) => {
return record.name==='运维中台售后问题处理工单'?record?.pomsNeedData?.detail?.value.length>5? return record.name === '运维中台售后问题处理工单' ? record?.pomsNeedData?.detail?.value.length > 5 ?
<Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip>:record?.pomsNeedData?.detail?.value || '':record?.pomsNeedData?.applyContent?.value || '' <Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip> : record?.pomsNeedData?.detail?.value || '' : record?.pomsNeedData?.applyContent?.value || ''
} }
}, },
// { // {
@ -138,7 +138,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || '' // return record?.pomsNeedData?.handlingResult?.value || ''
// } // }
// }, // },
{ {
title: '问题类型', title: '问题类型',
dataIndex: 'issueType', dataIndex: 'issueType',

14
web/client/src/sections/workOrder/containers/preserve.jsx

@ -62,27 +62,27 @@ const Rest = (props) => {
title: '序号', title: '序号',
dataIndex: 'index', dataIndex: 'index',
render: (text, record, index) => index + 1 render: (text, record, index) => index + 1
}, },
{ {
title: '事项名称', title: '事项名称',
dataIndex: 'fsFormItemName', dataIndex: 'fsFormItemName',
render: (text, record, index) => { render: (text, record, index) => {
return record?.name || '' return record?.name || ''
} }
},{ }, {
title: '项目名称', title: '项目名称',
dataIndex: 'pomsProject', dataIndex: 'pomsProject',
render: (text, record, index) => { render: (text, record, index) => {
return record.name==='运维中台售后问题处理工单'? return record.name === '运维中台售后问题处理工单' ?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || '' pomsProjectBasicAll?.find(item => item.value == record?.pomsNeedData?.pomsProjectId?.value)?.label || '' : record?.pomsNeedData?.projectName?.value || ''
} }
}, { }, {
title: '申请内容描述', title: '申请内容描述',
dataIndex: 'applyContent', dataIndex: 'applyContent',
render: (text, record, index) => { render: (text, record, index) => {
return record.name==='运维中台售后问题处理工单'?record?.pomsNeedData?.detail?.value.length>5? return record.name === '运维中台售后问题处理工单' ? record?.pomsNeedData?.detail?.value.length > 5 ?
<Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip>:record?.pomsNeedData?.detail?.value || '':record?.pomsNeedData?.applyContent?.value || '' <Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip> : record?.pomsNeedData?.detail?.value || '' : record?.pomsNeedData?.applyContent?.value || ''
} }
}, },
// { // {
@ -130,7 +130,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || '' // return record?.pomsNeedData?.handlingResult?.value || ''
// } // }
// }, // },
{ {
title: '问题类型', title: '问题类型',
dataIndex: 'issueType', dataIndex: 'issueType',

16
web/client/src/sections/workOrder/containers/receipt.jsx

@ -1,7 +1,7 @@
import React, { useEffect, useRef, useState } from 'react'; import React, { useEffect, useRef, useState } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { ApiTable, EmisApiTable, EmisRequest, parseProcessData, judgmentProcessState } from '$utils' import { ApiTable, EmisApiTable, EmisRequest, parseProcessData, judgmentProcessState } from '$utils'
import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast ,Tooltip} from '@douyinfe/semi-ui'; import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast, Tooltip } from '@douyinfe/semi-ui';
import { IconSearch } from '@douyinfe/semi-icons'; import { IconSearch } from '@douyinfe/semi-icons';
import { SkeletonScreen, WorkflowApprovalModal } from "$components"; import { SkeletonScreen, WorkflowApprovalModal } from "$components";
import moment from "moment"; import moment from "moment";
@ -74,27 +74,27 @@ const Rest = (props) => {
title: '序号', title: '序号',
dataIndex: 'index', dataIndex: 'index',
render: (text, record, index) => index + 1 render: (text, record, index) => index + 1
}, },
{ {
title: '事项名称', title: '事项名称',
dataIndex: 'fsFormItemName', dataIndex: 'fsFormItemName',
render: (text, record, index) => { render: (text, record, index) => {
return record?.name || '' return record?.name || ''
} }
},{ }, {
title: '项目名称', title: '项目名称',
dataIndex: 'pomsProject', dataIndex: 'pomsProject',
render: (text, record, index) => { render: (text, record, index) => {
return record.name==='运维中台售后问题处理工单'? return record.name === '运维中台售后问题处理工单' ?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || '' pomsProjectBasicAll?.find(item => item.value == record?.pomsNeedData?.pomsProjectId?.value)?.label || '' : record?.pomsNeedData?.projectName?.value || ''
} }
}, { }, {
title: '申请内容描述', title: '申请内容描述',
dataIndex: 'applyContent', dataIndex: 'applyContent',
render: (text, record, index) => { render: (text, record, index) => {
return record.name==='运维中台售后问题处理工单'?record?.pomsNeedData?.detail?.value.length>5? return record.name === '运维中台售后问题处理工单' ? record?.pomsNeedData?.detail?.value.length > 5 ?
<Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip>:record?.pomsNeedData?.detail?.value || '':record?.pomsNeedData?.applyContent?.value || '' <Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip> : record?.pomsNeedData?.detail?.value || '' : record?.pomsNeedData?.applyContent?.value || ''
} }
}, },
// { // {
@ -140,7 +140,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || '' // return record?.pomsNeedData?.handlingResult?.value || ''
// } // }
// }, // },
{ {
title: '问题类型', title: '问题类型',
dataIndex: 'issueType', dataIndex: 'issueType',

14
web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx

@ -61,27 +61,27 @@ const Rest = (props) => {
title: '序号', title: '序号',
dataIndex: 'index', dataIndex: 'index',
render: (text, record, index) => index + 1 render: (text, record, index) => index + 1
},{ }, {
title: '事项名称', title: '事项名称',
dataIndex: 'fsFormItemName', dataIndex: 'fsFormItemName',
render: (text, record, index) => { render: (text, record, index) => {
return record?.fsFormItemName || '' return record?.fsFormItemName || ''
} }
}, { }, {
title: '项目名称', title: '项目名称',
dataIndex: 'pomsProject', dataIndex: 'pomsProject',
render: (text, record, index) => { render: (text, record, index) => {
return record.fsFormItemName==='运维中台售后问题处理工单'? return record.fsFormItemName === '运维中台售后问题处理工单' ?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || '' pomsProjectBasicAll?.find(item => item.value == record?.pomsNeedData?.pomsProjectId?.value)?.label || '' : record?.pomsNeedData?.projectName?.value || ''
} }
}, { }, {
title: '申请内容描述', title: '申请内容描述',
dataIndex: 'applyContent', dataIndex: 'applyContent',
render: (text, record, index) => { render: (text, record, index) => {
return record.fsFormItemName==='运维中台售后问题处理工单'?record?.pomsNeedData?.detail?.value.length>5? return record.fsFormItemName === '运维中台售后问题处理工单' ? record?.pomsNeedData?.detail?.value.length > 5 ?
<Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip>:record?.pomsNeedData?.detail?.value || '':record?.pomsNeedData?.applyContent?.value || '' <Tooltip content={record?.pomsNeedData?.detail?.value}>{record?.pomsNeedData?.detail?.value.substring(0, 5) + '...'}</Tooltip> : record?.pomsNeedData?.detail?.value || '' : record?.pomsNeedData?.applyContent?.value || ''
} }
}, },
// { // {
@ -121,7 +121,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || '' // return record?.pomsNeedData?.handlingResult?.value || ''
// } // }
// }, // },
{ {
title: '问题类型', title: '问题类型',
dataIndex: 'issueType', dataIndex: 'issueType',

Loading…
Cancel
Save