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){ for(let i of pg.pomsProjectIds){
if(formRes && formRes.length > 0){ if(formRes && formRes.length > 0){
for (let f of formRes) { for (let f of formRes) {
console.log('formRes',f)
const parseData = parseProcessData({ const parseData = parseProcessData({
formSchema: JSON.parse(f.formSchema), formSchema: JSON.parse(f.formSchema),
formData: JSON.parse(f.formData) formData: JSON.parse(f.formData)
}) })
console.log('parseData',parseData)
if(parseData.pomsProjectId.value===i){ if(parseData.pomsProjectId.value===i){
activeOrderCount+=1 activeOrderCount+=1
} }

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

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

Loading…
Cancel
Save