Commit d598a7e9 authored by 李纪文's avatar 李纪文

fixx: 修改组态

parent 6a542ebb
...@@ -24,7 +24,8 @@ const tailPkgs = pkgList ...@@ -24,7 +24,8 @@ const tailPkgs = pkgList
.filter((pkg) => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg)) .filter((pkg) => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg))
.map((item) => { .map((item) => {
const [name, path] = item.split('!'); const [name, path] = item.split('!');
return `${path}/${name}`; // return `${path}/${name}`;
return `${name}`;
}); });
const type = process.env.BUILD_TYPE; const type = process.env.BUILD_TYPE;
......
...@@ -145,7 +145,9 @@ ...@@ -145,7 +145,9 @@
"registry": "https://g.civnet.cn:4873" "registry": "https://g.civnet.cn:4873"
}, },
"dependencies": { "dependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@wisdom-components/basictable": "^1.5.14", "@wisdom-components/basictable": "^1.5.14",
"@wisdom-components/ec_historyview": "^1.4.3",
"@wisdom-components/empty": "^1.3.9", "@wisdom-components/empty": "^1.3.9",
"@wisdom-components/exportexcel": "^1.1.2", "@wisdom-components/exportexcel": "^1.1.2",
"@wisdom-components/loadbox": "1.1.4", "@wisdom-components/loadbox": "1.1.4",
...@@ -155,6 +157,7 @@ ...@@ -155,6 +157,7 @@
"cross-spawn": "^7.0.3", "cross-spawn": "^7.0.3",
"echarts": "^5.4.0", "echarts": "^5.4.0",
"echarts-for-react": "^3.0.2", "echarts-for-react": "^3.0.2",
"file-loader": "^6.2.0",
"form-render": "^0.9.12", "form-render": "^0.9.12",
"highcharts": "^9.0.1", "highcharts": "^9.0.1",
"highcharts-react-official": "^3.0.0", "highcharts-react-official": "^3.0.0",
......
...@@ -28,7 +28,7 @@ const Demo = (props) => { ...@@ -28,7 +28,7 @@ const Demo = (props) => {
justifyContent: 'center', justifyContent: 'center',
}} }}
> >
<LoadBox spinning={spinning} /> <LoadBox spinning={spinning} tip={'加载'} />
</div> </div>
<div style={{ marginTop: '20px' }}> <div style={{ marginTop: '20px' }}>
<Button onClick={startClick} style={{ marginRight: '20px' }}> <Button onClick={startClick} style={{ marginRight: '20px' }}>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.9", "@babel/runtime": "^7.17.9",
"@wisdom-components/ec_historyinfo": "1.2.23", "@wisdom-components/ec_historyview": "1.4.3",
"@wisdom-components/empty": "1.3.9", "@wisdom-components/empty": "1.3.9",
"@wisdom-components/loadbox": "1.1.4", "@wisdom-components/loadbox": "1.1.4",
"@wisdom-components/mqttview": "1.3.6", "@wisdom-components/mqttview": "1.3.6",
......
...@@ -23,12 +23,11 @@ group: ...@@ -23,12 +23,11 @@ group:
## API ## API
| 参数 | 说明 | 类型 | 默认值 | | 参数 | 说明 | 类型 | 默认值 |
| ---------------- | -------------------------------- | ------- | ------ | | -------------- | -------------------------------- | ------- | ------ |
| name `必需` | 画板名称 | string | '' | | name `必需` | 画板名称 | string | '' |
| devices `必需` | 画板设备 | array | [] | | devices `必需` | 画板设备 | array | [] |
| deviceName | 画板设备名称 | array | [] | | deviceName | 画板设备名称 | array | [] |
| dictionaryParams | 图标颜色数据字典参数 | object | {} | | config | 全局 globalConfig,没有时需要传递 | object | {} |
| config | 全局 globalConfig,没有时需要传递 | object | {} | | isZoom | 是否可缩放(手持上建议设置 true) | boolean | false |
| isZoom | 是否可缩放(手持上建议设置 true) | boolean | false | | flowShow | 是否水流效果(无数据表现) | boolean | true |
| flowShow | 是否水流效果(无数据表现) | boolean | true |
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
} from '@ant-design/icons'; } from '@ant-design/icons';
import MqttView from '@wisdom-components/mqttview'; import MqttView from '@wisdom-components/mqttview';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import HistoryInfo from '@wisdom-components/ec_historyinfo'; import HistoryView from '@wisdom-components/ec_historyview';
import * as go from './js/go'; import * as go from './js/go';
import GuidedDraggingTool from './js/GuidedDraggingTool'; import GuidedDraggingTool from './js/GuidedDraggingTool';
import TopRotatingTool from './js/RotatingTool'; import TopRotatingTool from './js/RotatingTool';
...@@ -23,14 +23,7 @@ import BarLink from './js/BarLink'; ...@@ -23,14 +23,7 @@ import BarLink from './js/BarLink';
import WaterFlowControlView from './js/WaterFlowControlView'; import WaterFlowControlView from './js/WaterFlowControlView';
import ConfigurationDetail from './js/ConfigurationDetail'; import ConfigurationDetail from './js/ConfigurationDetail';
import DragModal from './js/DragModal'; import DragModal from './js/DragModal';
import { import { getSketchPadList, getSketchPadContent, getPointAddress, getDeviceRealInfo } from './apis';
getSketchPadList,
getSketchPadContent,
getPointAddress,
getHistoryInfo,
getDictionaryList,
getDeviceRealInfo,
} from './apis';
import { import {
isNumber, isNumber,
createGuid, createGuid,
...@@ -51,7 +44,7 @@ let auModalConfirmFn = null; // 登录模态框的确定事件 ...@@ -51,7 +44,7 @@ let auModalConfirmFn = null; // 登录模态框的确定事件
let jumpModalProps = null; let jumpModalProps = null;
let modalProps = {}; let modalProps = {};
let modalWidth = 520; let modalWidth = 520;
let historyInfoParams = {}; let historyInfoParams = [];
let nodeData = null; // 选中节点的数据 let nodeData = null; // 选中节点的数据
let twoID = ``; let twoID = ``;
...@@ -109,14 +102,7 @@ const ConfigurationView = (props) => { ...@@ -109,14 +102,7 @@ const ConfigurationView = (props) => {
const AuthorFrom = useRef(); const AuthorFrom = useRef();
const ConfigurationRef = useRef(); const ConfigurationRef = useRef();
const customBack = props.customBack ? props.customBack : () => {}; const customBack = props.customBack ? props.customBack : () => {};
const { const { devices = [], config, isZoom = false, flowShow = true, deviceName = [] } = props;
devices = [],
dictionaryParams,
config,
isZoom = false,
flowShow = true,
deviceName = [],
} = props;
const globalConfig = window.globalConfig || config; const globalConfig = window.globalConfig || config;
let isClose = false; let isClose = false;
...@@ -884,21 +870,13 @@ const ConfigurationView = (props) => { ...@@ -884,21 +870,13 @@ const ConfigurationView = (props) => {
/** **************************************历史模态渲染****************************************** */ /** **************************************历史模态渲染****************************************** */
const historyModalRender = (data, list) => { const historyModalRender = (data, list) => {
historyInfoParams = { historyInfoParams = [
stream: [ {
{ deviceCode: list.code,
stationCode: list.code, sensors: data.shName,
sensors: data.shName, deviceType: list.type,
pointVersions: list.type, },
dateFrom: '', ];
dateTo: '',
},
],
ignoreOutliers: false, // 过滤异常值
isVertical: false, // 是否展示竖表
zoom: '', // 数据抽稀
unit: '', // 数据抽稀 min h
};
setIsHIModalVisible(true); setIsHIModalVisible(true);
}; };
...@@ -2192,7 +2170,7 @@ const ConfigurationView = (props) => { ...@@ -2192,7 +2170,7 @@ const ConfigurationView = (props) => {
okText={'确定'} okText={'确定'}
width={modalWidth} width={modalWidth}
cancelText={'取消'} cancelText={'取消'}
visible={isModalVisible} open={isModalVisible}
onOk={handleOk} onOk={handleOk}
onCancel={handleCancel} onCancel={handleCancel}
wrapClassName={classNames(`${prefixCls}-baseModal`)} wrapClassName={classNames(`${prefixCls}-baseModal`)}
...@@ -2209,10 +2187,11 @@ const ConfigurationView = (props) => { ...@@ -2209,10 +2187,11 @@ const ConfigurationView = (props) => {
title={'权限认证'} title={'权限认证'}
okText={'确定'} okText={'确定'}
cancelText={'取消'} cancelText={'取消'}
visible={isAuModalVisible} open={isAuModalVisible}
onOk={handleAuOk} onOk={handleAuOk}
onCancel={() => setIsAuModalVisible(false)} onCancel={() => setIsAuModalVisible(false)}
getContainer={ConfigurationRef.current} getContainer={ConfigurationRef.current}
width={520}
wrapClassName={classNames(`${prefixCls}-baseModal`)} wrapClassName={classNames(`${prefixCls}-baseModal`)}
> >
<Form className={classNames('authorizeControlContent')} ref={AuthorFrom} name="loginForm"> <Form className={classNames('authorizeControlContent')} ref={AuthorFrom} name="loginForm">
...@@ -2220,7 +2199,7 @@ const ConfigurationView = (props) => { ...@@ -2220,7 +2199,7 @@ const ConfigurationView = (props) => {
<Input placeholder="请输入用户名" /> <Input placeholder="请输入用户名" />
</Form.Item> </Form.Item>
<Form.Item className={classNames('authorizeControlItem')} name="password" label="密码"> <Form.Item className={classNames('authorizeControlItem')} name="password" label="密码">
<Input placeholder="请输入密码" /> <Input.Password placeholder="请输入密码" />
</Form.Item> </Form.Item>
</Form> </Form>
</Modal> </Modal>
...@@ -2229,24 +2208,15 @@ const ConfigurationView = (props) => { ...@@ -2229,24 +2208,15 @@ const ConfigurationView = (props) => {
{isHIModalVisible && ( {isHIModalVisible && (
<Modal <Modal
centered centered
width={960} width={1100}
footer={null} footer={null}
visible={isHIModalVisible} open={isHIModalVisible}
onOk={() => setIsHIModalVisible(false)} onOk={() => setIsHIModalVisible(false)}
onCancel={() => setIsHIModalVisible(false)} onCancel={() => setIsHIModalVisible(false)}
getContainer={ConfigurationRef.current} getContainer={ConfigurationRef.current}
wrapClassName={classNames(`${prefixCls}-historyInfoModal`)} wrapClassName={classNames(`${prefixCls}-historyInfoModal`)}
> >
<HistoryInfo <HistoryView deviceParams={historyInfoParams} />
title={''}
tableProps={{ bordered: true, pagination: { pageSize: 20 } }}
historyInfoService={getHistoryInfo}
historyInfoParams={historyInfoParams}
dictionaryService={getDictionaryList}
dictionaryParams={
Object.keys(dictionaryParams).length ? dictionaryParams : { nodeID: 0 }
}
/>
</Modal> </Modal>
)} )}
{/* 画板跳转 */} {/* 画板跳转 */}
...@@ -2285,7 +2255,6 @@ ConfigurationView.defaultProps = { ...@@ -2285,7 +2255,6 @@ ConfigurationView.defaultProps = {
name: '', name: '',
devices: [], devices: [],
deviceName: [], deviceName: [],
dictionaryParams: {},
config: {}, config: {},
isZoom: false, isZoom: false,
flowShow: true, flowShow: true,
...@@ -2295,7 +2264,6 @@ ConfigurationView.propTypes = { ...@@ -2295,7 +2264,6 @@ ConfigurationView.propTypes = {
name: PropTypes.string, name: PropTypes.string,
devices: PropTypes.array, devices: PropTypes.array,
deviceName: PropTypes.array, deviceName: PropTypes.array,
dictionaryParams: PropTypes.object,
config: PropTypes.object, config: PropTypes.object,
isZoom: PropTypes.bool, isZoom: PropTypes.bool,
flowShow: PropTypes.bool, flowShow: PropTypes.bool,
......
...@@ -120,6 +120,10 @@ ...@@ -120,6 +120,10 @@
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
.@{ant-prefix}-row {
width: 100%;
}
.@{ant-prefix}-col.@{ant-prefix}-form-item-label { .@{ant-prefix}-col.@{ant-prefix}-form-item-label {
margin-right: 10px; margin-right: 10px;
...@@ -167,6 +171,10 @@ ...@@ -167,6 +171,10 @@
&:last-of-type { &:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
.@{ant-prefix}-input-password-icon.anticon {
color: #ffffff;
}
} }
} }
......
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