Browse Source

feat:表头修改

dev
zhaobing’ 1 year ago
parent
commit
c4f38bb66c
  1. 22
      web/client/src/sections/workOrder/containers/aboutMe.jsx
  2. 5
      web/client/src/sections/workOrder/containers/initiated.jsx
  3. 11
      web/client/src/sections/workOrder/containers/preserve.jsx
  4. 24
      web/client/src/sections/workOrder/containers/receipt.jsx
  5. 12
      web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx

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

@ -72,17 +72,27 @@ const Rest = (props) => {
dataIndex: 'index',
render: (text, record, index) => index + 1
},
{
title: '事项名称',
dataIndex: 'fsFormItemName',
render: (text, record, index) => {
return record?.name || ''
}
},
{
title: '项目名称',
dataIndex: 'pomsProject',
render: (text, record, index) => {
return record?.pomsNeedData?.projectName?.value || ''
return record.fsFormItemName==='运维中台售后问题处理工单'?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || ''
}
}, {
title: '申请内容描述',
dataIndex: 'applyContent',
render: (text, record, index) => {
return record?.pomsNeedData?.applyContent?.value || ''
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 || ''
}
},
// {
@ -128,13 +138,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || ''
// }
// },
{
title: '事项名称',
dataIndex: 'fsFormItemName',
render: (text, record, index) => {
return record?.name || ''
}
},
{
title: '问题类型',
dataIndex: 'issueType',

5
web/client/src/sections/workOrder/containers/initiated.jsx

@ -37,7 +37,6 @@ const Rest = (props) => {
})
.then(res => {
let nextTableData = (res?.data || []).map(r => {
console.log('11111112222',res?.data)
let pomsNeedData = {}
if (r?.formData?.submitFormData && r?.formData?.workflowProcessVersion?.workflowProcessForm?.formSchema) {
pomsNeedData = parseProcessData({
@ -75,19 +74,19 @@ const Rest = (props) => {
title: '项目名称',
dataIndex: 'pomsProject',
render: (text, record, index) => {
console.log('record1111',record)
return record?.pomsNeedData?.projectName?.value || ''
}
}, {
title: '申请内容描述',
dataIndex: 'applyContent',
render: (text, record, index) => {
console.log('record1',record)
return record?.pomsNeedData?.applyContent?.value || ''
}
},
// {
// title: '',
// dataIndex: 'pomsProject',
// dataIndex: 'pomsProject',console
// render: (text, record, index) => {
// const pomsProjectId = record?.pomsNeedData?.pomsProjectId?.value
// if (pomsProjectId) {

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

@ -66,7 +66,16 @@ const Rest = (props) => {
title: '项目名称',
dataIndex: 'pomsProject',
render: (text, record, index) => {
return record?.pomsNeedData?.projectName?.value || ''
return record.fsFormItemName==='运维中台售后问题处理工单'?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || ''
}
}, {
title: '申请内容描述',
dataIndex: 'applyContent',
render: (text, record, index) => {
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 || ''
}
}, {
title: '申请内容描述',

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

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

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

@ -1,7 +1,7 @@
import React, { useEffect, useRef, useState } from 'react';
import { connect } from 'react-redux';
import { ApiTable, EmisApiTable, EmisRequest, parseProcessData } from '$utils'
import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast } from '@douyinfe/semi-ui';
import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast, Tooltip } from '@douyinfe/semi-ui';
import { IconSearch } from '@douyinfe/semi-icons';
import { SkeletonScreen, WorkflowModal, WorkflowApprovalModal } from "$components";
import moment from "moment";
@ -16,7 +16,6 @@ const Rest = (props) => {
const [loading, setLoading] = useState(true); //
const [workflowModalVisible, setWorkflowModalVisible] = useState(false)
const [checkProcessInstanceId, setCheckProcessInstanceId] = useState(null)
useEffect(() => {
backlogData()
if (!pomsProjectBasicAll.length) {
@ -58,7 +57,6 @@ const Rest = (props) => {
setLoading(false)
});
}
console.log('nextTableData',tableData)
let columns = [{
title: '序号',
dataIndex: 'index',
@ -74,14 +72,16 @@ console.log('nextTableData',tableData)
title: '项目名称',
dataIndex: 'pomsProject',
render: (text, record, index) => {
console.log('recordstay',record)
return record?.pomsNeedData?.pomsProjectId?.value || ''
return record.fsFormItemName==='运维中台售后问题处理工单'?
pomsProjectBasicAll?.find(item=>item.value==record?.pomsNeedData?.pomsProjectId?.value).label||'':record?.pomsNeedData?.projectName?.value || ''
}
}, {
title: '申请内容描述',
dataIndex: 'applyContent',
render: (text, record, index) => {
return record?.pomsNeedData?.applyContent?.value || ''
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 || ''
}
},
// {

Loading…
Cancel
Save