@zgfe/modules-event 1.0.7 → 1.0.29-zhongyuan-event.2
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 +35 -35
- package/es/components/eventFilter/index.js +107 -53
- package/es/components/eventFilter/setCascade.d.ts +3 -0
- package/es/components/eventFilter/setCascade.js +286 -0
- package/es/components/eventFilter/styles/index.less +148 -36
- package/es/components/eventFilter/types.d.ts +1 -0
- package/es/components/renderContent/index.js +16 -27
- package/es/components/renderContent/styles/index.less +19 -19
- package/es/components/renderContent/types.d.ts +0 -1
- package/es/components/searchPanel/index.js +35 -17
- package/es/components/searchPanel/styles/index.less +22 -18
- package/es/components/searchPanel/types.d.ts +2 -2
- package/es/components/table/index.js +107 -36
- package/es/components/table/styles/index.css +236 -0
- package/es/components/table/styles/index.less +249 -193
- package/es/components/table/types.d.ts +0 -1
- package/es/components/topBar/index.d.ts +6 -1
- package/es/components/topBar/index.js +62 -45
- package/es/components/topBar/styles/index.less +58 -63
- package/es/components/topBar/types.d.ts +0 -1
- package/es/constants/apis.d.ts +3 -1
- package/es/constants/apis.js +4 -2
- package/es/constants/fields.d.ts +0 -14
- package/es/constants/fields.js +1 -45
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/modules/chart/demo/index.js +5 -5
- package/es/modules/chart/demo/panel.js +7 -2
- package/es/modules/chart/index.js +123 -48
- package/es/modules/chart/types.d.ts +3 -0
- package/es/modules/content/index.d.ts +1 -1
- package/es/modules/content/index.js +116 -75
- package/es/modules/content/styles/index.less +19 -7
- package/es/modules/content/utils.d.ts +3 -2
- package/es/modules/content/utils.js +63 -34
- package/es/modules/home/demo/create.js +8 -8
- package/es/modules/home/demo/edit.js +14 -15
- package/es/modules/home/demo/index.js +13 -10
- package/es/modules/home/demo/scene.js +8 -8
- package/es/modules/home/demo/styles/index.less +33 -33
- package/es/modules/home/index.js +59 -41
- package/es/modules/home/styles/index.less +49 -49
- package/es/modules/topPanel/index.js +51 -23
- package/es/modules/topPanel/styles/index.less +50 -49
- package/es/style/image/ring.svg +8 -8
- package/es/style/index.less +62 -62
- package/es/types.d.ts +8 -0
- package/es/utils/formData.d.ts +2 -1
- package/es/utils/formData.js +70 -21
- package/package.json +24 -20
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
.event-content {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
.event-content-topBar {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
> span {
|
|
6
|
+
color: #021429;
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
}
|
|
9
|
+
.modules-event-topbar {
|
|
10
|
+
padding-right: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.event-content {
|
|
14
|
+
&-options {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
margin-bottom: 16px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { AttributeSelect, AttrConditionTypes } from '@zgfe/business-lib';
|
|
2
2
|
import { bizAttributeSelectorValueProp } from '../../types';
|
|
3
3
|
import { EventGroup, UserProp, EnvProp } from '@zgfe/business-lib/es/attributeSelector/types';
|
|
4
|
+
import { SearchValue } from '../../types';
|
|
4
5
|
export declare const getMapChartData: (data: any) => any;
|
|
5
6
|
export declare const judgeFilterValue: (data: AttrConditionTypes.GroupValue | undefined, count: number) => boolean;
|
|
6
7
|
export declare const judgeIsCity: (name: string | undefined) => boolean;
|
|
7
8
|
export declare const judgeIsArea: (name: string | undefined) => boolean;
|
|
8
|
-
export declare const
|
|
9
|
+
export declare const useGetValue: (param: bizAttributeSelectorValueProp, eventGroupList: EventGroup[] | undefined, eventEnvList: EnvProp[] | undefined, userPropList: UserProp[] | undefined, searchData?: SearchValue) => AttributeSelect.Value | undefined;
|
|
9
10
|
export declare const getNumberPanelData: (data: any) => Promise<unknown>;
|
|
10
|
-
export declare const normalOptions: {
|
|
11
|
+
export declare const normalOptions: (type: any) => {
|
|
11
12
|
label: string;
|
|
12
13
|
value: string;
|
|
13
14
|
}[];
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _regeneratorRuntime() { "use strict"; var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; function n(r) { var e = "function" == typeof r && r.constructor; return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); } var o = { throw: 1, return: 2, break: 3, continue: 3 }; function a(r) { var e, t; return function (n) { e || (e = { stop: function stop() { return t(n.a, 2); }, catch: function _catch() { return n.v; }, abrupt: function abrupt(r, e) { return t(n.a, o[r], e); }, delegateYield: function delegateYield(r, o, a) { return e.resultName = o, t(n.d, _regeneratorValues(r), a); }, finish: function finish(r) { return t(n.f, r); } }, t = function t(r, _t, o) { n.p = e.prev, n.n = e.next; try { return r(_t, o); } finally { e.next = n.n; } }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; try { return r.call(this, e); } finally { n.p = e.prev, n.n = e.next; } }; } return (_regeneratorRuntime = function _regeneratorRuntime() { return { wrap: function wrap(e, t, n, o) { return r.w(a(e), t, n, o && o.reverse()); }, isGeneratorFunction: n, mark: r.m, awrap: function awrap(r, e) { return new _OverloadYield(r, e); }, AsyncIterator: _regeneratorAsyncIterator, async: function async(r, e, t, o, u) { return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u); }, keys: _regeneratorKeys, values: _regeneratorValues }; })(); }
|
|
8
|
+
function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
|
|
9
|
+
function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.unshift(t); return function e() { for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; return e.done = !0, e; }; }
|
|
10
|
+
function _regeneratorAsync(n, e, r, t, o) { var a = _regeneratorAsyncGen(n, e, r, t, o); return a.next().then(function (n) { return n.done ? n.value : a.next(); }); }
|
|
11
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
12
|
+
function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (_regeneratorDefine2(_regeneratorAsyncIterator.prototype), _regeneratorDefine2(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), _regeneratorDefine2(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); }
|
|
13
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
14
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
15
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
16
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
17
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
18
|
+
import { ajax, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
19
|
+
import { fetchEventAttrs } from '@zgfe/business-lib/es/utils/eventApi';
|
|
8
20
|
import { Apis } from '../../constants';
|
|
9
21
|
import _ from 'lodash';
|
|
22
|
+
import { useContext } from 'react';
|
|
10
23
|
export var getMapChartData = function getMapChartData(data) {
|
|
24
|
+
var _data$series;
|
|
11
25
|
var _data = _.cloneDeep(data);
|
|
12
|
-
_data.series.map(function (item) {
|
|
26
|
+
_data === null || _data === void 0 ? void 0 : (_data$series = _data.series) === null || _data$series === void 0 ? void 0 : _data$series.map(function (item) {
|
|
13
27
|
if (item.names.length > 1) {
|
|
14
28
|
if (item.names[1] === '新疆维吾尔自治区') {
|
|
15
29
|
item.names = [item.names[0], '新疆'];
|
|
@@ -46,24 +60,37 @@ export var judgeIsArea = function judgeIsArea(name) {
|
|
|
46
60
|
var areaData = ['current_area', 'current_city', 'area', 'city'];
|
|
47
61
|
return name && areaData.indexOf(name) !== -1 ? true : false;
|
|
48
62
|
};
|
|
49
|
-
export var
|
|
63
|
+
export var useGetValue = function useGetValue(param, eventGroupList, eventEnvList, userPropList, searchData) {
|
|
64
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
65
|
+
currentApp = _useContext.currentApp;
|
|
50
66
|
var res = undefined;
|
|
51
|
-
var key = "".concat(param.propCategory, "-").concat(param.value);
|
|
52
67
|
if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'envProp') {
|
|
53
68
|
eventEnvList === null || eventEnvList === void 0 ? void 0 : eventEnvList.forEach(function (attr) {
|
|
54
|
-
if (attr.
|
|
55
|
-
});
|
|
56
|
-
} else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'eventProp') {
|
|
57
|
-
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
58
|
-
group.eventList.forEach(function (event) {
|
|
59
|
-
event.attrList.forEach(function (attr) {
|
|
60
|
-
if (attr.key === key) res = attr;
|
|
61
|
-
});
|
|
62
|
-
});
|
|
69
|
+
if (attr.id === param.id && attr.name === param.value) res = attr;
|
|
63
70
|
});
|
|
71
|
+
} else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'eventProp' && searchData) {
|
|
72
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
73
|
+
var attrs;
|
|
74
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
75
|
+
while (1) switch (_context.prev = _context.next) {
|
|
76
|
+
case 0:
|
|
77
|
+
_context.next = 2;
|
|
78
|
+
return fetchEventAttrs(searchData === null || searchData === void 0 ? void 0 : searchData.id, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
|
|
79
|
+
case 2:
|
|
80
|
+
attrs = _context.sent;
|
|
81
|
+
attrs.forEach(function (attr) {
|
|
82
|
+
if (attr.id === param.id) res = attr;
|
|
83
|
+
});
|
|
84
|
+
case 4:
|
|
85
|
+
case "end":
|
|
86
|
+
return _context.stop();
|
|
87
|
+
}
|
|
88
|
+
}, _callee);
|
|
89
|
+
}))();
|
|
90
|
+
console.log(eventGroupList, 'eventGroupListeventGroupListeventGroupList');
|
|
64
91
|
} else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'userProp') {
|
|
65
92
|
userPropList === null || userPropList === void 0 ? void 0 : userPropList.forEach(function (attr) {
|
|
66
|
-
if (attr.
|
|
93
|
+
if (attr.id === param.id && attr.category === param.category && attr.name === param.value) res = attr;
|
|
67
94
|
});
|
|
68
95
|
}
|
|
69
96
|
return res;
|
|
@@ -80,21 +107,23 @@ export var getNumberPanelData = function getNumberPanelData(data) {
|
|
|
80
107
|
});
|
|
81
108
|
});
|
|
82
109
|
};
|
|
83
|
-
export var normalOptions =
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
110
|
+
export var normalOptions = function normalOptions(type) {
|
|
111
|
+
return [{
|
|
112
|
+
label: "".concat(type != 'user' ? '主体数' : '人数'),
|
|
113
|
+
value: 'number'
|
|
114
|
+
}, {
|
|
115
|
+
label: '次数',
|
|
116
|
+
value: 'times'
|
|
117
|
+
}, {
|
|
118
|
+
label: '活跃比',
|
|
119
|
+
value: 'active_ratio'
|
|
120
|
+
}, {
|
|
121
|
+
label: "".concat(type != 'user' ? '主体平均次数' : '人均次数'),
|
|
122
|
+
value: 'per'
|
|
123
|
+
}];
|
|
124
|
+
};
|
|
96
125
|
export var normalEventOptions = [{
|
|
97
|
-
label: '
|
|
126
|
+
label: '口径数',
|
|
98
127
|
value: 'number'
|
|
99
128
|
}, {
|
|
100
129
|
label: '次数',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
9
|
import { ModuleEvent } from '../../../index';
|
|
@@ -44,15 +44,15 @@ export default (function () {
|
|
|
44
44
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
45
45
|
needMeta: true,
|
|
46
46
|
defaultApp: 461
|
|
47
|
-
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
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
48
|
onClick: function onClick() {
|
|
49
49
|
return setIsDetail(false);
|
|
50
50
|
}
|
|
51
|
-
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleEvent, {
|
|
51
|
+
}, "\u8FD4\u56DE"))) : (/*#__PURE__*/React.createElement(ModuleEvent, {
|
|
52
52
|
onChange: onChange,
|
|
53
53
|
defaultValue: searchParams,
|
|
54
54
|
afterEditTarget: afterEditTarget,
|
|
55
55
|
onUserDrill: onUserDrill,
|
|
56
56
|
onLossWarning: onLossWarning
|
|
57
|
-
}));
|
|
57
|
+
})));
|
|
58
58
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
9
|
import { ModuleEvent } from '../../../index';
|
|
@@ -14,21 +14,20 @@ var defaultValue = {
|
|
|
14
14
|
id: 249641,
|
|
15
15
|
name: '事件',
|
|
16
16
|
data: {
|
|
17
|
-
app_id:
|
|
17
|
+
app_id: 503302,
|
|
18
18
|
module: 'event',
|
|
19
|
-
appId: 502391,
|
|
20
|
-
platform: 0,
|
|
21
19
|
userGroup: [0],
|
|
22
20
|
time: {
|
|
23
|
-
begin: '
|
|
24
|
-
end: '2024-
|
|
21
|
+
begin: '2024-08-04',
|
|
22
|
+
end: '2024-09-03',
|
|
25
23
|
relative: [30, 0],
|
|
26
24
|
unit: 'day'
|
|
27
25
|
},
|
|
28
26
|
chartType: 'line',
|
|
29
|
-
analysisIndex: 'number'
|
|
27
|
+
analysisIndex: 'number',
|
|
28
|
+
appId: 503302
|
|
30
29
|
},
|
|
31
|
-
chosen_data: ['
|
|
30
|
+
chosen_data: ['崩溃']
|
|
32
31
|
};
|
|
33
32
|
export default (function () {
|
|
34
33
|
var _useState = useState(false),
|
|
@@ -61,14 +60,14 @@ export default (function () {
|
|
|
61
60
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
62
61
|
needMeta: true,
|
|
63
62
|
defaultApp: 502391
|
|
64
|
-
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
63
|
+
}, isDetail ? (/*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
65
64
|
onClick: function onClick() {
|
|
66
65
|
return setIsDetail(false);
|
|
67
66
|
}
|
|
68
|
-
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleEvent, {
|
|
67
|
+
}, "\u8FD4\u56DE"))) : (/*#__PURE__*/React.createElement(ModuleEvent, {
|
|
69
68
|
onChange: onChange,
|
|
70
69
|
defaultValue: searchParams,
|
|
71
70
|
afterEditTarget: afterEditTarget,
|
|
72
71
|
onUserDrill: onUserDrill
|
|
73
|
-
}));
|
|
72
|
+
})));
|
|
74
73
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
9
9
|
import { ModuleEvent } from '@zgfe/modules-event';
|
|
@@ -11,7 +11,7 @@ import './styles/index.less';
|
|
|
11
11
|
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
12
12
|
import { Button } from 'antd';
|
|
13
13
|
export default (function () {
|
|
14
|
-
var _useState = useState(
|
|
14
|
+
var _useState = useState(true),
|
|
15
15
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16
16
|
isDetail = _useState2[0],
|
|
17
17
|
setIsDetail = _useState2[1];
|
|
@@ -24,6 +24,9 @@ export default (function () {
|
|
|
24
24
|
setSearchParams = _useState6[1];
|
|
25
25
|
useEffect(function () {
|
|
26
26
|
setGlobalConfig(requestConfig);
|
|
27
|
+
setTimeout(function () {
|
|
28
|
+
setIsDetail(false);
|
|
29
|
+
}, 3000);
|
|
27
30
|
}, []);
|
|
28
31
|
var afterEditTarget = function afterEditTarget(type, data) {
|
|
29
32
|
console.log("".concat(type, "\u56DE\u8C03"), data);
|
|
@@ -39,14 +42,14 @@ export default (function () {
|
|
|
39
42
|
};
|
|
40
43
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
41
44
|
needMeta: true,
|
|
42
|
-
defaultApp:
|
|
43
|
-
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
45
|
+
defaultApp: 616
|
|
46
|
+
}, isDetail ? (/*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
44
47
|
onClick: function onClick() {
|
|
45
48
|
return setIsDetail(false);
|
|
46
49
|
}
|
|
47
|
-
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleEvent, {
|
|
50
|
+
}, "\u8FD4\u56DE"))) : (/*#__PURE__*/React.createElement(ModuleEvent, {
|
|
48
51
|
onChange: onChange,
|
|
49
52
|
afterEditTarget: afterEditTarget,
|
|
50
53
|
onUserDrill: onUserDrill
|
|
51
|
-
}));
|
|
54
|
+
})));
|
|
52
55
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
9
|
import { ModuleEvent } from '../../../index';
|
|
@@ -76,14 +76,14 @@ export default (function () {
|
|
|
76
76
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
77
77
|
needMeta: true,
|
|
78
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, {
|
|
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
80
|
onClick: function onClick() {
|
|
81
81
|
return setIsDetail(false);
|
|
82
82
|
}
|
|
83
|
-
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleEvent, {
|
|
83
|
+
}, "\u8FD4\u56DE"))) : (/*#__PURE__*/React.createElement(ModuleEvent, {
|
|
84
84
|
onChange: onChange,
|
|
85
85
|
defaultValue: searchParams,
|
|
86
86
|
afterEditTarget: afterEditTarget,
|
|
87
87
|
onUserDrill: onUserDrill
|
|
88
|
-
}));
|
|
88
|
+
})));
|
|
89
89
|
});
|
|
@@ -1,33 +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
|
-
}
|
|
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
|
+
}
|