Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
98ab8fb4
Commit
98ab8fb4
authored
Dec 22, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '定时任务优化'
parent
3171cdf1
Pipeline
#83428
passed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
51 deletions
+37
-51
AddModalNew.jsx
...s/bsmanager/patrolMaintenance/maintenance/AddModalNew.jsx
+14
-1
OptionEditModal.jsx
...manager/patrolMaintenance/maintenance/OptionEditModal.jsx
+2
-39
BaseTimeConfig.jsx
...trolMaintenance/maintenance/components/BaseTimeConfig.jsx
+16
-2
AddModal.jsx
...ges/platformCenter/scheduledTasks/components/AddModal.jsx
+5
-9
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/AddModalNew.jsx
View file @
98ab8fb4
...
...
@@ -1214,7 +1214,20 @@ const AddModal = props => {
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"设备条件"
label=
{
<
div
className=
{
styles
.
labelItem
}
>
<
Tooltip
title=
"请使用SQL条件进行配置"
>
<
InfoCircleOutlined
style=
{
{
color
:
'rgb(24, 144, 255)'
,
marginLeft
:
'5px'
,
marginRight
:
'3px'
,
}
}
/>
</
Tooltip
>
设备条件
</
div
>
}
name=
"filterCondition"
labelCol=
{
{
span
:
5
}
}
rules=
{
[
...
...
src/pages/bsmanager/patrolMaintenance/maintenance/OptionEditModal.jsx
View file @
98ab8fb4
...
...
@@ -381,51 +381,14 @@ const OptionEditModal = props => {
<
Input
placeholder=
""
disabled
/>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
{
/*
<Col span={24}>
<Item
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
{
/* <Tooltip title={`存在${summaryValue}个外部字段`}>
<InfoCircleOutlined
style={{
color: 'red',
display: summaryIsShow,
}}
/>
</Tooltip> */
}
<span>卡片字段</span>
</div>
}
// name="CarField"
labelCol={{ span: 5 }}
// rules={[
// {
// validator: (rule, value) => {
// console.log(checkedList1);
// let aa = form.getFieldValue().SummaryFields;
// let bb = [];
// console.log(aa.split(','));
// aa.split(',').map(i => {
// if (i != '') {
// bb.push(i);
// }
// });
// console.log(bb);
// if (aa == '') {
// return Promise.reject('摘要字段必选');
// }
// if (bb.length < 1 || aa.split(',').length > 5) {
// return Promise.reject('最少配置一个字段,最多配置五个字段');
// }
// return Promise.resolve();
// },
// },
// {
// required: true,
// message: '请选择摘要字段',
// },
// ]}
>
<div style={{ display: 'flex' }}>
<Form.Item name="CarField" style={{ marginBottom: 0, width: '100%' }}>
...
...
@@ -439,7 +402,7 @@ const OptionEditModal = props => {
/>
</div>
</Item>
</
Col
>
</Col>
*/
}
<
Col
span=
{
24
}
>
<
Item
label=
{
...
...
src/pages/bsmanager/patrolMaintenance/maintenance/components/BaseTimeConfig.jsx
View file @
98ab8fb4
...
...
@@ -2,7 +2,8 @@
/* eslint-disable prefer-destructuring */
/* eslint-disable no-else-return */
// 基础信息配置
import
{
Form
,
Radio
,
Select
,
Row
,
Col
,
Switch
}
from
'antd'
;
import
{
Form
,
Radio
,
Select
,
Row
,
Col
,
Switch
,
Tooltip
}
from
'antd'
;
import
{
EditOutlined
,
InfoCircleOutlined
}
from
'@ant-design/icons'
;
import
React
,
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
styles
from
'./BaseTimeConfig.less'
;
...
...
@@ -765,7 +766,20 @@ const BaseConfig = (props, ref) => {
<
Form
.
Item
labelCol=
{
{
span
:
5
}
}
name=
"zqms"
label=
"周期模式"
label=
{
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
<
Tooltip
title=
"当类型为扫码巡检时,此时的周期配置为消息提醒的时间周期"
>
<
InfoCircleOutlined
style=
{
{
color
:
'rgb(24, 144, 255)'
,
marginLeft
:
'5px'
,
marginRight
:
'3px'
,
}
}
/>
</
Tooltip
>
周期模式
</
div
>
}
initialValue=
{
Unit
}
rules=
{
[
{
...
...
src/pages/platformCenter/scheduledTasks/components/AddModal.jsx
View file @
98ab8fb4
...
...
@@ -14,6 +14,7 @@ import {
Select
,
message
,
notification
,
Checkbox
,
}
from
'antd'
;
import
{
EditOutlined
,
InfoCircleOutlined
}
from
'@ant-design/icons'
;
import
moment
from
'moment'
;
...
...
@@ -137,7 +138,7 @@ const AddModal = props => {
setExeTime
(
moment
().
format
(
'YYYY-MM-DD 00:00:00'
));
setIsType
(
'重复执行'
);
changeLoopMode
(
'ByLoop'
);
setIsUse
(
tru
e
);
setIsUse
(
fals
e
);
setInterval
(
1
);
setLoop_unit
(
'Hour'
);
}
...
...
@@ -274,8 +275,8 @@ const AddModal = props => {
day_of_week
:
''
,
});
};
const
onChange
=
val
=>
{
setIsUse
(
val
);
const
onChange
=
e
=>
{
setIsUse
(
e
.
target
.
checked
);
};
const
handleExe
=
e
=>
{
let
obj
=
form
.
getFieldValue
();
...
...
@@ -580,12 +581,7 @@ const AddModal = props => {
</
div
>
</
Item
>
<
Item
label=
"禁用此计划"
style=
{
{
color
:
'#f00'
}
}
name=
"is_enable"
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
checked=
{
isUse
}
onChange=
{
onChange
}
/>
<
Checkbox
checked=
{
isUse
}
onChange=
{
onChange
}
/>
</
Item
>
</
Form
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment