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

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.
@@ -126,34 +126,18 @@ var CreateMeta = function CreateMeta(props) {
126
126
  eventName: values.eventName,
127
127
  aliasName: values.aliasName,
128
128
  triggeringOccasion: triTagInput,
129
- del: 1,
130
129
  eventAttrList: eventAttrList,
131
130
  businessLabelId: values.businessLabelId,
132
- triggerLabelId: triTagId
131
+ triggerLabelId: triTagId,
132
+ businessLabel: bizTag.filter(function (res) {
133
+ return res.id == values.businessLabelId;
134
+ })[0],
135
+ triggerLabel: triTag.filter(function (res) {
136
+ return res.id == values.businessLabelId;
137
+ })[0]
133
138
  }, 'create');
134
139
  }
135
140
  }
136
- // request<any>(apis.createEvent, {
137
- // method: 'POST',
138
- // data: {
139
- // app_id: currentApp?.appId,
140
- // eventName: values.eventName,
141
- // aliasName: values.aliasName,
142
- // triggeringOccasion: values.triggeringOccasion,
143
- // eventAttrList,
144
- // },
145
- // }).then((res) => {
146
- // if (res?.code === '100000') {
147
- // notification.success({
148
- // message: '保存成功',
149
- // });
150
- // props.onSubmit && props.onSubmit();
151
- // } else {
152
- // notification.error({
153
- // message: '保存失败',
154
- // });
155
- // }
156
- // });
157
141
  _context.next = 17;
158
142
  break;
159
143
  case 14:
@@ -557,7 +541,7 @@ var CreateMeta = function CreateMeta(props) {
557
541
  initialValues: {
558
542
  eventName: '',
559
543
  aliasName: '',
560
- businessLabelId: '',
544
+ businessLabelId: undefined,
561
545
  maidianID: []
562
546
  }
563
547
  }, homeType == 'create' && (/*#__PURE__*/React.createElement(Form.Item, {
@@ -532,7 +532,7 @@ var PageInfo = function PageInfo(props) {
532
532
  }, record.triggerLabel.labelName)));
533
533
  return /*#__PURE__*/React.createElement(Popover, {
534
534
  content: content,
535
- title: sliceName(eventName) || ''
535
+ title: sliceName(record) || ''
536
536
  }, /*#__PURE__*/React.createElement("a", {
537
537
  onClick: function onClick() {
538
538
  if (!isSelect) {
@@ -886,20 +886,16 @@ var PageInfo = function PageInfo(props) {
886
886
  //设置新添加的元事件
887
887
  var onEventSet = function onEventSet(data, type) {
888
888
  if (type == 'create') {
889
- setEventAttrList([{
890
- eventName: data.eventName,
891
- triggeringOccasion: data.triggeringOccasion,
892
- aliasName: data.aliasName,
889
+ setEventAttrList([_objectSpread(_objectSpread({}, data), {}, {
893
890
  describe: '',
894
891
  pointSelect: undefined,
895
892
  imgPath: '',
896
893
  index: eventAttrList.length,
897
894
  key: new Date() * 1,
898
- eventAttrList: data.eventAttrList,
899
895
  pageName: pageName,
900
896
  pageId: id,
901
897
  pageImgUrl: imgPath
902
- }].concat(_toConsumableArray(eventAttrList)));
898
+ })].concat(_toConsumableArray(eventAttrList)));
903
899
  setShowIndex(eventAttrList.length);
904
900
  setTimeout(function () {
905
901
  setShowIndex(void 0);
@@ -920,7 +916,7 @@ var PageInfo = function PageInfo(props) {
920
916
  //拼接名称
921
917
  var sliceName = function sliceName(record) {
922
918
  var _record$businessLabel, _record$triggerLabel;
923
- var point = record.labels && record.labels.filter(function (res) {
919
+ var point = props.pageData.labels && props.pageData.labels.filter(function (res) {
924
920
  return res.labelType == 1;
925
921
  }).map(function (res) {
926
922
  return res.labelName;
@@ -1191,7 +1187,7 @@ var PageInfo = function PageInfo(props) {
1191
1187
  isEdit: true,
1192
1188
  onSubmit: function onSubmit(event, type) {
1193
1189
  setCreateMetaShow(false);
1194
- console.log(event, '事件内容');
1190
+ // console.log(event, '事件内容');
1195
1191
  onEventSet(event, type);
1196
1192
  },
1197
1193
  // selectTreeName={props.selectTreeName}
@@ -158,4 +158,8 @@
158
158
  display: flex;
159
159
  align-items: center;
160
160
  }
161
+ .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
162
+ color: #021429;
163
+ background-color: #f2f3f4;
164
+ }
161
165
  }
@@ -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 || 0, ")"), /*#__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.7",
3
+ "version": "2.1.0-zhongyuan.8",
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": "47cbe999df717a272a641007018239d5b7270922",
70
+ "gitHead": "1756aba61064e28b66ad537e900d35c18c2e3f57",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }