@zgfe/modules-whole 1.0.10-zhongyuan.0
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/README.md +37 -0
- package/es/components/dataUpdateTime/index.d.ts +3 -0
- package/es/components/dataUpdateTime/index.js +53 -0
- package/es/components/eventFilter/index.d.ts +5 -0
- package/es/components/eventFilter/index.js +263 -0
- package/es/components/eventFilter/styles/index.less +36 -0
- package/es/components/eventFilter/types.d.ts +20 -0
- package/es/components/eventFilter/types.js +1 -0
- package/es/components/index.d.ts +4 -0
- package/es/components/index.js +4 -0
- package/es/components/renderContent/index.d.ts +5 -0
- package/es/components/renderContent/index.js +44 -0
- package/es/components/renderContent/styles/index.less +20 -0
- package/es/components/renderContent/types.d.ts +9 -0
- package/es/components/renderContent/types.js +1 -0
- package/es/components/searchPanel/index.d.ts +5 -0
- package/es/components/searchPanel/index.js +164 -0
- package/es/components/searchPanel/styles/index.less +22 -0
- package/es/components/searchPanel/types.d.ts +23 -0
- package/es/components/searchPanel/types.js +1 -0
- package/es/components/table/index.d.ts +5 -0
- package/es/components/table/index.js +130 -0
- package/es/components/table/styles/index.less +193 -0
- package/es/components/table/types.d.ts +9 -0
- package/es/components/table/types.js +1 -0
- package/es/components/topBar/index.d.ts +5 -0
- package/es/components/topBar/index.js +163 -0
- package/es/components/topBar/styles/index.less +71 -0
- package/es/components/topBar/types.d.ts +8 -0
- package/es/components/topBar/types.js +1 -0
- package/es/constants/apis.d.ts +8 -0
- package/es/constants/apis.js +8 -0
- package/es/constants/chart.d.ts +2 -0
- package/es/constants/chart.js +31 -0
- package/es/constants/color.d.ts +1 -0
- package/es/constants/color.js +1 -0
- package/es/constants/fields.d.ts +271 -0
- package/es/constants/fields.js +260 -0
- package/es/constants/index.d.ts +6 -0
- package/es/constants/index.js +6 -0
- package/es/constants/initData.d.ts +2 -0
- package/es/constants/initData.js +9 -0
- package/es/constants/json/line.d.ts +20 -0
- package/es/constants/json/line.js +25 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +4 -0
- package/es/modules/chart/demo/data.d.ts +78 -0
- package/es/modules/chart/demo/data.js +489 -0
- package/es/modules/chart/demo/index.d.ts +3 -0
- package/es/modules/chart/demo/index.js +12 -0
- package/es/modules/chart/demo/panel.d.ts +3 -0
- package/es/modules/chart/demo/panel.js +11 -0
- package/es/modules/chart/index.d.ts +4 -0
- package/es/modules/chart/index.js +246 -0
- package/es/modules/chart/types.d.ts +15 -0
- package/es/modules/chart/types.js +1 -0
- package/es/modules/content/index.d.ts +5 -0
- package/es/modules/content/index.js +234 -0
- package/es/modules/content/styles/index.less +7 -0
- package/es/modules/content/types.d.ts +11 -0
- package/es/modules/content/types.js +1 -0
- package/es/modules/content/utils.d.ts +17 -0
- package/es/modules/content/utils.js +107 -0
- package/es/modules/home/demo/create.d.ts +3 -0
- package/es/modules/home/demo/create.js +58 -0
- package/es/modules/home/demo/edit.d.ts +3 -0
- package/es/modules/home/demo/edit.js +86 -0
- package/es/modules/home/demo/index.d.ts +4 -0
- package/es/modules/home/demo/index.js +83 -0
- package/es/modules/home/demo/scene.d.ts +3 -0
- package/es/modules/home/demo/scene.js +89 -0
- package/es/modules/home/demo/styles/index.less +33 -0
- package/es/modules/home/index.d.ts +5 -0
- package/es/modules/home/index.js +218 -0
- package/es/modules/home/styles/index.less +39 -0
- package/es/modules/home/types.d.ts +34 -0
- package/es/modules/home/types.js +1 -0
- package/es/modules/topPanel/index.d.ts +5 -0
- package/es/modules/topPanel/index.js +154 -0
- package/es/modules/topPanel/styles/index.less +41 -0
- package/es/modules/topPanel/types.d.ts +39 -0
- package/es/modules/topPanel/types.js +1 -0
- package/es/style/image/ring.svg +9 -0
- package/es/style/index.less +62 -0
- package/es/style/theme.d.ts +15 -0
- package/es/style/theme.js +14 -0
- package/es/types.d.ts +79 -0
- package/es/types.js +6 -0
- package/es/utils/ajaxConfig.d.ts +8 -0
- package/es/utils/ajaxConfig.js +12 -0
- package/es/utils/base64.d.ts +23 -0
- package/es/utils/base64.js +125 -0
- package/es/utils/formData.d.ts +21 -0
- package/es/utils/formData.js +366 -0
- package/es/utils/util.d.ts +36 -0
- package/es/utils/util.js +167 -0
- package/package.json +63 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
|
+
import { ModuleWhole } from '../../../index';
|
|
10
|
+
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
11
|
+
import { Button } from 'antd';
|
|
12
|
+
var defaultValue = null;
|
|
13
|
+
export default (function () {
|
|
14
|
+
var _useState = useState(false),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
isDetail = _useState2[0],
|
|
17
|
+
setIsDetail = _useState2[1];
|
|
18
|
+
var _useState3 = useState(),
|
|
19
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
20
|
+
detailParams = _useState4[0],
|
|
21
|
+
setDetailParams = _useState4[1];
|
|
22
|
+
var _useState5 = useState(defaultValue),
|
|
23
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
24
|
+
searchParams = _useState6[0],
|
|
25
|
+
setSearchParams = _useState6[1];
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
setGlobalConfig(requestConfig);
|
|
28
|
+
}, []);
|
|
29
|
+
var afterEditTarget = function afterEditTarget(type, data) {
|
|
30
|
+
console.log("".concat(type, "\u56DE\u8C03"), data);
|
|
31
|
+
};
|
|
32
|
+
var onUserDrill = function onUserDrill(data, searchData) {
|
|
33
|
+
console.log('onUserDrill:', data, searchData);
|
|
34
|
+
setIsDetail(true);
|
|
35
|
+
setSearchParams(searchData);
|
|
36
|
+
setDetailParams(data);
|
|
37
|
+
};
|
|
38
|
+
var onChange = function onChange(data) {
|
|
39
|
+
console.log('查询参数改变了:', data);
|
|
40
|
+
};
|
|
41
|
+
var onLossWarning = function onLossWarning(warningId) {
|
|
42
|
+
console.log('设置流失预警', warningId);
|
|
43
|
+
};
|
|
44
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
45
|
+
needMeta: true,
|
|
46
|
+
defaultApp: 86289
|
|
47
|
+
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
48
|
+
onClick: function onClick() {
|
|
49
|
+
return setIsDetail(false);
|
|
50
|
+
}
|
|
51
|
+
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleWhole, {
|
|
52
|
+
onChange: onChange,
|
|
53
|
+
defaultValue: searchParams,
|
|
54
|
+
afterEditTarget: afterEditTarget,
|
|
55
|
+
onUserDrill: onUserDrill,
|
|
56
|
+
onLossWarning: onLossWarning
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
|
+
import { ModuleWhole } from '../../../index';
|
|
10
|
+
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
11
|
+
import { Button } from 'antd';
|
|
12
|
+
var defaultValue = {
|
|
13
|
+
panelId: 402605,
|
|
14
|
+
id: 249641,
|
|
15
|
+
name: '整体',
|
|
16
|
+
data: {
|
|
17
|
+
app_id: 503302,
|
|
18
|
+
name: '新增用户',
|
|
19
|
+
id: -201,
|
|
20
|
+
module: 'add',
|
|
21
|
+
analysisIndex: 'number',
|
|
22
|
+
dimension: {
|
|
23
|
+
propCategory: 'userProp',
|
|
24
|
+
category: 'fixed',
|
|
25
|
+
value: 'name',
|
|
26
|
+
id: 3981984,
|
|
27
|
+
label: '名称',
|
|
28
|
+
name: 'name'
|
|
29
|
+
},
|
|
30
|
+
userGroup: [0],
|
|
31
|
+
time: {
|
|
32
|
+
begin: '2024-08-04',
|
|
33
|
+
end: '2024-09-02',
|
|
34
|
+
relative: [30, 1],
|
|
35
|
+
unit: 'day'
|
|
36
|
+
},
|
|
37
|
+
platform: 0,
|
|
38
|
+
chartType: 'line',
|
|
39
|
+
overall: true,
|
|
40
|
+
appId: 503302
|
|
41
|
+
},
|
|
42
|
+
chosen_data: ['程瑞霖', '丁博文'],
|
|
43
|
+
module: 'overall'
|
|
44
|
+
};
|
|
45
|
+
export default (function () {
|
|
46
|
+
var _useState = useState(false),
|
|
47
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
48
|
+
isDetail = _useState2[0],
|
|
49
|
+
setIsDetail = _useState2[1];
|
|
50
|
+
var _useState3 = useState(),
|
|
51
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
52
|
+
detailParams = _useState4[0],
|
|
53
|
+
setDetailParams = _useState4[1];
|
|
54
|
+
var _useState5 = useState(defaultValue),
|
|
55
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
56
|
+
searchParams = _useState6[0],
|
|
57
|
+
setSearchParams = _useState6[1];
|
|
58
|
+
useEffect(function () {
|
|
59
|
+
setGlobalConfig(requestConfig);
|
|
60
|
+
}, []);
|
|
61
|
+
var afterEditTarget = function afterEditTarget(type, data) {
|
|
62
|
+
console.log("".concat(type, "\u56DE\u8C03"), data);
|
|
63
|
+
};
|
|
64
|
+
var onUserDrill = function onUserDrill(data, searchData) {
|
|
65
|
+
console.log('onUserDrill:', data, searchData);
|
|
66
|
+
setIsDetail(true);
|
|
67
|
+
setSearchParams(searchData);
|
|
68
|
+
setDetailParams(data);
|
|
69
|
+
};
|
|
70
|
+
var onChange = function onChange(data) {
|
|
71
|
+
console.log('查询参数改变了:', data);
|
|
72
|
+
};
|
|
73
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
74
|
+
needMeta: true,
|
|
75
|
+
defaultApp: 502391
|
|
76
|
+
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
77
|
+
onClick: function onClick() {
|
|
78
|
+
return setIsDetail(false);
|
|
79
|
+
}
|
|
80
|
+
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleWhole, {
|
|
81
|
+
onChange: onChange,
|
|
82
|
+
defaultValue: searchParams,
|
|
83
|
+
afterEditTarget: afterEditTarget,
|
|
84
|
+
onUserDrill: onUserDrill
|
|
85
|
+
}));
|
|
86
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
8
|
+
import React, { useEffect, useState } from 'react';
|
|
9
|
+
import { ModuleWhole } from '@zgfe/modules-whole';
|
|
10
|
+
import './styles/index.less';
|
|
11
|
+
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
12
|
+
import { Button } from 'antd';
|
|
13
|
+
export default (function () {
|
|
14
|
+
var _useState = useState(false),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
isDetail = _useState2[0],
|
|
17
|
+
setIsDetail = _useState2[1];
|
|
18
|
+
var _useState3 = useState(),
|
|
19
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
20
|
+
detailParams = _useState4[0],
|
|
21
|
+
setDetailParams = _useState4[1];
|
|
22
|
+
var _useState5 = useState(),
|
|
23
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
24
|
+
setSearchParams = _useState6[1];
|
|
25
|
+
useEffect(function () {
|
|
26
|
+
setGlobalConfig(requestConfig);
|
|
27
|
+
}, []);
|
|
28
|
+
var afterEditTarget = function afterEditTarget(type, data) {
|
|
29
|
+
console.log("".concat(type, "\u56DE\u8C03"), data);
|
|
30
|
+
};
|
|
31
|
+
var onUserDrill = function onUserDrill(data, searchData) {
|
|
32
|
+
console.log('onUserDrill:', data, searchData);
|
|
33
|
+
setIsDetail(true);
|
|
34
|
+
setSearchParams(searchData);
|
|
35
|
+
setDetailParams(data);
|
|
36
|
+
};
|
|
37
|
+
var onChange = function onChange(data) {
|
|
38
|
+
console.log('查询参数改变了:', data);
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
41
|
+
needMeta: true,
|
|
42
|
+
defaultApp: 7
|
|
43
|
+
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
44
|
+
onClick: function onClick() {
|
|
45
|
+
return setIsDetail(false);
|
|
46
|
+
}
|
|
47
|
+
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleWhole, {
|
|
48
|
+
defaultValue: {
|
|
49
|
+
data: {
|
|
50
|
+
appId: 7,
|
|
51
|
+
platform: 0,
|
|
52
|
+
app_id: 7,
|
|
53
|
+
name: '活跃用户',
|
|
54
|
+
id: -202,
|
|
55
|
+
module: 'active',
|
|
56
|
+
analysisIndex: 'number',
|
|
57
|
+
dimension: {
|
|
58
|
+
propCategory: 'userProp',
|
|
59
|
+
category: 'custom',
|
|
60
|
+
value: '年龄',
|
|
61
|
+
id: 64,
|
|
62
|
+
label: '年龄',
|
|
63
|
+
name: '年龄'
|
|
64
|
+
},
|
|
65
|
+
userGroup: [0],
|
|
66
|
+
time: {
|
|
67
|
+
begin: '2024-09-02',
|
|
68
|
+
end: '2024-09-08',
|
|
69
|
+
relative: [7, 0],
|
|
70
|
+
unit: 'day'
|
|
71
|
+
},
|
|
72
|
+
chartType: 'line',
|
|
73
|
+
overall: true,
|
|
74
|
+
extendTarget: ['total', 'huanbi']
|
|
75
|
+
},
|
|
76
|
+
chosen_data: []
|
|
77
|
+
},
|
|
78
|
+
onChange: onChange,
|
|
79
|
+
afterEditTarget: afterEditTarget,
|
|
80
|
+
onUserDrill: onUserDrill,
|
|
81
|
+
includeToday: false
|
|
82
|
+
}));
|
|
83
|
+
});
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
|
+
import { ModuleWhole } from '../../../index';
|
|
10
|
+
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
11
|
+
import { Button } from 'antd';
|
|
12
|
+
var defaultValue = {
|
|
13
|
+
data: {
|
|
14
|
+
module: 'event',
|
|
15
|
+
analysisIndex: 'times',
|
|
16
|
+
chartType: 'line',
|
|
17
|
+
name: 'wqeqwe',
|
|
18
|
+
time: {
|
|
19
|
+
unit: 'day',
|
|
20
|
+
end: '2023-08-19',
|
|
21
|
+
begin: '2023-08-05',
|
|
22
|
+
relative: [14, 0]
|
|
23
|
+
},
|
|
24
|
+
id: 7569,
|
|
25
|
+
filters: {
|
|
26
|
+
conditions: [{
|
|
27
|
+
attrId: 151053,
|
|
28
|
+
propCategory: 'eventProp',
|
|
29
|
+
values: ['111'],
|
|
30
|
+
dimensionSub: 'event_attr',
|
|
31
|
+
label: '应用名称',
|
|
32
|
+
type: 1,
|
|
33
|
+
operator: 'equal',
|
|
34
|
+
attrName: '应用名称'
|
|
35
|
+
}],
|
|
36
|
+
relation: 'and'
|
|
37
|
+
},
|
|
38
|
+
appId: 266,
|
|
39
|
+
userGroup: [0],
|
|
40
|
+
dimension: {
|
|
41
|
+
propCategory: 'eventProp',
|
|
42
|
+
value: 151053
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
chosen_data: [],
|
|
46
|
+
source: 'EVENT'
|
|
47
|
+
};
|
|
48
|
+
export default (function () {
|
|
49
|
+
var _useState = useState(false),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
isDetail = _useState2[0],
|
|
52
|
+
setIsDetail = _useState2[1];
|
|
53
|
+
var _useState3 = useState(),
|
|
54
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
55
|
+
detailParams = _useState4[0],
|
|
56
|
+
setDetailParams = _useState4[1];
|
|
57
|
+
var _useState5 = useState(defaultValue),
|
|
58
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
59
|
+
searchParams = _useState6[0],
|
|
60
|
+
setSearchParams = _useState6[1];
|
|
61
|
+
useEffect(function () {
|
|
62
|
+
setGlobalConfig(requestConfig);
|
|
63
|
+
}, []);
|
|
64
|
+
var afterEditTarget = function afterEditTarget(type, data) {
|
|
65
|
+
console.log("".concat(type, "\u56DE\u8C03"), data);
|
|
66
|
+
};
|
|
67
|
+
var onUserDrill = function onUserDrill(data, searchData) {
|
|
68
|
+
console.log('onUserDrill:', data, searchData);
|
|
69
|
+
setIsDetail(true);
|
|
70
|
+
setSearchParams(searchData);
|
|
71
|
+
setDetailParams(data);
|
|
72
|
+
};
|
|
73
|
+
var onChange = function onChange(data) {
|
|
74
|
+
console.log('查询参数改变了:', data);
|
|
75
|
+
};
|
|
76
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
77
|
+
needMeta: true,
|
|
78
|
+
defaultApp: 266
|
|
79
|
+
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
80
|
+
onClick: function onClick() {
|
|
81
|
+
return setIsDetail(false);
|
|
82
|
+
}
|
|
83
|
+
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleWhole, {
|
|
84
|
+
onChange: onChange,
|
|
85
|
+
defaultValue: searchParams,
|
|
86
|
+
afterEditTarget: afterEditTarget,
|
|
87
|
+
onUserDrill: onUserDrill
|
|
88
|
+
}));
|
|
89
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*滚动条凹槽的颜色,还可以设置边框属性 */
|
|
2
|
+
::-webkit-scrollbar-track-piece {
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
-webkit-border-radius: 10px;
|
|
5
|
+
-moz-border-radius: 10px;
|
|
6
|
+
border-radius: 10px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/*滚动条的宽度*/
|
|
10
|
+
::-webkit-scrollbar {
|
|
11
|
+
width: 10px;
|
|
12
|
+
height: 10px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/*滚动条的设置*/
|
|
16
|
+
::-webkit-scrollbar-thumb {
|
|
17
|
+
background-color: #cacdd4;
|
|
18
|
+
background-clip: padding-box;
|
|
19
|
+
border: 2px solid #fff;
|
|
20
|
+
-webkit-border-radius: 10px;
|
|
21
|
+
-moz-border-radius: 10px;
|
|
22
|
+
border-radius: 10px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/*滚动条鼠标移上去*/
|
|
26
|
+
::-webkit-scrollbar-thumb:hover {
|
|
27
|
+
// background-color: #bbb;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::-webkit-scrollbar-track-piece {
|
|
31
|
+
width: 6px;
|
|
32
|
+
height: 6px;
|
|
33
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
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; }
|
|
15
|
+
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; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
import React, { useContext, useEffect, useState, useRef } from 'react';
|
|
18
|
+
import { Spin } from 'antd';
|
|
19
|
+
import { BizGlobalDataContext, BizTargetFromPanel } from '@zgfe/business-lib';
|
|
20
|
+
import './styles/index.less';
|
|
21
|
+
import { WholeContext } from '../../types';
|
|
22
|
+
import { getInitDate } from '../../constants/initData';
|
|
23
|
+
import WholeContent from '../content';
|
|
24
|
+
import { chartTypes } from '../../constants';
|
|
25
|
+
var onChangeTimer = -1;
|
|
26
|
+
var ModuleWhole = function ModuleWhole(props) {
|
|
27
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
28
|
+
currentApp = _useContext.currentApp,
|
|
29
|
+
eventGroupList = _useContext.eventGroupList,
|
|
30
|
+
eventEnvList = _useContext.eventEnvList,
|
|
31
|
+
userPropList = _useContext.userPropList,
|
|
32
|
+
userGroupList = _useContext.userGroupList,
|
|
33
|
+
useBizStoreLoading = _useContext.useBizStoreLoading;
|
|
34
|
+
var _useState = useState(),
|
|
35
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
36
|
+
searchData = _useState2[0],
|
|
37
|
+
setSearchData = _useState2[1];
|
|
38
|
+
var _useState3 = useState(true),
|
|
39
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
40
|
+
loading = _useState4[0],
|
|
41
|
+
setLoading = _useState4[1];
|
|
42
|
+
var _useState5 = useState(false),
|
|
43
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
44
|
+
refreshLoading = _useState6[0],
|
|
45
|
+
setRefreshLoading = _useState6[1];
|
|
46
|
+
var _useState7 = useState(true),
|
|
47
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
48
|
+
pageLoading = _useState8[0],
|
|
49
|
+
setPageLoading = _useState8[1];
|
|
50
|
+
var _useState9 = useState(),
|
|
51
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
52
|
+
title = _useState10[0],
|
|
53
|
+
setTitle = _useState10[1];
|
|
54
|
+
var _useState11 = useState(),
|
|
55
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
56
|
+
panelId = _useState12[0],
|
|
57
|
+
setPanelId = _useState12[1];
|
|
58
|
+
var _useState13 = useState(),
|
|
59
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
60
|
+
elementId = _useState14[0],
|
|
61
|
+
setElementId = _useState14[1];
|
|
62
|
+
var _useState15 = useState(),
|
|
63
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
64
|
+
showList = _useState16[0],
|
|
65
|
+
setShowList = _useState16[1];
|
|
66
|
+
var _useState17 = useState(['pie', 'map']),
|
|
67
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
68
|
+
disableItemList = _useState18[0],
|
|
69
|
+
setDisableItemList = _useState18[1];
|
|
70
|
+
var _useState19 = useState(chartTypes),
|
|
71
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
72
|
+
options = _useState20[0],
|
|
73
|
+
setOptions = _useState20[1];
|
|
74
|
+
var _useState21 = useState(false),
|
|
75
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
76
|
+
includeToday = _useState22[0],
|
|
77
|
+
setIncludeToday = _useState22[1];
|
|
78
|
+
var _useState23 = useState(true),
|
|
79
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
80
|
+
first = _useState24[0],
|
|
81
|
+
setFirst = _useState24[1];
|
|
82
|
+
useEffect(function () {
|
|
83
|
+
setPageLoading(true);
|
|
84
|
+
if (props.defaultValue) {
|
|
85
|
+
var _props$defaultValue;
|
|
86
|
+
setShowList(props.defaultValue.chosen_data);
|
|
87
|
+
setPanelId(props.defaultValue.panelId);
|
|
88
|
+
setTitle(props.defaultValue.name);
|
|
89
|
+
if ((_props$defaultValue = props.defaultValue) === null || _props$defaultValue === void 0 ? void 0 : _props$defaultValue.id) {
|
|
90
|
+
var _props$defaultValue2;
|
|
91
|
+
setElementId((_props$defaultValue2 = props.defaultValue) === null || _props$defaultValue2 === void 0 ? void 0 : _props$defaultValue2.id);
|
|
92
|
+
}
|
|
93
|
+
if (props.defaultValue.data) {
|
|
94
|
+
var _props$defaultValue$d, _props$defaultValue3, _props$defaultValue3$;
|
|
95
|
+
if (props.defaultValue.data.chartType.indexOf(',') !== -1) {
|
|
96
|
+
var chartType = 'line';
|
|
97
|
+
var array = props.defaultValue.data.chartType.split(',');
|
|
98
|
+
if (array.length > 1) {
|
|
99
|
+
chartType = array[0];
|
|
100
|
+
}
|
|
101
|
+
setSearchData(_objectSpread(_objectSpread({}, props.defaultValue.data), {}, {
|
|
102
|
+
chartType: chartType
|
|
103
|
+
}));
|
|
104
|
+
} else {
|
|
105
|
+
setSearchData(props.defaultValue.data);
|
|
106
|
+
}
|
|
107
|
+
var list = _toConsumableArray(disableItemList);
|
|
108
|
+
if ((_props$defaultValue$d = props.defaultValue.data) === null || _props$defaultValue$d === void 0 ? void 0 : _props$defaultValue$d.dimension) {
|
|
109
|
+
var _props$defaultValue$d2, _props$defaultValue$d3;
|
|
110
|
+
list = list.filter(function (item) {
|
|
111
|
+
return item !== 'pie';
|
|
112
|
+
});
|
|
113
|
+
if (['current_city', 'current_area'].includes((_props$defaultValue$d2 = props.defaultValue.data) === null || _props$defaultValue$d2 === void 0 ? void 0 : (_props$defaultValue$d3 = _props$defaultValue$d2.dimension) === null || _props$defaultValue$d3 === void 0 ? void 0 : _props$defaultValue$d3.value)) {
|
|
114
|
+
list = list.filter(function (item) {
|
|
115
|
+
return item !== 'map';
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (props.defaultValue.data.module == 'duration') {
|
|
120
|
+
list = ['line', 'map'];
|
|
121
|
+
}
|
|
122
|
+
setDisableItemList(list);
|
|
123
|
+
if ([-202, -203, -205].includes((_props$defaultValue3 = props.defaultValue) === null || _props$defaultValue3 === void 0 ? void 0 : (_props$defaultValue3$ = _props$defaultValue3.data) === null || _props$defaultValue3$ === void 0 ? void 0 : _props$defaultValue3$.id)) {
|
|
124
|
+
setIncludeToday(true);
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
initSearch(props.defaultValue.userGroup);
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
initSearch();
|
|
131
|
+
}
|
|
132
|
+
setPageLoading(false);
|
|
133
|
+
}, []);
|
|
134
|
+
var onChangeUrlParam = function onChangeUrlParam(data) {
|
|
135
|
+
clearTimeout(onChangeTimer);
|
|
136
|
+
onChangeTimer = setTimeout(function () {
|
|
137
|
+
props.onChange({
|
|
138
|
+
data: data
|
|
139
|
+
});
|
|
140
|
+
}, 500);
|
|
141
|
+
};
|
|
142
|
+
var initSearch = function initSearch(userGroup) {
|
|
143
|
+
setSearchData({
|
|
144
|
+
userGroup: userGroup ? userGroup : (userGroupList === null || userGroupList === void 0 ? void 0 : userGroupList.length) > 0 ? [userGroupList[0].id] : [0],
|
|
145
|
+
time: getInitDate(includeToday),
|
|
146
|
+
chartType: 'line',
|
|
147
|
+
name: '新增用户',
|
|
148
|
+
module: 'add',
|
|
149
|
+
id: -201,
|
|
150
|
+
analysisIndex: 'number',
|
|
151
|
+
platform: 0
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
var eventContentRef = useRef();
|
|
155
|
+
if (pageLoading || useBizStoreLoading) {
|
|
156
|
+
return /*#__PURE__*/React.createElement(Spin, null);
|
|
157
|
+
}
|
|
158
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
159
|
+
className: "whole-module-container"
|
|
160
|
+
}, /*#__PURE__*/React.createElement(BizTargetFromPanel, {
|
|
161
|
+
value: panelId ? {
|
|
162
|
+
panelId: panelId,
|
|
163
|
+
target: {
|
|
164
|
+
id: elementId,
|
|
165
|
+
name: title,
|
|
166
|
+
params: _objectSpread(_objectSpread({
|
|
167
|
+
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
168
|
+
}, searchData), {}, {
|
|
169
|
+
overall: true
|
|
170
|
+
}),
|
|
171
|
+
showList: showList
|
|
172
|
+
}
|
|
173
|
+
} : undefined,
|
|
174
|
+
disabled: props === null || props === void 0 ? void 0 : props.panelDisabled,
|
|
175
|
+
styleOptions: options,
|
|
176
|
+
afterEditTarget: props.afterEditTarget
|
|
177
|
+
}, /*#__PURE__*/React.createElement(WholeContext.Provider, {
|
|
178
|
+
value: {
|
|
179
|
+
currentApp: currentApp,
|
|
180
|
+
refreshLoading: refreshLoading,
|
|
181
|
+
setRefreshLoading: setRefreshLoading,
|
|
182
|
+
loading: loading,
|
|
183
|
+
setLoading: setLoading,
|
|
184
|
+
options: options,
|
|
185
|
+
setOptions: setOptions,
|
|
186
|
+
panelId: panelId,
|
|
187
|
+
elementId: elementId,
|
|
188
|
+
eventGroupList: eventGroupList,
|
|
189
|
+
eventEnvList: eventEnvList,
|
|
190
|
+
userPropList: userPropList,
|
|
191
|
+
searchData: searchData,
|
|
192
|
+
showList: showList,
|
|
193
|
+
setShowList: setShowList,
|
|
194
|
+
setSearchData: setSearchData,
|
|
195
|
+
onChangeUrlParam: onChangeUrlParam,
|
|
196
|
+
panelName: title,
|
|
197
|
+
includeToday: includeToday,
|
|
198
|
+
setIncludeToday: setIncludeToday,
|
|
199
|
+
showWarning: props.showWarning,
|
|
200
|
+
afterEditTarget: props.afterEditTarget,
|
|
201
|
+
onUserDrill: props.onUserDrill,
|
|
202
|
+
onLossWarning: props.onLossWarning,
|
|
203
|
+
enableGenerateReport: props.enableGenerateReport,
|
|
204
|
+
disableItemList: disableItemList,
|
|
205
|
+
setDisableItemList: setDisableItemList,
|
|
206
|
+
first: first,
|
|
207
|
+
setFirst: setFirst
|
|
208
|
+
}
|
|
209
|
+
}, /*#__PURE__*/React.createElement(WholeContent, {
|
|
210
|
+
elementId: elementId,
|
|
211
|
+
ref: eventContentRef,
|
|
212
|
+
value: searchData
|
|
213
|
+
}))));
|
|
214
|
+
};
|
|
215
|
+
ModuleWhole.defaultProps = {
|
|
216
|
+
includeToday: true
|
|
217
|
+
};
|
|
218
|
+
export default ModuleWhole;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.whole-module-container {
|
|
2
|
+
.biz-layout-top {
|
|
3
|
+
padding: 0 16px 16px;
|
|
4
|
+
.biz-user-group-header {
|
|
5
|
+
.ant-space-item {
|
|
6
|
+
color: #5f6085;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
.ant-spin-container {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.biz-select-option:not(.biz-select-option-multiple),
|
|
16
|
+
.biz-attr-select-option {
|
|
17
|
+
&.active {
|
|
18
|
+
background: @primary-color !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 设置下拉框最大高度
|
|
23
|
+
.biz-select-overlay {
|
|
24
|
+
max-height: 300px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.biz-layout-panel-content {
|
|
28
|
+
height: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.biz-layout-collapse-container {
|
|
32
|
+
align-items: center;
|
|
33
|
+
height: 24px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.biz-layout-content {
|
|
37
|
+
padding: 16px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SearchValue, UserDrillParamsProp } from '../../types';
|
|
2
|
+
export declare namespace WholeProps {
|
|
3
|
+
interface Props {
|
|
4
|
+
defaultValue?: Value;
|
|
5
|
+
panelDisabled?: boolean;
|
|
6
|
+
includeToday?: boolean;
|
|
7
|
+
afterEditTarget?: (type: string, value?: any) => void;
|
|
8
|
+
onUserDrill: (data: UserDrillParamsProp, searchData: SearchValue) => void;
|
|
9
|
+
onLossWarning?: (id: number) => void;
|
|
10
|
+
showWarning?: boolean;
|
|
11
|
+
enableGenerateReport?: boolean;
|
|
12
|
+
onChange: (data: Value | undefined) => void;
|
|
13
|
+
}
|
|
14
|
+
interface Value {
|
|
15
|
+
panelId?: number;
|
|
16
|
+
panelType?: 'edit' | 'add';
|
|
17
|
+
source?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
id?: number;
|
|
20
|
+
data?: SearchValue;
|
|
21
|
+
chosen_data?: string[];
|
|
22
|
+
[props: string]: any;
|
|
23
|
+
}
|
|
24
|
+
interface ColumnsDataType {
|
|
25
|
+
color: string;
|
|
26
|
+
eventName?: string;
|
|
27
|
+
id: number;
|
|
28
|
+
dimension?: string;
|
|
29
|
+
name: string;
|
|
30
|
+
nameGroup: string;
|
|
31
|
+
userGroup: string;
|
|
32
|
+
[x: string]: string | number | undefined;
|
|
33
|
+
}
|
|
34
|
+
}
|