fmui-base 2.0.61 → 2.0.63
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 +3 -1
- package/lib/css/react_grid.css +12 -0
- package/lib/db/db.js +14 -0
- package/lib/db/variables.js +1 -0
- package/lib/react_grid/react_grid.js +26 -14
- package/lib/react_grid/react_grid.less +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/css/react_grid.css
CHANGED
|
@@ -288,6 +288,10 @@
|
|
|
288
288
|
.react-grid .systemItem .t-badge {
|
|
289
289
|
width: 100%;
|
|
290
290
|
}
|
|
291
|
+
.react-grid .systemItem .t-badge .badge-inner {
|
|
292
|
+
line-height: 13px;
|
|
293
|
+
border: 2px solid #fff;
|
|
294
|
+
}
|
|
291
295
|
.react-grid .react-app-collect {
|
|
292
296
|
position: relative;
|
|
293
297
|
height: 100%;
|
|
@@ -954,3 +958,11 @@
|
|
|
954
958
|
.react-grid .t-grid .t-grid-item + .t-grid-item {
|
|
955
959
|
border-left: none;
|
|
956
960
|
}
|
|
961
|
+
.react-grid .tp-content {
|
|
962
|
+
width: 100%;
|
|
963
|
+
height: 100%;
|
|
964
|
+
}
|
|
965
|
+
.react-grid .tp-content img {
|
|
966
|
+
width: 100%;
|
|
967
|
+
height: 100%;
|
|
968
|
+
}
|
package/lib/db/db.js
CHANGED
|
@@ -921,6 +921,20 @@ context.create('reactGrid', {
|
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
923
|
|
|
924
|
+
// 常用应用(频次)
|
|
925
|
+
getNewComAppInfo: {
|
|
926
|
+
url: _variables2.default.URLS.getNewComAppInfo,
|
|
927
|
+
method: 'GET',
|
|
928
|
+
header: {
|
|
929
|
+
Authorization: 'Bearer ' + getLoginUserInfo().token
|
|
930
|
+
},
|
|
931
|
+
willFetch: function willFetch() {
|
|
932
|
+
_Toast2.default.show({
|
|
933
|
+
content: _react2.default.createElement(_loading2.default, null),
|
|
934
|
+
duration: 800
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
},
|
|
924
938
|
getNewHomePageTodoData: {
|
|
925
939
|
// mockUrl: 'query/getNewHomePageTodoData.json',
|
|
926
940
|
url: _variables2.default.URLS.getNewHomePageTodoData,
|
package/lib/db/variables.js
CHANGED
|
@@ -112,6 +112,7 @@ exports.default = {
|
|
|
112
112
|
|
|
113
113
|
getPortalPage: portalUrlPrefix + "getPortalPage" + '?token=' + getLoginUserInfo().token, //移动门户部件详情
|
|
114
114
|
getComponentInfoListAll: portalAllUrlPrefix + "getComponentInfoList" + '?token=' + getLoginUserInfo().token, //获取首页部件信息
|
|
115
|
+
getNewComAppInfo: portalAllUrlPrefix + "getNewComAppInfo" + '?token=' + getLoginUserInfo().token, //首页部件常用应用
|
|
115
116
|
getNewHomePageTodoData: portalAllUrlPrefix + "getNewHomePageTodoData" + '?token=' + getLoginUserInfo().token,
|
|
116
117
|
getNewHomePageCollectAppInfoList: portalAllUrlPrefix + "getNewHomePageCollectAppInfoList" + '?token=' + getLoginUserInfo().token,
|
|
117
118
|
getNewHomePageRemindCount: portalAllUrlPrefix + "getNewHomePageRemindCount" + '?token=' + getLoginUserInfo().token,
|
|
@@ -115,11 +115,11 @@ var MyGrid = function (_React$Component) {
|
|
|
115
115
|
t.getShoucangAppInfo(item.id);
|
|
116
116
|
t.getComAppInfo(item.id);
|
|
117
117
|
} else if (item.portletCode !== 'tbgl') {
|
|
118
|
-
var
|
|
118
|
+
var _params = {
|
|
119
119
|
code: item.portletCode,
|
|
120
120
|
ppId: item.id
|
|
121
121
|
};
|
|
122
|
-
_db2.default.reactGrid.getComponentInfoListAll(
|
|
122
|
+
_db2.default.reactGrid.getComponentInfoListAll(_params).then(function (res) {
|
|
123
123
|
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
|
|
124
124
|
});
|
|
125
125
|
}
|
|
@@ -138,6 +138,18 @@ var MyGrid = function (_React$Component) {
|
|
|
138
138
|
duration: 2000
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
|
+
|
|
142
|
+
var params = {};
|
|
143
|
+
_db2.default.reactGrid.getNewHomePageTodoData(params).then(function (content) {
|
|
144
|
+
var openModule = content.hpOpenModule ? content.hpOpenModule : "";
|
|
145
|
+
localStorage.setItem('hpOpenModule', openModule);
|
|
146
|
+
var todoData = content.todoData != null ? content.todoData.entity : {};
|
|
147
|
+
var pageTitle = todoData.pageTitle;
|
|
148
|
+
if (!pageTitle || pageTitle == '') {
|
|
149
|
+
pageTitle = '一网通办管理平台';
|
|
150
|
+
}
|
|
151
|
+
setPageTitle(pageTitle);
|
|
152
|
+
});
|
|
141
153
|
};
|
|
142
154
|
|
|
143
155
|
_this.getShoucangAppInfo = function (id) {
|
|
@@ -176,11 +188,12 @@ var MyGrid = function (_React$Component) {
|
|
|
176
188
|
thirdMenuType = 'DING';
|
|
177
189
|
}
|
|
178
190
|
params.showClient = thirdMenuType;
|
|
179
|
-
_db2.default.reactGrid.
|
|
180
|
-
if (
|
|
181
|
-
_this.setState(_defineProperty({}, 'cyyy' + '_' + id,
|
|
182
|
-
var appOftenListlocal = JSON.stringify(
|
|
183
|
-
localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
|
|
191
|
+
_db2.default.reactGrid.getNewComAppInfo(params).then(function (content) {
|
|
192
|
+
if (content.data) {
|
|
193
|
+
_this.setState(_defineProperty({}, 'cyyy' + '_' + id, content.data));
|
|
194
|
+
var appOftenListlocal = JSON.stringify(content.data);
|
|
195
|
+
// localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
|
|
196
|
+
localStorage.setItem('appOftenList', appOftenListlocal);
|
|
184
197
|
}
|
|
185
198
|
}).catch(function (error) {
|
|
186
199
|
console.error(error);
|
|
@@ -291,13 +304,12 @@ var MyGrid = function (_React$Component) {
|
|
|
291
304
|
value: function getRemindCount() {
|
|
292
305
|
var _this2 = this;
|
|
293
306
|
|
|
294
|
-
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,
|
|
295
|
-
if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount) {
|
|
296
|
-
|
|
297
|
-
console.log(content, 'contentcontentcontent');
|
|
298
|
-
console.log('====================================');
|
|
307
|
+
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,unreadMail,unreadPubMail,toBeAttended,approveundo" }).then(function (content) {
|
|
308
|
+
if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount || content.unreadMail) {
|
|
309
|
+
|
|
299
310
|
_this2.setState({
|
|
300
311
|
undo: content.undo,
|
|
312
|
+
unreadMail: content.unreadMail,
|
|
301
313
|
approveundo: content.approveundo,
|
|
302
314
|
toBeAttendedCount: content.toBeAttendedCount,
|
|
303
315
|
unreadPubMailCount: content.unreadPubMailCount
|
|
@@ -731,7 +743,7 @@ var MyGrid = function (_React$Component) {
|
|
|
731
743
|
{ className: 'iconblock t-iconBC' + ele.iconColor },
|
|
732
744
|
_react2.default.createElement(
|
|
733
745
|
_Badge2.default,
|
|
734
|
-
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : '' },
|
|
746
|
+
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : ele.name == '邮件' ? t.state.unreadMail : '' },
|
|
735
747
|
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
736
748
|
)
|
|
737
749
|
),
|
|
@@ -781,7 +793,7 @@ var MyGrid = function (_React$Component) {
|
|
|
781
793
|
{ className: 'iconblock t-iconBC' + ele.iconColor },
|
|
782
794
|
_react2.default.createElement(
|
|
783
795
|
_Badge2.default,
|
|
784
|
-
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : '' },
|
|
796
|
+
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : ele.name == '邮件' ? t.state.unreadMail : '' },
|
|
785
797
|
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
786
798
|
)
|
|
787
799
|
),
|