@zgfe/modules-dm 1.0.2-dm.28 → 1.0.2-dm.30
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.
- package/es/modules/dataCollection/collectionAttributeList.d.ts +1 -1
- package/es/modules/dataCollection/collectionAttributeList.js +12 -15
- package/es/modules/dataCollection/collectionEventList.js +16 -8
- package/es/modules/dataCollection/index.js +8 -8
- package/es/modules/dataCollection/styles/index.less +258 -238
- package/es/modules/dataCollection/tablePlus.js +11 -6
- package/es/modules/dataManage/index.js +37 -31
- package/es/modules/dataManage/styles/index.less +59 -25
- package/es/modules/dataPlan/addEventOrUser.js +14 -4
- package/es/modules/dataPlan/addPlan.js +8 -7
- package/es/modules/dataPlan/index.js +11 -6
- package/es/modules/dataPlan/search.js +1 -1
- package/es/modules/dataPlan/styles/index.less +14 -15
- package/es/modules/dataPlan/userAttributeList.js +0 -1
- package/es/store/index.js +10 -3
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +9 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import { IconFont } from '@zgfe/business-lib';
|
|
14
|
-
import { Tabs } from 'antd';
|
|
14
|
+
import { Tabs, Popover } from 'antd';
|
|
15
15
|
import React, { useState, useEffect } from 'react';
|
|
16
16
|
import './styles/index.less';
|
|
17
17
|
import { DmContext, upDatedDmFun } from '../../store';
|
|
@@ -21,7 +21,7 @@ import DataCollection from '../dataCollection';
|
|
|
21
21
|
|
|
22
22
|
var DataManage = function DataManage(props) {
|
|
23
23
|
var classPrefix = 'data-manage';
|
|
24
|
-
var updateEventMetas = props.updateEventMetas;
|
|
24
|
+
var updateEventMetas = props.updateEventMetas;
|
|
25
25
|
|
|
26
26
|
var _upDatedDmFun = upDatedDmFun(),
|
|
27
27
|
_upDatedDmFun2 = _slicedToArray(_upDatedDmFun, 2),
|
|
@@ -37,36 +37,18 @@ var DataManage = function DataManage(props) {
|
|
|
37
37
|
|
|
38
38
|
var _useState = useState('0'),
|
|
39
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var onSelect = function onSelect(e) {
|
|
44
|
-
setMenuTab(e.key);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
var items = [{
|
|
48
|
-
label: '埋点管理',
|
|
49
|
-
key: '0',
|
|
50
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
51
|
-
type: "maidianguanli"
|
|
52
|
-
})
|
|
53
|
-
}, {
|
|
54
|
-
label: '埋点方案管理',
|
|
55
|
-
key: '1',
|
|
56
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
57
|
-
type: "maidianfanganguanli"
|
|
58
|
-
})
|
|
59
|
-
}];
|
|
60
|
-
|
|
61
|
-
var _useState3 = useState('0'),
|
|
62
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
63
|
-
listTab = _useState4[0],
|
|
64
|
-
setListTab = _useState4[1];
|
|
40
|
+
listTab = _useState2[0],
|
|
41
|
+
setListTab = _useState2[1];
|
|
65
42
|
|
|
66
43
|
var tabsChange = function tabsChange(activeKey) {
|
|
67
44
|
setListTab(activeKey);
|
|
68
45
|
};
|
|
69
46
|
|
|
47
|
+
var _useState3 = useState(false),
|
|
48
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
|
+
collapsed = _useState4[0],
|
|
50
|
+
setCollapsed = _useState4[1];
|
|
51
|
+
|
|
70
52
|
return /*#__PURE__*/React.createElement(DmContext.Provider, {
|
|
71
53
|
value: {
|
|
72
54
|
state: state,
|
|
@@ -75,7 +57,7 @@ var DataManage = function DataManage(props) {
|
|
|
75
57
|
}, /*#__PURE__*/React.createElement("div", {
|
|
76
58
|
className: classPrefix
|
|
77
59
|
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: "tabs-box"
|
|
60
|
+
className: "tabs-box ".concat(collapsed && 'tabs-collapsed')
|
|
79
61
|
}, /*#__PURE__*/React.createElement(Tabs, {
|
|
80
62
|
className: "tabs",
|
|
81
63
|
defaultActiveKey: "0",
|
|
@@ -84,18 +66,42 @@ var DataManage = function DataManage(props) {
|
|
|
84
66
|
}, /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
85
67
|
tab: /*#__PURE__*/React.createElement("div", {
|
|
86
68
|
className: "tab"
|
|
69
|
+
}, collapsed && /*#__PURE__*/React.createElement(Popover, {
|
|
70
|
+
content: "\u57CB\u70B9\u7BA1\u7406",
|
|
71
|
+
placement: "right"
|
|
87
72
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
88
73
|
type: "maidianguanli"
|
|
89
|
-
}),
|
|
74
|
+
})), !collapsed && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
|
|
75
|
+
type: "maidianguanli"
|
|
76
|
+
}), "\u57CB\u70B9\u7BA1\u7406")),
|
|
90
77
|
key: "0"
|
|
91
78
|
}), /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
92
79
|
tab: /*#__PURE__*/React.createElement("div", {
|
|
93
80
|
className: "tab"
|
|
81
|
+
}, collapsed && /*#__PURE__*/React.createElement(Popover, {
|
|
82
|
+
content: "\u57CB\u70B9\u65B9\u6848\u7BA1\u7406",
|
|
83
|
+
placement: "right"
|
|
94
84
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
95
85
|
type: "maidianfanganguanli"
|
|
96
|
-
}),
|
|
86
|
+
})), !collapsed && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
|
|
87
|
+
type: "maidianfanganguanli"
|
|
88
|
+
}), "\u57CB\u70B9\u65B9\u6848\u7BA1\u7406")),
|
|
97
89
|
key: "1"
|
|
98
|
-
}))
|
|
90
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: "zhidie-botton"
|
|
92
|
+
}, !collapsed && /*#__PURE__*/React.createElement(IconFont, {
|
|
93
|
+
type: "zhedie",
|
|
94
|
+
onClick: function onClick() {
|
|
95
|
+
setCollapsed(!collapsed);
|
|
96
|
+
}
|
|
97
|
+
}), collapsed && /*#__PURE__*/React.createElement(IconFont, {
|
|
98
|
+
type: "zhankai",
|
|
99
|
+
onClick: function onClick() {
|
|
100
|
+
setCollapsed(!collapsed);
|
|
101
|
+
}
|
|
102
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "dmcontent ".concat(collapsed && 'dmcontent-collapsed')
|
|
104
|
+
}, listTab == '0' && /*#__PURE__*/React.createElement(DataCollection, null), listTab == '1' && /*#__PURE__*/React.createElement(PlanList, null))));
|
|
99
105
|
};
|
|
100
106
|
|
|
101
107
|
export default DataManage;
|
|
@@ -24,36 +24,70 @@
|
|
|
24
24
|
min-width: 240px;
|
|
25
25
|
margin-right: 24px;
|
|
26
26
|
background: #fff;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
.tabs {
|
|
28
|
+
position: fixed;
|
|
29
|
+
top: 48px;
|
|
30
|
+
left: 0;
|
|
31
|
+
min-width: 240px;
|
|
32
|
+
margin-right: 24px;
|
|
33
|
+
padding-top: 16px;
|
|
34
|
+
background: #fff;
|
|
35
|
+
.ant-tabs-nav {
|
|
36
|
+
width: 100%;
|
|
37
|
+
.ant-tabs-tab {
|
|
38
|
+
padding: 7px 0;
|
|
39
|
+
}
|
|
40
|
+
.ant-tabs-tab + .ant-tabs-tab {
|
|
41
|
+
margin: 0;
|
|
42
|
+
}
|
|
43
|
+
.ant-tabs-tab-active {
|
|
44
|
+
background: #e8efff;
|
|
45
|
+
}
|
|
46
|
+
.ant-tabs-tab-btn {
|
|
47
|
+
width: 100%;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
text-align: left;
|
|
50
|
+
.bsicon {
|
|
51
|
+
margin-right: 12px;
|
|
52
|
+
margin-left: 19px;
|
|
53
|
+
font-size: 20px !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
40
56
|
}
|
|
41
|
-
.ant-tabs-
|
|
42
|
-
|
|
57
|
+
.ant-tabs-content-holder {
|
|
58
|
+
display: none;
|
|
43
59
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
}
|
|
61
|
+
.zhidie-botton {
|
|
62
|
+
position: absolute;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 40px;
|
|
67
|
+
font-size: 24px !important;
|
|
68
|
+
border-top: 1px solid #e8efff;
|
|
69
|
+
.bsicon {
|
|
70
|
+
margin-left: 19px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.tabs-collapsed {
|
|
75
|
+
min-width: 80px;
|
|
76
|
+
.tabs {
|
|
77
|
+
min-width: 80px;
|
|
78
|
+
.tab {
|
|
79
|
+
text-align: center;
|
|
48
80
|
.bsicon {
|
|
49
|
-
margin
|
|
50
|
-
margin-left: 19px;
|
|
51
|
-
font-size: 20px !important;
|
|
81
|
+
margin: 0 !important;
|
|
52
82
|
}
|
|
53
83
|
}
|
|
54
84
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
85
|
+
}
|
|
86
|
+
.dmcontent {
|
|
87
|
+
width: calc(100% - 264px);
|
|
88
|
+
padding: 16px 0 24px 0;
|
|
89
|
+
}
|
|
90
|
+
.dmcontent-collapsed {
|
|
91
|
+
width: calc(100% - 104px);
|
|
58
92
|
}
|
|
59
93
|
}
|
|
@@ -21,7 +21,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
|
|
23
23
|
import { IconFont } from '@zgfe/business-lib';
|
|
24
|
-
import { Input, Button, Select, Table, Modal, Form, message } from 'antd';
|
|
24
|
+
import { Input, Button, Select, Table, Modal, Form, message, Popover } from 'antd';
|
|
25
25
|
var Option = Select.Option;
|
|
26
26
|
import React, { useEffect, useState } from 'react';
|
|
27
27
|
import './styles/index.less';
|
|
@@ -152,14 +152,24 @@ var addEventOrUser = function addEventOrUser(props) {
|
|
|
152
152
|
|
|
153
153
|
var tableColumnsPropsRender = function tableColumnsPropsRender(item) {
|
|
154
154
|
var render = function render(text, record, index) {
|
|
155
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, item.dataIndex == 'set' ? /*#__PURE__*/React.createElement(IconFont, {
|
|
156
|
-
className: "set-del
|
|
155
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, item.dataIndex == 'set' ? /*#__PURE__*/React.createElement(React.Fragment, null, tableRowData.length <= 1 ? /*#__PURE__*/React.createElement(IconFont, {
|
|
156
|
+
className: "set-del set-del-err",
|
|
157
157
|
disabled: true,
|
|
158
158
|
type: "shanchu1",
|
|
159
159
|
onClick: function onClick() {
|
|
160
160
|
handleRow('del', record);
|
|
161
161
|
}
|
|
162
|
-
}) : /*#__PURE__*/React.createElement(
|
|
162
|
+
}) : /*#__PURE__*/React.createElement(Popover, {
|
|
163
|
+
content: "\u5220\u9664",
|
|
164
|
+
placement: "right"
|
|
165
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
166
|
+
className: "set-del",
|
|
167
|
+
disabled: true,
|
|
168
|
+
type: "shanchu1",
|
|
169
|
+
onClick: function onClick() {
|
|
170
|
+
handleRow('del', record);
|
|
171
|
+
}
|
|
172
|
+
}))) : /*#__PURE__*/React.createElement(Form.Item, {
|
|
163
173
|
name: "".concat(item.dataIndex, "-").concat(record.key),
|
|
164
174
|
rules: rulesData(item)
|
|
165
175
|
}, /*#__PURE__*/React.createElement(Input, null)));
|
|
@@ -24,6 +24,7 @@ import './styles/index.less';
|
|
|
24
24
|
import request from '../../utils/ajax';
|
|
25
25
|
import apis from '../../constants/api';
|
|
26
26
|
import _ from 'lodash';
|
|
27
|
+
import { getAppID } from '../../utils';
|
|
27
28
|
import Search from './search';
|
|
28
29
|
import EventList from './eventList';
|
|
29
30
|
import UserAttributeList from './userAttributeList';
|
|
@@ -57,7 +58,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
57
58
|
request(apis.queryPlanDetail, {
|
|
58
59
|
method: 'get',
|
|
59
60
|
params: {
|
|
60
|
-
appId: currentApp
|
|
61
|
+
appId: getAppID(currentApp),
|
|
61
62
|
id: props.detailId
|
|
62
63
|
}
|
|
63
64
|
}).then(function (res) {
|
|
@@ -108,9 +109,9 @@ var AddPlan = function AddPlan(props) {
|
|
|
108
109
|
});
|
|
109
110
|
|
|
110
111
|
if (listTab == '1') {
|
|
111
|
-
window.open("".concat(apis.downloadPlanEvent, "?appId=").concat(currentApp
|
|
112
|
+
window.open("".concat(apis.downloadPlanEvent, "?appId=").concat(getAppID(currentApp), "&planId=").concat(props.detailId, "&eventName").concat(e == '0' ? '' : '=' + _selectedRowKeys));
|
|
112
113
|
} else {
|
|
113
|
-
window.open("".concat(apis.downloadPlanProp, "?appId=").concat(currentApp
|
|
114
|
+
window.open("".concat(apis.downloadPlanProp, "?appId=").concat(getAppID(currentApp), "&planId=").concat(props.detailId, "&propName").concat(e == '0' ? '' : '=' + _selectedRowKeys));
|
|
114
115
|
}
|
|
115
116
|
};
|
|
116
117
|
|
|
@@ -162,8 +163,8 @@ var AddPlan = function AddPlan(props) {
|
|
|
162
163
|
setSpinning(true);
|
|
163
164
|
var fileType = file.name.split('.');
|
|
164
165
|
|
|
165
|
-
if (fileType[fileType.length - 1] != 'xlsx' && fileType[fileType.length - 1] != '
|
|
166
|
-
message.error('仅支持excel(
|
|
166
|
+
if (fileType[fileType.length - 1] != 'xlsx' && fileType[fileType.length - 1] != 'xls') {
|
|
167
|
+
message.error('仅支持excel(xls、xlsx)格式文件,请检查后重新上传');
|
|
167
168
|
setSpinning(false);
|
|
168
169
|
return;
|
|
169
170
|
}
|
|
@@ -178,7 +179,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
178
179
|
formData.append('file', file, file.name);
|
|
179
180
|
var data = new FormData();
|
|
180
181
|
data.append('upload', file);
|
|
181
|
-
data.append('appId', currentApp
|
|
182
|
+
data.append('appId', getAppID(currentApp));
|
|
182
183
|
data.append('planName', '');
|
|
183
184
|
request(apis.uploadPlan, {
|
|
184
185
|
method: 'post',
|
|
@@ -471,7 +472,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
471
472
|
}
|
|
472
473
|
});
|
|
473
474
|
var ManagementPlan = {
|
|
474
|
-
appId: currentApp
|
|
475
|
+
appId: getAppID(currentApp),
|
|
475
476
|
planId: props.detailId != -1 ? props.detailId : 0,
|
|
476
477
|
planName: planName,
|
|
477
478
|
eventPlanList: eventPlanList,
|
|
@@ -17,6 +17,7 @@ import React, { useEffect, useState, useContext } from 'react';
|
|
|
17
17
|
import './styles/index.less';
|
|
18
18
|
import request from '../../utils/ajax';
|
|
19
19
|
import apis from '../../constants/api';
|
|
20
|
+
import { getAppID } from '../../utils';
|
|
20
21
|
import AddPlan from './addPlan';
|
|
21
22
|
|
|
22
23
|
var PlanList = function PlanList(props) {
|
|
@@ -26,7 +27,7 @@ var PlanList = function PlanList(props) {
|
|
|
26
27
|
currentApp = _useContext.currentApp,
|
|
27
28
|
isDemo = _useContext.isDemo;
|
|
28
29
|
|
|
29
|
-
console.log('②埋点方案管理', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId); // 查看方案
|
|
30
|
+
console.log('②埋点方案管理', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, getAppID(currentApp)); // 查看方案
|
|
30
31
|
|
|
31
32
|
var tableSee = function tableSee(data) {
|
|
32
33
|
setDetailId(data.id);
|
|
@@ -51,7 +52,7 @@ var PlanList = function PlanList(props) {
|
|
|
51
52
|
request(apis.deletePlan, {
|
|
52
53
|
method: 'post',
|
|
53
54
|
data: {
|
|
54
|
-
appId: currentApp
|
|
55
|
+
appId: getAppID(currentApp),
|
|
55
56
|
planName: data
|
|
56
57
|
}
|
|
57
58
|
}).then(function (res) {
|
|
@@ -123,7 +124,7 @@ var PlanList = function PlanList(props) {
|
|
|
123
124
|
request(apis.getAllPlan, {
|
|
124
125
|
method: 'get',
|
|
125
126
|
params: {
|
|
126
|
-
appId: currentApp
|
|
127
|
+
appId: getAppID(currentApp)
|
|
127
128
|
}
|
|
128
129
|
}).then(function (res) {
|
|
129
130
|
res.data && res.data.planList && setListData(res.data.planList);
|
|
@@ -163,7 +164,7 @@ var PlanList = function PlanList(props) {
|
|
|
163
164
|
request(apis.queryControlSwitch, {
|
|
164
165
|
method: 'get',
|
|
165
166
|
params: {
|
|
166
|
-
appId: currentApp
|
|
167
|
+
appId: getAppID(currentApp)
|
|
167
168
|
}
|
|
168
169
|
}).then(function (res) {
|
|
169
170
|
var _res$data;
|
|
@@ -181,7 +182,7 @@ var PlanList = function PlanList(props) {
|
|
|
181
182
|
request(apis.updateControlSwitch, {
|
|
182
183
|
method: 'post',
|
|
183
184
|
data: {
|
|
184
|
-
appId: currentApp
|
|
185
|
+
appId: getAppID(currentApp),
|
|
185
186
|
isOpen: !isOpen ? '1' : '0'
|
|
186
187
|
}
|
|
187
188
|
}).then(function (res) {
|
|
@@ -203,7 +204,11 @@ var PlanList = function PlanList(props) {
|
|
|
203
204
|
className: "".concat(classPrefix, "-switchbox clearfix")
|
|
204
205
|
}, /*#__PURE__*/React.createElement("div", {
|
|
205
206
|
className: "switch-div"
|
|
206
|
-
}, /*#__PURE__*/React.createElement("span",
|
|
207
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
208
|
+
style: {
|
|
209
|
+
lineHeight: '32px'
|
|
210
|
+
}
|
|
211
|
+
}, "\u57CB\u70B9\u65B9\u6848\u63A7\u5236"), /*#__PURE__*/React.createElement(Switch, {
|
|
207
212
|
onChange: isOpenChang,
|
|
208
213
|
checkedChildren: "\u5F00",
|
|
209
214
|
unCheckedChildren: "\u5173",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
2
|
.plan-list {
|
|
3
3
|
position: relative;
|
|
4
|
-
width: calc(100% - 264px);
|
|
4
|
+
// width: calc(100% - 264px);
|
|
5
5
|
height: 100%;
|
|
6
6
|
margin-top: 16px;
|
|
7
7
|
margin-right: 24px;
|
|
8
8
|
margin-bottom: 24px;
|
|
9
|
-
padding: 24px;
|
|
9
|
+
padding: 20px 24px 24px 24px;
|
|
10
10
|
background: #fff;
|
|
11
11
|
border-radius: 8px;
|
|
12
12
|
.clearfix:after {
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
float: left;
|
|
48
48
|
.ant-switch {
|
|
49
49
|
width: 24px;
|
|
50
|
+
margin-top: -2px;
|
|
50
51
|
}
|
|
51
52
|
span {
|
|
52
53
|
margin-right: 20px;
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
&-tabs {
|
|
158
159
|
position: relative;
|
|
159
160
|
// display: flex;
|
|
160
|
-
margin-bottom: 15px;
|
|
161
|
+
// margin-bottom: 15px;
|
|
161
162
|
> :nth-child(1) {
|
|
162
163
|
border-radius: 4px 0 0 4px !important;
|
|
163
164
|
}
|
|
@@ -167,7 +168,7 @@
|
|
|
167
168
|
.handle-box {
|
|
168
169
|
position: absolute;
|
|
169
170
|
top: 5px;
|
|
170
|
-
right:
|
|
171
|
+
right: 0;
|
|
171
172
|
.bsicon {
|
|
172
173
|
margin-right: 10px;
|
|
173
174
|
}
|
|
@@ -189,21 +190,17 @@
|
|
|
189
190
|
.ant-table {
|
|
190
191
|
border-radius: 8px 8px 0 0 !important;
|
|
191
192
|
}
|
|
192
|
-
// display: flex;
|
|
193
|
-
// margin: 0;
|
|
194
|
-
// padding: 0;
|
|
195
|
-
// list-style-type: none;
|
|
196
|
-
// background: #fff;
|
|
197
|
-
// li {
|
|
198
|
-
// width: 25%;
|
|
199
|
-
// padding: 16px;
|
|
200
|
-
// border: 1px solid #e8efff;
|
|
201
|
-
// }
|
|
202
193
|
}
|
|
203
194
|
&-table-header.empty {
|
|
195
|
+
.ant-table {
|
|
196
|
+
border-radius: 8px !important;
|
|
197
|
+
}
|
|
204
198
|
.ant-table-tbody {
|
|
205
199
|
display: contents;
|
|
206
200
|
}
|
|
201
|
+
.ant-table-tbody > tr > td {
|
|
202
|
+
border-bottom: 0px solid #e8efff;
|
|
203
|
+
}
|
|
207
204
|
}
|
|
208
205
|
.user-list,
|
|
209
206
|
.event-list {
|
|
@@ -281,6 +278,7 @@
|
|
|
281
278
|
}
|
|
282
279
|
.set-del-err {
|
|
283
280
|
color: #cacdd4;
|
|
281
|
+
cursor: not-allowed;
|
|
284
282
|
}
|
|
285
283
|
.ant-modal-body {
|
|
286
284
|
padding: 5px 24px 24px 24px;
|
|
@@ -314,7 +312,8 @@
|
|
|
314
312
|
}
|
|
315
313
|
&-add-button {
|
|
316
314
|
position: absolute;
|
|
317
|
-
right:
|
|
315
|
+
right: 0;
|
|
316
|
+
line-height: 20px;
|
|
318
317
|
}
|
|
319
318
|
}
|
|
320
319
|
}
|
package/es/store/index.js
CHANGED
|
@@ -10,17 +10,24 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
13
19
|
import { useReducer, createContext } from 'react';
|
|
14
20
|
import { initState } from './state';
|
|
15
21
|
import { ActionType } from './action';
|
|
16
22
|
|
|
17
23
|
var DmReducer = function DmReducer(prevState, action) {
|
|
18
|
-
|
|
24
|
+
console.log('DmReducer', prevState, action);
|
|
25
|
+
|
|
19
26
|
switch (action.type) {
|
|
20
27
|
case ActionType.SET_GLOBAL:
|
|
21
|
-
return {
|
|
28
|
+
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
22
29
|
updateEventMetas: action.payload
|
|
23
|
-
};
|
|
30
|
+
});
|
|
24
31
|
|
|
25
32
|
default:
|
|
26
33
|
return initState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAppID: (currentApp: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var getAppID = function getAppID(currentApp) {
|
|
2
|
+
var href = window.location.href;
|
|
3
|
+
|
|
4
|
+
if (href.indexOf('/app/') != -1 && href.indexOf('localhost') == -1) {
|
|
5
|
+
return href.split('/app/')[1].split('/')[0];
|
|
6
|
+
} else {
|
|
7
|
+
return currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId;
|
|
8
|
+
}
|
|
9
|
+
};
|