Browse Source

feat:流转工单渲染

dev
zhaobing’ 1 year ago
parent
commit
1a2c442ae0
  1. 2
      api/app/lib/controllers/project/group.js
  2. 5
      web/client/src/sections/projectGroup/containers/statistic.jsx

2
api/app/lib/controllers/project/group.js

@ -289,12 +289,10 @@ async function groupStatistic (ctx) {
for(let i of pg.pomsProjectIds){
if(formRes && formRes.length > 0){
for (let f of formRes) {
console.log('formRes',f)
const parseData = parseProcessData({
formSchema: JSON.parse(f.formSchema),
formData: JSON.parse(f.formData)
})
console.log('parseData',parseData)
if(parseData.pomsProjectId.value===i){
activeOrderCount+=1
}

5
web/client/src/sections/projectGroup/containers/statistic.jsx

@ -78,9 +78,8 @@ const Statistic = (props) => {
key: 'strucCount',
}, {
title: '流转工单数',
dataIndex: "name",
key: 'name',
render: (_, row) => Math.floor(Math.random() * 10)
dataIndex: "activeOrderCount",
key: 'activeOrderCount',
}, {
title: '中断时长',
dataIndex: "maxOffLineTime",

Loading…
Cancel
Save