@zgfe/business-lib 1.1.29-alpha.3 → 1.1.29-alpha.4
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.
|
@@ -105,12 +105,12 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
105
105
|
canDelete = true;
|
|
106
106
|
|
|
107
107
|
if (((_targetData$value$eve = targetData.value.event) === null || _targetData$value$eve === void 0 ? void 0 : _targetData$value$eve.id) === -100 || ((_targetData$value$eve2 = targetData.value.event) === null || _targetData$value$eve2 === void 0 ? void 0 : _targetData$value$eve2.id) === -204 || ((_targetData$value$eve3 = targetData.value.event) === null || _targetData$value$eve3 === void 0 ? void 0 : _targetData$value$eve3.id) === -205) {
|
|
108
|
-
var _targetData$value$gro;
|
|
108
|
+
var _targetData$value$gro, _targetData$value$eve4;
|
|
109
109
|
|
|
110
110
|
canAdd = false;
|
|
111
111
|
setFilters(undefined);
|
|
112
112
|
|
|
113
|
-
if (!((_targetData$value$gro = targetData.value.group) === null || _targetData$value$gro === void 0 ? void 0 : _targetData$value$gro.id)) {
|
|
113
|
+
if (!((_targetData$value$gro = targetData.value.group) === null || _targetData$value$gro === void 0 ? void 0 : _targetData$value$gro.id) && ((_targetData$value$eve4 = targetData.value.event) === null || _targetData$value$eve4 === void 0 ? void 0 : _targetData$value$eve4.id) === -100) {
|
|
114
114
|
canDelete = false;
|
|
115
115
|
}
|
|
116
116
|
} else {
|
|
@@ -203,13 +203,13 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
var onChangeTarget = function onChangeTarget(target) {
|
|
206
|
-
var _target$value, _target$value$event, _targetData$value, _targetData$value$
|
|
206
|
+
var _target$value, _target$value$event, _targetData$value, _targetData$value$eve5;
|
|
207
207
|
|
|
208
208
|
setTargetData(target);
|
|
209
209
|
|
|
210
210
|
var filterData = _.cloneDeep(filters);
|
|
211
211
|
|
|
212
|
-
if (((_target$value = target.value) === null || _target$value === void 0 ? void 0 : (_target$value$event = _target$value.event) === null || _target$value$event === void 0 ? void 0 : _target$value$event.id) !== (targetData === null || targetData === void 0 ? void 0 : (_targetData$value = targetData.value) === null || _targetData$value === void 0 ? void 0 : (_targetData$value$
|
|
212
|
+
if (((_target$value = target.value) === null || _target$value === void 0 ? void 0 : (_target$value$event = _target$value.event) === null || _target$value$event === void 0 ? void 0 : _target$value$event.id) !== (targetData === null || targetData === void 0 ? void 0 : (_targetData$value = targetData.value) === null || _targetData$value === void 0 ? void 0 : (_targetData$value$eve5 = _targetData$value.event) === null || _targetData$value$eve5 === void 0 ? void 0 : _targetData$value$eve5.id)) {
|
|
213
213
|
filterData = undefined;
|
|
214
214
|
setFilters(undefined);
|
|
215
215
|
setIsAdd(false);
|
|
@@ -241,15 +241,23 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
241
241
|
|
|
242
242
|
var onChange = function onChange(analysisDimension, target, filterData) {
|
|
243
243
|
if (props.onChange) {
|
|
244
|
-
var _target$value$event2, _target$value$event3, _target$value$event4, _target$value$event5, _target$value$event6, _target$value$
|
|
244
|
+
var _target$value$event2, _target$value$event3, _target$value$event4, _target$value$event5, _target$value$event6, _target$value$group2;
|
|
245
245
|
|
|
246
246
|
if (!target || !target.value || !((_target$value$event2 = target.value.event) === null || _target$value$event2 === void 0 ? void 0 : _target$value$event2.id)) return;
|
|
247
|
+
var type = target.value.event.type;
|
|
248
|
+
|
|
249
|
+
if (!type) {
|
|
250
|
+
var _target$value$group;
|
|
251
|
+
|
|
252
|
+
type = ((_target$value$group = target.value.group) === null || _target$value$group === void 0 ? void 0 : _target$value$group.id) === -2 ? 'whole' : 'event';
|
|
253
|
+
}
|
|
254
|
+
|
|
247
255
|
var data = {
|
|
248
|
-
type:
|
|
256
|
+
type: type,
|
|
249
257
|
alias: (target === null || target === void 0 ? void 0 : target.alias) || target.value.event.alias || ((_target$value$event3 = target.value.event) === null || _target$value$event3 === void 0 ? void 0 : _target$value$event3.name) || '',
|
|
250
258
|
eventId: (_target$value$event4 = target.value.event) === null || _target$value$event4 === void 0 ? void 0 : _target$value$event4.id,
|
|
251
259
|
eventName: ((_target$value$event5 = target.value.event) === null || _target$value$event5 === void 0 ? void 0 : _target$value$event5.alias) || ((_target$value$event6 = target.value.event) === null || _target$value$event6 === void 0 ? void 0 : _target$value$event6.name),
|
|
252
|
-
eventGroupId: (_target$value$
|
|
260
|
+
eventGroupId: (_target$value$group2 = target.value.group) === null || _target$value$group2 === void 0 ? void 0 : _target$value$group2.id,
|
|
253
261
|
analysisDimension: analysisDimension,
|
|
254
262
|
filters: filterData,
|
|
255
263
|
marked: target.value.event.marked,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.29-alpha.
|
|
3
|
+
"version": "1.1.29-alpha.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react": "^16.12.0 || ^17.0.0",
|
|
60
60
|
"yorkie": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "92c367ccc1eddc3387d4cc8da77fff9b4f1a6f24"
|
|
63
63
|
}
|