Commit 954f1766 authored by 涂茜's avatar 涂茜

Merge branch 'fix/bug' into 'dev'

Fix/bug See merge request !48
parents 851b65bb 5e7bed57
Pipeline #29066 failed with stages
in 14 seconds
...@@ -2,6 +2,24 @@ ...@@ -2,6 +2,24 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.5.5](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_devicetree@1.5.2...@wisdom-components/ec_devicetree@1.5.5) (2021-06-03)
### Bug Fixes
- 修改接口参数 ([e264059](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e264059c14783ca793161f069c6b2476a5c8f5ce))
## [1.5.4](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_devicetree@1.5.2...@wisdom-components/ec_devicetree@1.5.4) (2021-06-03)
### Bug Fixes
- 修改接口参数 ([e264059](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e264059c14783ca793161f069c6b2476a5c8f5ce))
## [1.5.3](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_devicetree@1.5.2...@wisdom-components/ec_devicetree@1.5.3) (2021-06-02)
### Bug Fixes
- 修改接口参数 ([e264059](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e264059c14783ca793161f069c6b2476a5c8f5ce))
## [1.5.2](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_devicetree@1.5.0...@wisdom-components/ec_devicetree@1.5.2) (2021-05-26) ## [1.5.2](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_devicetree@1.5.0...@wisdom-components/ec_devicetree@1.5.2) (2021-05-26)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/ec_devicetree", "name": "@wisdom-components/ec_devicetree",
"version": "1.5.2", "version": "1.5.5",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -26,18 +26,7 @@ const DeviceTree = (props) => { ...@@ -26,18 +26,7 @@ const DeviceTree = (props) => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
useEffect(() => { useEffect(() => {
const param = { setParams(serviceParams);
pageIndex: serviceParams.pageIndex || 1,
pageSize: serviceParams.pageSize || 20,
deviceTypes: serviceParams.deviceTypes || '二供泵房,二供机组',
getChild: serviceParams.getChild,
userID: serviceParams.userID || '',
queryInfo: serviceParams.queryInfo || '',
sortFields: serviceParams.sortFields || '',
direction: serviceParams.direction || '',
isTop: serviceParams.isTop,
};
setParams(param);
}, []); }, []);
const handleData = (data) => { const handleData = (data) => {
......
...@@ -2,6 +2,19 @@ ...@@ -2,6 +2,19 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.2.5](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_historyinfo@1.2.3...@wisdom-components/ec_historyinfo@1.2.5) (2021-06-03)
### Bug Fixes
- 修改历史曲线表格采集时间展示问题及分页问题 ([d47334d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/d47334d7da2dfc264a7ce49b8f333c9afb89e3d7))
- bug ([62c4960](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/62c49603efc3e1dfe31a922329e142d038a46c73))
## [1.2.4](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_historyinfo@1.2.3...@wisdom-components/ec_historyinfo@1.2.4) (2021-06-03)
### Bug Fixes
- 修改历史曲线表格采集时间展示问题及分页问题 ([d47334d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/d47334d7da2dfc264a7ce49b8f333c9afb89e3d7))
## [1.2.3](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_historyinfo@1.2.1...@wisdom-components/ec_historyinfo@1.2.3) (2021-06-01) ## [1.2.3](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_historyinfo@1.2.1...@wisdom-components/ec_historyinfo@1.2.3) (2021-06-01)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/ec_historyinfo", "name": "@wisdom-components/ec_historyinfo",
"version": "1.2.3", "version": "1.2.5",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -282,12 +282,14 @@ const HistoryInfo = (props) => { ...@@ -282,12 +282,14 @@ const HistoryInfo = (props) => {
return aa.localeCompare(bb); return aa.localeCompare(bb);
}); });
}; };
let format = timeFormat;
if (timeValue === 'contrast') {
format = contrastOption === 'day' ? '2020-01-01 HH:mm:00' : '2020-01-DD HH:mm:00';
}
// 处理采集时间 // 处理采集时间
resData.forEach((item) => { resData.forEach((item) => {
item.dataModel.forEach((data) => { item.dataModel.forEach((data) => {
const formatTime = moment(data.pt).format( const formatTime = moment(data.pt).format(format);
contrastOption === 'day' ? '2020-01-01 HH:mm:00' : '2020-01-DD HH:mm:00',
);
if (!timeData.includes(formatTime)) { if (!timeData.includes(formatTime)) {
timeData.push(formatTime); timeData.push(formatTime);
} }
...@@ -315,9 +317,7 @@ const HistoryInfo = (props) => { ...@@ -315,9 +317,7 @@ const HistoryInfo = (props) => {
tableData.forEach((item, i) => { tableData.forEach((item, i) => {
resData.forEach((child, index) => { resData.forEach((child, index) => {
child.dataModel.forEach((value, j) => { child.dataModel.forEach((value, j) => {
const formatTime = moment(value.pt).format( const formatTime = moment(value.pt).format(format);
contrastOption === 'day' ? '2020-01-01 HH:mm:00' : '2020-01-DD HH:mm:00',
);
if (timeData[i] === formatTime) item[`value${index + 1}`] = value.pv; if (timeData[i] === formatTime) item[`value${index + 1}`] = value.pv;
}); });
}); });
...@@ -789,7 +789,7 @@ const HistoryInfo = (props) => { ...@@ -789,7 +789,7 @@ const HistoryInfo = (props) => {
dataSource={tableData} dataSource={tableData}
columns={columns} columns={columns}
{...tableProps} {...tableProps}
pagination={{ pageSize }} pagination={{ pageSize, showQuickJumper: true, showSizeChanger: true }}
onChange={(value) => { onChange={(value) => {
setPageSize(value.pageSize); setPageSize(value.pageSize);
}} }}
......
...@@ -2,6 +2,24 @@ ...@@ -2,6 +2,24 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.4.3](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_realtimeinfo@1.4.0...@wisdom-components/ec_realtimeinfo@1.4.3) (2021-06-03)
### Bug Fixes
- 修改接口参数 ([e264059](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e264059c14783ca793161f069c6b2476a5c8f5ce))
## [1.4.2](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_realtimeinfo@1.4.0...@wisdom-components/ec_realtimeinfo@1.4.2) (2021-06-03)
### Bug Fixes
- 修改接口参数 ([e264059](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e264059c14783ca793161f069c6b2476a5c8f5ce))
## [1.4.1](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_realtimeinfo@1.4.0...@wisdom-components/ec_realtimeinfo@1.4.1) (2021-06-02)
### Bug Fixes
- 修改接口参数 ([e264059](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e264059c14783ca793161f069c6b2476a5c8f5ce))
# 1.4.0 (2021-05-14) # 1.4.0 (2021-05-14)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/ec_realtimeinfo", "name": "@wisdom-components/ec_realtimeinfo",
"version": "1.4.0", "version": "1.4.3",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -121,7 +121,6 @@ const RealTimeInfo = (props) => { ...@@ -121,7 +121,6 @@ const RealTimeInfo = (props) => {
} }
}); });
handleFilterColumns(newData); handleFilterColumns(newData);
// setTableData(newData);
const data = searchValue const data = searchValue
? newData.filter((item) => item.name.indexOf(searchValue) !== -1) ? newData.filter((item) => item.name.indexOf(searchValue) !== -1)
: newData; : newData;
...@@ -138,7 +137,7 @@ const RealTimeInfo = (props) => { ...@@ -138,7 +137,7 @@ const RealTimeInfo = (props) => {
? deviceRealInfoParams.accountFieldParams.map((item) => item.AName).join(',') ? deviceRealInfoParams.accountFieldParams.map((item) => item.AName).join(',')
: '二供泵房,二供机组'; : '二供泵房,二供机组';
deviceConfService({ deviceConfService({
user: user || '1', user,
showAll: true, showAll: true,
deviceType, deviceType,
}).then((res) => { }).then((res) => {
...@@ -149,19 +148,7 @@ const RealTimeInfo = (props) => { ...@@ -149,19 +148,7 @@ const RealTimeInfo = (props) => {
}; };
const GetDeviceRealInfo = () => { const GetDeviceRealInfo = () => {
const params = { deviceRealInfoService(deviceRealInfoParams).then((res) => {
userID: deviceRealInfoParams.userID || '1',
pageIndex: deviceRealInfoParams.pageIndex || 1,
pageSize: deviceRealInfoParams.pageSize || 20,
isFocus: deviceRealInfoParams.isFocus || false,
accountFieldParams: deviceRealInfoParams.accountFieldParams || [
{ AName: '二供泵房' },
{ AName: '二供机组' },
],
equipmentCode: deviceRealInfoParams.equipmentCode || 'EGBF00000001',
...deviceRealInfoParams,
};
deviceRealInfoService(params).then((res) => {
if (res.code === 0 && res.data) { if (res.code === 0 && res.data) {
setDeviceInfo(res.data.list[0]); setDeviceInfo(res.data.list[0]);
handleTabData(res.data.list[0]); handleTabData(res.data.list[0]);
...@@ -339,7 +326,7 @@ RealTimeInfo.defaultProps = { ...@@ -339,7 +326,7 @@ RealTimeInfo.defaultProps = {
modalTitle: '实时指标监控', modalTitle: '实时指标监控',
placeholder: '输入指标名称等', placeholder: '输入指标名称等',
defaultTargetValue: 'emphasis', defaultTargetValue: 'emphasis',
user: '', user: null,
deviceRealInfoParams: {}, deviceRealInfoParams: {},
deviceConfService: () => {}, deviceConfService: () => {},
pointAddressEntryService: () => {}, pointAddressEntryService: () => {},
......
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