Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
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
wisdom-components
Commits
9124644e
Commit
9124644e
authored
Dec 06, 2022
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 组态修改
parent
060c540a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
32 deletions
+24
-32
EC_ConfigurationView.md
...mponents/EC_ConfigurationView/src/EC_ConfigurationView.md
+9
-9
Basic.tsx
...xtend-components/EC_ConfigurationView/src/demos/Basic.tsx
+8
-7
index.js
packages/extend-components/EC_ConfigurationView/src/index.js
+5
-3
index.less
...ges/extend-components/EC_ConfigurationView/src/index.less
+2
-13
No files found.
packages/extend-components/EC_ConfigurationView/src/EC_ConfigurationView.md
View file @
9124644e
...
...
@@ -23,12 +23,12 @@ group:
## API
| 参数
| 说明
| 类型 | 默认值 |
| ----------------
------- |
------------------------------- | ------- | ------ |
| name
`必需`
| 画板名称
| string | '' |
| devices
`必需`
| 画板设备
| array |
[
] |
| deviceName
| 画板设备名称
| array |
[
] |
| dictionaryParams
`必需`
| 图标颜色数据字典参数
| object | {} |
| config
`必需`
| 全局 globalConfig
| object | {} |
| isZoom
| 是否可缩放(手持上建议设置 true)
| boolean | false |
| flowShow
| 是否水流效果(无数据表现)
| boolean | true |
| 参数
| 说明
| 类型 | 默认值 |
| ----------------
| -
------------------------------- | ------- | ------ |
| name
`必需`
| 画板名称
| string | '' |
| devices
`必需`
| 画板设备
| array |
[
] |
| deviceName
| 画板设备名称
| array |
[
] |
| dictionaryParams
| 图标颜色数据字典参数
| object | {} |
| config
| 全局 globalConfig,没有时需要传递
| object | {} |
| isZoom
| 是否可缩放(手持上建议设置 true)
| boolean | false |
| flowShow
| 是否水流效果(无数据表现)
| boolean | true |
packages/extend-components/EC_ConfigurationView/src/demos/Basic.tsx
View file @
9124644e
...
...
@@ -5,20 +5,21 @@ const Demo = () => {
return
(
<
div
style=
{
{
width
:
'100%'
,
height
:
'600px'
,
background
:
'#242835'
}
}
>
<
PandaConfigurationView
// name={'水厂工艺流程段'}
// devices={'EQZT00000008,EQZT00000007,CPDA00000001,JYBZ00000003,JYBZ00000005,JYBZ00000004,SC00000003'.split(
// ',',
// )}
name=
{
'崇左丽江水厂原水泵房'
}
devices=
{
'EQZT00000007,CPBA00000001,CPAA00000001,EQZT00000008,CPDA00000001,CPAD00000001,LJSC00000002,EQZT00000005,EQZT00000004,EQZT00000002,EQZT00000003'
.
split
(
name=
{
'水厂工艺流程段'
}
devices=
{
'EQZT00000008,EQZT00000007,CPDA00000001,JYBZ00000003,JYBZ00000005,JYBZ00000004,SC00000003'
.
split
(
','
,
)
}
// name={'崇左丽江水厂原水泵房'}
// devices={'EQZT00000007,CPBA00000001,CPAA00000001,EQZT00000008,CPDA00000001,CPAD00000001,LJSC00000002,EQZT00000005,EQZT00000004,EQZT00000002,EQZT00000003'.split(
// ',',
// )}
// name={'丽江水厂原水提升泵D单元'}
// devices={'CPAA00000001, CPAD00000001, LJSC00000002'.split(',')}
dictionaryParams=
{
{
nodeID
:
149
}
}
// dictionaryParams={{nodeID: 149
}}
config=
{
globalConfig
}
deviceName=
{
[
'工艺流程1'
,
'工艺流程2'
,
'工艺流程3'
]
}
// isZoom={true}
// flowShow={false}
/>
</
div
>
);
...
...
packages/extend-components/EC_ConfigurationView/src/index.js
View file @
9124644e
...
...
@@ -2141,7 +2141,7 @@ const ConfigurationView = (props) => {
visible
=
{
isModalVisible
}
onOk
=
{
handleOk
}
onCancel
=
{
handleCancel
}
wrapClassName
=
{
classNames
(
`
${
prefixCls
}
-
m
odal`
)}
wrapClassName
=
{
classNames
(
`
${
prefixCls
}
-
baseM
odal`
)}
getContainer
=
{
ConfigurationRef
.
current
}
{...
modalProps
}
>
...
...
@@ -2159,7 +2159,7 @@ const ConfigurationView = (props) => {
onOk
=
{
handleAuOk
}
onCancel
=
{()
=>
setIsAuModalVisible
(
false
)}
getContainer
=
{
ConfigurationRef
.
current
}
wrapClassName
=
{
classNames
(
`
${
prefixCls
}
-
m
odal`
)}
wrapClassName
=
{
classNames
(
`
${
prefixCls
}
-
baseM
odal`
)}
>
<
Form
className
=
{
classNames
(
'authorizeControlContent'
)}
ref
=
{
AuthorFrom
}
name
=
"loginForm"
>
<
Form
.
Item
className
=
{
classNames
(
'authorizeControlItem'
)}
name
=
"userName"
label
=
"账户"
>
...
...
@@ -2189,7 +2189,9 @@ const ConfigurationView = (props) => {
historyInfoService
=
{
getHistoryInfo
}
historyInfoParams
=
{
historyInfoParams
}
dictionaryService
=
{
getDictionaryList
}
dictionaryParams
=
{
dictionaryParams
}
dictionaryParams
=
{
Object
.
keys
(
dictionaryParams
).
length
?
dictionaryParams
:
{
nodeID
:
0
}
}
/
>
<
/Modal
>
)}
...
...
packages/extend-components/EC_ConfigurationView/src/index.less
View file @
9124644e
...
...
@@ -6,16 +6,7 @@
width: 100%;
height: 100%;
.configurationView {
width: 100%;
height: 100%;
canvas {
border: 0;
outline: none;
}
}
&-modal {
&-baseModal {
color: white;
.switchControlContent {
...
...
@@ -202,9 +193,6 @@
}
}
.@{ant-prefix}-modal-body {
}
.@{ant-prefix}-modal-footer {
background: none;
border-color: #1c202c;
...
...
@@ -267,6 +255,7 @@
justify-content: center;
width: 100%;
height: 100%;
canvas {
border: 0;
outline: none;
...
...
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