@zgfe/modules-settings 2.1.0-zhongyuan.6 → 2.1.0-zhongyuan.7

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.
@@ -76,8 +76,10 @@ var CreateMeta = function CreateMeta(props) {
76
76
  form.setFieldsValue({
77
77
  aliasName: data.aliasName,
78
78
  eventName: data.eventName,
79
- triggeringOccasion: data.triggeringOccasion
79
+ businessLabelId: data.businessLabelId
80
80
  });
81
+ setTriTagInput(data.triggeringOccasion);
82
+ setTriTagId(data.triggerLabelId);
81
83
  setInputText(data.eventName);
82
84
  if (data.eventAttrList) {
83
85
  setEventAttrList(_toConsumableArray(data.eventAttrList));
@@ -113,7 +115,7 @@ var CreateMeta = function CreateMeta(props) {
113
115
  });
114
116
  return _context.abrupt("return");
115
117
  case 11:
116
- //吧参数传递给主页面
118
+ //把参数传递给主页面
117
119
  if (props.onSubmit) {
118
120
  if (props.data) {
119
121
  props.onSubmit(_objectSpread(_objectSpread({}, props.data), {}, {
@@ -123,10 +125,11 @@ var CreateMeta = function CreateMeta(props) {
123
125
  props.onSubmit({
124
126
  eventName: values.eventName,
125
127
  aliasName: values.aliasName,
126
- triggeringOccasion: values.triggeringOccasion,
128
+ triggeringOccasion: triTagInput,
127
129
  del: 1,
128
130
  eventAttrList: eventAttrList,
129
- bizTagId: bizTagId
131
+ businessLabelId: values.businessLabelId,
132
+ triggerLabelId: triTagId
130
133
  }, 'create');
131
134
  }
132
135
  }
@@ -473,8 +476,8 @@ var CreateMeta = function CreateMeta(props) {
473
476
  setBizTag = _useState18[1];
474
477
  var _useState19 = useState(),
475
478
  _useState20 = _slicedToArray(_useState19, 2),
476
- bizTagId = _useState20[0],
477
- setBizTagId = _useState20[1];
479
+ triTagInput = _useState20[0],
480
+ setTriTagInput = _useState20[1];
478
481
  var _useState21 = useState([]),
479
482
  _useState22 = _slicedToArray(_useState21, 2),
480
483
  triTag = _useState22[0],
@@ -496,7 +499,7 @@ var CreateMeta = function CreateMeta(props) {
496
499
  case 2:
497
500
  setBizTag(res.data.map(function (res) {
498
501
  return {
499
- label: res.name,
502
+ label: res.labelName,
500
503
  value: res.id
501
504
  };
502
505
  }));
@@ -504,7 +507,7 @@ var CreateMeta = function CreateMeta(props) {
504
507
  case 3:
505
508
  setTriTag(res.data.map(function (res) {
506
509
  return {
507
- label: res.name,
510
+ label: res.labelName,
508
511
  value: res.id
509
512
  };
510
513
  }));
@@ -554,7 +557,7 @@ var CreateMeta = function CreateMeta(props) {
554
557
  initialValues: {
555
558
  eventName: '',
556
559
  aliasName: '',
557
- triggeringOccasion: '',
560
+ businessLabelId: '',
558
561
  maidianID: []
559
562
  }
560
563
  }, homeType == 'create' && (/*#__PURE__*/React.createElement(Form.Item, {
@@ -619,9 +622,10 @@ var CreateMeta = function CreateMeta(props) {
619
622
  },
620
623
  disabled: homeType == 'update' || homeType == 'get',
621
624
  placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u6807\u7B7E",
625
+ defaultValue: triTagId,
622
626
  options: triTag,
623
627
  onChange: function onChange(value) {
624
- setBizTagId(value);
628
+ setTriTagId(value);
625
629
  setIsChange(true);
626
630
  }
627
631
  }), "\u6216", /*#__PURE__*/React.createElement(Input, {
@@ -632,9 +636,11 @@ var CreateMeta = function CreateMeta(props) {
632
636
  marginLeft: '10px'
633
637
  },
634
638
  placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u65F6\u673A\uFF0C\u4F8B\u5982\uFF1A\u7528\u6237\u70B9\u51FB\u786E\u8BA4\u6309\u94AE",
639
+ defaultValue: triTagInput,
635
640
  showCount: true,
636
641
  maxLength: 128,
637
642
  onChange: function onChange(e) {
643
+ setTriTagInput(e.target.value);
638
644
  setIsChange(true);
639
645
  }
640
646
  })), /*#__PURE__*/React.createElement(Form.Item, {
@@ -1191,6 +1191,7 @@ var PageInfo = function PageInfo(props) {
1191
1191
  isEdit: true,
1192
1192
  onSubmit: function onSubmit(event, type) {
1193
1193
  setCreateMetaShow(false);
1194
+ console.log(event, '事件内容');
1194
1195
  onEventSet(event, type);
1195
1196
  },
1196
1197
  // selectTreeName={props.selectTreeName}
@@ -1,157 +1,161 @@
1
- .setting-point-map {
2
- display: flex;
3
- flex-direction: row;
4
- gap: 16px;
5
- width: 100%;
6
- height: 100%;
7
- padding: 16px;
8
- background-color: #fafafb;
9
- &-left {
10
- position: relative;
11
- min-width: 350px;
12
- max-width: 600px;
13
- &-drag {
14
- position: absolute;
15
- top: 0;
16
- right: 0;
17
- width: 6px;
18
- height: 100%;
19
- border-right: 2px solid transparent;
20
- cursor: ew-resize;
21
- }
22
- }
23
- &-right {
24
- flex: 1;
25
- overflow: hidden;
26
- }
27
- .setting-point-map-page-content-img-select {
28
- position: relative;
29
- }
30
- .ant-image {
31
- position: static;
32
- }
33
- .ant-image .ant-image-mask {
34
- color: #fff;
35
- font-size: 24px;
36
- background: rgba(2, 20, 41, 0.5) !important;
37
- }
38
- &-addListBtn {
39
- display: flex;
40
- align-items: center;
41
- justify-content: space-between;
42
- }
43
- }
44
-
45
- .setting-create-meta-drawer {
46
- .set:hover {
47
- color: #ff4d4f;
48
- }
49
- &-content {
50
- display: flex;
51
- flex: 1;
52
- flex-direction: column;
53
- gap: 24px;
54
- &-select {
55
- display: flex;
56
- align-items: center;
57
- justify-content: right;
58
- margin-right: -12px;
59
- margin-left: -16px;
60
- }
61
- .ant-table-thead > tr > th {
62
- color: var(--io-N-, #021429);
63
- font-weight: 400;
64
- font-size: 14px;
65
- font-family: 'PingFang SC';
66
- font-style: normal;
67
- line-height: normal;
68
- }
69
- }
70
- &-table {
71
- margin: 20px 0px;
72
- overflow: hidden;
73
- border-radius: 8px;
74
- }
75
-
76
- &-info {
77
- display: flex;
78
- flex-direction: row;
79
- gap: 12px;
80
- align-items: center;
81
- height: 32px;
82
- &-title {
83
- display: flex;
84
- flex-direction: row;
85
- gap: 4px;
86
- justify-content: flex-end;
87
- width: 68px;
88
- color: var(--io-N6-, #67727f);
89
- font-weight: 400;
90
- font-size: 14px;
91
- font-family: 'PingFang SC';
92
- font-style: normal;
93
- line-height: 32px;
94
- line-height: normal;
95
- text-align: right;
96
- }
97
- &-input {
98
- position: relative;
99
- flex: 1;
100
- .button:not(.disabled):not(.ant-btn-primary) {
101
- float: right;
102
- padding: 0 16px;
103
- color: #1454e5;
104
- border: 1px solid #1454e5;
105
- }
106
- &-num {
107
- position: absolute;
108
- top: 6px;
109
- right: 12px;
110
- color: var(--io-N4-, #9aa1a9);
111
- font-weight: 400;
112
- font-size: 14px;
113
- font-family: 'PingFang SC';
114
- font-style: normal;
115
- line-height: 20px;
116
- }
117
- }
118
- }
119
-
120
- &-footer {
121
- display: flex;
122
- gap: 16px;
123
- align-items: center;
124
- justify-content: flex-end;
125
- margin: 0 -24px -24px;
126
- padding: 18px 24px 18px 0px;
127
- background: #fff;
128
- border-top: 1px solid var(--io-N1-, #e6e7ea);
129
- }
130
- .ant-drawer-content-wrapper {
131
- overflow-x: hidden;
132
- }
133
- .ant-drawer-content,
134
- .ant-drawer-wrapper-body {
135
- overflow: hidden !important;
136
- }
137
- .ant-drawer-body {
138
- display: flex;
139
- flex-direction: column;
140
- }
141
- .ant-drawer-title {
142
- span {
143
- margin-left: 8px;
144
- color: #9aa1a9;
145
- font-size: 12px;
146
- }
147
- }
148
- .ant-drawer-close {
149
- display: none;
150
- }
151
- .ant-drawer-extra {
152
- .qingchu {
153
- font-size: 20px !important;
154
- cursor: pointer;
155
- }
156
- }
157
- }
1
+ .setting-point-map {
2
+ display: flex;
3
+ flex-direction: row;
4
+ gap: 16px;
5
+ width: 100%;
6
+ height: 100%;
7
+ padding: 16px;
8
+ background-color: #fafafb;
9
+ &-left {
10
+ position: relative;
11
+ min-width: 350px;
12
+ max-width: 600px;
13
+ &-drag {
14
+ position: absolute;
15
+ top: 0;
16
+ right: 0;
17
+ width: 6px;
18
+ height: 100%;
19
+ border-right: 2px solid transparent;
20
+ cursor: ew-resize;
21
+ }
22
+ }
23
+ &-right {
24
+ flex: 1;
25
+ overflow: hidden;
26
+ }
27
+ .setting-point-map-page-content-img-select {
28
+ position: relative;
29
+ }
30
+ .ant-image {
31
+ position: static;
32
+ }
33
+ .ant-image .ant-image-mask {
34
+ color: #fff;
35
+ font-size: 24px;
36
+ background: rgba(2, 20, 41, 0.5) !important;
37
+ }
38
+ &-addListBtn {
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: space-between;
42
+ }
43
+ }
44
+
45
+ .setting-create-meta-drawer {
46
+ .set:hover {
47
+ color: #ff4d4f;
48
+ }
49
+ &-content {
50
+ display: flex;
51
+ flex: 1;
52
+ flex-direction: column;
53
+ gap: 24px;
54
+ &-select {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: right;
58
+ margin-right: -12px;
59
+ margin-left: -16px;
60
+ }
61
+ .ant-table-thead > tr > th {
62
+ color: var(--io-N-, #021429);
63
+ font-weight: 400;
64
+ font-size: 14px;
65
+ font-family: 'PingFang SC';
66
+ font-style: normal;
67
+ line-height: normal;
68
+ }
69
+ }
70
+ &-table {
71
+ margin: 20px 0px;
72
+ overflow: hidden;
73
+ border-radius: 8px;
74
+ }
75
+
76
+ &-info {
77
+ display: flex;
78
+ flex-direction: row;
79
+ gap: 12px;
80
+ align-items: center;
81
+ height: 32px;
82
+ &-title {
83
+ display: flex;
84
+ flex-direction: row;
85
+ gap: 4px;
86
+ justify-content: flex-end;
87
+ width: 68px;
88
+ color: var(--io-N6-, #67727f);
89
+ font-weight: 400;
90
+ font-size: 14px;
91
+ font-family: 'PingFang SC';
92
+ font-style: normal;
93
+ line-height: 32px;
94
+ line-height: normal;
95
+ text-align: right;
96
+ }
97
+ &-input {
98
+ position: relative;
99
+ flex: 1;
100
+ .button:not(.disabled):not(.ant-btn-primary) {
101
+ float: right;
102
+ padding: 0 16px;
103
+ color: #1454e5;
104
+ border: 1px solid #1454e5;
105
+ }
106
+ &-num {
107
+ position: absolute;
108
+ top: 6px;
109
+ right: 12px;
110
+ color: var(--io-N4-, #9aa1a9);
111
+ font-weight: 400;
112
+ font-size: 14px;
113
+ font-family: 'PingFang SC';
114
+ font-style: normal;
115
+ line-height: 20px;
116
+ }
117
+ }
118
+ }
119
+
120
+ &-footer {
121
+ display: flex;
122
+ gap: 16px;
123
+ align-items: center;
124
+ justify-content: flex-end;
125
+ margin: 0 -24px -24px;
126
+ padding: 18px 24px 18px 0px;
127
+ background: #fff;
128
+ border-top: 1px solid var(--io-N1-, #e6e7ea);
129
+ }
130
+ .ant-drawer-content-wrapper {
131
+ overflow-x: hidden;
132
+ }
133
+ .ant-drawer-content,
134
+ .ant-drawer-wrapper-body {
135
+ overflow: hidden !important;
136
+ }
137
+ .ant-drawer-body {
138
+ display: flex;
139
+ flex-direction: column;
140
+ }
141
+ .ant-drawer-title {
142
+ span {
143
+ margin-left: 8px;
144
+ color: #9aa1a9;
145
+ font-size: 12px;
146
+ }
147
+ }
148
+ .ant-drawer-close {
149
+ display: none;
150
+ }
151
+ .ant-drawer-extra {
152
+ .qingchu {
153
+ font-size: 20px !important;
154
+ cursor: pointer;
155
+ }
156
+ }
157
+ .ant-form-item-control-input-content {
158
+ display: flex;
159
+ align-items: center;
160
+ }
161
+ }
@@ -201,7 +201,7 @@ var pointMap = function pointMap(props) {
201
201
  }
202
202
  }).then(function (res) {
203
203
  if (res && res.code === '100000') {
204
- pageNum = (res === null || res === void 0 ? void 0 : res.data.length) + 1;
204
+ pageNum = ((res === null || res === void 0 ? void 0 : res.data.length) || 0) + 1;
205
205
  setTreeData(formatTreeData((res === null || res === void 0 ? void 0 : res.data) || []));
206
206
  setTreeArr(formatTreeArr((res === null || res === void 0 ? void 0 : res.data) || [], [], '') || []);
207
207
  if (!selectedKeys) {
@@ -457,7 +457,7 @@ var pointMap = function pointMap(props) {
457
457
  }
458
458
  }, /*#__PURE__*/React.createElement("span", {
459
459
  className: "".concat(classPrefix, "-tree-item-title-name")
460
- }, nodeData.name, " ", nodeData.pointsum ? "(".concat(nodeData.pointsum, ")") : ''), /*#__PURE__*/React.createElement(Popover, {
460
+ }, nodeData.name, " ", nodeData.pointSum ? "(".concat(nodeData.pointSum, ")") : ''), /*#__PURE__*/React.createElement(Popover, {
461
461
  placement: "topLeft",
462
462
  title: "\u4F4D\u7F6E\u6807\u7B7E",
463
463
  content: pointContent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.1.0-zhongyuan.6",
3
+ "version": "2.1.0-zhongyuan.7",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "d683909a541176c20d6bc50e315559251fa362a3",
70
+ "gitHead": "47cbe999df717a272a641007018239d5b7270922",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }