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
297ab520
Commit
297ab520
authored
May 11, 2021
by
shaoan123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除人工智能模块不需要的代码语句
parent
8add33af
Pipeline
#27399
passed with stages
in 19 minutes 9 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
14 deletions
+8
-14
predictionConfig.jsx
...cial/policiesIssued/predictionConfig/predictionConfig.jsx
+0
-2
strategyConfig.jsx
...tificial/policiesIssued/strategyConfig/strategyConfig.jsx
+0
-2
AddModal.jsx
src/pages/artificial/taskScheduling/AddModal.jsx
+5
-8
taskScheduling.jsx
src/pages/artificial/taskScheduling/taskScheduling.jsx
+3
-2
No files found.
src/pages/artificial/policiesIssued/predictionConfig/predictionConfig.jsx
View file @
297ab520
...
...
@@ -8,9 +8,7 @@ import AddModal from './AddModal'
const
VectorData
=
props
=>
{
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
// 弹窗显示
const
[
flag
,
setFlag
]
=
useState
(
0
);
// 更新list
const
[
loading
,
setLoading
]
=
useState
([]);
// 更新状态
const
[
type
,
setType
]
=
useState
(
''
);
// 弹窗类型
const
[
solutionNames
,
setSolutionNames
]
=
useState
(
''
);
const
[
formObj
,
setFormObj
]
=
useState
({
user
:
'admin'
,
password
:
'geoserver'
});
const
[
tileData
,
setTileData
]
=
useState
([]);
// table表格数据
const
[
visible
,
setVisible
]
=
useState
(
false
);
// 弹窗
...
...
src/pages/artificial/policiesIssued/strategyConfig/strategyConfig.jsx
View file @
297ab520
...
...
@@ -8,9 +8,7 @@ import AddModal from './AddModal'
const
VectorData
=
props
=>
{
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
// 弹窗显示
const
[
flag
,
setFlag
]
=
useState
(
0
);
// 更新list
const
[
loading
,
setLoading
]
=
useState
([]);
// 更新状态
const
[
type
,
setType
]
=
useState
(
''
);
// 弹窗类型
const
[
solutionNames
,
setSolutionNames
]
=
useState
(
''
);
const
[
formObj
,
setFormObj
]
=
useState
({
user
:
'admin'
,
password
:
'geoserver'
});
const
[
tileData
,
setTileData
]
=
useState
([]);
// table表格数据
const
[
visible
,
setVisible
]
=
useState
(
false
);
// 弹窗
...
...
src/pages/artificial/taskScheduling/AddModal.jsx
View file @
297ab520
...
...
@@ -13,8 +13,6 @@ import {
addTaskOptions
,
getPredictInfo
,
getStrategyInfo
,
updateTaskOptions
}
from
'@/services/intelligence/api'
;
const
{
RangePicker
}
=
DatePicker
;
const
{
TextArea
}
=
Input
;
const
AddModal
=
props
=>
{
const
{
callBackSubmit
=
()
=>
{
},
type
,
formObj
,
visible
,
deviceType
}
=
props
;
...
...
@@ -22,9 +20,8 @@ const AddModal = props => {
const
[
isloading
,
setIsLoading
]
=
useState
(
false
);
const
[
urlType
,
setUrlType
]
=
useState
(
''
);
const
[
scenarioList
,
setScenarioList
]
=
useState
([]);
const
[
intervalType
,
setIntervalType
]
=
useState
(
'分钟'
)
const
[
Intervals
,
setIntervals
]
=
useState
(
''
)
const
[
StrategyId
,
setStrategyId
]
=
useState
(
''
)
const
[
StrategyId
,
setStrategyId
]
=
useState
(
0
)
const
[
form
]
=
Form
.
useForm
();
const
{
Item
}
=
Form
;
...
...
@@ -53,6 +50,7 @@ const AddModal = props => {
}
});
};
//提示框
const
prompt
=
(
type
,
content
)
=>
{
if
(
type
==
'success'
)
{
notification
.
success
({
...
...
@@ -91,9 +89,8 @@ const AddModal = props => {
},
[
visible
]);
//选择任务类型
const
handleTaskType
=
(
value
)
=>
{
console
.
log
(
'formObj'
,
formObj
);
switch
(
value
)
{
case
'预测'
:
setUrlType
(
'predict'
)
...
...
@@ -178,8 +175,8 @@ const AddModal = props => {
{
scenarioList
.
length
?
scenarioList
.
map
((
item
,
index
)
=>
{
return
<
Select
.
Option
key=
{
index
}
id=
{
item
.
ID
}
value=
{
urlType
===
'predict'
?
item
.
PredictName
:
item
.
StrategyName
}
>
{
urlType
===
'predict'
?
item
.
PredictName
:
item
.
StrategyName
}
</
Select
.
Option
>
})
:
''
}
</
Select
>
</
Item
>
:
<
Item
label=
"
u
rl"
name=
"
u
rl"
label=
"
ApiU
rl"
name=
"
ApiU
rl"
>
<
Input
placeholder=
"请输入URL"
allowClear
/>
</
Item
>
}
...
...
src/pages/artificial/taskScheduling/taskScheduling.jsx
View file @
297ab520
import
{
Space
,
Table
,
Button
,
Popconfirm
,
notification
}
from
'antd'
;
import
{
Space
,
Table
,
Button
,
Popconfirm
,
notification
,
Spin
}
from
'antd'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
styles
from
'./taskScheduling.less'
import
{
...
...
@@ -142,6 +142,7 @@ const VectorData = props => {
return
(
<>
<
Spin
tip=
"loading..."
spinning=
{
treeLoading
}
>
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
tileBtn
}
>
<
Button
type=
"primary"
onClick=
{
()
=>
{
...
...
@@ -174,7 +175,7 @@ const VectorData = props => {
solutionNames=
{
solutionNames
}
/>
</
div
>
</
Spin
>
</>
)
}
...
...
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