From d45af19ceeb19497652479769fc0a1bef49f155d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Fri, 22 Sep 2023 11:18:10 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/schedule/workOrder.js | 2 ++ web/client/src/sections/projectGroup/containers/bigscreen.jsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index f835fcd..5499dbb 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -1,6 +1,8 @@ const schedule = require('node-schedule'); const moment = require('moment') +const request = require('request'); + let isDev = true module.exports = function (app, opts,ctx) { diff --git a/web/client/src/sections/projectGroup/containers/bigscreen.jsx b/web/client/src/sections/projectGroup/containers/bigscreen.jsx index 4890a67..2801d5a 100644 --- a/web/client/src/sections/projectGroup/containers/bigscreen.jsx +++ b/web/client/src/sections/projectGroup/containers/bigscreen.jsx @@ -143,7 +143,7 @@ const Bigscreen = (props) => { useEffect(() => { if(groupDetail?.pomsProjectIds&&groupDetail?.pomsProjectIds.length&&allProjects&&allProjects.length){ - const query=groupDetail?.pomsProjectIds + const query=groupDetail?.pomsProjectIds+'' dispatch(actions.projectGroup.getProjectWorkOrders({projectIds:query})).then(res=>{ if(res.success){ setProportion([...res.payload.data?.slice(0, 3)?.map(v => ({ name: allProjects?.find(item=>item.value===v.projectId)?.label, value: Number(v.count) })),