|
|
@ -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 || '' |
|
|
|
} |
|
|
|
}, |
|
|
|
// { |
|
|
|