Commit 9124644e authored by 李纪文's avatar 李纪文

fix: 组态修改

parent 060c540a
......@@ -24,11 +24,11 @@ group:
## API
| 参数 | 说明 | 类型 | 默认值 |
| ----------------------- | ------------------------------- | ------- | ------ |
| ---------------- | -------------------------------- | ------- | ------ |
| name `必需` | 画板名称 | string | '' |
| devices `必需` | 画板设备 | array | [] |
| deviceName | 画板设备名称 | array | [] |
| dictionaryParams `必需` | 图标颜色数据字典参数 | object | {} |
| config `必需` | 全局 globalConfig | object | {} |
| dictionaryParams | 图标颜色数据字典参数 | object | {} |
| config | 全局 globalConfig,没有时需要传递 | object | {} |
| isZoom | 是否可缩放(手持上建议设置 true) | boolean | false |
| flowShow | 是否水流效果(无数据表现) | boolean | true |
......@@ -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>
);
......
......@@ -2141,7 +2141,7 @@ const ConfigurationView = (props) => {
visible={isModalVisible}
onOk={handleOk}
onCancel={handleCancel}
wrapClassName={classNames(`${prefixCls}-modal`)}
wrapClassName={classNames(`${prefixCls}-baseModal`)}
getContainer={ConfigurationRef.current}
{...modalProps}
>
......@@ -2159,7 +2159,7 @@ const ConfigurationView = (props) => {
onOk={handleAuOk}
onCancel={() => setIsAuModalVisible(false)}
getContainer={ConfigurationRef.current}
wrapClassName={classNames(`${prefixCls}-modal`)}
wrapClassName={classNames(`${prefixCls}-baseModal`)}
>
<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>
)}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment