@zgfe/modules-event 0.0.2-event.68 → 0.0.2-event.69
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/es/modules/home/index.js +5 -4
- package/package.json +2 -2
package/es/modules/home/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var ModuleEvent = function ModuleEvent(props) {
|
|
|
78
78
|
if (props.defaultValue.data) {
|
|
79
79
|
setSearchData(props.defaultValue.data);
|
|
80
80
|
} else {
|
|
81
|
-
initSearch();
|
|
81
|
+
initSearch(props.defaultValue.userGroup);
|
|
82
82
|
}
|
|
83
83
|
} else {
|
|
84
84
|
initSearch();
|
|
@@ -86,10 +86,11 @@ var ModuleEvent = function ModuleEvent(props) {
|
|
|
86
86
|
setTimeout(function () {
|
|
87
87
|
setPageLoading(false);
|
|
88
88
|
}, 0);
|
|
89
|
-
}, [
|
|
90
|
-
var initSearch = function initSearch() {
|
|
89
|
+
}, []);
|
|
90
|
+
var initSearch = function initSearch(userGroup) {
|
|
91
|
+
console.log('查询条件初始化', userGroup);
|
|
91
92
|
setSearchData({
|
|
92
|
-
userGroup: (userGroupList === null || userGroupList === void 0 ? void 0 : userGroupList.length) > 0 ? [userGroupList[0].id] : [0],
|
|
93
|
+
userGroup: userGroup ? userGroup : (userGroupList === null || userGroupList === void 0 ? void 0 : userGroupList.length) > 0 ? [userGroupList[0].id] : [0],
|
|
93
94
|
time: getInitDate(props.includeToday),
|
|
94
95
|
chartType: 'line'
|
|
95
96
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "0.0.2-event.
|
|
3
|
+
"version": "0.0.2-event.69",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": "^16.12.0 || ^17.0.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d1cce549eb8d09dd420cd1426fb591d115212f32",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|