@zgfe/modules-page 1.0.17-zhongyuan.21 → 1.0.17-zhongyuan.23
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.
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.page-content {
|
|
4
|
-
margin-top: 24px;
|
|
5
|
-
|
|
6
|
-
.ant-table
|
|
7
|
-
.ant-table-thead
|
|
8
|
-
.ant-table-cell.ant-table-column-has-sorters
|
|
9
|
-
.ant-table-column-sorters {
|
|
10
|
-
justify-content: flex-end;
|
|
11
|
-
}
|
|
12
|
-
.thread-right .ant-table-column-sorters {
|
|
13
|
-
justify-content: flex-end;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.thread-title {
|
|
17
|
-
span {
|
|
18
|
-
margin-left: 4px;
|
|
19
|
-
color: #9aa1a9;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
&:hover {
|
|
22
|
-
color: @primary-color;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.ant-table .ant-table-container .ant-table-thead > tr > th.thread-merge {
|
|
27
|
-
border-bottom: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.table-td-page {
|
|
31
|
-
position: relative;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
.table-td-page-icon {
|
|
36
|
-
display: block;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
&-title {
|
|
40
|
-
color: @text-color-secondary;
|
|
41
|
-
.__default-overflow();
|
|
42
|
-
}
|
|
43
|
-
&-content {
|
|
44
|
-
margin-top: 8px;
|
|
45
|
-
color: #9aa1a9;
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
.__default-overflow();
|
|
48
|
-
}
|
|
49
|
-
&-icon {
|
|
50
|
-
position: absolute;
|
|
51
|
-
top: 8px;
|
|
52
|
-
right: 0px;
|
|
53
|
-
z-index: 10;
|
|
54
|
-
display: none;
|
|
55
|
-
font-size: 16px !important;
|
|
56
|
-
&:hover {
|
|
57
|
-
color: @primary-color;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.table-td-group {
|
|
62
|
-
&:hover {
|
|
63
|
-
.bsicon {
|
|
64
|
-
display: inline-block;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&-content {
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
}
|
|
70
|
-
.bsicon {
|
|
71
|
-
display: none;
|
|
72
|
-
margin-left: 16px;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
|
|
75
|
-
&:hover {
|
|
76
|
-
color: @primary-color;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-empty {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
margin-top: 24px;
|
|
86
|
-
padding: 105px 0;
|
|
87
|
-
background: #fff;
|
|
88
|
-
border: 1px solid #ecedf0;
|
|
89
|
-
border-radius: 8px;
|
|
90
|
-
|
|
91
|
-
&-content {
|
|
92
|
-
display: flex;
|
|
93
|
-
flex-direction: column;
|
|
94
|
-
align-items: center;
|
|
95
|
-
width: 348px;
|
|
96
|
-
|
|
97
|
-
img {
|
|
98
|
-
width: 348px;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&-content1 {
|
|
103
|
-
font-size: 16px;
|
|
104
|
-
}
|
|
105
|
-
&-content2 {
|
|
106
|
-
margin-top: 8px;
|
|
107
|
-
margin-bottom: 24px;
|
|
108
|
-
color: @text-color-secondary;
|
|
109
|
-
font-size: 16px;
|
|
110
|
-
text-align: center;
|
|
111
|
-
}
|
|
112
|
-
.tianjia1 {
|
|
113
|
-
margin-right: 8px;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.anslysis-tip {
|
|
117
|
-
display: flex;
|
|
118
|
-
justify-content: space-between;
|
|
119
|
-
width: 60%;
|
|
120
|
-
margin: 0px 0px 10px;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.page-content {
|
|
4
|
+
margin-top: 24px;
|
|
5
|
+
|
|
6
|
+
.ant-table
|
|
7
|
+
.ant-table-thead
|
|
8
|
+
.ant-table-cell.ant-table-column-has-sorters
|
|
9
|
+
.ant-table-column-sorters {
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
}
|
|
12
|
+
.thread-right .ant-table-column-sorters {
|
|
13
|
+
justify-content: flex-end;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.thread-title {
|
|
17
|
+
span {
|
|
18
|
+
margin-left: 4px;
|
|
19
|
+
color: #9aa1a9;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
&:hover {
|
|
22
|
+
color: @primary-color;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.ant-table .ant-table-container .ant-table-thead > tr > th.thread-merge {
|
|
27
|
+
border-bottom: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.table-td-page {
|
|
31
|
+
position: relative;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
.table-td-page-icon {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&-title {
|
|
40
|
+
color: @text-color-secondary;
|
|
41
|
+
.__default-overflow();
|
|
42
|
+
}
|
|
43
|
+
&-content {
|
|
44
|
+
margin-top: 8px;
|
|
45
|
+
color: #9aa1a9;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
.__default-overflow();
|
|
48
|
+
}
|
|
49
|
+
&-icon {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 8px;
|
|
52
|
+
right: 0px;
|
|
53
|
+
z-index: 10;
|
|
54
|
+
display: none;
|
|
55
|
+
font-size: 16px !important;
|
|
56
|
+
&:hover {
|
|
57
|
+
color: @primary-color;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.table-td-group {
|
|
62
|
+
&:hover {
|
|
63
|
+
.bsicon {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&-content {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
.bsicon {
|
|
71
|
+
display: none;
|
|
72
|
+
margin-left: 16px;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
color: @primary-color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-empty {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
margin-top: 24px;
|
|
86
|
+
padding: 105px 0;
|
|
87
|
+
background: #fff;
|
|
88
|
+
border: 1px solid #ecedf0;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
|
|
91
|
+
&-content {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 348px;
|
|
96
|
+
|
|
97
|
+
img {
|
|
98
|
+
width: 348px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-content1 {
|
|
103
|
+
font-size: 16px;
|
|
104
|
+
}
|
|
105
|
+
&-content2 {
|
|
106
|
+
margin-top: 8px;
|
|
107
|
+
margin-bottom: 24px;
|
|
108
|
+
color: @text-color-secondary;
|
|
109
|
+
font-size: 16px;
|
|
110
|
+
text-align: center;
|
|
111
|
+
}
|
|
112
|
+
.tianjia1 {
|
|
113
|
+
margin-right: 8px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.anslysis-tip {
|
|
117
|
+
display: flex;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
width: 60%;
|
|
120
|
+
margin: 0px 0px 10px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -39,7 +39,7 @@ var DetailContent = function DetailContent(props) {
|
|
|
39
39
|
setPageUrl = _useState4[1];
|
|
40
40
|
useEffect(function () {
|
|
41
41
|
var secret = getSocketSecret();
|
|
42
|
-
var url = "
|
|
42
|
+
var url = "ws://".concat(location.host).concat(api.socket);
|
|
43
43
|
var socket = new SocketClient(url, currentApp === null || currentApp === void 0 ? void 0 : currentApp.appKey, {
|
|
44
44
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
45
45
|
origin: 4,
|
|
@@ -5,12 +5,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Form, Skeleton } from 'antd';
|
|
8
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
8
|
+
import React, { useEffect, useRef, useState, useContext } from 'react';
|
|
9
9
|
import "./index.less";
|
|
10
|
-
import { BizAttrConditionGroup, BizUserGroupHeader } from '@zgfe/business-lib';
|
|
10
|
+
import { BizAttrConditionGroup, BizUserGroupHeader, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
11
11
|
import PageSelect from "../pageSelect";
|
|
12
12
|
import { formValue, formatValue } from "./util";
|
|
13
13
|
var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
15
|
+
envs = _useContext.envs;
|
|
14
16
|
var classPrefix = 'page-search-panel';
|
|
15
17
|
// form 值
|
|
16
18
|
var _Form$useForm = Form.useForm(),
|
|
@@ -44,18 +46,18 @@ var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
44
46
|
}, 0);
|
|
45
47
|
}, []);
|
|
46
48
|
|
|
47
|
-
/**
|
|
48
|
-
* 筛选值发生改变
|
|
49
|
-
* @param _changedValues 当前表单项改变后的值
|
|
50
|
-
* @param allValues 当前表单值
|
|
51
|
-
* @returns
|
|
49
|
+
/**
|
|
50
|
+
* 筛选值发生改变
|
|
51
|
+
* @param _changedValues 当前表单项改变后的值
|
|
52
|
+
* @param allValues 当前表单值
|
|
53
|
+
* @returns
|
|
52
54
|
*/
|
|
53
55
|
var onChange = function onChange(_changedValues, allValues) {
|
|
54
56
|
setFormData(allValues);
|
|
55
57
|
props.onChange && props.onChange(formatValue(allValues));
|
|
56
58
|
};
|
|
57
59
|
var onAdd = function onAdd() {
|
|
58
|
-
if (count >= 5) return;
|
|
60
|
+
if (count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5)) return;
|
|
59
61
|
setTimeout(function () {
|
|
60
62
|
groupRef.current.add(true);
|
|
61
63
|
}, 0);
|
|
@@ -88,7 +90,7 @@ var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
88
90
|
name: "page"
|
|
89
91
|
}, /*#__PURE__*/React.createElement(PageSelect, {
|
|
90
92
|
onAdd: onAdd,
|
|
91
|
-
enableAdd: count < 5
|
|
93
|
+
enableAdd: count < ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5)
|
|
92
94
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
93
95
|
className: "".concat(classPrefix, "-item3 ").concat(!count ? classPrefix + '-hidden' : ''),
|
|
94
96
|
name: "filters"
|
|
@@ -17,7 +17,8 @@ var TopContent = function TopContent(props) {
|
|
|
17
17
|
setTime = _useState2[1];
|
|
18
18
|
var _useContext = useContext(BizGlobalDataContext),
|
|
19
19
|
authority = _useContext.authority,
|
|
20
|
-
showProdDownload = _useContext.showProdDownload
|
|
20
|
+
showProdDownload = _useContext.showProdDownload,
|
|
21
|
+
envs = _useContext.envs;
|
|
21
22
|
useEffect(function () {
|
|
22
23
|
// 初始为最新一天
|
|
23
24
|
var initValue = {
|
|
@@ -36,6 +37,8 @@ var TopContent = function TopContent(props) {
|
|
|
36
37
|
}, /*#__PURE__*/React.createElement(BizDatePickerV2, {
|
|
37
38
|
includeToday: true,
|
|
38
39
|
dateTypeList: [DatePickerTypes.Unit.day],
|
|
40
|
+
selectRange: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 36,
|
|
41
|
+
timeRangeOpen: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 36,
|
|
39
42
|
value: time,
|
|
40
43
|
onChange: setTime
|
|
41
44
|
}), props.hidden ? null : props.type === 'pageGroup' ? /*#__PURE__*/React.createElement(Button, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.17-zhongyuan.
|
|
3
|
+
"version": "1.0.17-zhongyuan.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"rc-virtual-list": "^3.14.2",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "7598016ed726c03c15e8100200a41981f8825c8f",
|
|
61
61
|
"resolutions": {
|
|
62
62
|
"pretty-format": "26.6.2",
|
|
63
63
|
"expect": "26.6.2",
|