wenlele 2 years ago
parent
commit
40fd58d43d
  1. 2
      api/app/lib/controllers/project/group.js
  2. 2
      web/client/src/layout/components/header/components/customProjGroupModal.jsx

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

@ -266,7 +266,7 @@ async function groupStatisticOnline (ctx) {
"range": { "range": {
"collect_time": { "collect_time": {
"gte": `${moment().subtract(24, 'hours').format('YYYY-MM-DDTHH:mm:ss.SSS')}Z`, "gte": `${moment().subtract(24, 'hours').format('YYYY-MM-DDTHH:mm:ss.SSS')}Z`,
"gte": "2023-08-24T08:00:00.000Z", // "gte": "2023-08-24T08:00:00.000Z",
} }
} }
}, },

2
web/client/src/layout/components/header/components/customProjGroupModal.jsx

@ -52,7 +52,7 @@ const CustomProjGroupModal = (props) => {
}}> }}>
{({ formState, values, formApi }) => ( {({ formState, values, formApi }) => (
<> <>
<Form.Input field='name' label='名称' rules={[{ required: true, message: '请填写自定义分组名称' }]} maxLength={20} /> <Form.Input field='name' label='名称' rules={[{ required: true, message: '请填写自定义分组名称' }]} maxLength={15} />
<Form.Select multiple field="pomsProjectIds" label={{ text: '运维项目' }} style={{ width: '100%' }} rules={[{ required: true, message: '请选择运维项目' }]} > <Form.Select multiple field="pomsProjectIds" label={{ text: '运维项目' }} style={{ width: '100%' }} rules={[{ required: true, message: '请选择运维项目' }]} >
{ {
pomsList.map((item, index) => { pomsList.map((item, index) => {

Loading…
Cancel
Save