@riil-frontend/component-topology 6.0.20 → 6.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +27 -25
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.module.scss +1 -0
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +27 -26
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.module.scss +1 -0
- package/package.json +2 -2
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
|
|
23
23
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
24
24
|
import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
|
25
25
|
|
26
|
-
var version = typeof "6.0.
|
26
|
+
var version = typeof "6.0.21" === 'string' ? "6.0.21" : null;
|
27
27
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
28
28
|
/**
|
29
29
|
* 拓扑显示和编辑
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _Message from "@alifd/next/es/message";
|
2
2
|
import _Table from "@alifd/next/es/table";
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
4
|
-
import _Button from "@alifd/next/es/button";
|
5
4
|
import _Icon from "@alifd/next/es/icon";
|
6
5
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
7
6
|
|
@@ -442,30 +441,33 @@ export default function ResourceOverview(props) {
|
|
442
441
|
title: moment(value).format('YYYY-MM-DD HH:mm:ss')
|
443
442
|
}, moment(value).format('YYYY-MM-DD HH:mm:ss'));
|
444
443
|
}
|
445
|
-
}
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
}
|
444
|
+
} // {
|
445
|
+
// title: '操作',
|
446
|
+
// dataIndex: 'status',
|
447
|
+
// key: 'status',
|
448
|
+
// width: 64,
|
449
|
+
// cell: (status, index, record) => {
|
450
|
+
// if (record.type === 'alarm') {
|
451
|
+
// return status === 'toDeal' ? (
|
452
|
+
// <Button
|
453
|
+
// text
|
454
|
+
// type="primary"
|
455
|
+
// onClick={() => alarmRiskOperation(record.type, record.params)}
|
456
|
+
// >
|
457
|
+
// 受理
|
458
|
+
// </Button>
|
459
|
+
// ) : (
|
460
|
+
// <Button disabled text type="primary">
|
461
|
+
// 已受理
|
462
|
+
// </Button>
|
463
|
+
// );
|
464
|
+
// } else {
|
465
|
+
// // return <Button text type="primary" onClick={() => alarmRiskOperation(record.type, record)}>受理</Button>
|
466
|
+
// return '';
|
467
|
+
// }
|
468
|
+
// },
|
469
|
+
// },
|
470
|
+
]; // 告警/风险 操作 (受理)
|
469
471
|
|
470
472
|
function alarmRiskOperation(_x3, _x4) {
|
471
473
|
return _alarmRiskOperation.apply(this, arguments);
|
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
|
|
54
54
|
var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
55
55
|
|
56
56
|
// eslint-disable-next-line no-undef
|
57
|
-
var version = typeof "6.0.
|
57
|
+
var version = typeof "6.0.21" === 'string' ? "6.0.21" : null;
|
58
58
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
59
59
|
/**
|
60
60
|
* 拓扑显示和编辑
|
@@ -13,8 +13,6 @@ var _table = _interopRequireDefault(require("@alifd/next/lib/table"));
|
|
13
13
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
15
15
|
|
16
|
-
var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
|
17
|
-
|
18
16
|
var _icon = _interopRequireDefault(require("@alifd/next/lib/icon"));
|
19
17
|
|
20
18
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
@@ -474,30 +472,33 @@ function ResourceOverview(props) {
|
|
474
472
|
title: (0, _moment["default"])(value).format('YYYY-MM-DD HH:mm:ss')
|
475
473
|
}, (0, _moment["default"])(value).format('YYYY-MM-DD HH:mm:ss'));
|
476
474
|
}
|
477
|
-
}
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
}
|
475
|
+
} // {
|
476
|
+
// title: '操作',
|
477
|
+
// dataIndex: 'status',
|
478
|
+
// key: 'status',
|
479
|
+
// width: 64,
|
480
|
+
// cell: (status, index, record) => {
|
481
|
+
// if (record.type === 'alarm') {
|
482
|
+
// return status === 'toDeal' ? (
|
483
|
+
// <Button
|
484
|
+
// text
|
485
|
+
// type="primary"
|
486
|
+
// onClick={() => alarmRiskOperation(record.type, record.params)}
|
487
|
+
// >
|
488
|
+
// 受理
|
489
|
+
// </Button>
|
490
|
+
// ) : (
|
491
|
+
// <Button disabled text type="primary">
|
492
|
+
// 已受理
|
493
|
+
// </Button>
|
494
|
+
// );
|
495
|
+
// } else {
|
496
|
+
// // return <Button text type="primary" onClick={() => alarmRiskOperation(record.type, record)}>受理</Button>
|
497
|
+
// return '';
|
498
|
+
// }
|
499
|
+
// },
|
500
|
+
// },
|
501
|
+
]; // 告警/风险 操作 (受理)
|
501
502
|
|
502
503
|
function alarmRiskOperation(_x3, _x4) {
|
503
504
|
return _alarmRiskOperation.apply(this, arguments);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.21",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -116,6 +116,6 @@
|
|
116
116
|
"access": "public"
|
117
117
|
},
|
118
118
|
"license": "MIT",
|
119
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@6.0.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@6.0.21/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|