@zgfe/modules-dm 1.0.34-heyh.25 → 1.0.34-heyh.27
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/es/components/demo.js
CHANGED
|
@@ -479,8 +479,9 @@
|
|
|
479
479
|
background: #fff;
|
|
480
480
|
border-top: 1px solid #f2f3f4;
|
|
481
481
|
}
|
|
482
|
-
.ant-drawer-content
|
|
483
|
-
|
|
482
|
+
.ant-drawer-content,
|
|
483
|
+
.ant-drawer-wrapper-body {
|
|
484
|
+
overflow: hidden !important;
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
487
|
|
|
@@ -578,8 +579,9 @@
|
|
|
578
579
|
border: none;
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
|
-
.ant-drawer-content
|
|
582
|
-
|
|
582
|
+
.ant-drawer-content,
|
|
583
|
+
.ant-drawer-wrapper-body {
|
|
584
|
+
overflow: hidden !important;
|
|
583
585
|
}
|
|
584
586
|
.ant-drawer-title {
|
|
585
587
|
span {
|
|
@@ -708,22 +710,22 @@
|
|
|
708
710
|
}
|
|
709
711
|
}
|
|
710
712
|
&-select {
|
|
711
|
-
margin-top: 16px;
|
|
712
713
|
display: flex;
|
|
713
|
-
justify-content: flex-start;
|
|
714
|
-
align-items: center;
|
|
715
714
|
gap: 10px;
|
|
716
|
-
|
|
715
|
+
align-items: center;
|
|
716
|
+
justify-content: flex-start;
|
|
717
|
+
margin-top: 16px;
|
|
718
|
+
> :nth-child(1) {
|
|
717
719
|
width: 32px;
|
|
718
|
-
color: #
|
|
720
|
+
color: #5f6085;
|
|
719
721
|
}
|
|
720
722
|
}
|
|
721
723
|
&-modal-box {
|
|
722
|
-
.ant-modal-header{
|
|
723
|
-
padding-bottom: 0!important;
|
|
724
|
+
.ant-modal-header {
|
|
725
|
+
padding-bottom: 0 !important;
|
|
724
726
|
}
|
|
725
|
-
.ant-modal-body{
|
|
726
|
-
|
|
727
|
+
.ant-modal-body {
|
|
728
|
+
> :nth-child(1) {
|
|
727
729
|
color: #021429;
|
|
728
730
|
}
|
|
729
731
|
}
|
|
@@ -744,7 +746,7 @@
|
|
|
744
746
|
}
|
|
745
747
|
}
|
|
746
748
|
}
|
|
747
|
-
#select-attributes-select{
|
|
749
|
+
#select-attributes-select {
|
|
748
750
|
.ant-select-dropdown {
|
|
749
751
|
display: none !important;
|
|
750
752
|
}
|
package/es/utils/index.js
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
* 虚拟事件编辑 判断内容是否有改动;有改动返回true
|
|
3
3
|
*/
|
|
4
4
|
export var getVirtualContentChange = function getVirtualContentChange(oldData, newData) {
|
|
5
|
+
var eventJson = function eventJson(_old, _new) {
|
|
6
|
+
var flag = 0;
|
|
7
|
+
if (_old.length !== _new.length) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
_old.map(function (item, index) {
|
|
11
|
+
var _new$index, _new$index2;
|
|
12
|
+
if (item.eventId !== _new[index].eventId) {
|
|
13
|
+
flag++;
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if ((item === null || item === void 0 ? void 0 : item.filters) === undefined && ((_new$index = _new[index]) === null || _new$index === void 0 ? void 0 : _new$index.filters) !== undefined || (item === null || item === void 0 ? void 0 : item.filters) !== undefined && ((_new$index2 = _new[index]) === null || _new$index2 === void 0 ? void 0 : _new$index2.filters) === undefined) {
|
|
17
|
+
flag++;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if ((item === null || item === void 0 ? void 0 : item.filters) && (item === null || item === void 0 ? void 0 : item.filters.conditions)) {
|
|
21
|
+
var _new$index3;
|
|
22
|
+
if ((item === null || item === void 0 ? void 0 : item.filters.conditions.length) !== ((_new$index3 = _new[index]) === null || _new$index3 === void 0 ? void 0 : _new$index3.filters.conditions.length)) {
|
|
23
|
+
flag++;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
item === null || item === void 0 ? void 0 : item.filters.conditions.map(function (_item, _index) {
|
|
27
|
+
var _new$index4, _new$index5, _new$index6;
|
|
28
|
+
if (_item.attrId !== ((_new$index4 = _new[index]) === null || _new$index4 === void 0 ? void 0 : _new$index4.filters.conditions[_index].attrId) || JSON.stringify(_item.values) !== JSON.stringify((_new$index5 = _new[index]) === null || _new$index5 === void 0 ? void 0 : _new$index5.filters.conditions[_index].values) || _item.operator !== ((_new$index6 = _new[index]) === null || _new$index6 === void 0 ? void 0 : _new$index6.filters.conditions[_index].operator)) {
|
|
29
|
+
flag++;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return flag === 0 ? false : true;
|
|
35
|
+
};
|
|
5
36
|
if (oldData.aliasName != newData.aliasName) {
|
|
6
37
|
return true;
|
|
7
38
|
}
|
|
@@ -14,7 +45,7 @@ export var getVirtualContentChange = function getVirtualContentChange(oldData, n
|
|
|
14
45
|
if (nullToEmptyString(oldData.description) != nullToEmptyString(newData.desc)) {
|
|
15
46
|
return true;
|
|
16
47
|
}
|
|
17
|
-
if (
|
|
48
|
+
if (eventJson(oldData.eventJson, newData.eventJson)) {
|
|
18
49
|
return true;
|
|
19
50
|
}
|
|
20
51
|
return false;
|
|
@@ -228,7 +259,7 @@ export var eventShow = function eventShow(data, searchData) {
|
|
|
228
259
|
var count = 0; // 搜索实时展示的指标数量
|
|
229
260
|
var len = 0; // 当前选中的指标数量
|
|
230
261
|
item.eventList.map(function (_item) {
|
|
231
|
-
if (searchData ===
|
|
262
|
+
if (searchData === '') {
|
|
232
263
|
_item.searchShow = 1;
|
|
233
264
|
count++;
|
|
234
265
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.34-heyh.
|
|
3
|
+
"version": "1.0.34-heyh.27",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"umi-request": "^1.4.0",
|
|
53
53
|
"yorkie": "^2.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "11f61f53db098861540aee50849107ad907d66fd",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|