Browse Source

feat:打印日志

dev
zhaobing’ 1 year ago
parent
commit
abf3e57d62
  1. 20
      web/client/src/sections/workOrder/containers/initiated.jsx
  2. 20
      web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx
  3. 4
      web/client/src/utils/parseProcessData.js

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

@ -37,6 +37,7 @@ const Rest = (props) => {
}) })
.then(res => { .then(res => {
let nextTableData = (res?.data || []).map(r => { let nextTableData = (res?.data || []).map(r => {
console.log('11111112222',res?.data)
let pomsNeedData = {} let pomsNeedData = {}
if (r?.formData?.submitFormData && r?.formData?.workflowProcessVersion?.workflowProcessForm?.formSchema) { if (r?.formData?.submitFormData && r?.formData?.workflowProcessVersion?.workflowProcessForm?.formSchema) {
pomsNeedData = parseProcessData({ pomsNeedData = parseProcessData({
@ -62,10 +63,19 @@ const Rest = (props) => {
title: '序号', title: '序号',
dataIndex: 'index', dataIndex: 'index',
render: (text, record, index) => index + 1 render: (text, record, index) => index + 1
}, { },
{
title: '事项名称',
dataIndex: 'fsFormItemName',
render: (text, record, index) => {
return record?.name || ''
}
},
{
title: '项目名称', title: '项目名称',
dataIndex: 'pomsProject', dataIndex: 'pomsProject',
render: (text, record, index) => { render: (text, record, index) => {
console.log('record1111',record)
return record?.pomsNeedData?.projectName?.value || '' return record?.pomsNeedData?.projectName?.value || ''
} }
}, { }, {
@ -118,13 +128,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || '' // return record?.pomsNeedData?.handlingResult?.value || ''
// } // }
// }, // },
{
title: '事项名称',
dataIndex: 'fsFormItemName',
render: (text, record, index) => {
return record?.name || ''
}
},
{ {
title: '问题类型', title: '问题类型',
dataIndex: 'issueType', dataIndex: 'issueType',

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

@ -58,16 +58,24 @@ const Rest = (props) => {
setLoading(false) setLoading(false)
}); });
} }
console.log('nextTableData',tableData)
let columns = [{ let columns = [{
title: '序号', title: '序号',
dataIndex: 'index', dataIndex: 'index',
render: (text, record, index) => index + 1 render: (text, record, index) => index + 1
},{
title: '事项名称',
dataIndex: 'fsFormItemName',
render: (text, record, index) => {
return record?.fsFormItemName || ''
}
}, { }, {
title: '项目名称', title: '项目名称',
dataIndex: 'pomsProject', dataIndex: 'pomsProject',
render: (text, record, index) => { render: (text, record, index) => {
return record?.pomsNeedData?.projectName?.value || '' console.log('recordstay',record)
return record?.pomsNeedData?.pomsProjectId?.value || ''
} }
}, { }, {
title: '申请内容描述', title: '申请内容描述',
@ -113,13 +121,7 @@ const Rest = (props) => {
// return record?.pomsNeedData?.handlingResult?.value || '' // return record?.pomsNeedData?.handlingResult?.value || ''
// } // }
// }, // },
{
title: '事项名称',
dataIndex: 'fsFormItemName',
render: (text, record, index) => {
return record?.fsFormItemName || ''
}
},
{ {
title: '问题类型', title: '问题类型',
dataIndex: 'issueType', dataIndex: 'issueType',

4
web/client/src/utils/parseProcessData.js

@ -86,6 +86,10 @@ export const parseProcessData = (applyDetail, pomsNeedData = {
title: { title: {
keyWord: '标题', keyWord: '标题',
}, },
detail:{
keyWord: '问题详情'
},
pomsProjectId: { pomsProjectId: {
keyWord: '关联项目', keyWord: '关联项目',
fromDataSource: true fromDataSource: true

Loading…
Cancel
Save