@zgfe/modules-whole 1.0.10-zhongyuan.3 → 1.0.10-zhongyuan.6
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.
|
@@ -34,7 +34,8 @@ var EventFilter = function EventFilter(props) {
|
|
|
34
34
|
var _useContext2 = useContext(BizGlobalDataContext),
|
|
35
35
|
currentApp = _useContext2.currentApp,
|
|
36
36
|
userPropList = _useContext2.userPropList,
|
|
37
|
-
eventEnvList = _useContext2.eventEnvList
|
|
37
|
+
eventEnvList = _useContext2.eventEnvList,
|
|
38
|
+
envs = _useContext2.envs;
|
|
38
39
|
var builtinIndicators = getBuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type);
|
|
39
40
|
var _useState = useState(props.value && props.value.filters && props.value.filters.conditions ? props.value.filters.conditions.length : 0),
|
|
40
41
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -108,7 +109,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
108
109
|
if ((event === null || event === void 0 ? void 0 : event.id) === -1) {
|
|
109
110
|
return;
|
|
110
111
|
}
|
|
111
|
-
if (count >= 5) {
|
|
112
|
+
if (count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5)) {
|
|
112
113
|
return;
|
|
113
114
|
}
|
|
114
115
|
setIsAdd(true);
|
|
@@ -241,7 +242,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
241
242
|
placement: "top",
|
|
242
243
|
title: '添加属性筛选'
|
|
243
244
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
244
|
-
className: "".concat(count >= 5 || (event === null || event === void 0 ? void 0 : event.id) === -1 ? 'disable' : ''),
|
|
245
|
+
className: "".concat(count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5) || (event === null || event === void 0 ? void 0 : event.id) === -1 ? 'disable' : ''),
|
|
245
246
|
type: "shaixuan",
|
|
246
247
|
onClick: function onClick() {
|
|
247
248
|
return onAdd();
|
|
@@ -28,7 +28,8 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
28
28
|
setSearchData = _useContext.setSearchData;
|
|
29
29
|
var _useContext2 = useContext(BizGlobalDataContext),
|
|
30
30
|
authority = _useContext2.authority,
|
|
31
|
-
showProdDownload = _useContext2.showProdDownload
|
|
31
|
+
showProdDownload = _useContext2.showProdDownload,
|
|
32
|
+
envs = _useContext2.envs;
|
|
32
33
|
var _useState = useState(props.time || getInitDate(includeToday)),
|
|
33
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34
35
|
time = _useState2[0],
|
|
@@ -129,8 +130,8 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
129
130
|
includeToday: includeToday,
|
|
130
131
|
defaultValue: time,
|
|
131
132
|
onChange: onChangeTime,
|
|
132
|
-
selectRange:
|
|
133
|
-
|
|
133
|
+
selectRange: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 36,
|
|
134
|
+
timeRangeOpen: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 36
|
|
134
135
|
})), /*#__PURE__*/React.createElement("div", {
|
|
135
136
|
className: "".concat(classPrefix, "-search-right")
|
|
136
137
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -155,7 +156,7 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
155
156
|
return it.value == item;
|
|
156
157
|
});
|
|
157
158
|
})
|
|
158
|
-
}),
|
|
159
|
+
}), showProdDownload && /*#__PURE__*/React.createElement(Button, {
|
|
159
160
|
disabled: !authority[100042],
|
|
160
161
|
onClick: download
|
|
161
162
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-whole",
|
|
3
|
-
"version": "1.0.10-zhongyuan.
|
|
3
|
+
"version": "1.0.10-zhongyuan.6",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"private": false,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react": "^16.12.0 || ^17.0.0",
|
|
57
57
|
"yorkie": "^2.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "14276b816c05c38fd10b30dbfb6fd020a6b844b2",
|
|
60
60
|
"gitHooks": {
|
|
61
61
|
"pre-commit": "lint-staged"
|
|
62
62
|
}
|