@zgfe/modules-dm 1.0.56-zhongyuan.9 → 1.0.57-alpha.0

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.
Files changed (54) hide show
  1. package/es/constants/api.d.ts +29 -0
  2. package/es/constants/api.js +34 -1
  3. package/es/index.d.ts +3 -1
  4. package/es/index.js +3 -1
  5. package/es/modules/CutsModal.d.ts +81 -34
  6. package/es/modules/clear-rule/addRule.d.ts +10 -0
  7. package/es/modules/clear-rule/addRule.js +614 -0
  8. package/es/modules/clear-rule/css/index.css +256 -0
  9. package/es/modules/clear-rule/css/index.less +270 -0
  10. package/es/modules/clear-rule/demo/index.d.ts +3 -0
  11. package/es/modules/clear-rule/demo/index.js +6 -0
  12. package/es/modules/clear-rule/importMetaDialog/demo/index.d.ts +3 -0
  13. package/es/modules/clear-rule/importMetaDialog/demo/index.js +28 -0
  14. package/es/modules/clear-rule/importMetaDialog/index.d.ts +7 -0
  15. package/es/modules/clear-rule/importMetaDialog/index.js +165 -0
  16. package/es/modules/clear-rule/importMetaDialog/styles/index.less +91 -0
  17. package/es/modules/clear-rule/index.d.ts +4 -0
  18. package/es/modules/clear-rule/index.js +529 -0
  19. package/es/modules/dataManage/collectionAttributeList.js +424 -43
  20. package/es/modules/dataManage/collectionEventList.js +1 -1
  21. package/es/modules/dataManage/components/createMetaDrawer.js +5 -6
  22. package/es/modules/dataManage/components/eventGroupingDrawer.js +13 -4
  23. package/es/modules/dataManage/components/panelList.d.ts +6 -0
  24. package/es/modules/dataManage/components/panelList.js +172 -0
  25. package/es/modules/dataManage/components/tablePlus.d.ts +1 -0
  26. package/es/modules/dataManage/components/tablePlus.js +160 -46
  27. package/es/modules/dataManage/components/virtualTablePlus.js +4 -0
  28. package/es/modules/dataManage/demo/index.js +1 -2
  29. package/es/modules/dataManage/styles/index.less +10 -0
  30. package/es/modules/dataMap/component/drawerAdd.js +2 -0
  31. package/es/modules/dataMap/component/leftTree.js +4 -1
  32. package/es/modules/dataMap/component/rightDetail.js +42 -87
  33. package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
  34. package/es/modules/dataMap/component/selectAttr.js +91 -0
  35. package/es/modules/dataMap/component/viewMapSetting.d.ts +24 -0
  36. package/es/modules/dataMap/component/viewMapSetting.js +161 -0
  37. package/es/modules/dataMap/css/index.css +196 -168
  38. package/es/modules/dataMap/css/index.less +213 -185
  39. package/es/modules/dataMap/mapSetting.js +21 -4
  40. package/es/modules/dataReal/css/index.css +50 -48
  41. package/es/modules/dataReal/css/index.less +53 -51
  42. package/es/modules/dataReal/index1.js +84 -57
  43. package/es/modules/dataReal/table.js +40 -7
  44. package/es/modules/formulate-rule/addFormulate.d.ts +20 -0
  45. package/es/modules/formulate-rule/addFormulate.js +328 -0
  46. package/es/modules/formulate-rule/addRule.d.ts +19 -0
  47. package/es/modules/formulate-rule/addRule.js +553 -0
  48. package/es/modules/formulate-rule/data.d.ts +16 -0
  49. package/es/modules/formulate-rule/data.js +46 -0
  50. package/es/modules/formulate-rule/demo/index.d.ts +3 -0
  51. package/es/modules/formulate-rule/demo/index.js +6 -0
  52. package/es/modules/formulate-rule/index.d.ts +4 -0
  53. package/es/modules/formulate-rule/index.js +448 -0
  54. package/package.json +2 -2
@@ -1,185 +1,213 @@
1
- .maidianMapIndex {
2
- height: 100%;
3
- .info-upload-tip {
4
- color: var(--io-N4-, #9aa1a9);
5
- }
6
- }
7
- .mapSetting {
8
- &_search {
9
- display: grid;
10
- grid-template-columns: 1fr 100px;
11
- justify-content: space-between;
12
- margin-bottom: 16px;
13
- &_input {
14
- width: 320px;
15
- margin: 0px 10px 0px 0px;
16
- }
17
- }
18
- .ant-page-header {
19
- padding-top: 0px;
20
- padding-left: 0px;
21
- }
22
- &_addMap {
23
- &_tip {
24
- padding: 0px 0px 0px 16px;
25
- color: #67727f;
26
- line-height: 44px;
27
- background: #f2f3f4;
28
- }
29
- &_propTitle {
30
- padding: 0px 0px 0px 16px;
31
- color: #67727f;
32
- color: #354354;
33
- font-size: 14px;
34
- line-height: 32px;
35
- background: #f2f3f4;
36
- }
37
- &_propTitleLeft {
38
- display: inline-block;
39
- width: 58%;
40
- text-align: left;
41
- }
42
- &_propTitleRight {
43
- display: inline-block;
44
- width: 42%;
45
- text-align: left;
46
- }
47
- &_propValueList {
48
- display: flex;
49
- align-items: center;
50
- width: 100%;
51
- margin-top: 8px;
52
- .ant-form-item {
53
- margin: 0px;
54
- }
55
- }
56
- &_propValueflag {
57
- display: inline-block;
58
- margin: 0px 8px;
59
- }
60
- &_content {
61
- display: grid;
62
- grid-template-columns: 1fr 30px 1fr;
63
- }
64
- }
65
- &_footer {
66
- display: flex;
67
- align-items: center;
68
- justify-content: flex-end;
69
- }
70
- &_closeIco {
71
- margin: '0px 8px ';
72
- color: '#9aa1a9';
73
- vertical-align: 'middle';
74
- &:hover {
75
- color: red;
76
- }
77
- }
78
- }
79
-
80
- .leftTreePage {
81
- display: flex;
82
- flex-direction: column;
83
- background-color: white;
84
- &-top {
85
- flex: 1;
86
- }
87
- &-tree {
88
- // max-height: 100%;
89
- }
90
- &_selectMap {
91
- display: grid;
92
- grid-gap: 10px;
93
- grid-template-columns: 75px 1fr 60px;
94
- align-items: center;
95
- margin: 0px 0px 24px;
96
- }
97
- &_selectMap_setting {
98
- margin-left: 10px;
99
- color: #165dff;
100
- cursor: pointer;
101
- }
102
- &_searchBtn {
103
- width: 100%;
104
- padding: 6px 0px;
105
- background-color: transparent;
106
- border: 1px solid #ddd;
107
- cursor: pointer;
108
- }
109
- &_searchBtn:hover {
110
- color: #165dff;
111
- border: 1px solid #165dff;
112
- }
113
- }
114
-
115
- .dataMapDetail_echartDiv {
116
- display: grid;
117
- flex-wrap: wrap;
118
- grid-gap: 20px;
119
- grid-template-columns: repeat(2, 1fr);
120
- align-items: center;
121
- margin-top: 24px;
122
- &_item {
123
- display: grid;
124
- grid-template-columns: 1fr 60px;
125
- align-items: center;
126
- padding: 20px;
127
- background-color: #fafafb;
128
- border: 1px solid #eee;
129
- }
130
- &_leftText {
131
- display: inline-block;
132
- margin-left: 8px;
133
- color: #354354;
134
- }
135
- &_view {
136
- color: #165dff;
137
- }
138
- }
139
- .biz-attr-select-handle {
140
- width: 100%;
141
- max-width: 100%;
142
- margin-bottom: 2px;
143
- padding: 0;
144
- }
145
- .empty {
146
- height: 100%;
147
- color: #67727f;
148
- text-align: center;
149
- .empty-img {
150
- display: block;
151
- width: 200px;
152
- margin: 0px auto;
153
- }
154
- }
155
-
156
- .mapSetting_addMap_form {
157
- .biz-attr-condition-group-handle {
158
- display: none;
159
- }
160
- }
161
- .ziBackground {
162
- .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
163
- padding: 2px 3px;
164
- background-color: #bad8ff7d;
165
- }
166
- }
167
-
168
- .mapSetting {
169
- .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select {
170
- position: relative;
171
- background-color: transparent;
172
- &::after {
173
- position: absolute;
174
- top: 0px;
175
- left: 0;
176
- display: inline-block;
177
- width: 100%;
178
- padding-top: 8px;
179
- text-align: center;
180
- vertical-align: middle;
181
- background-color: white;
182
- content: '是';
183
- }
184
- }
185
- }
1
+ .maidianMapIndex {
2
+ height: 100%;
3
+ .info-upload-tip {
4
+ color: var(--io-N4-, #9aa1a9);
5
+ }
6
+ }
7
+ .mapSetting {
8
+ .ant-input[disabled] {
9
+ background-color: #fafafb !important;
10
+ }
11
+ &_search {
12
+ display: grid;
13
+ grid-template-columns: 1fr 100px;
14
+ justify-content: space-between;
15
+ margin-bottom: 16px;
16
+ &_input {
17
+ width: 320px !important;
18
+ margin: 0px 10px 0px 0px;
19
+ }
20
+ }
21
+ .ant-page-header {
22
+ padding-top: 0px;
23
+ padding-left: 0px;
24
+ }
25
+ &_addMap {
26
+ &_tip {
27
+ padding: 0px 0px 0px 16px;
28
+ color: #67727f;
29
+ line-height: 44px;
30
+ background: #f2f3f4;
31
+ }
32
+ &_propTitle {
33
+ padding: 0px 0px 0px 16px;
34
+ color: #67727f;
35
+ color: #354354;
36
+ font-size: 14px;
37
+ line-height: 32px;
38
+ background: #f2f3f4;
39
+ }
40
+ &_propTitleLeft {
41
+ display: inline-block;
42
+ width: 58%;
43
+ text-align: left;
44
+ }
45
+ &_propTitleRight {
46
+ display: inline-block;
47
+ width: 42%;
48
+ text-align: left;
49
+ }
50
+ &_propContent {
51
+ padding: 0px 0px 0px 0px;
52
+ color: #67727f;
53
+ color: #354354;
54
+ font-size: 14px;
55
+ line-height: 32px;
56
+ }
57
+ &_propContentLeft {
58
+ display: inline-block;
59
+ width: 50%;
60
+ text-align: left;
61
+ }
62
+ &_propContentRight {
63
+ display: inline-block;
64
+ width: 40%;
65
+ text-align: left;
66
+ }
67
+ &_propContentC {
68
+ display: inline-block;
69
+ width: 10%;
70
+ text-align: center;
71
+ }
72
+ &_propValueList {
73
+ display: flex;
74
+ align-items: center;
75
+ width: 100%;
76
+ margin-top: 8px;
77
+ .ant-form-item {
78
+ margin: 0px;
79
+ }
80
+ }
81
+ &_propValueflag {
82
+ display: inline-block;
83
+ margin: 0px 8px;
84
+ }
85
+ &_content {
86
+ display: grid;
87
+ grid-template-columns: 1fr 30px 1fr;
88
+ }
89
+ }
90
+ &_footer {
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: flex-end;
94
+ }
95
+ &_closeIco {
96
+ margin: '0px 8px ';
97
+ color: '#9aa1a9';
98
+ vertical-align: 'middle';
99
+ &:hover {
100
+ color: red;
101
+ }
102
+ }
103
+ }
104
+
105
+ .leftTreePage {
106
+ display: flex;
107
+ flex-direction: column;
108
+ background-color: white;
109
+ &-top {
110
+ flex: 1;
111
+ }
112
+ &-tree {
113
+ // max-height: 100%;
114
+ }
115
+ &_selectMap {
116
+ display: grid;
117
+ grid-gap: 10px;
118
+ grid-template-columns: 75px 1fr 60px;
119
+ align-items: center;
120
+ margin: 0px 0px 24px;
121
+ }
122
+ &_selectMap_setting {
123
+ margin-left: 10px;
124
+ color: #165dff;
125
+ cursor: pointer;
126
+ }
127
+ &_searchBtn {
128
+ width: 100%;
129
+ padding: 6px 0px;
130
+ background-color: transparent;
131
+ border: 1px solid #ddd;
132
+ cursor: pointer;
133
+ }
134
+ &_searchBtn:hover {
135
+ color: #165dff;
136
+ border: 1px solid #165dff;
137
+ }
138
+ }
139
+
140
+ .dataMapDetail_echartDiv {
141
+ display: grid;
142
+ flex-wrap: wrap;
143
+ grid-gap: 20px;
144
+ grid-template-columns: repeat(2, 1fr);
145
+ align-items: center;
146
+ margin-top: 24px;
147
+ &_item {
148
+ display: grid;
149
+ grid-template-columns: 1fr 60px;
150
+ align-items: center;
151
+ padding: 20px;
152
+ background-color: #fafafb;
153
+ border: 1px solid #eee;
154
+ }
155
+ &_leftText {
156
+ display: inline-block;
157
+ margin-left: 8px;
158
+ color: #354354;
159
+ }
160
+ &_view {
161
+ color: #165dff;
162
+ }
163
+ }
164
+ .biz-attr-select-handle {
165
+ width: 100%;
166
+ max-width: 100%;
167
+ margin-bottom: 2px;
168
+ padding: 0;
169
+ }
170
+ .empty {
171
+ height: 100%;
172
+ color: #67727f;
173
+ text-align: center;
174
+ .empty-img {
175
+ display: block;
176
+ width: 200px;
177
+ margin: 0px auto;
178
+ }
179
+ }
180
+
181
+ .mapSetting_addMap_form {
182
+ .biz-attr-condition-group-handle {
183
+ display: none;
184
+ }
185
+ }
186
+ .ziBackground {
187
+ .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
188
+ padding: 2px 3px;
189
+ background-color: #bad8ff7d;
190
+ }
191
+ }
192
+
193
+ .mapSetting {
194
+ .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select {
195
+ position: relative;
196
+ background-color: transparent;
197
+ pointer-events: none;
198
+ &::after {
199
+ position: absolute;
200
+ top: 0px;
201
+ left: -10px;
202
+ display: inline-block;
203
+ width: 120%;
204
+ height: 112%;
205
+ padding-top: 8px;
206
+ text-align: center;
207
+ vertical-align: middle;
208
+ background-color: white;
209
+ border-radius: 4px;
210
+ content: '是';
211
+ }
212
+ }
213
+ }
@@ -9,6 +9,7 @@ import { LeftOutlined, SearchOutlined } from '@ant-design/icons';
9
9
  import React, { useEffect, useState, useRef, useContext } from 'react';
10
10
  import { BizGlobalDataContext } from '@zgfe/business-lib';
11
11
  import DrawerAdd from './component/drawerAdd';
12
+ import ViewMapSetting from './component/viewMapSetting';
12
13
  import './css/index.less';
13
14
  import apis from '../../constants/api';
14
15
  import request from '../../utils/ajax';
@@ -29,9 +30,7 @@ var MapSetting = function MapSetting(props) {
29
30
  _useState4 = _slicedToArray(_useState3, 2),
30
31
  openMapAdd = _useState4[0],
31
32
  setOpenMapAdd = _useState4[1];
32
- var currentMap = useRef({
33
- id: 0
34
- });
33
+ var currentMap = useRef(undefined);
35
34
  var onChange = function onChange(e) {
36
35
  setSearchName(e.currentTarget.value);
37
36
  };
@@ -74,6 +73,11 @@ var MapSetting = function MapSetting(props) {
74
73
  return /*#__PURE__*/React.createElement(Space, {
75
74
  size: "middle"
76
75
  }, /*#__PURE__*/React.createElement("a", {
76
+ onClick: function onClick() {
77
+ currentMap.current = record;
78
+ setOpenMapView(true);
79
+ }
80
+ }, "\u67E5\u770B"), /*#__PURE__*/React.createElement("a", {
77
81
  onClick: function onClick() {
78
82
  currentMap.current = record;
79
83
  UseModal({
@@ -90,6 +94,7 @@ var MapSetting = function MapSetting(props) {
90
94
  }, [searchName]);
91
95
  var handleClose = function handleClose() {
92
96
  setOpenMapAdd(false);
97
+ currentMap.current = undefined;
93
98
  props.getList(searchName);
94
99
  };
95
100
  // 删除
@@ -110,6 +115,14 @@ var MapSetting = function MapSetting(props) {
110
115
  }
111
116
  });
112
117
  };
118
+ var _useState5 = useState(false),
119
+ _useState6 = _slicedToArray(_useState5, 2),
120
+ openMapView = _useState6[0],
121
+ setOpenMapView = _useState6[1];
122
+ var handleViewClose = function handleViewClose() {
123
+ setOpenMapView(false);
124
+ currentMap.current = undefined;
125
+ };
113
126
  return /*#__PURE__*/React.createElement("div", {
114
127
  className: pageClassName
115
128
  }, /*#__PURE__*/React.createElement(PageHeader, {
@@ -139,7 +152,7 @@ var MapSetting = function MapSetting(props) {
139
152
  value: searchName,
140
153
  allowClear: true,
141
154
  onChange: onChange
142
- }), "\u517120\u6761"), /*#__PURE__*/React.createElement(Button, {
155
+ }), "\u5171 ", mapData === null || mapData === void 0 ? void 0 : mapData.length, " \u6761"), /*#__PURE__*/React.createElement(Button, {
143
156
  type: "primary",
144
157
  onClick: function onClick() {
145
158
  return setOpenMapAdd(true);
@@ -151,6 +164,10 @@ var MapSetting = function MapSetting(props) {
151
164
  }), /*#__PURE__*/React.createElement(DrawerAdd, {
152
165
  open: openMapAdd,
153
166
  handleClose: handleClose
167
+ }), /*#__PURE__*/React.createElement(ViewMapSetting, {
168
+ open: openMapView,
169
+ handleClose: handleViewClose,
170
+ currentMap: currentMap.current
154
171
  }));
155
172
  };
156
173
  export default MapSetting;
@@ -1,48 +1,50 @@
1
- .dataReal {
2
- height: 100%;
3
- padding: 24px;
4
- background: #fff;
5
- border-radius: 8px;
6
- }
7
- .dataReal_search {
8
- display: grid;
9
- grid-template-columns: 1fr 100px;
10
- padding: 0px 0px 16px;
11
- border-bottom: 1px solid #f2f3f4;
12
- }
13
- .dataReal_table {
14
- margin: 16px 0px;
15
- }
16
- .dataReal_table_tip {
17
- margin: 0px 0px 16px;
18
- color: #021429;
19
- }
20
- .dataReal_table_tip span {
21
- margin: 0px 0px 0px 6px;
22
- color: #67727f;
23
- }
24
- .dataReal-infoData {
25
- display: flex;
26
- flex-wrap: wrap;
27
- line-height: 26px;
28
- white-space: normal;
29
- /* 保留空白符序列,但是正常换行 */
30
- word-break: break-all;
31
- /* 允许在单词内换行 */
32
- }
33
- .dataReal-infoData-title {
34
- display: inline-block;
35
- color: #007eff;
36
- }
37
- .dataReal-infoData-item {
38
- margin-right: 8px;
39
- }
40
- .dataReal-infoData-value {
41
- color: #1baf3b;
42
- }
43
- .dataReal-canvasEmpty {
44
- position: absolute;
45
- bottom: 260px;
46
- left: 50%;
47
- transform: translateX(-50%);
48
- }
1
+ .dataReal {
2
+ height: 100%;
3
+ padding: 24px;
4
+ background: #fff;
5
+ border-radius: 8px;
6
+ }
7
+ .dataReal_search {
8
+ display: grid;
9
+ grid-template-columns: 1fr 100px;
10
+ padding: 0px 0px 16px;
11
+ border-bottom: 1px solid #f2f3f4;
12
+ }
13
+ .dataReal_table {
14
+ margin: 16px 0px;
15
+ }
16
+ .dataReal_table_tip {
17
+ margin: 0px 0px 16px;
18
+ color: #021429;
19
+ font-weight: bold;
20
+ }
21
+ .dataReal_table_tip span {
22
+ margin: 0px 0px 0px 6px;
23
+ color: #67727f;
24
+ font-weight: 400;
25
+ }
26
+ .dataReal-infoData {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ line-height: 26px;
30
+ white-space: normal;
31
+ /* 保留空白符序列,但是正常换行 */
32
+ word-break: break-all;
33
+ /* 允许在单词内换行 */
34
+ }
35
+ .dataReal-infoData-title {
36
+ display: inline-block;
37
+ color: #007eff;
38
+ }
39
+ .dataReal-infoData-item {
40
+ margin-right: 8px;
41
+ }
42
+ .dataReal-infoData-value {
43
+ color: #1baf3b;
44
+ }
45
+ .dataReal-canvasEmpty {
46
+ position: absolute;
47
+ bottom: 260px;
48
+ left: 50%;
49
+ transform: translateX(-50%);
50
+ }
@@ -1,51 +1,53 @@
1
- .dataReal {
2
- height: 100%;
3
- padding: 24px;
4
- background: #fff;
5
- border-radius: 8px;
6
- border-radius: 8px;
7
- &_search {
8
- display: grid;
9
- grid-template-columns: 1fr 100px;
10
- padding: 0px 0px 16px;
11
- border-bottom: 1px solid #f2f3f4;
12
- }
13
- &_table {
14
- margin: 16px 0px;
15
- &_tip {
16
- margin: 0px 0px 16px;
17
- color: #021429;
18
- span {
19
- margin: 0px 0px 0px 6px;
20
- color: #67727f;
21
- }
22
- }
23
- }
24
- }
25
- .dataReal-infoData {
26
- display: flex;
27
- flex-wrap: wrap;
28
- line-height: 26px;
29
- white-space: normal; /* 保留空白符序列,但是正常换行 */
30
- word-break: break-all; /* 允许在单词内换行 */
31
- }
32
- .dataReal-infoData-title {
33
- display: inline-block;
34
- color: #007eff;
35
- }
36
- .dataReal-infoData-item {
37
- margin-right: 8px;
38
- }
39
- .dataReal-infoData-value {
40
- color: #1baf3b;
41
- }
42
- .dataReal-canvasEmpty {
43
- position: absolute;
44
- bottom: 260px;
45
- left: 50%;
46
- transform: translateX(-50%);
47
- }
48
- // .defineTooltip{
49
- // color: #1baf3b;
50
- // background-color: white;
51
- // }
1
+ .dataReal {
2
+ height: 100%;
3
+ padding: 24px;
4
+ background: #fff;
5
+ border-radius: 8px;
6
+ border-radius: 8px;
7
+ &_search {
8
+ display: grid;
9
+ grid-template-columns: 1fr 100px;
10
+ padding: 0px 0px 16px;
11
+ border-bottom: 1px solid #f2f3f4;
12
+ }
13
+ &_table {
14
+ margin: 16px 0px;
15
+ &_tip {
16
+ margin: 0px 0px 16px;
17
+ color: #021429;
18
+ font-weight: bold;
19
+ span {
20
+ margin: 0px 0px 0px 6px;
21
+ color: #67727f;
22
+ font-weight: 400;
23
+ }
24
+ }
25
+ }
26
+ }
27
+ .dataReal-infoData {
28
+ display: flex;
29
+ flex-wrap: wrap;
30
+ line-height: 26px;
31
+ white-space: normal; /* 保留空白符序列,但是正常换行 */
32
+ word-break: break-all; /* 允许在单词内换行 */
33
+ }
34
+ .dataReal-infoData-title {
35
+ display: inline-block;
36
+ color: #007eff;
37
+ }
38
+ .dataReal-infoData-item {
39
+ margin-right: 8px;
40
+ }
41
+ .dataReal-infoData-value {
42
+ color: #1baf3b;
43
+ }
44
+ .dataReal-canvasEmpty {
45
+ position: absolute;
46
+ bottom: 260px;
47
+ left: 50%;
48
+ transform: translateX(-50%);
49
+ }
50
+ // .defineTooltip{
51
+ // color: #1baf3b;
52
+ // background-color: white;
53
+ // }