@zgfe/modules-page 1.0.8-lijingyu1538.1 → 1.0.17-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/dist/esm/components/content/utils.js +16 -10
- package/dist/esm/components/detail/index.js +8 -8
- package/dist/esm/components/groupModal/demo.js +1 -1
- package/dist/esm/components/groupModal/index.js +7 -7
- package/dist/esm/components/groupModal/inputSelect.js +1 -1
- package/dist/esm/components/groupModal/pageItem.js +6 -6
- package/dist/esm/components/groupModal/types.js +2 -1
- package/dist/esm/components/pageSelect/index.js +77 -10
- package/dist/esm/components/pageSelect/index.less +52 -0
- package/dist/esm/components/pageSelect/types.js +2 -1
- package/dist/esm/components/searchPanel/index.js +1 -1
- package/dist/esm/components/topContent/index.d.ts +1 -1
- package/dist/esm/components/topContent/index.js +6 -6
- package/dist/esm/modules/empty/index.js +2 -2
- package/dist/esm/modules/home/demo/index.js +54 -50
- package/dist/esm/modules/home/index.js +14 -11
- package/dist/esm/modules/home/style/index.less +16 -2
- package/dist/esm/modules/home/types.js +1 -0
- package/dist/esm/modules/home/utils.js +5 -5
- package/package.json +7 -3
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconFont, util } from '@zgfe/business-lib';
|
|
2
2
|
import { Tooltip } from 'antd';
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
export var getColumns = function getColumns(type, hasUserGroup, onClickCallback, onEditCallback) {
|
|
5
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
6
|
-
currentApp = _useContext.currentApp;
|
|
7
5
|
var pageColumns = [{
|
|
8
6
|
title: '页面',
|
|
9
7
|
dataIndex: 'page',
|
|
@@ -33,17 +31,25 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
33
31
|
className: "table-td-page-icon",
|
|
34
32
|
type: "fuzhi1",
|
|
35
33
|
onClick: function onClick(e) {
|
|
36
|
-
var _navigator;
|
|
34
|
+
var _navigator, _navigator$clipboard;
|
|
37
35
|
e.stopPropagation();
|
|
38
36
|
if (!(record !== null && record !== void 0 && record.pageUrl)) return;
|
|
39
|
-
|
|
37
|
+
function copy() {
|
|
40
38
|
var el = document.createElement('textarea');
|
|
41
39
|
el.value = record.pageUrl || '';
|
|
42
40
|
document.body.appendChild(el);
|
|
43
41
|
el.select();
|
|
44
42
|
document.execCommand('copy');
|
|
45
43
|
document.body.removeChild(el);
|
|
46
|
-
}
|
|
44
|
+
}
|
|
45
|
+
if (navigator.clipboard && (_navigator = navigator) !== null && _navigator !== void 0 && (_navigator$clipboard = _navigator.clipboard) !== null && _navigator$clipboard !== void 0 && _navigator$clipboard.writeText) {
|
|
46
|
+
var _navigator2, _navigator2$clipboard;
|
|
47
|
+
(_navigator2 = navigator) === null || _navigator2 === void 0 ? void 0 : (_navigator2$clipboard = _navigator2.clipboard) === null || _navigator2$clipboard === void 0 ? void 0 : _navigator2$clipboard.writeText(record === null || record === void 0 ? void 0 : record.pageUrl).catch(function () {
|
|
48
|
+
copy();
|
|
49
|
+
});
|
|
50
|
+
} else {
|
|
51
|
+
copy();
|
|
52
|
+
}
|
|
47
53
|
}
|
|
48
54
|
})));
|
|
49
55
|
}
|
|
@@ -64,7 +70,7 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
64
70
|
return toThousands(txt);
|
|
65
71
|
}
|
|
66
72
|
}, {
|
|
67
|
-
title:
|
|
73
|
+
title: '人数',
|
|
68
74
|
dataIndex: 'viewUser',
|
|
69
75
|
key: 'viewUser',
|
|
70
76
|
align: 'right',
|
|
@@ -93,7 +99,7 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
93
99
|
return toThousands(txt);
|
|
94
100
|
}
|
|
95
101
|
}, {
|
|
96
|
-
title:
|
|
102
|
+
title: '人数',
|
|
97
103
|
dataIndex: 'clickUser',
|
|
98
104
|
key: 'clickUser',
|
|
99
105
|
align: 'right',
|
|
@@ -108,7 +114,7 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
108
114
|
}, {
|
|
109
115
|
title: /*#__PURE__*/React.createElement("div", {
|
|
110
116
|
className: "thread-title"
|
|
111
|
-
}, "\u70B9\u51FB
|
|
117
|
+
}, "\u70B9\u51FB\u4EBA\u6570\u5360\u6BD4", /*#__PURE__*/React.createElement(Tooltip, {
|
|
112
118
|
title: "\u70B9\u51FB\u4EBA\u6570\u5360\u6BD4=\u9875\u9762\u5185\u70B9\u51FB\u4EBA\u6570/\u9875\u9762\u6D4F\u89C8\u4EBA\u6570"
|
|
113
119
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
114
120
|
type: "tishi"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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 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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
9
|
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); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import "./index.less";
|
|
@@ -131,9 +131,9 @@ var DetailContent = function DetailContent(props) {
|
|
|
131
131
|
if (hash) pUrl = pUrl.replace(hash[0], '');
|
|
132
132
|
var secret = 'autoTrack-' + getSocketSecret();
|
|
133
133
|
if (/\?/.test(pageUrl)) {
|
|
134
|
-
url = "".concat(pUrl.replace(/\/$/, ''), "&zgSecret=").concat(secret).concat(hash);
|
|
134
|
+
url = "".concat(pUrl.replace(/\/$/, ''), "&zgSecret=").concat(secret).concat(hash, "&zgAk=").concat(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appKey);
|
|
135
135
|
} else {
|
|
136
|
-
url = "".concat(pUrl.replace(/\/$/, ''), "?zgSecret=").concat(secret).concat(hash);
|
|
136
|
+
url = "".concat(pUrl.replace(/\/$/, ''), "?zgSecret=").concat(secret).concat(hash, "&zgAk=").concat(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appKey);
|
|
137
137
|
}
|
|
138
138
|
return url;
|
|
139
139
|
}, [pageUrl]);
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
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
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
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(
|
|
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Button } from 'antd';
|
|
8
8
|
import GroupModal from '.';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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 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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
9
|
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); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { BizDialog, BizGlobalDataContext, IconFont, ajax } from '@zgfe/business-lib';
|
|
14
14
|
import { Button, Form, Input, Spin, message } from 'antd';
|
|
@@ -86,7 +86,7 @@ var GroupModal = function GroupModal(props) {
|
|
|
86
86
|
};
|
|
87
87
|
var onOk = function onOk() {
|
|
88
88
|
var _refForm$current;
|
|
89
|
-
(_refForm$current = refForm.current) === null || _refForm$current === void 0
|
|
89
|
+
(_refForm$current = refForm.current) === null || _refForm$current === void 0 ? void 0 : _refForm$current.submit();
|
|
90
90
|
};
|
|
91
91
|
var onSubmit = function onSubmit(data) {
|
|
92
92
|
var _props$value2;
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
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
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
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(
|
|
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Dropdown, Input } from 'antd';
|
|
8
8
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function _typeof(
|
|
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
2
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
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
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
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
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(
|
|
10
|
-
function _toPrimitive(
|
|
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
11
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
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
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
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(
|
|
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
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
17
|
import React, { useContext, useEffect, useState } from 'react';
|
|
18
18
|
import { classPrefix } from '.';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export var GroupModalType;
|
|
1
|
+
export var GroupModalType;
|
|
2
|
+
(function (_GroupModalType) {})(GroupModalType || (GroupModalType = {}));
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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 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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
9
|
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); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { BizSelect, IconFont } from '@zgfe/business-lib';
|
|
13
|
+
import { BizSearchInput, BizSelect, IconFont } from '@zgfe/business-lib';
|
|
14
14
|
import { pageTypes } from "../../constants";
|
|
15
|
-
import React, { useContext, useEffect, useState } from 'react';
|
|
15
|
+
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
16
16
|
import "./index.less";
|
|
17
17
|
import { ModulesPageContext } from "../../modules/home/types";
|
|
18
|
-
import { Tooltip } from 'antd';
|
|
18
|
+
import { Dropdown, Tooltip } from 'antd';
|
|
19
|
+
import VirtualList from 'rc-virtual-list';
|
|
20
|
+
import _ from 'lodash';
|
|
19
21
|
var PageSelect = function PageSelect(props) {
|
|
20
22
|
// 当前类型
|
|
21
23
|
var _useState = useState(pageTypes[0]),
|
|
@@ -37,6 +39,19 @@ var PageSelect = function PageSelect(props) {
|
|
|
37
39
|
pageList = _useContext.pageList,
|
|
38
40
|
pageGroupList = _useContext.pageGroupList,
|
|
39
41
|
currentClickPage = _useContext.currentClickPage;
|
|
42
|
+
var _useState7 = useState(false),
|
|
43
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
44
|
+
open = _useState8[0],
|
|
45
|
+
setOpen = _useState8[1];
|
|
46
|
+
var _useState9 = useState(),
|
|
47
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
48
|
+
search = _useState10[0],
|
|
49
|
+
setSearch = _useState10[1];
|
|
50
|
+
var showList = useMemo(function () {
|
|
51
|
+
return pageList.filter(function (item) {
|
|
52
|
+
return !search || new RegExp(_.escapeRegExp(search), 'i').test(item.pageTitle || '');
|
|
53
|
+
});
|
|
54
|
+
}, [search, pageList]);
|
|
40
55
|
useEffect(function () {
|
|
41
56
|
var _props$value, _props$value2;
|
|
42
57
|
var type = (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.pageGroup || ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.pageGroup) === 0 ? 1 : 0;
|
|
@@ -117,7 +132,59 @@ var PageSelect = function PageSelect(props) {
|
|
|
117
132
|
onChange: function onChange(data) {
|
|
118
133
|
return setCurrentType(data);
|
|
119
134
|
}
|
|
120
|
-
}), /*#__PURE__*/React.createElement(
|
|
135
|
+
}), currentType.value === 'page' ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
136
|
+
trigger: ['click'],
|
|
137
|
+
open: open,
|
|
138
|
+
onOpenChange: function onOpenChange(status) {
|
|
139
|
+
setOpen(status);
|
|
140
|
+
if (!status) {
|
|
141
|
+
setSearch('');
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
dropdownRender: function dropdownRender() {
|
|
145
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
146
|
+
className: "".concat(classPrefix, "-overlay")
|
|
147
|
+
}, /*#__PURE__*/React.createElement(BizSearchInput, {
|
|
148
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
149
|
+
className: "".concat(classPrefix, "-search"),
|
|
150
|
+
onChange: setSearch
|
|
151
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
className: "".concat(classPrefix, "-opt-panel")
|
|
153
|
+
}, /*#__PURE__*/React.createElement(VirtualList, {
|
|
154
|
+
data: showList,
|
|
155
|
+
height: 408,
|
|
156
|
+
itemHeight: 48,
|
|
157
|
+
itemKey: "pageUrl"
|
|
158
|
+
}, function (item) {
|
|
159
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
160
|
+
className: "".concat(classPrefix, "-opt ").concat((currentValue === null || currentValue === void 0 ? void 0 : currentValue.pageUrl) === (item === null || item === void 0 ? void 0 : item.pageUrl) ? 'active' : ''),
|
|
161
|
+
title: item === null || item === void 0 ? void 0 : item.pageTitle,
|
|
162
|
+
onClick: function onClick() {
|
|
163
|
+
setCurrentValue(item);
|
|
164
|
+
setOpen(false);
|
|
165
|
+
setSearch('');
|
|
166
|
+
}
|
|
167
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
168
|
+
className: "".concat(classPrefix, "-tle"),
|
|
169
|
+
style: item.pageUrl ? undefined : {
|
|
170
|
+
height: '36px',
|
|
171
|
+
lineHeight: '36px'
|
|
172
|
+
}
|
|
173
|
+
}, item.pageTitle), item.pageUrl ? /*#__PURE__*/React.createElement("div", {
|
|
174
|
+
className: "".concat(classPrefix, "-url")
|
|
175
|
+
}, item.pageUrl) : null);
|
|
176
|
+
})));
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
179
|
+
className: "".concat(classPrefix, "-handle")
|
|
180
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
181
|
+
title: currentValue === null || currentValue === void 0 ? void 0 : currentValue.pageTitle
|
|
182
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
183
|
+
className: "".concat(classPrefix, "-val")
|
|
184
|
+
}, currentValue === null || currentValue === void 0 ? void 0 : currentValue.pageTitle)), /*#__PURE__*/React.createElement(IconFont, {
|
|
185
|
+
type: "xiangxia",
|
|
186
|
+
className: "".concat(classPrefix, "-icon")
|
|
187
|
+
}))) : /*#__PURE__*/React.createElement(BizSelect, {
|
|
121
188
|
value: currentValue,
|
|
122
189
|
className: "".concat(classPrefix, "-panel-page"),
|
|
123
190
|
options: currentType.value === 'page' ? pageList : pageGroupList,
|
|
@@ -54,4 +54,56 @@
|
|
|
54
54
|
.__default-overflow();
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
&-handle {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: row;
|
|
61
|
+
width: 184px;
|
|
62
|
+
height: 32px;
|
|
63
|
+
margin-right: @margin-md;
|
|
64
|
+
padding: 0 @padding-xs;
|
|
65
|
+
line-height: 32px;
|
|
66
|
+
.__select-handle();
|
|
67
|
+
}
|
|
68
|
+
&-val {
|
|
69
|
+
flex: 1;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
}
|
|
74
|
+
&-icon {
|
|
75
|
+
flex: none;
|
|
76
|
+
color: #5f6085;
|
|
77
|
+
}
|
|
78
|
+
&-overlay {
|
|
79
|
+
.__select-panel();
|
|
80
|
+
width: 400px;
|
|
81
|
+
}
|
|
82
|
+
&-search {
|
|
83
|
+
margin-bottom: @margin-xs;
|
|
84
|
+
}
|
|
85
|
+
&-opt {
|
|
86
|
+
.__select-option();
|
|
87
|
+
height: 48px;
|
|
88
|
+
padding: 6px @padding-xs;
|
|
89
|
+
line-height: normal;
|
|
90
|
+
&.active {
|
|
91
|
+
.page-select-url {
|
|
92
|
+
color: #fff;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
&-tle {
|
|
97
|
+
line-height: 20px;
|
|
98
|
+
}
|
|
99
|
+
&-url {
|
|
100
|
+
color: #67727f;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
line-height: 16px;
|
|
103
|
+
}
|
|
104
|
+
&-tle,
|
|
105
|
+
&-url {
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
}
|
|
57
109
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export var PageSelectTypes;
|
|
1
|
+
export var PageSelectTypes;
|
|
2
|
+
(function (_PageSelectTypes) {})(PageSelectTypes || (PageSelectTypes = {}));
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
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
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
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(
|
|
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Form, Skeleton } from 'antd';
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
import { DatePickerTypes } from '@zgfe/business-lib/es/
|
|
3
|
+
import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
|
|
4
4
|
declare const TopContent: React.FC<{
|
|
5
5
|
value?: DatePickerTypes.Value;
|
|
6
6
|
type?: string;
|
|
@@ -2,13 +2,13 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
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
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
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(
|
|
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState, useContext } from 'react';
|
|
8
8
|
import "./index.less";
|
|
9
|
-
import {
|
|
9
|
+
import { IconFont, BizGlobalDataContext, BizDatePickerV2 } from '@zgfe/business-lib';
|
|
10
10
|
import { Button } from 'antd';
|
|
11
|
-
import { DatePickerTypes } from '@zgfe/business-lib/es/
|
|
11
|
+
import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
var TopContent = function TopContent(props) {
|
|
14
14
|
var _useState = useState(),
|
|
@@ -32,10 +32,10 @@ var TopContent = function TopContent(props) {
|
|
|
32
32
|
}, [time]);
|
|
33
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
34
34
|
className: "top-content"
|
|
35
|
-
}, /*#__PURE__*/React.createElement(
|
|
36
|
-
value: time,
|
|
37
|
-
mode: "simple",
|
|
35
|
+
}, /*#__PURE__*/React.createElement(BizDatePickerV2, {
|
|
38
36
|
includeToday: true,
|
|
37
|
+
dateTypeList: [DatePickerTypes.Unit.day],
|
|
38
|
+
value: time,
|
|
39
39
|
onChange: setTime
|
|
40
40
|
}), props.hidden ? null : props.type === 'pageGroup' ? /*#__PURE__*/React.createElement(Button, {
|
|
41
41
|
type: "primary",
|
|
@@ -10,9 +10,9 @@ var EmptyPanel = function EmptyPanel() {
|
|
|
10
10
|
};
|
|
11
11
|
// 复制
|
|
12
12
|
var onCopy = function onCopy() {
|
|
13
|
-
var _navigator;
|
|
13
|
+
var _navigator, _navigator$clipboard;
|
|
14
14
|
var codeNode = " window.".concat(jsSdkName, ".load('").concat(currentApp.appKey, "', {\n autoTrack: true, //\u5168\u57CB\u70B9\u5F00\u5173\n singlePage: false //\u662F\u5426\u4E3A\u5355\u9875\u9762\u5E94\u7528 \u9ED8\u8BA4\u4E3Afalse\n });");
|
|
15
|
-
(_navigator = navigator) === null || _navigator === void 0
|
|
15
|
+
(_navigator = navigator) === null || _navigator === void 0 ? void 0 : (_navigator$clipboard = _navigator.clipboard) === null || _navigator$clipboard === void 0 ? void 0 : _navigator$clipboard.writeText(codeNode).catch(function () {
|
|
16
16
|
var el = document.createElement('textarea');
|
|
17
17
|
el.value = codeNode;
|
|
18
18
|
document.body.appendChild(el);
|
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ModulesPage } from '@zgfe/modules-page';
|
|
3
3
|
import { DemoWrapper } from '@zgfe/business-lib';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
4
|
+
// const defaultValue = {
|
|
5
|
+
// pageTitle: '进入百度首页894854121612',
|
|
6
|
+
// appId: 225,
|
|
7
|
+
// module: 'page',
|
|
8
|
+
// pageUrl: 'http://baidu.com/query/894854121612',
|
|
9
|
+
// time: {
|
|
10
|
+
// unit: 'day',
|
|
11
|
+
// end: '2023-09-14',
|
|
12
|
+
// begin: '2023-08-31',
|
|
13
|
+
// relative: [14, 0],
|
|
14
|
+
// },
|
|
15
|
+
// filters: {
|
|
16
|
+
// conditions: [
|
|
17
|
+
// {
|
|
18
|
+
// attrId: 0,
|
|
19
|
+
// propCategory: 'userProp',
|
|
20
|
+
// values: ['实名'],
|
|
21
|
+
// dimensionSub: 'is_anonymous',
|
|
22
|
+
// label: '实名/匿名',
|
|
23
|
+
// type: 1,
|
|
24
|
+
// category: 'fixed',
|
|
25
|
+
// operator: 'equal',
|
|
26
|
+
// attrName: 'is_anonymous',
|
|
27
|
+
// },
|
|
28
|
+
// {
|
|
29
|
+
// attrId: 0,
|
|
30
|
+
// propCategory: 'userProp',
|
|
31
|
+
// values: ['30', '1'],
|
|
32
|
+
// dimensionSub: 'last_visit_time',
|
|
33
|
+
// label: '最后一次访问时间',
|
|
34
|
+
// type: 3,
|
|
35
|
+
// category: 'fixed',
|
|
36
|
+
// operator: 'relative',
|
|
37
|
+
// attrName: 'last_visit_time',
|
|
38
|
+
// },
|
|
39
|
+
// {
|
|
40
|
+
// attrId: 0,
|
|
41
|
+
// propCategory: 'envProp',
|
|
42
|
+
// type: 1,
|
|
43
|
+
// operator: 'equal',
|
|
44
|
+
// values: ['baidu'],
|
|
45
|
+
// dimensionSub: 'website',
|
|
46
|
+
// label: '来源域名',
|
|
47
|
+
// attrName: 'website',
|
|
48
|
+
// category: 'fixed',
|
|
49
|
+
// },
|
|
50
|
+
// ],
|
|
51
|
+
// relation: 'and',
|
|
52
|
+
// },
|
|
53
|
+
// userGroup: [758, 757],
|
|
54
|
+
// platform: 3,
|
|
55
|
+
// };
|
|
56
|
+
|
|
52
57
|
export default (function () {
|
|
53
58
|
var onClickWarn = function onClickWarn() {
|
|
54
59
|
console.log('onClickWarn');
|
|
@@ -58,14 +63,13 @@ export default (function () {
|
|
|
58
63
|
};
|
|
59
64
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
60
65
|
needMeta: true,
|
|
61
|
-
defaultApp:
|
|
66
|
+
defaultApp: 2
|
|
62
67
|
}, /*#__PURE__*/React.createElement("div", {
|
|
63
68
|
style: {
|
|
64
69
|
height: 750,
|
|
65
70
|
overflow: 'auto'
|
|
66
71
|
}
|
|
67
72
|
}, /*#__PURE__*/React.createElement(ModulesPage, {
|
|
68
|
-
value: defaultValue,
|
|
69
73
|
onClickWarn: onClickWarn,
|
|
70
74
|
onChange: onChange
|
|
71
75
|
})));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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 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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
9
|
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); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
14
14
|
import EmptyPanel from "../empty";
|
|
@@ -102,7 +102,7 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
102
102
|
// 是否是没进行埋点分析
|
|
103
103
|
var isEmpty = useMemo(function () {
|
|
104
104
|
var flag = true;
|
|
105
|
-
eventGroupList === null || eventGroupList === void 0
|
|
105
|
+
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
106
106
|
group.eventList.forEach(function (event) {
|
|
107
107
|
if ((event.name === 'click' || event.name === 'pv') && event !== null && event !== void 0 && event.clickAnalysis) {
|
|
108
108
|
flag = false;
|
|
@@ -169,7 +169,7 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
169
169
|
setOriginSearchValue(_.cloneDeep(searchValue));
|
|
170
170
|
var control = new AbortController();
|
|
171
171
|
var signal = control.signal;
|
|
172
|
-
controller === null || controller === void 0
|
|
172
|
+
controller === null || controller === void 0 ? void 0 : controller.abort();
|
|
173
173
|
setController(control);
|
|
174
174
|
getPageResult(param, setResult, setLoading, signal);
|
|
175
175
|
}, 500));
|
|
@@ -213,7 +213,9 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
213
213
|
};
|
|
214
214
|
var render = /*#__PURE__*/React.createElement("div", {
|
|
215
215
|
className: "".concat(classPrefix, "-top-render")
|
|
216
|
-
}, /*#__PURE__*/React.createElement(
|
|
216
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
217
|
+
className: "".concat(classPrefix, "-top-render-title")
|
|
218
|
+
}, "\u9875\u9762\u5206\u6790"), /*#__PURE__*/React.createElement(Button, {
|
|
217
219
|
type: "primary",
|
|
218
220
|
disabled: loading || !result || !result.length || !authority[100144],
|
|
219
221
|
onClick: props.onClickWarn
|
|
@@ -227,8 +229,9 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
227
229
|
setCurrentClickPage: setCurrentClickPage
|
|
228
230
|
}
|
|
229
231
|
}, /*#__PURE__*/React.createElement(BizLayout, {
|
|
230
|
-
className: classPrefix
|
|
231
|
-
title
|
|
232
|
+
className: classPrefix
|
|
233
|
+
// title="页面分析"
|
|
234
|
+
,
|
|
232
235
|
hasCollapse: true,
|
|
233
236
|
topPanel: /*#__PURE__*/React.createElement(Skeleton, {
|
|
234
237
|
loading: pageLoading,
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
.modules-page {
|
|
2
2
|
&-top-render {
|
|
3
3
|
display: flex;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
height: 38px;
|
|
6
7
|
margin-top: -8px;
|
|
7
8
|
margin-bottom: 8px;
|
|
9
|
+
line-height: 38px;
|
|
8
10
|
.ant-btn {
|
|
9
11
|
padding: 4px 16px;
|
|
10
12
|
}
|
|
13
|
+
&-title {
|
|
14
|
+
color: var(--io-N-, #021429);
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
font-family: 'PingFang SC';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
line-height: 20px; /* 125% */
|
|
20
|
+
letter-spacing: 0.016px;
|
|
21
|
+
}
|
|
11
22
|
}
|
|
12
23
|
.ant-btn-primary[disabled] {
|
|
13
24
|
color: #fff;
|
|
@@ -42,4 +53,7 @@
|
|
|
42
53
|
line-height: 1;
|
|
43
54
|
}
|
|
44
55
|
}
|
|
56
|
+
.biz-layout-top {
|
|
57
|
+
padding: 16px;
|
|
58
|
+
}
|
|
45
59
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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 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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
import { ajax, util, base64 } from '@zgfe/business-lib';
|
|
8
8
|
import api from "../../constants/api";
|
|
9
9
|
// 获取页面列表
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17-zhongyuan.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
4
8
|
"scripts": {
|
|
5
9
|
"start": "dumi dev",
|
|
6
10
|
"docs:build": "dumi build",
|
|
@@ -39,7 +43,6 @@
|
|
|
39
43
|
"@types/lodash": "^4.14.197",
|
|
40
44
|
"@umijs/fabric": "^2.8.1",
|
|
41
45
|
"@umijs/test": "^3.0.5",
|
|
42
|
-
"@zgfe/business-lib": "1.2.28-heyh.2",
|
|
43
46
|
"antd": "^4.22.6",
|
|
44
47
|
"dumi": "^1.1.0",
|
|
45
48
|
"father": "^4.0.0-rc.2",
|
|
@@ -48,7 +51,8 @@
|
|
|
48
51
|
"lint-staged": "^10.0.7",
|
|
49
52
|
"lodash": "^4.17.21",
|
|
50
53
|
"prettier": "^2.2.1",
|
|
54
|
+
"rc-virtual-list": "^3.14.2",
|
|
51
55
|
"yorkie": "^2.0.0"
|
|
52
56
|
},
|
|
53
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a443c1e936633cacb9bb29ac417949c40b3b5d6d"
|
|
54
58
|
}
|