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
1b61b19b
Commit
1b61b19b
authored
Jun 21, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
parents
a18f7114
8155e397
Pipeline
#74755
passed with stages
Changes
14
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
175 additions
and
59 deletions
+175
-59
BookConfigNew.jsx
src/pages/bsmanager/base/standingBook/BookConfigNew.jsx
+1
-0
standingBook.jsx
src/pages/bsmanager/base/standingBook/standingBook.jsx
+8
-0
AddModal.jsx
...ages/bsmanager/patrolMaintenance/maintenance/AddModal.jsx
+57
-35
maintenance.jsx
...s/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
+14
-2
FlowChartRt.jsx
...workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
+7
-4
AddGIS.jsx
...onents/flowChartComponents/nodeModalComponents/AddGIS.jsx
+6
-3
ConfigGIS.jsx
...nts/flowChartComponents/nodeModalComponents/ConfigGIS.jsx
+8
-3
index.jsx
src/pages/log/logCenter/index.jsx
+0
-0
index.less
src/pages/log/logCenter/index.less
+32
-0
AddModal.jsx
src/pages/platformCenter/hostmanager/gateWay/AddModal.jsx
+16
-5
gateWay.jsx
src/pages/platformCenter/hostmanager/gateWay/gateWay.jsx
+0
-7
config.js
src/routes/config.js
+6
-0
api.js
src/services/logCenter/api.js
+12
-0
api.js
src/services/maintenance/api.js
+8
-0
No files found.
src/pages/bsmanager/base/standingBook/BookConfigNew.jsx
View file @
1b61b19b
...
@@ -848,6 +848,7 @@ const BookConfigNew = props => {
...
@@ -848,6 +848,7 @@ const BookConfigNew = props => {
onOk=
{
viewSubmit
}
onOk=
{
viewSubmit
}
onCancel=
{
()
=>
{
onCancel=
{
()
=>
{
setAccountVisile
(
false
);
setAccountVisile
(
false
);
callBackSubmit
();
}
}
}
}
centered
centered
bodyStyle=
{
{
width
:
'100%'
,
height
:
'800px'
,
overflowY
:
'scorll'
}
}
bodyStyle=
{
{
width
:
'100%'
,
height
:
'800px'
,
overflowY
:
'scorll'
}
}
...
...
src/pages/bsmanager/base/standingBook/standingBook.jsx
View file @
1b61b19b
...
@@ -98,6 +98,14 @@ const StandingBook = props => {
...
@@ -98,6 +98,14 @@ const StandingBook = props => {
width
:
200
,
width
:
200
,
ellipsis
:
true
,
ellipsis
:
true
,
},
},
{
title
:
'父台账名称'
,
dataIndex
:
'PreName'
,
key
:
'PreName'
,
align
:
'center'
,
width
:
200
,
ellipsis
:
true
,
},
{
{
title
:
'台账字段'
,
title
:
'台账字段'
,
dataIndex
:
'fields'
,
dataIndex
:
'fields'
,
...
...
src/pages/bsmanager/patrolMaintenance/maintenance/AddModal.jsx
View file @
1b61b19b
...
@@ -33,6 +33,8 @@ import {
...
@@ -33,6 +33,8 @@ import {
CM_XWBPlan_feedbackTable
,
CM_XWBPlan_feedbackTable
,
CM_XWBPlan_DataEditORAdd
,
CM_XWBPlan_DataEditORAdd
,
CM_XWBPlan_DataList
,
CM_XWBPlan_DataList
,
CM_XWBPlan_DeviceAccountTable
,
GetParentDeviceTemplate
,
}
from
'@/services/maintenance/api'
;
}
from
'@/services/maintenance/api'
;
import
{
GetTaskSyncField
}
from
'@/services/PatrolFeedback/api'
;
import
{
GetTaskSyncField
}
from
'@/services/PatrolFeedback/api'
;
...
@@ -75,6 +77,7 @@ const AddModal = props => {
...
@@ -75,6 +77,7 @@ const AddModal = props => {
const
[
eventData
,
setEventData
]
=
useState
([]);
const
[
eventData
,
setEventData
]
=
useState
([]);
const
[
autoFlag
,
setAutoFlag
]
=
useState
(
false
);
// 禁用自动派发
const
[
autoFlag
,
setAutoFlag
]
=
useState
(
false
);
// 禁用自动派发
const
[
keepData
,
setKeepData
]
=
useState
(
''
);
const
[
keepData
,
setKeepData
]
=
useState
(
''
);
const
[
parentList
,
setParentList
]
=
useState
([]);
const
[
keep
,
setKeep
]
=
useState
([
const
[
keep
,
setKeep
]
=
useState
([
'任务编码'
,
'任务编码'
,
'设备编码'
,
'设备编码'
,
...
@@ -143,6 +146,7 @@ const AddModal = props => {
...
@@ -143,6 +146,7 @@ const AddModal = props => {
getEventData
();
getEventData
();
if
(
visible
)
{
if
(
visible
)
{
getRole
();
getRole
();
getParentList
();
if
(
type
===
'add'
)
{
if
(
type
===
'add'
)
{
setChee
(
'否'
);
setChee
(
'否'
);
form
.
setFieldsValue
({
isSubmit
:
'否'
,
docycle
:
'一周一次'
});
form
.
setFieldsValue
({
isSubmit
:
'否'
,
docycle
:
'一周一次'
});
...
@@ -162,6 +166,11 @@ const AddModal = props => {
...
@@ -162,6 +166,11 @@ const AddModal = props => {
setVisibleChecked1
(
data
.
autoAssign
==
'是'
);
setVisibleChecked1
(
data
.
autoAssign
==
'是'
);
console
.
log
(
data
);
console
.
log
(
data
);
data
&&
form
.
setFieldsValue
({
...
data
});
data
&&
form
.
setFieldsValue
({
...
data
});
if
(
data
.
parentBusinessName
)
{
form
.
setFieldsValue
({
parentId
:
data
.
parentId
});
}
else
{
form
.
setFieldsValue
({
parentId
:
''
});
}
let
mappingFields
=
JSON
.
parse
(
data
.
mappingFields
);
let
mappingFields
=
JSON
.
parse
(
data
.
mappingFields
);
getGetTaskSyncField
(
mappingFields
);
// 获取字段名数据
getGetTaskSyncField
(
mappingFields
);
// 获取字段名数据
...
@@ -189,6 +198,14 @@ const AddModal = props => {
...
@@ -189,6 +198,14 @@ const AddModal = props => {
getFeedbackTable
();
getFeedbackTable
();
},
[]);
},
[]);
const
getParentList
=
()
=>
{
GetParentDeviceTemplate
({
id
:
formObj
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
setParentList
(
res
.
data
);
}
});
};
// 获取关联事件数据
// 获取关联事件数据
const
getEventData
=
()
=>
{
const
getEventData
=
()
=>
{
GetCM_Event_LoadEventTable
().
then
(
res
=>
{
GetCM_Event_LoadEventTable
().
then
(
res
=>
{
...
@@ -208,13 +225,9 @@ const AddModal = props => {
...
@@ -208,13 +225,9 @@ const AddModal = props => {
};
};
const
getList
=
()
=>
{
const
getList
=
()
=>
{
CM_XWBPlan_AccountTable
().
then
(
res
=>
{
CM_XWBPlan_DeviceAccountTable
().
then
(
res
=>
{
if
(
res
.
msg
==
'Ok'
)
{
if
(
res
.
code
===
0
)
{
let
arr
=
[];
setTreeData
(
res
.
data
);
res
.
data
.
map
((
item
,
index
)
=>
{
arr
.
push
(
item
.
accountName
);
});
setTreeData
(
arr
);
}
}
});
});
};
};
...
@@ -484,6 +497,17 @@ const AddModal = props => {
...
@@ -484,6 +497,17 @@ const AddModal = props => {
return
<
TreeNode
value=
{
org
}
title=
{
org
}
key=
{
org
}
/>;
return
<
TreeNode
value=
{
org
}
title=
{
org
}
key=
{
org
}
/>;
};
};
const
mapTree
=
org
=>
{
if
(
org
.
Value
)
{
return
(
<
TreeNode
value=
{
org
.
Key
}
title=
{
org
.
Key
}
disabled
>
{
org
.
Value
.
map
(
item
=>
mapTree
(
item
))
}
</
TreeNode
>
);
}
return
<
TreeNode
value=
{
org
}
title=
{
org
}
key=
{
org
}
/>;
};
// 获取字段名数据
// 获取字段名数据
const
getGetTaskSyncField
=
e
=>
{
const
getGetTaskSyncField
=
e
=>
{
// 编辑时处理数据为下拉框过滤调已选数据
// 编辑时处理数据为下拉框过滤调已选数据
...
@@ -535,14 +559,11 @@ const AddModal = props => {
...
@@ -535,14 +559,11 @@ const AddModal = props => {
let
lastFrom
=
[];
let
lastFrom
=
[];
let
lastTo
=
[];
let
lastTo
=
[];
console
.
log
(
from
);
console
.
log
(
keep
);
keep
.
map
(
j
=>
{
keep
.
map
(
j
=>
{
if
(
from
.
indexOf
(
j
)
==
-
1
)
{
if
(
from
.
indexOf
(
j
)
==
-
1
)
{
lastFrom
.
push
(
j
);
lastFrom
.
push
(
j
);
}
}
});
});
console
.
log
(
lastFrom
);
setKeepData
(
lastFrom
);
setKeepData
(
lastFrom
);
keepAll
.
map
(
j
=>
{
keepAll
.
map
(
j
=>
{
...
@@ -550,7 +571,6 @@ const AddModal = props => {
...
@@ -550,7 +571,6 @@ const AddModal = props => {
lastTo
.
push
(
j
);
lastTo
.
push
(
j
);
}
}
});
});
console
.
log
(
lastTo
);
setKeepTree
(
lastTo
);
setKeepTree
(
lastTo
);
}
}
...
@@ -571,13 +591,11 @@ const AddModal = props => {
...
@@ -571,13 +591,11 @@ const AddModal = props => {
// 改变关联事件类型
// 改变关联事件类型
const
onChangeEvent
=
(
e
,
i
)
=>
{
const
onChangeEvent
=
(
e
,
i
)
=>
{
console
.
log
(
e
,
i
,
'666'
);
if
(
!
i
||
!
e
)
{
if
(
!
i
||
!
e
)
{
setKeepData
(
keep
);
setKeepData
(
keep
);
formAdd
.
resetFields
();
formAdd
.
resetFields
();
}
}
let
aa
=
keepAllData
.
find
(
i
=>
i
.
name
===
e
);
let
aa
=
keepAllData
.
find
(
i
=>
i
.
name
===
e
);
console
.
log
(
keepAllData
,
e
,
'666'
);
if
(
aa
)
{
if
(
aa
)
{
getReloadTableField
(
aa
.
tableName
,
i
);
// 找到关联事件对应事件表获取对应表的所有字段
getReloadTableField
(
aa
.
tableName
,
i
);
// 找到关联事件对应事件表获取对应表的所有字段
}
}
...
@@ -588,8 +606,6 @@ const AddModal = props => {
...
@@ -588,8 +606,6 @@ const AddModal = props => {
tableName
:
e
,
tableName
:
e
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
msg
===
'Ok'
)
{
if
(
res
.
msg
===
'Ok'
)
{
console
.
log
(
res
.
data
.
root
);
console
.
log
(
i
);
setKeepAll
(
res
.
data
.
root
);
setKeepAll
(
res
.
data
.
root
);
// 编辑时过滤下l拉框初始数据
// 编辑时过滤下l拉框初始数据
if
(
i
)
{
if
(
i
)
{
...
@@ -606,7 +622,6 @@ const AddModal = props => {
...
@@ -606,7 +622,6 @@ const AddModal = props => {
lastTo
.
push
(
b
);
lastTo
.
push
(
b
);
}
}
});
});
console
.
log
(
lastTo
);
setKeepTree
(
lastTo
);
setKeepTree
(
lastTo
);
}
else
{
}
else
{
setKeepTree
(
res
.
data
.
root
);
setKeepTree
(
res
.
data
.
root
);
...
@@ -632,7 +647,6 @@ const AddModal = props => {
...
@@ -632,7 +647,6 @@ const AddModal = props => {
aa
.
push
({
name
:
item
,
key
:
index
,
ID
:
index
,
children
:
arr
[
item
]
});
aa
.
push
({
name
:
item
,
key
:
index
,
ID
:
index
,
children
:
arr
[
item
]
});
bb
.
push
(
item
);
bb
.
push
(
item
);
});
});
console
.
log
(
aa
,
'aaaaaaaaaaaaa'
);
// setKeepTree(aa);
// setKeepTree(aa);
// setKeepAll(aa);
// setKeepAll(aa);
// all.current = aa;
// all.current = aa;
...
@@ -749,6 +763,7 @@ const AddModal = props => {
...
@@ -749,6 +763,7 @@ const AddModal = props => {
<
Select
placeholder=
"选择业务类型"
onSearch=
{
inputType
}
showSearch
>
<
Select
placeholder=
"选择业务类型"
onSearch=
{
inputType
}
showSearch
>
<
Option
value=
"巡检"
>
巡检
</
Option
>
<
Option
value=
"巡检"
>
巡检
</
Option
>
<
Option
value=
"保养"
>
保养
</
Option
>
<
Option
value=
"保养"
>
保养
</
Option
>
<
Option
value=
"水厂"
>
水厂
</
Option
>
</
Select
>
</
Select
>
</
Item
>
</
Item
>
</
Col
>
</
Col
>
...
@@ -764,22 +779,6 @@ const AddModal = props => {
...
@@ -764,22 +779,6 @@ const AddModal = props => {
>
>
{
characteristics1
.
map
(
i
=>
mapTreeSelect
(
i
))
}
{
characteristics1
.
map
(
i
=>
mapTreeSelect
(
i
))
}
</
TreeSelect
>
</
TreeSelect
>
{
/* <Select placeholder="选择计划执行周期">
<Option value="一日一次">一日一次</Option>
<Option value="一周一次">一周一次</Option>
<Option value="半月一次">半月一次</Option>
<Option value="一月一次">一月一次</Option>
<Option value="季度一次">季度一次</Option>
<Option value="半年一次">半年一次</Option>
<Option value="一年一次">一年一次</Option>
<Option value="1小时一次">1小时一次</Option>
<Option value="2小时一次">2小时一次</Option>
<Option value="3小时一次">3小时一次</Option>
<Option value="4小时一次">4小时一次</Option>
<Option value="6小时一次">6小时一次</Option>
<Option value="8小时一次">8小时一次</Option>
<Option value="12小时一次">12小时一次</Option>
</Select> */
}
</
Item
>
</
Item
>
</
Col
>
</
Col
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
...
@@ -790,7 +789,7 @@ const AddModal = props => {
...
@@ -790,7 +789,7 @@ const AddModal = props => {
rules=
{
[
rules=
{
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入业务名称
'
,
message
:
'请
选择维保设备
'
,
},
},
{
{
validator
:
(
rule
,
value
)
=>
{
validator
:
(
rule
,
value
)
=>
{
...
@@ -802,7 +801,7 @@ const AddModal = props => {
...
@@ -802,7 +801,7 @@ const AddModal = props => {
},
},
]
}
]
}
>
>
<
Select
placeholder=
"选择此计划关联的设备台账名称"
showSearch
>
{
/*
<Select placeholder="选择此计划关联的设备台账名称" showSearch>
{treeData
{treeData
? treeData.map((item, index) => (
? treeData.map((item, index) => (
<Option key={index} value={item}>
<Option key={index} value={item}>
...
@@ -810,6 +809,29 @@ const AddModal = props => {
...
@@ -810,6 +809,29 @@ const AddModal = props => {
</Option>
</Option>
))
))
: ''}
: ''}
</Select> */
}
<
TreeSelect
showSearch
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
placeholder=
"请选择执行周期"
allowClear
treeDefaultExpandAll
showCheckedStrategy
>
{
treeData
.
map
(
i
=>
mapTree
(
i
))
}
</
TreeSelect
>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"父业务模板"
name=
"parentId"
labelCol=
{
{
span
:
5
}
}
>
<
Select
placeholder=
"选择父业务模板"
showSearch
allowClear
>
{
parentList
?
parentList
.
map
((
item
,
index
)
=>
(
<
Option
key=
{
index
.
ID
}
value=
{
item
.
ID
}
>
{
item
.
TemplateName
}
</
Option
>
))
:
''
}
</
Select
>
</
Select
>
</
Item
>
</
Item
>
</
Col
>
</
Col
>
...
...
src/pages/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
View file @
1b61b19b
...
@@ -10,7 +10,13 @@ import {
...
@@ -10,7 +10,13 @@ import {
GetDeviceConfigList
,
GetDeviceConfigList
,
EditDeviceConfig
,
EditDeviceConfig
,
}
from
'@/services/maintenance/api'
;
}
from
'@/services/maintenance/api'
;
import
{
EditTwoTone
,
DeleteOutlined
,
PlusOutlined
,
OrderedListOutlined
}
from
'@ant-design/icons'
;
import
{
EditTwoTone
,
DeleteOutlined
,
PlusOutlined
,
OrderedListOutlined
,
ApartmentOutlined
,
}
from
'@ant-design/icons'
;
import
styles
from
'./maintenance.less'
;
import
styles
from
'./maintenance.less'
;
import
AddModal
from
'./AddModal'
;
import
AddModal
from
'./AddModal'
;
import
OptionEditModal
from
'./OptionEditModal'
;
import
OptionEditModal
from
'./OptionEditModal'
;
...
@@ -355,11 +361,17 @@ const maintenance = () => {
...
@@ -355,11 +361,17 @@ const maintenance = () => {
</
Tooltip
>
</
Tooltip
>
),
),
},
},
{
title
:
'父业务模板'
,
dataIndex
:
'parentBusinessName'
,
key
:
'parentBusinessName'
,
width
:
100
,
align
:
'center'
,
},
{
{
title
:
'反馈名称'
,
title
:
'反馈名称'
,
dataIndex
:
'feedbackName'
,
dataIndex
:
'feedbackName'
,
key
:
'feedbackName'
,
key
:
'feedbackName'
,
onCell
:
()
=>
({
onCell
:
()
=>
({
style
:
{
style
:
{
maxWidth
:
200
,
maxWidth
:
200
,
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
View file @
1b61b19b
...
@@ -1082,9 +1082,11 @@ const FlowChart = props => {
...
@@ -1082,9 +1082,11 @@ const FlowChart = props => {
const
jsonData
=
val
=>
{
const
jsonData
=
val
=>
{
let
listArr
=
[];
let
listArr
=
[];
val
.
map
((
item
,
index
)
=>
{
val
.
map
((
item
,
index
)
=>
{
if
(
!
item
.
Config
){
console
.
log
(
item
);
debugger
;
if
(
!
item
.
Config
)
{
console
.
log
(
item
);
console
.
log
(
item
);
debugger
debugger
;
let
arr
=
[];
let
arr
=
[];
arr
.
push
({
arr
.
push
({
mapServer
:
item
.
schemeName
,
mapServer
:
item
.
schemeName
,
...
@@ -1108,6 +1110,7 @@ const FlowChart = props => {
...
@@ -1108,6 +1110,7 @@ const FlowChart = props => {
fromData
:
{
fromData
:
{
tableName
:
item
.
TableName
,
tableName
:
item
.
TableName
,
filed
:
item
.
Fields
,
filed
:
item
.
Fields
,
filedShape
:
item
.
tableShape
,
},
},
toData
:
arr
,
toData
:
arr
,
},
},
...
@@ -1118,6 +1121,7 @@ const FlowChart = props => {
...
@@ -1118,6 +1121,7 @@ const FlowChart = props => {
fromData
:
{
fromData
:
{
tableName
:
item
.
TableName
,
tableName
:
item
.
TableName
,
filed
:
item
.
Fields
,
filed
:
item
.
Fields
,
filedShape
:
item
.
tableShape
,
},
},
toData
:
arr
,
toData
:
arr
,
},
},
...
@@ -1126,10 +1130,9 @@ const FlowChart = props => {
...
@@ -1126,10 +1130,9 @@ const FlowChart = props => {
let
json
=
JSON
.
stringify
(
obj
);
let
json
=
JSON
.
stringify
(
obj
);
let
newObj
=
{
Config
:
json
,
BackfillType
:
'GIS'
,
RuleName
:
item
.
RuleName
};
let
newObj
=
{
Config
:
json
,
BackfillType
:
'GIS'
,
RuleName
:
item
.
RuleName
};
listArr
.
push
(
newObj
);
listArr
.
push
(
newObj
);
}
else
{
}
else
{
listArr
.
push
(
item
);
listArr
.
push
(
item
);
}
}
});
});
return
listArr
;
return
listArr
;
};
};
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/AddGIS.jsx
View file @
1b61b19b
...
@@ -43,6 +43,7 @@ const AddModal = props => {
...
@@ -43,6 +43,7 @@ const AddModal = props => {
const
[
tableType
,
setTableType
]
=
useState
();
const
[
tableType
,
setTableType
]
=
useState
();
const
[
tableName
,
setTableName
]
=
useState
();
const
[
tableName
,
setTableName
]
=
useState
();
const
[
ruleList
,
setRuleList
]
=
useState
([]);
const
[
ruleList
,
setRuleList
]
=
useState
([]);
const
[
tableShape
,
setTableShape
]
=
useState
();
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -54,7 +55,9 @@ const AddModal = props => {
...
@@ -54,7 +55,9 @@ const AddModal = props => {
setRuleList
(
arr
);
setRuleList
(
arr
);
getSchemeList
();
getSchemeList
();
if
(
modalType
===
'edit'
)
{
if
(
modalType
===
'edit'
)
{
console
.
log
(
msg
);
form
.
setFieldsValue
(
msg
);
form
.
setFieldsValue
(
msg
);
setTableShape
(
msg
.
tableShape
);
setTableType
(
msg
.
tableType
);
setTableType
(
msg
.
tableType
);
setTableName
(
msg
.
TableName
);
setTableName
(
msg
.
TableName
);
}
}
...
@@ -104,8 +107,6 @@ const AddModal = props => {
...
@@ -104,8 +107,6 @@ const AddModal = props => {
const
getLayerFields
=
(
val
,
key
,
value
,
typeFields
)
=>
{
const
getLayerFields
=
(
val
,
key
,
value
,
typeFields
)
=>
{
let
obj
=
form
.
getFieldsValue
();
let
obj
=
form
.
getFieldsValue
();
let
newValue
=
value
?
value
:
schemeValue
;
let
newValue
=
value
?
value
:
schemeValue
;
console
.
log
(
schemeValue
);
debugger
;
let
data
=
newValue
.
find
(
i
=>
i
.
servicename
===
obj
.
schemeName
);
let
data
=
newValue
.
find
(
i
=>
i
.
servicename
===
obj
.
schemeName
);
GetLayerFields
({
GetLayerFields
({
mapServer
:
data
.
servicename
,
mapServer
:
data
.
servicename
,
...
@@ -141,6 +142,7 @@ const AddModal = props => {
...
@@ -141,6 +142,7 @@ const AddModal = props => {
arr
.
push
(...
item
.
TableFields
);
arr
.
push
(...
item
.
TableFields
);
});
});
let
data
=
arr
.
find
(
i
=>
i
.
FieldName
===
val
[
Object
.
keys
(
val
)[
0
]]);
let
data
=
arr
.
find
(
i
=>
i
.
FieldName
===
val
[
Object
.
keys
(
val
)[
0
]]);
setTableShape
(
data
.
FiledShape
);
setTableType
(
data
.
type
);
setTableType
(
data
.
type
);
setType
(
data
.
FiledType
);
setType
(
data
.
FiledType
);
setTableName
(
data
.
table
);
setTableName
(
data
.
table
);
...
@@ -178,7 +180,8 @@ const AddModal = props => {
...
@@ -178,7 +180,8 @@ const AddModal = props => {
}
else
{
}
else
{
obj
=
{
...
validate
,
key
:
msg
.
ID
||
msg
.
key
,
...
arr
};
obj
=
{
...
validate
,
key
:
msg
.
ID
||
msg
.
key
,
...
arr
};
}
}
onSubumit
(
obj
,
modalType
,
tableType
,
tableName
);
debugger
onSubumit
(
obj
,
modalType
,
tableType
,
tableName
,
tableShape
);
}
}
});
});
};
};
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/ConfigGIS.jsx
View file @
1b61b19b
...
@@ -81,6 +81,8 @@ const ConfigGIS = (props, ref) => {
...
@@ -81,6 +81,8 @@ const ConfigGIS = (props, ref) => {
let
obj
=
{};
let
obj
=
{};
if
(
item
.
Config
)
{
if
(
item
.
Config
)
{
let
newConfig
=
JSON
.
parse
(
item
.
Config
);
let
newConfig
=
JSON
.
parse
(
item
.
Config
);
console
.
log
(
newConfig
);
debugger
if
(
newConfig
.
mapping
)
{
if
(
newConfig
.
mapping
)
{
let
users
=
[];
let
users
=
[];
newConfig
.
mapping
[
0
].
toData
.
map
((
x
,
y
)
=>
{
newConfig
.
mapping
[
0
].
toData
.
map
((
x
,
y
)
=>
{
...
@@ -90,6 +92,7 @@ const ConfigGIS = (props, ref) => {
...
@@ -90,6 +92,7 @@ const ConfigGIS = (props, ref) => {
obj
.
ID
=
index
;
obj
.
ID
=
index
;
obj
.
RuleName
=
item
.
RuleName
;
obj
.
RuleName
=
item
.
RuleName
;
obj
.
TableName
=
newConfig
.
mapping
[
0
].
fromData
.
tableName
;
obj
.
TableName
=
newConfig
.
mapping
[
0
].
fromData
.
tableName
;
obj
.
tableShape
=
newConfig
.
mapping
[
0
].
fromData
.
filedShape
;
obj
.
key
=
index
;
obj
.
key
=
index
;
obj
.
nodeName1
=
newConfig
.
mapping
[
0
].
toData
[
0
].
tableName
;
obj
.
nodeName1
=
newConfig
.
mapping
[
0
].
toData
[
0
].
tableName
;
obj
.
nodeValue1
=
newConfig
.
mapping
[
0
].
toData
[
0
].
filed
;
obj
.
nodeValue1
=
newConfig
.
mapping
[
0
].
toData
[
0
].
filed
;
...
@@ -112,6 +115,7 @@ const ConfigGIS = (props, ref) => {
...
@@ -112,6 +115,7 @@ const ConfigGIS = (props, ref) => {
obj
.
ID
=
index
;
obj
.
ID
=
index
;
obj
.
RuleName
=
item
.
RuleName
;
obj
.
RuleName
=
item
.
RuleName
;
obj
.
TableName
=
newConfig
.
relationFormMapping
[
0
].
fromData
.
tableName
;
obj
.
TableName
=
newConfig
.
relationFormMapping
[
0
].
fromData
.
tableName
;
obj
.
tableShape
=
newConfig
.
relationFormMapping
[
0
].
fromData
.
filedShape
;
obj
.
key
=
index
;
obj
.
key
=
index
;
obj
.
nodeName1
=
newConfig
.
relationFormMapping
[
0
].
toData
[
0
].
tableName
;
obj
.
nodeName1
=
newConfig
.
relationFormMapping
[
0
].
toData
[
0
].
tableName
;
obj
.
nodeValue1
=
newConfig
.
relationFormMapping
[
0
].
toData
[
0
].
filed
;
obj
.
nodeValue1
=
newConfig
.
relationFormMapping
[
0
].
toData
[
0
].
filed
;
...
@@ -176,20 +180,21 @@ const ConfigGIS = (props, ref) => {
...
@@ -176,20 +180,21 @@ const ConfigGIS = (props, ref) => {
setviewMsg
(
val
);
setviewMsg
(
val
);
};
};
// GIS配置确定回调
// GIS配置确定回调
const
saveView
=
(
val
,
type
,
tableType
,
TableName
)
=>
{
const
saveView
=
(
val
,
type
,
tableType
,
TableName
,
tableShape
)
=>
{
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
tableData
.
current
));
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
tableData
.
current
));
// eslint-disable-next-line prefer-spread
// eslint-disable-next-line prefer-spread
let
newKey
=
list
.
length
>
0
?
Math
.
max
.
apply
(
Math
,
list
.
map
(
item
=>
item
.
key
))
+
1
:
0
;
let
newKey
=
list
.
length
>
0
?
Math
.
max
.
apply
(
Math
,
list
.
map
(
item
=>
item
.
key
))
+
1
:
0
;
if
(
type
===
'add'
)
{
if
(
type
===
'add'
)
{
list
.
push
({
...
val
,
key
:
newKey
,
tableType
,
TableName
});
list
.
push
({
...
val
,
key
:
newKey
,
tableType
,
TableName
,
tableShape
});
}
else
{
}
else
{
let
edtiIndex
=
list
.
findIndex
(
item
=>
item
.
key
===
val
.
key
);
let
edtiIndex
=
list
.
findIndex
(
item
=>
item
.
key
===
val
.
key
);
list
[
edtiIndex
]
=
{
...
val
,
key
:
newKey
,
tableType
,
TableName
};
list
[
edtiIndex
]
=
{
...
val
,
key
:
newKey
,
tableType
,
TableName
,
tableShape
};
}
}
tableData
.
current
=
list
;
tableData
.
current
=
list
;
console
.
log
(
list
);
console
.
log
(
list
);
debugger
nodeChage
(
'FlowNodeBackfillConfigs'
,
tableData
.
current
);
nodeChage
(
'FlowNodeBackfillConfigs'
,
tableData
.
current
);
setViewModal
(
false
);
setViewModal
(
false
);
};
};
...
...
src/pages/log/logCenter/index.jsx
0 → 100644
View file @
1b61b19b
This diff is collapsed.
Click to expand it.
src/pages/log/logCenter/index.less
0 → 100644
View file @
1b61b19b
.centerLog {
width: 100%;
height: 100%;
.head {
padding: 10px;
background: white;
margin-bottom: 2px;
width: 100%;
height: 52px;
}
.table {
height: calc(100% - 95px);
width: 100%;
background-color: white;
padding: 10px;
overflow: hidden;
margin-bottom: 3px;
}
.footer{
width: 100%;
height: 42px;
background-color: white;
display: flex;
justify-content: flex-end;
padding: 10px;
}
.icon {
margin-top: -5px !important;
vertical-align: text-bottom;
}
}
src/pages/platformCenter/hostmanager/gateWay/AddModal.jsx
View file @
1b61b19b
...
@@ -17,6 +17,7 @@ import { SaveRoutes } from '@/services/hostmanager/hostmanager';
...
@@ -17,6 +17,7 @@ import { SaveRoutes } from '@/services/hostmanager/hostmanager';
import
{
InfoCircleOutlined
}
from
'@ant-design/icons'
;
import
{
InfoCircleOutlined
}
from
'@ant-design/icons'
;
const
{
Item
}
=
Form
;
const
{
Item
}
=
Form
;
const
{
TextArea
}
=
Input
;
const
AddModal
=
props
=>
{
const
AddModal
=
props
=>
{
const
{
callBackSubmit
=
()
=>
{},
type
,
pickItem
,
visible
,
onCancel
,
keepData
}
=
props
;
const
{
callBackSubmit
=
()
=>
{},
type
,
pickItem
,
visible
,
onCancel
,
keepData
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
...
@@ -40,6 +41,7 @@ const AddModal = props => {
...
@@ -40,6 +41,7 @@ const AddModal = props => {
IsAuthentication
:
pickItem
.
isAuthentication
,
IsAuthentication
:
pickItem
.
isAuthentication
,
Key
:
pickItem
.
key
,
Key
:
pickItem
.
key
,
Priority
:
pickItem
.
priority
,
Priority
:
pickItem
.
priority
,
Remark
:
pickItem
.
remark
,
UpstreamHost
:
pickItem
.
upstreamHost
,
UpstreamHost
:
pickItem
.
upstreamHost
,
AddHeasersToRequest
:
pickItem
.
addHeasersToRequest
,
AddHeasersToRequest
:
pickItem
.
addHeasersToRequest
,
UpstreamHeaderTransform
:
pickItem
.
upstreamHeaderTransform
,
UpstreamHeaderTransform
:
pickItem
.
upstreamHeaderTransform
,
...
@@ -103,6 +105,7 @@ const AddModal = props => {
...
@@ -103,6 +105,7 @@ const AddModal = props => {
Url
:
obj
.
Url
||
null
,
Url
:
obj
.
Url
||
null
,
IsAuthentication
:
obj
.
IsAuthentication
,
IsAuthentication
:
obj
.
IsAuthentication
,
Key
:
obj
.
Key
||
null
,
Key
:
obj
.
Key
||
null
,
Remark
:
obj
.
Remark
||
null
,
Priority
:
obj
.
Priority
||
0
,
Priority
:
obj
.
Priority
||
0
,
UpstreamHost
:
obj
.
UpstreamHost
||
null
,
UpstreamHost
:
obj
.
UpstreamHost
||
null
,
AddHeasersToRequest
:
obj
.
AddHeasersToRequest
||
null
,
AddHeasersToRequest
:
obj
.
AddHeasersToRequest
||
null
,
...
@@ -239,7 +242,7 @@ const AddModal = props => {
...
@@ -239,7 +242,7 @@ const AddModal = props => {
},
},
]
}
]
}
>
>
<
Input
allowClear
placeholder=
"示例:/{url}"
disabled=
{
hidden
}
/>
<
Input
allowClear
placeholder=
"示例:/{url}"
disabled=
{
hidden
}
/>
</
Item
>
</
Item
>
<
Item
<
Item
label=
"上游请求方式"
label=
"上游请求方式"
...
@@ -275,10 +278,6 @@ const AddModal = props => {
...
@@ -275,10 +278,6 @@ const AddModal = props => {
label=
"关键字"
label=
"关键字"
name=
"Key"
name=
"Key"
rules=
{
[
rules=
{
[
{
required
:
true
,
message
:
'请输入关键字'
,
},
{
{
validator
:
(
rule
,
value
)
=>
{
validator
:
(
rule
,
value
)
=>
{
let
val
=
form
.
getFieldValue
().
Key
;
let
val
=
form
.
getFieldValue
().
Key
;
...
@@ -300,6 +299,18 @@ const AddModal = props => {
...
@@ -300,6 +299,18 @@ const AddModal = props => {
>
>
<
Input
allowClear
disabled=
{
hidden
}
/>
<
Input
allowClear
disabled=
{
hidden
}
/>
</
Item
>
</
Item
>
<
Item
label=
"备注"
name=
"Remark"
rules=
{
[
{
required
:
true
,
message
:
'请填写备注'
,
},
]
}
>
<
TextArea
placeholder=
"请填写备注"
allowClear
/>
</
Item
>
<
Row
>
<
Row
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
Item
<
Item
...
...
src/pages/platformCenter/hostmanager/gateWay/gateWay.jsx
View file @
1b61b19b
...
@@ -69,13 +69,6 @@ const GateConfig = () => {
...
@@ -69,13 +69,6 @@ const GateConfig = () => {
console
.
log
(
checked
);
console
.
log
(
checked
);
if
(
checked
)
{
if
(
checked
)
{
setAllLoading
(
true
);
setAllLoading
(
true
);
// axios({
// method: 'get',
// url: `${tableData[0].url}/PandaOMS/OMS/health/get`,
// }).then(res => {
// console.log(res);
// debugger;
// });
GetWayHealthCheck
().
then
(
resData
=>
{
GetWayHealthCheck
().
then
(
resData
=>
{
setAllLoading
(
false
);
setAllLoading
(
false
);
if
(
resData
.
code
===
0
)
{
if
(
resData
.
code
===
0
)
{
...
...
src/routes/config.js
View file @
1b61b19b
...
@@ -167,6 +167,7 @@ const MobileConfigPage = asyncComponent(() => import('@/pages/productCenter/mobi
...
@@ -167,6 +167,7 @@ const MobileConfigPage = asyncComponent(() => import('@/pages/productCenter/mobi
const
ServiceLog
=
asyncComponent
(()
=>
import
(
'@/pages/log/serviceLog'
));
const
ServiceLog
=
asyncComponent
(()
=>
import
(
'@/pages/log/serviceLog'
));
const
LoginLog
=
asyncComponent
(()
=>
import
(
'@/pages/log/loginLog'
));
const
LoginLog
=
asyncComponent
(()
=>
import
(
'@/pages/log/loginLog'
));
const
OmsLog
=
asyncComponent
(()
=>
import
(
'@/pages/log/omsLog'
));
const
OmsLog
=
asyncComponent
(()
=>
import
(
'@/pages/log/omsLog'
));
const
LogCenter
=
asyncComponent
(()
=>
import
(
'@/pages/log/logCenter'
));
const
superAuthority
=
[
USER_MODE
.
SUPER
];
const
superAuthority
=
[
USER_MODE
.
SUPER
];
const
adminAuthority
=
[...
superAuthority
,
USER_MODE
.
ADMIN
];
const
adminAuthority
=
[...
superAuthority
,
USER_MODE
.
ADMIN
];
const
iconStyle
=
{
verticalAlign
:
'middle'
};
const
iconStyle
=
{
verticalAlign
:
'middle'
};
...
@@ -529,6 +530,11 @@ export default {
...
@@ -529,6 +530,11 @@ export default {
name
:
'运维痕迹'
,
name
:
'运维痕迹'
,
component
:
OmsLog
,
component
:
OmsLog
,
},
},
{
path
:
'/system/logCenter'
,
name
:
'日志管理'
,
component
:
LogCenter
,
},
],
],
},
},
],
],
...
...
src/services/logCenter/api.js
0 → 100644
View file @
1b61b19b
/* eslint-disable camelcase */
/*
* @Description:
* @Author: leizhe
* @Date: 2021-09-27 09:42:21
* @LastEditTime: 2022-04-19 14:56:50
* @LastEditors: leizhe
*/
import
{
get
,
PUBLISH_SERVICE
,
post
,
postForm
}
from
'../index'
;
// 获取错误日志、业务日志、第三方调用日志
export
const
GetCallLogPages
=
data
=>
post
(
`/PandaCore/GCK/Log/GetCallLogPages`
,
data
);
src/services/maintenance/api.js
View file @
1b61b19b
...
@@ -24,6 +24,10 @@ export const CM_XWBPlan_DataList = query =>
...
@@ -24,6 +24,10 @@ export const CM_XWBPlan_DataList = query =>
export
const
CM_XWBPlan_AccountTable
=
query
=>
export
const
CM_XWBPlan_AccountTable
=
query
=>
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_AccountTable`
,
query
);
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_AccountTable`
,
query
);
// 巡维保计划关联设备台账表、普通台账
export
const
CM_XWBPlan_DeviceAccountTable
=
query
=>
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_DeviceAccountTable`
,
query
);
// 计划关联反馈台账表
// 计划关联反馈台账表
export
const
CM_XWBPlan_feedbackTable
=
query
=>
export
const
CM_XWBPlan_feedbackTable
=
query
=>
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_feedbackTable`
,
query
);
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_feedbackTable`
,
query
);
...
@@ -39,3 +43,7 @@ export const CM_XWBPlan_DataEditORAdd = data =>
...
@@ -39,3 +43,7 @@ export const CM_XWBPlan_DataEditORAdd = data =>
// 巡维保计划数据编辑OR添加
// 巡维保计划数据编辑OR添加
export
const
CM_XWBPlan_ChangeOrder
=
planIds
=>
export
const
CM_XWBPlan_ChangeOrder
=
planIds
=>
post
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_ChangeOrder?planIds=
${
planIds
}
`
);
post
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/CM_XWBPlan_ChangeOrder?planIds=
${
planIds
}
`
);
// 获取父级维保模板
export
const
GetParentDeviceTemplate
=
query
=>
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/GetParentDeviceTemplate`
,
query
);
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