Commit 38c4a361 authored by 陈龙's avatar 陈龙

feat: 表格使用虚拟列表;表格支持不抽稀

parents 4f2c54ff 2373684d
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
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.25](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_configurationview@1.5.24...@wisdom-components/ec_configurationview@1.5.25) (2023-10-23)
### Bug Fixes
- 组态增加数据来源 ([377078d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/377078d5b76b83ef087e4f80af7759395813e807))
## [1.5.24](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_configurationview@1.5.23...@wisdom-components/ec_configurationview@1.5.24) (2023-10-07) ## [1.5.24](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_configurationview@1.5.23...@wisdom-components/ec_configurationview@1.5.24) (2023-10-07)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/ec_configurationview", "name": "@wisdom-components/ec_configurationview",
"version": "1.5.24", "version": "1.5.25",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -944,10 +944,20 @@ const ConfigurationView = (props) => { ...@@ -944,10 +944,20 @@ const ConfigurationView = (props) => {
controlback: controlData, controlback: controlData,
}) })
: null; : null;
diagramRender(typeof fromJson === 'string' ? fromJson : JSON.stringify(fromJson), list); const diagramJson = typeof fromJson === 'string' ? fromJson : JSON.stringify(fromJson);
diagramRender(diagramJson, list);
setNoInitial(false); setNoInitial(false);
try { try {
mqttView && mqttView.saveWaterMqtt(); let dataSources = 'MQTT';
const nodeDataArray = JSON.parse(diagramJson)?.nodeDataArray || [];
nodeDataArray.forEach((item) => {
if (item.category === 'bgCase') dataSources = item.dataSources || 'MQTT';
})
if (dataSources === 'MQTT') {
mqttView && mqttView.saveWaterMqtt();
} else {
getRealData(siteInfo);
}
} catch (e) { } catch (e) {
// 获取实时数据 // 获取实时数据
getRealData(siteInfo); getRealData(siteInfo);
......
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