@zgfe/business-lib 1.1.50-tag.6 → 1.1.50

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 (103) hide show
  1. package/es/addToPanel/demo/edit.d.ts +2 -1
  2. package/es/addToPanel/demo/index.d.ts +2 -1
  3. package/es/addToPanel/index.js +46 -38
  4. package/es/addToPanel/types.d.ts +2 -2
  5. package/es/addToScene/demo/index.d.ts +2 -1
  6. package/es/assets/demo/input.d.ts +2 -1
  7. package/es/attrConditions/demo/group.d.ts +2 -1
  8. package/es/attrConditions/demo/index.d.ts +2 -1
  9. package/es/attributeSelector/demo/disable.d.ts +2 -1
  10. package/es/attributeSelector/demo/index.d.ts +2 -1
  11. package/es/chart/demo/bar.d.ts +2 -1
  12. package/es/chart/demo/index.d.ts +2 -1
  13. package/es/chart/demo/map.d.ts +2 -1
  14. package/es/chart/demo/pie.d.ts +2 -1
  15. package/es/colorIcon/demo/index.d.ts +2 -1
  16. package/es/constants/apis.d.ts +0 -5
  17. package/es/constants/apis.js +4 -9
  18. package/es/cycleTime/demo/disable.d.ts +2 -1
  19. package/es/cycleTime/demo/index.d.ts +2 -1
  20. package/es/cycleTime/demo/multi.d.ts +2 -1
  21. package/es/datePicker/demo/customType.d.ts +2 -1
  22. package/es/datePicker/demo/day.d.ts +2 -1
  23. package/es/datePicker/demo/index.d.ts +2 -1
  24. package/es/demoWrapper/demo/index.d.ts +2 -1
  25. package/es/dialog/demo/index.d.ts +2 -1
  26. package/es/dnd/demo/data.d.ts +2 -1
  27. package/es/dnd/demo/handle.d.ts +2 -1
  28. package/es/dnd/demo/index.d.ts +2 -1
  29. package/es/eventSelector/demo/index.d.ts +2 -1
  30. package/es/icon/demo/index.d.ts +2 -1
  31. package/es/icon/demo/list.d.ts +2 -1
  32. package/es/index.d.ts +1 -3
  33. package/es/index.js +1 -3
  34. package/es/layout/analysisLayout/demo/index.d.ts +2 -1
  35. package/es/layout/detail/demo/index.d.ts +2 -1
  36. package/es/loginForm/demo/index.d.ts +2 -1
  37. package/es/searchInput/demo/index.d.ts +2 -1
  38. package/es/select/demo/children.d.ts +2 -1
  39. package/es/select/demo/customLabel.d.ts +2 -1
  40. package/es/select/demo/group.d.ts +2 -1
  41. package/es/select/demo/index.d.ts +2 -1
  42. package/es/select/demo/loading.d.ts +2 -1
  43. package/es/select/demo/multiple.d.ts +2 -1
  44. package/es/socket/demo/demo.d.ts +2 -1
  45. package/es/table/demo/index.d.ts +2 -1
  46. package/es/table/demo/index2.d.ts +2 -1
  47. package/es/table/demo/index3.d.ts +2 -1
  48. package/es/targetConditionGroup/demo/group.d.ts +2 -1
  49. package/es/targetConditionGroup/demo/index.d.ts +2 -1
  50. package/es/targetSelector/demo/index.d.ts +2 -1
  51. package/es/userCondition/conditions/business/paramsCondition.js +5 -1
  52. package/es/userCondition/conditions/tagsCondition.js +10 -5
  53. package/es/userCondition/demo/business.d.ts +2 -1
  54. package/es/userCondition/demo/business.js +1 -6
  55. package/es/userCondition/demo/index.d.ts +2 -1
  56. package/es/userCondition/demo/index.js +11 -4
  57. package/es/userCondition/demo/mockData.d.ts +53 -21
  58. package/es/userCondition/demo/mockData.js +430 -84
  59. package/es/userCondition/orConditions.js +0 -1
  60. package/es/userGroup/demo/group.d.ts +2 -1
  61. package/es/userGroup/demo/index.d.ts +2 -1
  62. package/es/userTagsSelector/cascaderOverlay.js +85 -180
  63. package/es/userTagsSelector/demo/index.d.ts +2 -1
  64. package/es/userTagsSelector/demo/index.js +43 -45
  65. package/es/userTagsSelector/groups/index.js +7 -3
  66. package/es/userTagsSelector/index.js +8 -5
  67. package/es/userTagsSelector/types.d.ts +2 -39
  68. package/package.json +2 -2
  69. package/es/layout/optionTitle/components/btnMenu/api.d.ts +0 -4
  70. package/es/layout/optionTitle/components/btnMenu/api.js +0 -7
  71. package/es/layout/optionTitle/components/btnMenu/demo.d.ts +0 -2
  72. package/es/layout/optionTitle/components/btnMenu/demo.js +0 -80
  73. package/es/layout/optionTitle/components/btnMenu/index.d.ts +0 -5
  74. package/es/layout/optionTitle/components/btnMenu/index.js +0 -48
  75. package/es/layout/optionTitle/components/btnMenu/index.less +0 -18
  76. package/es/layout/optionTitle/components/title/demo.d.ts +0 -2
  77. package/es/layout/optionTitle/components/title/demo.js +0 -50
  78. package/es/layout/optionTitle/components/title/index.d.ts +0 -5
  79. package/es/layout/optionTitle/components/title/index.js +0 -106
  80. package/es/layout/optionTitle/components/title/index.less +0 -42
  81. package/es/layout/optionTitle/data.d.ts +0 -3
  82. package/es/layout/optionTitle/data.js +0 -77
  83. package/es/layout/optionTitle/demo/index.d.ts +0 -2
  84. package/es/layout/optionTitle/demo/index.js +0 -116
  85. package/es/layout/optionTitle/demo/index.less +0 -12
  86. package/es/layout/optionTitle/demo/layout.d.ts +0 -3
  87. package/es/layout/optionTitle/demo/layout.js +0 -41
  88. package/es/layout/optionTitle/demo/panelCreate.d.ts +0 -2
  89. package/es/layout/optionTitle/demo/panelCreate.js +0 -114
  90. package/es/layout/optionTitle/index.d.ts +0 -6
  91. package/es/layout/optionTitle/index.js +0 -155
  92. package/es/layout/optionTitle/layout.d.ts +0 -5
  93. package/es/layout/optionTitle/layout.js +0 -38
  94. package/es/layout/optionTitle/styles/index.less +0 -19
  95. package/es/layout/optionTitle/styles/layout.less +0 -43
  96. package/es/layout/optionTitle/styles/search.less +0 -27
  97. package/es/layout/optionTitle/types.d.ts +0 -85
  98. package/es/layout/optionTitle/types.js +0 -15
  99. package/es/layout/optionTitle/typesValue.d.ts +0 -4
  100. package/es/layout/optionTitle/typesValue.js +0 -7
  101. package/es/userTagsSelector/components/tagList/index.d.ts +0 -14
  102. package/es/userTagsSelector/components/tagList/index.js +0 -65
  103. package/es/userTagsSelector/components/tagList/index.less +0 -13
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -50,9 +50,9 @@ var BizAddToPanel = function BizAddToPanel(props) {
50
50
  request(Apis.queryPanelGroup, {
51
51
  method: 'post',
52
52
  data: {
53
- appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
53
+ app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
54
54
  platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0,
55
- roleType: 3
55
+ role_type: 3
56
56
  }
57
57
  }).then(function (res) {
58
58
  if (!res) {
@@ -61,7 +61,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
61
61
  });
62
62
  return;
63
63
  }
64
- setGroupList(res.data || []);
64
+ setGroupList(res.panels || []);
65
65
  }).catch(function () {
66
66
  notification.error({
67
67
  message: '获取看板列表失败'
@@ -96,22 +96,22 @@ var BizAddToPanel = function BizAddToPanel(props) {
96
96
  if (props.type === 'edit') {
97
97
  data = {
98
98
  name: form.name,
99
- panelId: form.panel.id,
100
- elementId: props.elementId,
101
- webData: JSON.stringify(resData)
99
+ panel_id: form.panel.id,
100
+ element_id: props.elementId,
101
+ web_data: JSON.stringify(resData)
102
102
  };
103
103
  } else {
104
104
  data = {
105
105
  name: form.name,
106
- panelId: form.panel.id,
107
- webData: JSON.stringify(resData),
108
- mobileData: JSON.stringify(resData)
106
+ panel_id: form.panel.id,
107
+ web_data: JSON.stringify(resData),
108
+ mobile_data: JSON.stringify(resData)
109
109
  };
110
110
  if (form.panel.id === 0) {
111
- data.appId = currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId;
111
+ data.app_id = currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId;
112
112
  data.platform = (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0;
113
- data.panelName = form.panel.name;
114
- data.openType = form.panel.open_type;
113
+ data.panel_name = form.panel.name;
114
+ data.open_type = form.panel.open_type;
115
115
  }
116
116
  url = Apis.addPanel;
117
117
  msgType = '添加';
@@ -122,35 +122,43 @@ var BizAddToPanel = function BizAddToPanel(props) {
122
122
  }).then(function (res) {
123
123
  setLoading(false);
124
124
  var result = res;
125
- if (!res) {
126
- notification.error({
127
- message: "".concat(msgType, "\u5931\u8D25")
125
+ if (result.flag === 101) {
126
+ var _result$panel2;
127
+ notification.success({
128
+ message: /*#__PURE__*/React.createElement(React.Fragment, null, msgType, "\u81F3", /*#__PURE__*/React.createElement("a", {
129
+ onClick: function onClick() {
130
+ var _result$panel;
131
+ if (router && routes) router.push({
132
+ name: routes.panel,
133
+ params: {
134
+ panelId: ((_result$panel = result.panel) === null || _result$panel === void 0 ? void 0 : _result$panel.id) || form.panel.id
135
+ }
136
+ });
137
+ }
138
+ }, form.panel.name || ((_result$panel2 = result.panel) === null || _result$panel2 === void 0 ? void 0 : _result$panel2.name)), "\u6210\u529F")
128
139
  });
129
- return;
130
- }
131
- notification.success({
132
- message: /*#__PURE__*/React.createElement(React.Fragment, null, msgType, "\u81F3", /*#__PURE__*/React.createElement("a", {
133
- onClick: function onClick() {
134
- if (router && routes) router.push({
135
- name: routes.panel,
136
- params: {
137
- panelId: result.data.panel && result.data.panel.id || form.panel.id
138
- }
139
- });
140
- }
141
- }, form.panel.name || result.data.panel && result.data.panel.name), "\u6210\u529F")
142
- });
143
- if (props.onOk) {
144
- var responseData = data;
145
- if (props.type !== 'edit') {
146
- responseData = _objectSpread({
147
- panelId: result.data.panel && result.data.panel.id || form.panel.id
148
- }, result.data.panelElement);
149
- if (form.panel.id === 0) {
150
- responseData.panel = _objectSpread({}, result.data.panel);
140
+ if (props.onOk) {
141
+ var responseData = data;
142
+ if (props.type !== 'edit') {
143
+ var _result$panel3;
144
+ responseData = _objectSpread({
145
+ panelId: ((_result$panel3 = result.panel) === null || _result$panel3 === void 0 ? void 0 : _result$panel3.id) || form.panel.id
146
+ }, result.panel_element);
147
+ if (form.panel.id === 0) {
148
+ responseData.panel = _objectSpread({}, result.panel);
149
+ }
151
150
  }
151
+ props.onOk(responseData);
152
152
  }
153
- props.onOk(responseData);
153
+ } else if (result.flag === -101) {
154
+ notification.error({
155
+ message: '添加失败',
156
+ description: data.panel_id === 0 ? '看板已存在' : '看板名称已存在'
157
+ });
158
+ } else {
159
+ notification.error({
160
+ message: "".concat(msgType, "\u5931\u8D25")
161
+ });
154
162
  }
155
163
  }).catch(function () {
156
164
  setLoading(false);
@@ -21,8 +21,8 @@ declare namespace AddToPanel {
21
21
  }
22
22
  interface PanelValue {
23
23
  id: number;
24
- name?: string;
25
- open_type?: number;
24
+ name: string;
25
+ open_type: number;
26
26
  }
27
27
  export interface Value {
28
28
  panel: PanelValue;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '../../assets/colorIcon/iconfont.js';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -5,8 +5,6 @@ declare const Apis: {
5
5
  addPanel: string;
6
6
  updatePanelTarget: string;
7
7
  queryPanelGroup: string;
8
- delPanelElement: string;
9
- updateElementName: string;
10
8
  queryDatasetList: string;
11
9
  queryDatasetDetail: string;
12
10
  getSocketToken: string;
@@ -15,8 +13,5 @@ declare const Apis: {
15
13
  orderAttributeSon: string;
16
14
  bizDataAttrList: string;
17
15
  dataAttrValue: string;
18
- queryTagsByGroup: string;
19
- queryTagGroups: string;
20
- getTagDetail: string;
21
16
  };
22
17
  export default Apis;
@@ -2,11 +2,9 @@ var Apis = {
2
2
  querySceneGroup: '/scene/queryScenesOfGroup.jsp',
3
3
  addScene: '/scene/addScene.jsp',
4
4
  esQuery: '/data/queryEsData.jsp',
5
- addPanel: '/zg/web/v2/apppanel/addPanelElement',
6
- updatePanelTarget: '/zg/web/v2/apppanel/updateElement',
7
- queryPanelGroup: '/zg/web/v2/apppanel/panels',
8
- delPanelElement: '/zg/web/v2/apppanel/delPanelElement',
9
- updateElementName: '/zg/web/v2/apppanel/updateElementName',
5
+ addPanel: '/apppanel/addPanelElement.jsp',
6
+ updatePanelTarget: '/apppanel/updateElemet.jsp',
7
+ queryPanelGroup: '/apppanel/panels.jsp',
10
8
  queryDatasetList: '/zg/web/cdp/inner/dataset/list',
11
9
  queryDatasetDetail: '/zg/web/cdp/inner/dataset/detail',
12
10
  getSocketToken: '/zg/web/v2/tracking/view/websocket/token',
@@ -14,9 +12,6 @@ var Apis = {
14
12
  orderAttributeMaster: '/cep-console/api/v1/cdp/orderAttribute/master',
15
13
  orderAttributeSon: '/cep-console/api/v1/cdp/orderAttribute/son',
16
14
  bizDataAttrList: '/cep-console/api/v1/bizdata/attr/list',
17
- dataAttrValue: '/cep-console/api/v1/es/data/attr/value',
18
- queryTagsByGroup: '/zg/web/v2/v4/labelGroup/label/list',
19
- queryTagGroups: '/zg/web/v2/label/group/list',
20
- getTagDetail: '/zg/web/v2/labelGroup/label/labelLayer'
15
+ dataAttrValue: '/cep-console/api/v1/es/data/attr/value'
21
16
  };
22
17
  export default Apis;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
package/es/index.d.ts CHANGED
@@ -30,9 +30,7 @@ import BizDetailLayout from './layout/detail';
30
30
  import BizLoginForm from './loginForm';
31
31
  import DemoWrapper from './demoWrapper';
32
32
  import SocketClient from './socket';
33
- import BizTargetFromPanel from './layout/optionTitle';
34
- import { BizTargetFromPanelContext } from './layout/optionTitle/types';
35
- export { BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizDetailLayout, BizUserGroup, IconFont, ColorIcon, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, };
33
+ export { BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizDetailLayout, BizUserGroup, IconFont, ColorIcon, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, };
36
34
  export type { UserGroupTypes } from './userGroup/types';
37
35
  export type { BizSelectTypes } from './select/types';
38
36
  export type { AttributeSelect } from './attributeSelector/types';
package/es/index.js CHANGED
@@ -29,6 +29,4 @@ import BizDetailLayout from './layout/detail';
29
29
  import BizLoginForm from './loginForm';
30
30
  import DemoWrapper from './demoWrapper';
31
31
  import SocketClient from './socket';
32
- import BizTargetFromPanel from './layout/optionTitle';
33
- import { BizTargetFromPanelContext } from './layout/optionTitle/types';
34
- export { BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizDetailLayout, BizUserGroup, IconFont, ColorIcon, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig };
32
+ export { BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizDetailLayout, BizUserGroup, IconFont, ColorIcon, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig };
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
3
  import './index.less';
3
- declare const _default: () => JSX.Element;
4
+ declare const _default: () => React.JSX.Element;
4
5
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './styles/index.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -16,7 +16,11 @@ var ParamsCondition = function ParamsCondition(props) {
16
16
  onChange = props.onChange;
17
17
  var onValue0Change = function onValue0Change(e) {
18
18
  var value = e.target.value;
19
- condition.attrs[index].params[0] = value;
19
+ if (condition.attrs[index].attrType === 'cont-date') {
20
+ condition.attrs[index].params = [value, '0'];
21
+ } else {
22
+ condition.attrs[index].params[0] = value;
23
+ }
20
24
  onChange(_objectSpread({}, condition));
21
25
  };
22
26
  var onValue1Change = function onValue1Change(e) {
@@ -10,14 +10,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
11
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- import React, { useContext, useState } from 'react';
13
+ import React, { useContext, useMemo, useState } from 'react';
14
14
  import { BizUserConditionContext, classPrefix } from '..';
15
15
  import BizSelect from '../../select';
16
16
  import { operatorMap } from './constants';
17
17
  import BizUserTagsSelect from '../../userTagsSelector';
18
18
  import './styles/tagsCondition.less';
19
+ import { buildSelectLayer, buildTagsGroup } from '../util';
19
20
  import _ from 'lodash';
20
- import { buildSelectLayer } from '../util';
21
21
  var options = [{
22
22
  value: 'equal',
23
23
  text: '是'
@@ -35,7 +35,10 @@ var TagsCondition = function TagsCondition(props) {
35
35
  return buildDefaultValues();
36
36
  }),
37
37
  _useState2 = _slicedToArray(_useState, 1),
38
- defaultValue = _useState2[0];
38
+ defaultValues = _useState2[0];
39
+ var tagGroupList = useMemo(function () {
40
+ return buildTagsGroup(userTagsData || []);
41
+ }, [userTagsData]);
39
42
  function onOperatorChange(operator) {
40
43
  onChange(dataId, _objectSpread(_objectSpread({}, labels), {}, {
41
44
  operator: operator.value
@@ -84,12 +87,14 @@ var TagsCondition = function TagsCondition(props) {
84
87
  })), /*#__PURE__*/React.createElement("div", {
85
88
  className: "".concat(classPrefix, "-tags-condition-value")
86
89
  }, /*#__PURE__*/React.createElement(BizUserTagsSelect, {
87
- defaultValue: defaultValue,
90
+ defaultValue: defaultValues,
91
+ data: tagGroupList,
88
92
  childFields: ['children', 'layers'],
89
93
  keyFields: ['labelGroup', 'id', 'layerLabelId'],
90
94
  labelFields: ['labelGroup', 'labelName', 'layerLabelName'],
91
95
  valueFields: ['labelGroup', 'id', 'layerLabelId'],
92
- onChange: onTagsChange
96
+ onChange: onTagsChange,
97
+ destroyPopupOnHide: true
93
98
  })), /*#__PURE__*/React.createElement("div", {
94
99
  className: "".concat(classPrefix, "-tags-condition-unit")
95
100
  }));
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/iconfont/iconfont.css';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -44,12 +44,10 @@ export default (function () {
44
44
  console.log('change:', JSON.parse(JSON.stringify(value)));
45
45
  }
46
46
  var descDom = /*#__PURE__*/React.createElement(BizUserCondition, {
47
- textMode: true,
48
47
  openCondition: false,
49
48
  defaultValue: defaultValue,
50
49
  openBusinessDataCondition: true,
51
50
  openOrderDataCondition: true,
52
- openTagCondition: true,
53
51
  onChange: onChange,
54
52
  eventAttrNum: 3,
55
53
  userTagsData: userTagsData,
@@ -61,11 +59,8 @@ export default (function () {
61
59
  userPropList: newStore.userPropList,
62
60
  eventEnvList: newStore.envPropList,
63
61
  currentApp: {
64
- appId: 204,
62
+ appId: 181,
65
63
  platform: 0
66
- },
67
- menuNameMap: {
68
- userTags: true
69
64
  }
70
65
  }
71
66
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import '@zgfe/business-lib/es/assets/iconfont/iconfont.css';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;