Commit 06389deb authored by 程恺文's avatar 程恺文
parents 10cd3e0e d573d2f0
...@@ -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.4.37](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_configurationview@1.4.36...@wisdom-components/ec_configurationview@1.4.37) (2023-04-12)
### Bug Fixes
- 替换组态服务及历史回放修改 ([e0be017](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/e0be017d71c3af9af5661fdac6f6ee2940a206b9))
## [1.4.36](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_configurationview@1.4.35...@wisdom-components/ec_configurationview@1.4.36) (2023-04-12) ## [1.4.36](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_configurationview@1.4.35...@wisdom-components/ec_configurationview@1.4.36) (2023-04-12)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/ec_configurationview", "name": "@wisdom-components/ec_configurationview",
"version": "1.4.36", "version": "1.4.37",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -42,6 +42,7 @@ const ConfigurationView = (props) => { ...@@ -42,6 +42,7 @@ const ConfigurationView = (props) => {
const prefixCls = getPrefixCls('ec-configuration-view'); const prefixCls = getPrefixCls('ec-configuration-view');
const [isHIModalVisible, setIsHIModalVisible] = useState(false); // 历史曲线模态框 const [isHIModalVisible, setIsHIModalVisible] = useState(false); // 历史曲线模态框
const [spinning, setSpinning] = useState(true); // 画板loading const [spinning, setSpinning] = useState(true); // 画板loading
const [spinLoad, setSpinLoad] = useState(false);
const [isEmpty, setIsEmpty] = useState(false); // 画板无数据状态 const [isEmpty, setIsEmpty] = useState(false); // 画板无数据状态
const [description, setDescription] = useState(''); // 画板无数据描述 const [description, setDescription] = useState(''); // 画板无数据描述
...@@ -573,6 +574,8 @@ const ConfigurationView = (props) => { ...@@ -573,6 +574,8 @@ const ConfigurationView = (props) => {
/** ************************************历史数据获取******************************* */ /** ************************************历史数据获取******************************* */
const getHistoryData = async (flag) => { const getHistoryData = async (flag) => {
try { try {
if (!myDiagram) return false;
setSpinLoad(true);
speed = 0; speed = 0;
const json = JSON.parse(myDiagram.model.toJson()); const json = JSON.parse(myDiagram.model.toJson());
const jsonCopy = JSON.parse(JSON.stringify(json)); const jsonCopy = JSON.parse(JSON.stringify(json));
...@@ -618,7 +621,10 @@ const ConfigurationView = (props) => { ...@@ -618,7 +621,10 @@ const ConfigurationView = (props) => {
}); });
chartHistoryDataRender(historyData); chartHistoryDataRender(historyData);
if (flag) historyTimeRender(); if (flag) historyTimeRender();
} catch (err) {} setSpinLoad(false);
} catch (err) {
setSpinLoad(false);
}
}; };
/** ****************************************数据去重******************************* */ /** ****************************************数据去重******************************* */
...@@ -1909,6 +1915,9 @@ const ConfigurationView = (props) => { ...@@ -1909,6 +1915,9 @@ const ConfigurationView = (props) => {
<LoadBox spinning={spinning} /> <LoadBox spinning={spinning} />
{isEmpty && <Empty theme={'dark'} description={description} />} {isEmpty && <Empty theme={'dark'} description={description} />}
</div> </div>
<div className={classNames('configurationLoad')}>
<LoadBox spinning={spinLoad} />
</div>
{/* 历史曲线 */} {/* 历史曲线 */}
{isHIModalVisible && ( {isHIModalVisible && (
<Modal <Modal
......
...@@ -7,7 +7,7 @@ const baseURI = typeof DUMI_TYPE !== 'undefined' && DUMI_TYPE === 'dumi' ? '/api ...@@ -7,7 +7,7 @@ const baseURI = typeof DUMI_TYPE !== 'undefined' && DUMI_TYPE === 'dumi' ? '/api
// 获取画板列表接口 // 获取画板列表接口
export function getSketchPadList(params) { export function getSketchPadList(params) {
return request({ return request({
url: `${baseURI}/PandaCore/GCK/SketchPad/List`, url: `${baseURI}/PandaMonitor/Monitor/SketchPad/List`,
method: REQUEST_METHOD_GET, method: REQUEST_METHOD_GET,
header: { 'content-type': 'application/x-www-form-urlencoded' }, header: { 'content-type': 'application/x-www-form-urlencoded' },
params, params,
...@@ -17,7 +17,7 @@ export function getSketchPadList(params) { ...@@ -17,7 +17,7 @@ export function getSketchPadList(params) {
// 获取画板JSON // 获取画板JSON
export function getSketchPadContent(params) { export function getSketchPadContent(params) {
return request({ return request({
url: `${baseURI}/PandaCore/GCK/SketchPad/SketchContent`, url: `${baseURI}/PandaMonitor/Monitor/SketchPad/SketchContent`,
method: REQUEST_METHOD_GET, method: REQUEST_METHOD_GET,
params, params,
}); });
...@@ -26,7 +26,7 @@ export function getSketchPadContent(params) { ...@@ -26,7 +26,7 @@ export function getSketchPadContent(params) {
// 获取点表地址信息 // 获取点表地址信息
export function getPointAddress(params) { export function getPointAddress(params) {
return request({ return request({
url: `${baseURI}/PandaCore/GCK/PointAddress/GetPointAddress`, url: `${baseURI}/PandaMonitor/Monitor/PointAddress/GetPointAddress`,
method: REQUEST_METHOD_GET, method: REQUEST_METHOD_GET,
params, params,
}); });
...@@ -44,7 +44,7 @@ export function getDictionaryList(params) { ...@@ -44,7 +44,7 @@ export function getDictionaryList(params) {
// 获取设备实时数据 // 获取设备实时数据
export function getDeviceRealInfo(data) { export function getDeviceRealInfo(data) {
return request({ return request({
url: `${baseURI}/PandaCore/GCK/Device/DeviceRealInfo`, url: `${baseURI}/PandaMonitor/Monitor/Device/DeviceRealInfo`,
method: REQUEST_METHOD_POST, method: REQUEST_METHOD_POST,
data, data,
}); });
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@ec-configuration-view-prefix-cls: ~'@{ant-prefix}-ec-configuration-view'; @ec-configuration-view-prefix-cls: ~'@{ant-prefix}-ec-configuration-view';
.@{ec-configuration-view-prefix-cls} { .@{ec-configuration-view-prefix-cls} {
position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -271,4 +272,15 @@ ...@@ -271,4 +272,15 @@
outline: none; outline: none;
} }
} }
.configurationLoad {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
} }
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