fmui-base 2.1.36 → 2.1.38
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 +2 -0
- package/lib/css/processList.css +8 -0
- package/lib/css/react_grid.css +1013 -0
- package/lib/process_list/processList.less +3 -2
- package/lib/react_grid/react_grid copy 1.js +1670 -0
- package/lib/react_grid/react_grid copy 2.js +722 -0
- package/lib/react_grid/react_grid copy 3.js +1502 -0
- package/lib/react_grid/react_grid copy 4.js +1421 -0
- package/lib/react_grid/react_grid copy 5.js +1670 -0
- package/lib/react_grid/react_grid copy.js +1811 -0
- package/package.json +1 -1
- /package/lib/{ScrollList → scrollList}/BottomTip.js +0 -0
- /package/lib/{ScrollList → scrollList}/EmptyContent.js +0 -0
- /package/lib/{ScrollList → scrollList}/Item.js +0 -0
- /package/lib/{ScrollList → scrollList}/ScrollList.styl +0 -0
- /package/lib/{ScrollList → scrollList}/TagList.js +0 -0
- /package/lib/{ScrollList → scrollList}/index.js +0 -0
- /package/lib/{ScrollList/ScrollList.js → scrollList/scrollList.js} +0 -0
- /package/lib/{ScrollList → scrollList}/style.js +0 -0
|
@@ -0,0 +1,1670 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = undefined;
|
|
7
|
+
|
|
8
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
+
|
|
10
|
+
var _react = require('react');
|
|
11
|
+
|
|
12
|
+
var _react2 = _interopRequireDefault(_react);
|
|
13
|
+
|
|
14
|
+
var _reactGridLayout = require('react-grid-layout');
|
|
15
|
+
|
|
16
|
+
var _reactGridLayout2 = _interopRequireDefault(_reactGridLayout);
|
|
17
|
+
|
|
18
|
+
var _Badge = require('saltui/lib/Badge');
|
|
19
|
+
|
|
20
|
+
var _Badge2 = _interopRequireDefault(_Badge);
|
|
21
|
+
|
|
22
|
+
var _Grid = require('saltui/lib/Grid');
|
|
23
|
+
|
|
24
|
+
var _Grid2 = _interopRequireDefault(_Grid);
|
|
25
|
+
|
|
26
|
+
var _Boxs = require('saltui/lib/Boxs');
|
|
27
|
+
|
|
28
|
+
var _Boxs2 = _interopRequireDefault(_Boxs);
|
|
29
|
+
|
|
30
|
+
var _TextField = require('saltui/lib/TextField');
|
|
31
|
+
|
|
32
|
+
var _TextField2 = _interopRequireDefault(_TextField);
|
|
33
|
+
|
|
34
|
+
var _Tab = require('saltui/lib/Tab');
|
|
35
|
+
|
|
36
|
+
var _Tab2 = _interopRequireDefault(_Tab);
|
|
37
|
+
|
|
38
|
+
var _Carousel = require('saltui/lib/Carousel');
|
|
39
|
+
|
|
40
|
+
var _Carousel2 = _interopRequireDefault(_Carousel);
|
|
41
|
+
|
|
42
|
+
var _Button = require('saltui/lib/Button');
|
|
43
|
+
|
|
44
|
+
var _Button2 = _interopRequireDefault(_Button);
|
|
45
|
+
|
|
46
|
+
require('react-grid-layout/css/styles.css');
|
|
47
|
+
|
|
48
|
+
require('react-resizable/css/styles.css');
|
|
49
|
+
|
|
50
|
+
require('./react_grid.less');
|
|
51
|
+
|
|
52
|
+
var _db = require('../db/db');
|
|
53
|
+
|
|
54
|
+
var _db2 = _interopRequireDefault(_db);
|
|
55
|
+
|
|
56
|
+
var _variables = require('../db/variables');
|
|
57
|
+
|
|
58
|
+
var _variables2 = _interopRequireDefault(_variables);
|
|
59
|
+
|
|
60
|
+
var _chart = require('../chart/chart');
|
|
61
|
+
|
|
62
|
+
var _chart2 = _interopRequireDefault(_chart);
|
|
63
|
+
|
|
64
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
65
|
+
|
|
66
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
67
|
+
|
|
68
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
69
|
+
|
|
70
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
71
|
+
|
|
72
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
73
|
+
|
|
74
|
+
var projectMenuUrl = _variables2.default.projectMenuUrl;
|
|
75
|
+
var HBox = _Boxs2.default.HBox,
|
|
76
|
+
Box = _Boxs2.default.Box,
|
|
77
|
+
VBox = _Boxs2.default.VBox;
|
|
78
|
+
var RightAddon = _TextField2.default.RightAddon;
|
|
79
|
+
|
|
80
|
+
var context = document.getElementById("context").value;
|
|
81
|
+
|
|
82
|
+
var MyGrid = function (_React$Component) {
|
|
83
|
+
_inherits(MyGrid, _React$Component);
|
|
84
|
+
|
|
85
|
+
function MyGrid(props) {
|
|
86
|
+
_classCallCheck(this, MyGrid);
|
|
87
|
+
|
|
88
|
+
var _this = _possibleConstructorReturn(this, (MyGrid.__proto__ || Object.getPrototypeOf(MyGrid)).call(this, props));
|
|
89
|
+
|
|
90
|
+
_this.initPage = function () {
|
|
91
|
+
// 部件的初始化信息
|
|
92
|
+
_db2.default.reactGrid.getPortalPage({ id: '' }).then(function (res) {
|
|
93
|
+
console.log('====================================');
|
|
94
|
+
console.log(res, 'resresresresres');
|
|
95
|
+
console.log('====================================');
|
|
96
|
+
|
|
97
|
+
_this.setState({
|
|
98
|
+
data: res
|
|
99
|
+
});
|
|
100
|
+
res.map(function (item) {
|
|
101
|
+
if (item.portletCode !== 'banner' && item.portletCode !== 'tbgl') {
|
|
102
|
+
var params = {
|
|
103
|
+
code: item.portletCode,
|
|
104
|
+
ppId: item.id
|
|
105
|
+
};
|
|
106
|
+
_db2.default.reactGrid.getComponentInfoListAll(params).then(function (res) {
|
|
107
|
+
console.log(res, '????????????????????????');
|
|
108
|
+
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
|
|
109
|
+
});
|
|
110
|
+
} else if (item.portletCode == 'banner') {
|
|
111
|
+
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)), function () {
|
|
112
|
+
console.log(_this.state, '///////////////////////////');
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
_this.getRemindCount();
|
|
118
|
+
_this.getShoucangAppInfo();
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
_this.state = {
|
|
122
|
+
data: [],
|
|
123
|
+
isDraggable: false,
|
|
124
|
+
//标题样式
|
|
125
|
+
titleStatus: true,
|
|
126
|
+
titleFontFamily: '',
|
|
127
|
+
titleFontWeight: 400,
|
|
128
|
+
titleColor: '',
|
|
129
|
+
titleFontSize: '',
|
|
130
|
+
titleFontStyle: '',
|
|
131
|
+
titleBgColor: '',
|
|
132
|
+
// 部件圆角
|
|
133
|
+
borderTopLeftRadius: '10px',
|
|
134
|
+
borderTopRightRadius: '10px',
|
|
135
|
+
borderBottomLeftRadius: '10px',
|
|
136
|
+
borderBottomRightRadius: '10px',
|
|
137
|
+
// 部件边框样式
|
|
138
|
+
borderColor: '',
|
|
139
|
+
borderWidth: '',
|
|
140
|
+
// 部件内边距
|
|
141
|
+
paddingLeft: '',
|
|
142
|
+
paddingright: '',
|
|
143
|
+
paddingTop: '',
|
|
144
|
+
paddingBottom: '',
|
|
145
|
+
|
|
146
|
+
// todoList: [],//移动集成 配置提醒项信息
|
|
147
|
+
todoList: ["banshi", "zixun", "yingyong", "daiban", "wode"],
|
|
148
|
+
pageImage: projectMenuUrl.pageImage, //提醒项背景图
|
|
149
|
+
appInfoList: [], //移动集成 配置应用信息
|
|
150
|
+
bannerPicPath: '',
|
|
151
|
+
activeIndex: 2,
|
|
152
|
+
undo: 0, //待办数量
|
|
153
|
+
appOftenList: [], //常用应用
|
|
154
|
+
collectAppInfoList: [], //收藏应用
|
|
155
|
+
bssx: [], // 办事事项
|
|
156
|
+
bssx_per: [], // 办事事项_个人办事
|
|
157
|
+
bssx_org: [], // 办事事项_部门办事
|
|
158
|
+
jxzt: [], // 精选专题
|
|
159
|
+
ttxx: [], // 头条信息
|
|
160
|
+
xwzx: [], // 新闻资讯
|
|
161
|
+
gryj: [], // 个人邮件
|
|
162
|
+
grrc: [], // 个人日程
|
|
163
|
+
grrc_list: [], // 个人日程-日程信息
|
|
164
|
+
grhy: [], // 个人会议
|
|
165
|
+
showbssx: true, // 办事事项
|
|
166
|
+
showjxzt: true, // 精选专题
|
|
167
|
+
showttxx: true, // 头条信息
|
|
168
|
+
showxwzx: true, // 新闻资讯
|
|
169
|
+
showgryj: true, // 个人邮件
|
|
170
|
+
showgrrc: true, // 个人日程
|
|
171
|
+
showgrhy: true, // 个人会议
|
|
172
|
+
showcyyy: true, // 常用应用
|
|
173
|
+
initCleader: false,
|
|
174
|
+
bannerList: [],
|
|
175
|
+
showSlide: false,
|
|
176
|
+
refreshing: false, //下拉刷新
|
|
177
|
+
showMobileComponent: "", // 显示部件显示模块
|
|
178
|
+
componentList: [], // 显示部件显示模块数组
|
|
179
|
+
pageImageList: [],
|
|
180
|
+
showItem: 0,
|
|
181
|
+
searchVal: '', //顶部搜索input值
|
|
182
|
+
filterValue: { //顶部搜索分类值
|
|
183
|
+
sort: [{ text: '全部', value: 'all' }]
|
|
184
|
+
},
|
|
185
|
+
modelCode: 'all',
|
|
186
|
+
bssxPer_show: true, //办事事项_个人_是否显示
|
|
187
|
+
bssxOrg_show: true, //办事事项_个人_是否显示,
|
|
188
|
+
cyyyUsuTab_show: true, //常用应用_是否显示
|
|
189
|
+
cyyyPerTab_show: true //我的收藏_是否显示
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
};
|
|
193
|
+
return _this;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
_createClass(MyGrid, [{
|
|
197
|
+
key: 'componentDidMount',
|
|
198
|
+
value: function componentDidMount() {
|
|
199
|
+
this.initPage();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// 遍历初始化得到的data,奖id给请求部件的内容的接口
|
|
203
|
+
// 如果有两个相同的部件,将会用id请求部件内容,接口返回的数据需要 this.setState({【id】:result.data});这样存值
|
|
204
|
+
// 取值的时候根据id取值
|
|
205
|
+
|
|
206
|
+
}, {
|
|
207
|
+
key: 'getShoucangAppInfo',
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
// 获取收藏应用
|
|
211
|
+
value: function getShoucangAppInfo() {
|
|
212
|
+
var _this2 = this;
|
|
213
|
+
|
|
214
|
+
_db2.default.reactGrid.getNewHomePageCollectAppInfoList({ showClient: "DING" }).then(function (result) {
|
|
215
|
+
_this2.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
|
|
216
|
+
}).catch(function (error) {});
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
key: 'getRemindCount',
|
|
220
|
+
value: function getRemindCount() {
|
|
221
|
+
var _this3 = this;
|
|
222
|
+
|
|
223
|
+
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo" }).then(function (content) {
|
|
224
|
+
if (content.undo) {
|
|
225
|
+
_this3.setState({
|
|
226
|
+
undo: content.undo
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
}, {
|
|
232
|
+
key: 'initCleader',
|
|
233
|
+
value: function initCleader(event) {
|
|
234
|
+
if (this.state.initCleader == false) {
|
|
235
|
+
var t = this;
|
|
236
|
+
var calendar = document.getElementById("calendar");
|
|
237
|
+
if (calendar) {
|
|
238
|
+
var cld = new CalendarMobile({
|
|
239
|
+
el: 'box',
|
|
240
|
+
value: '', // 默认为new Date();
|
|
241
|
+
type: 1,
|
|
242
|
+
parentNode: calendar,
|
|
243
|
+
// fold: false,
|
|
244
|
+
fn: function fn(obj) {
|
|
245
|
+
// 日期选择后回调
|
|
246
|
+
var YY = obj.year;
|
|
247
|
+
var MM = obj.month >= 10 ? obj.month : "0" + obj.month;
|
|
248
|
+
var DD = obj.day >= 10 ? obj.day : "0" + obj.day;
|
|
249
|
+
var Date = YY + "-" + MM + "-" + DD;
|
|
250
|
+
t.showCalendarList(Date, event);
|
|
251
|
+
},
|
|
252
|
+
//点击上一个月
|
|
253
|
+
prevMonth: function prevMonth(obj) {},
|
|
254
|
+
//点击下一个月
|
|
255
|
+
nextMonth: function nextMonth(obj) {},
|
|
256
|
+
calendarInit: function calendarInit(obj) {
|
|
257
|
+
var YY = obj.year;
|
|
258
|
+
var MM = obj.month >= 10 ? obj.month : "0" + obj.month;
|
|
259
|
+
var DD = obj.day >= 10 ? obj.day : "0" + obj.day;
|
|
260
|
+
var Date = YY + "-" + MM + "-" + DD;
|
|
261
|
+
t.showCalendarEvent(event);
|
|
262
|
+
t.showCalendarList(Date, event);
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
this.setState({ initCleader: true });
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
//在日历上显示日程事件(显示点)
|
|
271
|
+
|
|
272
|
+
}, {
|
|
273
|
+
key: 'showCalendarEvent',
|
|
274
|
+
value: function showCalendarEvent(dates, obj, t) {
|
|
275
|
+
var $span = $(".canChoose").find('span');
|
|
276
|
+
$span.removeClass('hasEvent');
|
|
277
|
+
// var dates = this.state.grrc.dateList
|
|
278
|
+
var dates = dates.dateList;
|
|
279
|
+
if (dates) {
|
|
280
|
+
for (var i = 0; i < dates.length; i++) {
|
|
281
|
+
var date = new Date(dates[i]);
|
|
282
|
+
var day = date.getDate();
|
|
283
|
+
$span.eq(parseInt(day) - 1).addClass('hasEvent');
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
//显示日程信息
|
|
288
|
+
|
|
289
|
+
}, {
|
|
290
|
+
key: 'showCalendarList',
|
|
291
|
+
value: function showCalendarList(Date, data) {
|
|
292
|
+
if (data.dataMap && data.dataMap[Date]) {
|
|
293
|
+
this.setState({ grrc_list: data.dataMap[Date] });
|
|
294
|
+
} else {
|
|
295
|
+
this.setState({ grrc_list: [] });
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}, {
|
|
299
|
+
key: 'render',
|
|
300
|
+
value: function render() {
|
|
301
|
+
var _this4 = this;
|
|
302
|
+
|
|
303
|
+
var t = this;
|
|
304
|
+
// let pathUrl = "";
|
|
305
|
+
// if (t.state.bannerPicPath && t.state.bannerPicPath != "") {
|
|
306
|
+
// pathUrl = t.state.bannerPicPath;
|
|
307
|
+
// } else {
|
|
308
|
+
// pathUrl = t.state.pageImage;
|
|
309
|
+
// }
|
|
310
|
+
var context = document.getElementById("context").value;
|
|
311
|
+
var userId = getLoginUserInfo().userId;
|
|
312
|
+
var token = getLoginUserInfo().token;
|
|
313
|
+
var layout = this.state.data.map(function (item) {
|
|
314
|
+
return {
|
|
315
|
+
i: item.id,
|
|
316
|
+
x: item.positionX,
|
|
317
|
+
y: item.positionY,
|
|
318
|
+
w: item.portletWidth,
|
|
319
|
+
h: item.portletHeight,
|
|
320
|
+
static: true //禁止修改部件大小
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
var colNum = t.state.todoList.length > 0 ? t.state.todoList.length : 5;
|
|
325
|
+
// 控制【常用应用】显示列数
|
|
326
|
+
var colNum1 = 4;
|
|
327
|
+
|
|
328
|
+
// const bssxContent_per = t.state.bssx_per.map(function (item) {
|
|
329
|
+
// return (
|
|
330
|
+
// <div className='banshi-item'>
|
|
331
|
+
// <div className='title t-omit'>{item.name}</div>
|
|
332
|
+
// <div className='describe t-omit'>{item.categoryName}</div>
|
|
333
|
+
// <i className={'iconfont-ywtb icon-ywtb-' + item.icon + ' bg'}></i>
|
|
334
|
+
// <i className={'iconfont-ywtb icon-ywtb-' + item.icon + ' ic'}></i>
|
|
335
|
+
// </div>
|
|
336
|
+
// )
|
|
337
|
+
// });
|
|
338
|
+
|
|
339
|
+
// const bssxContent_org = t.state.bssx_org.map(function (item) {
|
|
340
|
+
// return (
|
|
341
|
+
// <div className='banshi-item'>
|
|
342
|
+
// <div className='title t-omit'>{item.name}</div>
|
|
343
|
+
// <div className='describe t-omit'>{item.categoryName}</div>
|
|
344
|
+
// <i className={'iconfont-ywtb icon-ywtb-' + item.icon + ' bg'}></i>
|
|
345
|
+
// <i className={'iconfont-ywtb icon-ywtb-' + item.icon + ' ic'}></i>
|
|
346
|
+
// </div>
|
|
347
|
+
// )
|
|
348
|
+
// });
|
|
349
|
+
|
|
350
|
+
// const xwzxContent = t.state.xwzx.map(function (item) {
|
|
351
|
+
// const infoList = item.infoList.map(function (infoItem) {
|
|
352
|
+
// let imgSrc = "";
|
|
353
|
+
// let imgIdList = 0;
|
|
354
|
+
// if (infoItem.imgId) {
|
|
355
|
+
// imgIdList = infoItem.imgId.split('|');
|
|
356
|
+
// }
|
|
357
|
+
// if (imgIdList.length >= 3) {
|
|
358
|
+
// let imgSrc1 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[0] + "&token=" + token;
|
|
359
|
+
// let imgSrc2 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[1] + "&token=" + token;
|
|
360
|
+
// let imgSrc3 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[2] + "&token=" + token;
|
|
361
|
+
// return (
|
|
362
|
+
// <div className='infoList3'>
|
|
363
|
+
// <div className='infoContent'>
|
|
364
|
+
// <p>{infoItem.title}</p>
|
|
365
|
+
// <div className='infoPics'>
|
|
366
|
+
// <img src={imgSrc1}></img>
|
|
367
|
+
// <img src={imgSrc2}></img>
|
|
368
|
+
// <img src={imgSrc3}></img>
|
|
369
|
+
// </div>
|
|
370
|
+
// <p className="t-FS14">
|
|
371
|
+
// <i className={infoItem.isTop == "1" ? "iconfont icon-istop t-FS14 t-FCddblue t-MR6" : "t-DN"}></i>
|
|
372
|
+
// <img className={infoItem.isEssence == "1" ? "" : "t-DN"}></img>
|
|
373
|
+
// <span className="t-FB1 t-omit" style={{ maxWidth: "115px" }}>{infoItem.columnName}</span>
|
|
374
|
+
// <span>{infoItem.publishDate}</span>
|
|
375
|
+
// </p>
|
|
376
|
+
// </div>
|
|
377
|
+
// </div>
|
|
378
|
+
// )
|
|
379
|
+
// } else {
|
|
380
|
+
// if (infoItem.imgId) {
|
|
381
|
+
// imgSrc = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[0] + "&token=" + token;
|
|
382
|
+
// }
|
|
383
|
+
// return (
|
|
384
|
+
// <div className='infoList'>
|
|
385
|
+
// <div className='infoContent'>
|
|
386
|
+
// <div className={imgSrc ? "imgContent" : "t-DN"} >
|
|
387
|
+
// <img src={imgSrc}></img>
|
|
388
|
+
// </div>
|
|
389
|
+
// <div className='t-FB1'>
|
|
390
|
+
// <p>{infoItem.title}</p>
|
|
391
|
+
// <p className="t-FS14">
|
|
392
|
+
// <i className={infoItem.isTop == "1" ? "iconfont icon-istop t-FS14 t-FCddblue t-MR6" : "t-DN"}></i>
|
|
393
|
+
// <img className={infoItem.isEssence == "1" ? "" : "t-DN"} ></img>
|
|
394
|
+
// <span className="t-FB1 t-omit" style={{ maxWidth: "115px" }}>{infoItem.columnName}</span>
|
|
395
|
+
// <span>{infoItem.publishDate}</span>
|
|
396
|
+
// </p>
|
|
397
|
+
// </div>
|
|
398
|
+
// </div>
|
|
399
|
+
// </div>
|
|
400
|
+
// )
|
|
401
|
+
// }
|
|
402
|
+
// })
|
|
403
|
+
// return (
|
|
404
|
+
// <Tab.Item title={item.columnName} key={item.columnId}>
|
|
405
|
+
// {item.infoList.length > 0 ?
|
|
406
|
+
// <div>{infoList}<div className='info-more-btn'>查看更多</div></div>
|
|
407
|
+
// :
|
|
408
|
+
// <div>暂无数据</div>
|
|
409
|
+
// }
|
|
410
|
+
// </Tab.Item>
|
|
411
|
+
// )
|
|
412
|
+
// });
|
|
413
|
+
|
|
414
|
+
// let tDiv = document.createElement('div');
|
|
415
|
+
// const carouselItem = t.state.ttxx.map(function (item) {
|
|
416
|
+
// if (item.infoList.length > 0) {
|
|
417
|
+
// tDiv.innerHTML = item.infoList[0].content
|
|
418
|
+
// var text = tDiv.innerText
|
|
419
|
+
// return (
|
|
420
|
+
// <Carousel.Item>
|
|
421
|
+
// <div className='notice-card-head'>
|
|
422
|
+
// <span>{item.infoList[0].columnName}</span>
|
|
423
|
+
// <Button type='custom'>更多</Button>
|
|
424
|
+
// </div>
|
|
425
|
+
// <div>
|
|
426
|
+
// <strong className='t-FS14 t-omit2 t-LH1_3 t-MB10'>{item.infoList[0].title}</strong>
|
|
427
|
+
// <p className='t-FS14 t-FCgrey t-omit2 t-LH1_5 t-MB10'>{text}</p>
|
|
428
|
+
// <p className='t-FS12 t-FCgrey'>{item.infoList[0].createdDate}</p>
|
|
429
|
+
// </div>
|
|
430
|
+
// </Carousel.Item>
|
|
431
|
+
// )
|
|
432
|
+
// }
|
|
433
|
+
// })
|
|
434
|
+
// const carouselList = carouselItem.filter(carouselItem => typeof carouselItem !== 'undefined');
|
|
435
|
+
|
|
436
|
+
var grrcContent = t.state.grrc_list.map(function (item) {
|
|
437
|
+
var completed = false;
|
|
438
|
+
if (item.startTime) {
|
|
439
|
+
var date = new Date(item.startTime.replace(/-/g, '/'));
|
|
440
|
+
var H = date.getHours();
|
|
441
|
+
var M = date.getMinutes();
|
|
442
|
+
if (H < 10) {
|
|
443
|
+
H = "0" + H;
|
|
444
|
+
}
|
|
445
|
+
if (M < 10) {
|
|
446
|
+
M = "0" + M;
|
|
447
|
+
}
|
|
448
|
+
var time = H + ":" + M;
|
|
449
|
+
var now = new Date();
|
|
450
|
+
if (date < now) {
|
|
451
|
+
//过去时
|
|
452
|
+
completed = true;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return _react2.default.createElement(
|
|
456
|
+
HBox,
|
|
457
|
+
{ className: completed ? 'rc-item t-PR rc-completed' : 'rc-item t-PR', vAlign: 'center' },
|
|
458
|
+
_react2.default.createElement(
|
|
459
|
+
Box,
|
|
460
|
+
{ className: 'rc-item-time' },
|
|
461
|
+
time
|
|
462
|
+
),
|
|
463
|
+
_react2.default.createElement(
|
|
464
|
+
Box,
|
|
465
|
+
{ className: 'rc-item-time-line' },
|
|
466
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-fuhao' })
|
|
467
|
+
),
|
|
468
|
+
_react2.default.createElement(
|
|
469
|
+
Box,
|
|
470
|
+
{ flex: 1, className: 'rc-item-title t-omit' },
|
|
471
|
+
item.title
|
|
472
|
+
)
|
|
473
|
+
);
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
// const grhyContent = t.state.grhy.map(function (item) {
|
|
477
|
+
// return (
|
|
478
|
+
// <div className='meetingCard'>
|
|
479
|
+
// <div className="lineTop"></div>
|
|
480
|
+
// <div className='meetingBg'>
|
|
481
|
+
// <div className='meetingContent' >
|
|
482
|
+
// <div className='meetingTitle'>
|
|
483
|
+
// <p className="t-omit t-LH1_6">{item.applyRecordName}</p>
|
|
484
|
+
// </div>
|
|
485
|
+
// <div className='meetingTime'>
|
|
486
|
+
// <div className='meetingDate'>
|
|
487
|
+
// <i class="iconfont icon-shijian1 t-FS14"></i>
|
|
488
|
+
// <span className='t-ML6'>{item.week}</span>
|
|
489
|
+
// <span className='t-ML10'>{item.startDate}</span>
|
|
490
|
+
// </div>
|
|
491
|
+
// <div className='timeTitle'>
|
|
492
|
+
// <p>开始时间</p>
|
|
493
|
+
// <p>结束时间</p>
|
|
494
|
+
// </div>
|
|
495
|
+
// <div className='time'>
|
|
496
|
+
// <li>{item.sTime}</li>
|
|
497
|
+
// <li>
|
|
498
|
+
// <p>{item.durationTime}</p>
|
|
499
|
+
// </li>
|
|
500
|
+
// <li>{item.eTime}</li>
|
|
501
|
+
// </div>
|
|
502
|
+
// <div className='location'>
|
|
503
|
+
// <i class="iconfont icon-dizhi t-FS14"></i>
|
|
504
|
+
// <span className='t-ML6'>{item.meetingAddress}</span>
|
|
505
|
+
// </div>
|
|
506
|
+
// </div>
|
|
507
|
+
// </div>
|
|
508
|
+
// {/* <img src="../../../fmui/images/home/start.png" className="startIcon"></img> */}
|
|
509
|
+
// {/* <img src="../../../fmui/images/home/line.png" className="lineTop"></img> */}
|
|
510
|
+
// </div>
|
|
511
|
+
// </div>
|
|
512
|
+
// )
|
|
513
|
+
// });
|
|
514
|
+
|
|
515
|
+
var lcfqContent = _react2.default.createElement(
|
|
516
|
+
'div',
|
|
517
|
+
{ className: 'sxbl_buttons' },
|
|
518
|
+
_react2.default.createElement(
|
|
519
|
+
'button',
|
|
520
|
+
null,
|
|
521
|
+
'\u8BF7\u5047\u7533\u8BF7'
|
|
522
|
+
),
|
|
523
|
+
_react2.default.createElement(
|
|
524
|
+
'button',
|
|
525
|
+
null,
|
|
526
|
+
'\u8C03\u4F11\u7533\u8BF7'
|
|
527
|
+
)
|
|
528
|
+
);
|
|
529
|
+
|
|
530
|
+
return _react2.default.createElement(
|
|
531
|
+
'div',
|
|
532
|
+
{ className: 'react-grid' },
|
|
533
|
+
_react2.default.createElement(
|
|
534
|
+
_reactGridLayout2.default,
|
|
535
|
+
{
|
|
536
|
+
className: 'layout',
|
|
537
|
+
layout: layout,
|
|
538
|
+
cols: 12,
|
|
539
|
+
rowHeight: 20,
|
|
540
|
+
width: window.innerWidth,
|
|
541
|
+
isDraggable: this.state.isDraggable,
|
|
542
|
+
margin: [0, 10]
|
|
543
|
+
},
|
|
544
|
+
this.state.data.map(function (item) {
|
|
545
|
+
{/* banner */}
|
|
546
|
+
if (item.portletCode === 'banner') {
|
|
547
|
+
// 判断AI和menu
|
|
548
|
+
var isShowList = JSON.parse(item.personalSetting).bannerSet.split(',');
|
|
549
|
+
var styleSetting = JSON.parse(item.styleSetting);
|
|
550
|
+
var pathUrl = "";
|
|
551
|
+
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].bannerImg) {
|
|
552
|
+
var pathUrlId = t.state[item.portletCode + '_' + item.id].bannerImg;
|
|
553
|
+
pathUrl = localStorage.getItem('context') + '/api/m/plugin/attachment/mobile/viewImage?token=' + localStorage.getItem('token') + '&fid=' + pathUrlId;
|
|
554
|
+
} else {
|
|
555
|
+
pathUrl = t.state.pageImage;
|
|
556
|
+
}
|
|
557
|
+
return _react2.default.createElement(
|
|
558
|
+
'div',
|
|
559
|
+
{ className: 'react-grid-component', key: item.id, style: {
|
|
560
|
+
borderTopLeftRadius: styleSetting.otherSet.radius.topLeft,
|
|
561
|
+
borderTopRightRadius: styleSetting.otherSet.radius.topRight,
|
|
562
|
+
borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft,
|
|
563
|
+
borderBottomRightRadius: styleSetting.otherSet.radius.bottomRight,
|
|
564
|
+
paddingLeft: styleSetting.pl,
|
|
565
|
+
paddingright: styleSetting.pr,
|
|
566
|
+
paddingTop: styleSetting.pt,
|
|
567
|
+
paddingBottom: styleSetting.pb,
|
|
568
|
+
background: styleSetting.bgColor ? styleSetting.bgColor : ''
|
|
569
|
+
} },
|
|
570
|
+
_this4.conponentHeads,
|
|
571
|
+
_react2.default.createElement(
|
|
572
|
+
'div',
|
|
573
|
+
{ className: 'react-grid-banner' },
|
|
574
|
+
_react2.default.createElement(
|
|
575
|
+
'div',
|
|
576
|
+
{ className: 'banner' },
|
|
577
|
+
_react2.default.createElement(
|
|
578
|
+
'div',
|
|
579
|
+
{ className: t.state.showSlide == true ? "t-PR" : "t-DN" },
|
|
580
|
+
_this4.state.bannerList.map(function (item) {
|
|
581
|
+
return _react2.default.createElement(
|
|
582
|
+
'div',
|
|
583
|
+
{ className: 'banner-gallery', index: item.index },
|
|
584
|
+
_react2.default.createElement('img', { className: t.state.showItem == item.index ? "bannerimg" : "t-DN", src: item.src })
|
|
585
|
+
);
|
|
586
|
+
}),
|
|
587
|
+
_react2.default.createElement(
|
|
588
|
+
'div',
|
|
589
|
+
{ className: 'gallery-list' },
|
|
590
|
+
_this4.state.bannerList.map(function (item) {
|
|
591
|
+
return _react2.default.createElement('span', { className: t.state.showItem == item.index ? "gallery-dot active" : "gallery-dot" });
|
|
592
|
+
})
|
|
593
|
+
)
|
|
594
|
+
),
|
|
595
|
+
_react2.default.createElement('img', { className: t.state.showSlide == false ? "bannerimg" : "t-DN", src: pathUrl, onerror: '/mobile/fmui/images/home-banner.png\';this.onerror=null' })
|
|
596
|
+
),
|
|
597
|
+
_react2.default.createElement(
|
|
598
|
+
'div',
|
|
599
|
+
{ className: 'global-search' },
|
|
600
|
+
_react2.default.createElement(
|
|
601
|
+
_TextField2.default,
|
|
602
|
+
{ placeholder: '\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u8FDB\u884C\u641C\u7D22', value: t.state.searchVal, allowClear: false, onClick: function onClick(value) {
|
|
603
|
+
t.globalSearchChange(value);
|
|
604
|
+
} },
|
|
605
|
+
_react2.default.createElement(
|
|
606
|
+
RightAddon,
|
|
607
|
+
null,
|
|
608
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-sousuo1 t-P10', onClick: function onClick() {
|
|
609
|
+
t.globalSearchClick();
|
|
610
|
+
} })
|
|
611
|
+
)
|
|
612
|
+
),
|
|
613
|
+
_react2.default.createElement(
|
|
614
|
+
'div',
|
|
615
|
+
{ className: isShowList.indexOf('AI') > -1 ? 't-FAC' : 't-DN', onClick: function onClick() {
|
|
616
|
+
t.gotoYd();
|
|
617
|
+
} },
|
|
618
|
+
_react2.default.createElement('i', { className: 'iconfont icon-zhineng' }),
|
|
619
|
+
_react2.default.createElement(
|
|
620
|
+
'div',
|
|
621
|
+
{ className: 't-FS12 t-MT4' },
|
|
622
|
+
'\u667A\u80FD\u5BA2\u670D'
|
|
623
|
+
)
|
|
624
|
+
)
|
|
625
|
+
),
|
|
626
|
+
_react2.default.createElement(
|
|
627
|
+
_Grid2.default,
|
|
628
|
+
{ col: colNum, className: 'dd-applist' },
|
|
629
|
+
t.state.todoList.length > 0 && isShowList.indexOf('menu') > -1 ? t.state.todoList.map(function (item) {
|
|
630
|
+
var todoInfo = projectMenuUrl.todoInfo[item];
|
|
631
|
+
return _react2.default.createElement(
|
|
632
|
+
'div',
|
|
633
|
+
{ className: 'demo' },
|
|
634
|
+
_react2.default.createElement(
|
|
635
|
+
'div',
|
|
636
|
+
{ className: 'react-grid-banner-item' },
|
|
637
|
+
_react2.default.createElement(
|
|
638
|
+
_Badge2.default,
|
|
639
|
+
{ count: item == 'daiban' ? t.state.undo : '' },
|
|
640
|
+
_react2.default.createElement('i', { className: 'theme-color iconfont icon-' + todoInfo.icon })
|
|
641
|
+
)
|
|
642
|
+
),
|
|
643
|
+
_react2.default.createElement(
|
|
644
|
+
'div',
|
|
645
|
+
{ className: 'menu-title t-FS14' },
|
|
646
|
+
todoInfo.name
|
|
647
|
+
)
|
|
648
|
+
);
|
|
649
|
+
}.bind(_this4)) : ''
|
|
650
|
+
)
|
|
651
|
+
)
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
if (item.portletCode === 'cyyy') {
|
|
656
|
+
var personalSetting = JSON.parse(item.personalSetting);
|
|
657
|
+
var _styleSetting = JSON.parse(item.styleSetting);
|
|
658
|
+
return _react2.default.createElement(
|
|
659
|
+
'div',
|
|
660
|
+
{ key: item.id, style: {
|
|
661
|
+
borderTopLeftRadius: _styleSetting.otherSet.radius.topLeft,
|
|
662
|
+
borderTopRightRadius: _styleSetting.otherSet.radius.topRight,
|
|
663
|
+
borderBottomLeftRadius: _styleSetting.otherSet.radius.bottomLeft,
|
|
664
|
+
borderBottomRightRadius: _styleSetting.otherSet.radius.bottomRight,
|
|
665
|
+
paddingLeft: _styleSetting.pl,
|
|
666
|
+
paddingright: _styleSetting.pr,
|
|
667
|
+
paddingTop: _styleSetting.pt,
|
|
668
|
+
paddingBottom: _styleSetting.pb,
|
|
669
|
+
background: _styleSetting.bgColor ? _styleSetting.bgColor : ''
|
|
670
|
+
} },
|
|
671
|
+
_react2.default.createElement(
|
|
672
|
+
'div',
|
|
673
|
+
{ className: 'react-app-collect' },
|
|
674
|
+
_react2.default.createElement(
|
|
675
|
+
'p',
|
|
676
|
+
{ className: 'rightMore' },
|
|
677
|
+
'\u66F4\u591A',
|
|
678
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
679
|
+
),
|
|
680
|
+
_react2.default.createElement(
|
|
681
|
+
_Tab2.default,
|
|
682
|
+
{ activeKey: '0' },
|
|
683
|
+
_react2.default.createElement(
|
|
684
|
+
_Tab2.default.Item,
|
|
685
|
+
{ title: _react2.default.createElement(
|
|
686
|
+
'div',
|
|
687
|
+
{ style: { color: _styleSetting.titleSet.color, fontWeight: _styleSetting.titleSet.fontWeight } },
|
|
688
|
+
'\u5E38\u7528\u5E94\u7528'
|
|
689
|
+
) },
|
|
690
|
+
_react2.default.createElement(
|
|
691
|
+
_Grid2.default,
|
|
692
|
+
{ col: personalSetting.cols, className: t.state.showcyyy ? '' : 't-DN' },
|
|
693
|
+
t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].data.length > 0 ? t.state[item.portletCode + '_' + item.id].data.map(function (ele) {
|
|
694
|
+
return _react2.default.createElement(
|
|
695
|
+
'div',
|
|
696
|
+
{ className: 'systemItem' },
|
|
697
|
+
_react2.default.createElement(
|
|
698
|
+
'div',
|
|
699
|
+
{ className: ele.iconColor == "" ? "iconblock t-iconBCred" : 'iconblock t-iconBC' + ele.iconColor },
|
|
700
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
701
|
+
),
|
|
702
|
+
_react2.default.createElement(
|
|
703
|
+
'p',
|
|
704
|
+
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
705
|
+
ele.name
|
|
706
|
+
)
|
|
707
|
+
);
|
|
708
|
+
}) : '',
|
|
709
|
+
_react2.default.createElement(
|
|
710
|
+
'div',
|
|
711
|
+
{ className: 'systemItem' },
|
|
712
|
+
_react2.default.createElement(
|
|
713
|
+
'div',
|
|
714
|
+
{ className: 'iconblock t-iconBCred' },
|
|
715
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb' + ' icon-ywtb-gengduo' })
|
|
716
|
+
),
|
|
717
|
+
_react2.default.createElement(
|
|
718
|
+
'p',
|
|
719
|
+
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
720
|
+
'\u66F4\u591A'
|
|
721
|
+
)
|
|
722
|
+
)
|
|
723
|
+
)
|
|
724
|
+
),
|
|
725
|
+
_react2.default.createElement(
|
|
726
|
+
_Tab2.default.Item,
|
|
727
|
+
{ title: _react2.default.createElement(
|
|
728
|
+
'div',
|
|
729
|
+
{ style: { color: _styleSetting.titleSet.color, fontWeight: _styleSetting.titleSet.fontWeight } },
|
|
730
|
+
'\u6211\u7684\u6536\u85CF'
|
|
731
|
+
) },
|
|
732
|
+
_react2.default.createElement(
|
|
733
|
+
_Grid2.default,
|
|
734
|
+
{ col: personalSetting.cols },
|
|
735
|
+
t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].data.length > 0 ? t.state[item.portletCode + '_' + item.id].data.map(function (ele) {
|
|
736
|
+
return _react2.default.createElement(
|
|
737
|
+
'div',
|
|
738
|
+
{ className: 'systemItem' },
|
|
739
|
+
_react2.default.createElement(
|
|
740
|
+
'div',
|
|
741
|
+
{ className: 'iconblock t-iconBC' + ele.iconColor },
|
|
742
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
743
|
+
),
|
|
744
|
+
_react2.default.createElement(
|
|
745
|
+
'p',
|
|
746
|
+
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
747
|
+
ele.name
|
|
748
|
+
)
|
|
749
|
+
);
|
|
750
|
+
}) : '',
|
|
751
|
+
_react2.default.createElement(
|
|
752
|
+
'div',
|
|
753
|
+
{ className: 'systemItem' },
|
|
754
|
+
_react2.default.createElement(
|
|
755
|
+
'div',
|
|
756
|
+
{ className: 'iconblock t-iconBCred' },
|
|
757
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb' + ' icon-ywtb-gengduo' })
|
|
758
|
+
),
|
|
759
|
+
_react2.default.createElement(
|
|
760
|
+
'p',
|
|
761
|
+
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
762
|
+
'\u66F4\u591A'
|
|
763
|
+
)
|
|
764
|
+
)
|
|
765
|
+
)
|
|
766
|
+
)
|
|
767
|
+
)
|
|
768
|
+
)
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
if (item.portletCode === 'bssx') {
|
|
773
|
+
{/* 办事 */}
|
|
774
|
+
var _personalSetting = JSON.parse(item.personalSetting);
|
|
775
|
+
var bssxShowList = JSON.parse(item.personalSetting).showModule;
|
|
776
|
+
var _styleSetting2 = JSON.parse(item.styleSetting);
|
|
777
|
+
|
|
778
|
+
var componentContent = '';
|
|
779
|
+
var perList = '';
|
|
780
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
781
|
+
if (t.state[item.portletCode + '_' + item.id].perList) {
|
|
782
|
+
perList = t.state[item.portletCode + '_' + item.id].perList.map(function (item) {
|
|
783
|
+
return _react2.default.createElement(
|
|
784
|
+
'div',
|
|
785
|
+
{ className: 'banshi-item' },
|
|
786
|
+
_react2.default.createElement(
|
|
787
|
+
'div',
|
|
788
|
+
{ className: 'title t-omit' },
|
|
789
|
+
item.name
|
|
790
|
+
),
|
|
791
|
+
_react2.default.createElement(
|
|
792
|
+
'div',
|
|
793
|
+
{ className: 'describe t-omit' },
|
|
794
|
+
item.categoryName
|
|
795
|
+
),
|
|
796
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' bg' }),
|
|
797
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' ic' })
|
|
798
|
+
);
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
var orgList = '';
|
|
803
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
804
|
+
if (t.state[item.portletCode + '_' + item.id].orgList) {
|
|
805
|
+
orgList = t.state[item.portletCode + '_' + item.id].orgList.map(function (item) {
|
|
806
|
+
return _react2.default.createElement(
|
|
807
|
+
'div',
|
|
808
|
+
{ className: 'banshi-item' },
|
|
809
|
+
_react2.default.createElement(
|
|
810
|
+
'div',
|
|
811
|
+
{ className: 'title t-omit' },
|
|
812
|
+
item.name
|
|
813
|
+
),
|
|
814
|
+
_react2.default.createElement(
|
|
815
|
+
'div',
|
|
816
|
+
{ className: 'describe t-omit' },
|
|
817
|
+
item.categoryName
|
|
818
|
+
),
|
|
819
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' bg' }),
|
|
820
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' ic' })
|
|
821
|
+
);
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
var bssxPerTab = '';
|
|
826
|
+
if (_styleSetting2.titleSet.titleStatus == 1 && bssxShowList.indexOf('personWork') > -1) {
|
|
827
|
+
bssxPerTab = _react2.default.createElement(
|
|
828
|
+
_Tab2.default.Item,
|
|
829
|
+
{ title: _react2.default.createElement(
|
|
830
|
+
'div',
|
|
831
|
+
{ className: '', style: _defineProperty({ color: _styleSetting2.titleSet.color, fontWeight: _styleSetting2.titleSet.fontWeight, fontSize: _styleSetting2.titleSet.titleSize, fontFamily: _styleSetting2.titleSet.fontFamily, fontStyle: _styleSetting2.titleSet.titleItalic }, 'fontWeight', _styleSetting2.titleSet.titleWeight) },
|
|
832
|
+
'\u4E2A\u4EBA\u529E\u4E8B'
|
|
833
|
+
), key: 0 },
|
|
834
|
+
_react2.default.createElement(
|
|
835
|
+
'div',
|
|
836
|
+
{ className: 'banshi-list' },
|
|
837
|
+
perList
|
|
838
|
+
)
|
|
839
|
+
);
|
|
840
|
+
}
|
|
841
|
+
var bssxOrgTab = '';
|
|
842
|
+
if (_styleSetting2.titleSet.titleStatus == 1 && bssxShowList.indexOf('deptWork') > -1) {
|
|
843
|
+
bssxOrgTab = _react2.default.createElement(
|
|
844
|
+
_Tab2.default.Item,
|
|
845
|
+
{ key: 1, title: _react2.default.createElement(
|
|
846
|
+
'div',
|
|
847
|
+
{ className: '', style: _defineProperty({ color: _styleSetting2.titleSet.color, fontWeight: _styleSetting2.titleSet.fontWeight, fontSize: _styleSetting2.titleSet.titleSize, fontFamily: _styleSetting2.titleSet.fontFamily, fontStyle: _styleSetting2.titleSet.titleItalic }, 'fontWeight', _styleSetting2.titleSet.titleWeight) },
|
|
848
|
+
'\u90E8\u95E8\u529E\u4E8B'
|
|
849
|
+
) },
|
|
850
|
+
_react2.default.createElement(
|
|
851
|
+
'div',
|
|
852
|
+
{ className: 'banshi-list' },
|
|
853
|
+
orgList
|
|
854
|
+
)
|
|
855
|
+
);
|
|
856
|
+
}
|
|
857
|
+
componentContent = _react2.default.createElement(
|
|
858
|
+
'div',
|
|
859
|
+
{ className: 'component-bssx' },
|
|
860
|
+
_react2.default.createElement(
|
|
861
|
+
'p',
|
|
862
|
+
{ className: t.state.bssxPer_show || t.state.bssxOrg_show ? "rightMore" : "t-DN" },
|
|
863
|
+
'\u66F4\u591A',
|
|
864
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
865
|
+
),
|
|
866
|
+
_react2.default.createElement(
|
|
867
|
+
_Tab2.default,
|
|
868
|
+
{ activeKey: bssxShowList.indexOf('personWork') > -1 ? "0" : "1" },
|
|
869
|
+
bssxPerTab,
|
|
870
|
+
bssxOrgTab
|
|
871
|
+
)
|
|
872
|
+
);
|
|
873
|
+
|
|
874
|
+
return _react2.default.createElement(
|
|
875
|
+
'div',
|
|
876
|
+
{ key: item.id, style: {
|
|
877
|
+
borderTopLeftRadius: _styleSetting2.otherSet.radius.topLeft,
|
|
878
|
+
borderTopRightRadius: _styleSetting2.otherSet.radius.topRight,
|
|
879
|
+
borderBottomLeftRadius: _styleSetting2.otherSet.radius.bottomLeft,
|
|
880
|
+
borderBottomRightRadius: _styleSetting2.otherSet.radius.bottomRight,
|
|
881
|
+
paddingLeft: _styleSetting2.pl,
|
|
882
|
+
paddingright: _styleSetting2.pr,
|
|
883
|
+
paddingTop: _styleSetting2.pt,
|
|
884
|
+
paddingBottom: _styleSetting2.pb,
|
|
885
|
+
background: _styleSetting2.bgColor ? _styleSetting2.bgColor : ''
|
|
886
|
+
} },
|
|
887
|
+
componentContent
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
if (item.portletCode === 'ttxx') {
|
|
892
|
+
var _personalSetting2 = JSON.parse(item.personalSetting);
|
|
893
|
+
var _styleSetting3 = JSON.parse(item.styleSetting);
|
|
894
|
+
var componentContent1 = '';
|
|
895
|
+
var carouselItem = '';
|
|
896
|
+
var carouselList = '';
|
|
897
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
898
|
+
var tDiv = document.createElement('div');
|
|
899
|
+
carouselItem = t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
900
|
+
if (item.infoList.length > 0) {
|
|
901
|
+
tDiv.innerHTML = item.infoList[0].content;
|
|
902
|
+
var text = tDiv.innerText;
|
|
903
|
+
return _react2.default.createElement(
|
|
904
|
+
_Carousel2.default.Item,
|
|
905
|
+
null,
|
|
906
|
+
_react2.default.createElement(
|
|
907
|
+
'div',
|
|
908
|
+
{ className: 'notice-card-head' },
|
|
909
|
+
_react2.default.createElement(
|
|
910
|
+
'span',
|
|
911
|
+
null,
|
|
912
|
+
item.infoList[0].columnName
|
|
913
|
+
),
|
|
914
|
+
_react2.default.createElement(
|
|
915
|
+
_Button2.default,
|
|
916
|
+
{ type: 'custom' },
|
|
917
|
+
'\u66F4\u591A'
|
|
918
|
+
)
|
|
919
|
+
),
|
|
920
|
+
_react2.default.createElement(
|
|
921
|
+
'div',
|
|
922
|
+
null,
|
|
923
|
+
_react2.default.createElement(
|
|
924
|
+
'strong',
|
|
925
|
+
{ className: 't-FS14 t-omit2 t-LH1_3 t-MB10' },
|
|
926
|
+
item.infoList[0].title
|
|
927
|
+
),
|
|
928
|
+
_react2.default.createElement(
|
|
929
|
+
'p',
|
|
930
|
+
{ className: 't-FS14 t-FCgrey t-omit2 t-LH1_5 t-MB10' },
|
|
931
|
+
text
|
|
932
|
+
),
|
|
933
|
+
_react2.default.createElement(
|
|
934
|
+
'p',
|
|
935
|
+
{ className: 't-FS12 t-FCgrey' },
|
|
936
|
+
item.infoList[0].createdDate
|
|
937
|
+
)
|
|
938
|
+
)
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
carouselList = carouselItem.filter(function (carouselItem) {
|
|
943
|
+
return typeof carouselItem !== 'undefined';
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
947
|
+
|
|
948
|
+
componentContent1 = _react2.default.createElement(
|
|
949
|
+
'div',
|
|
950
|
+
{ className: 'componentBox' },
|
|
951
|
+
_react2.default.createElement(
|
|
952
|
+
'div',
|
|
953
|
+
{ className: 'notice-card' },
|
|
954
|
+
_react2.default.createElement(
|
|
955
|
+
_Carousel2.default,
|
|
956
|
+
{ showNav: true, auto: true, height: '180px', className: 'carousel-notice' },
|
|
957
|
+
carouselList
|
|
958
|
+
)
|
|
959
|
+
)
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
return _react2.default.createElement(
|
|
963
|
+
'div',
|
|
964
|
+
{ key: item.id, style: {
|
|
965
|
+
borderTopLeftRadius: _styleSetting3.otherSet.radius.topLeft,
|
|
966
|
+
borderTopRightRadius: _styleSetting3.otherSet.radius.topRight,
|
|
967
|
+
borderBottomLeftRadius: _styleSetting3.otherSet.radius.bottomLeft,
|
|
968
|
+
borderBottomRightRadius: _styleSetting3.otherSet.radius.bottomRight,
|
|
969
|
+
paddingLeft: _styleSetting3.pl,
|
|
970
|
+
paddingright: _styleSetting3.pr,
|
|
971
|
+
paddingTop: _styleSetting3.pt,
|
|
972
|
+
paddingBottom: _styleSetting3.pb,
|
|
973
|
+
background: _styleSetting3.bgColor ? _styleSetting3.bgColor : ''
|
|
974
|
+
} },
|
|
975
|
+
componentContent1
|
|
976
|
+
);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
if (item.portletCode === 'xwzx') {
|
|
980
|
+
var _personalSetting3 = JSON.parse(item.personalSetting);
|
|
981
|
+
var _styleSetting4 = JSON.parse(item.styleSetting);
|
|
982
|
+
var componentContent2 = '';
|
|
983
|
+
var xwzxContent = '';
|
|
984
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
985
|
+
xwzxContent = t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
986
|
+
var infoList = item.infoList.map(function (infoItem) {
|
|
987
|
+
var imgSrc = "";
|
|
988
|
+
var imgIdList = 0;
|
|
989
|
+
if (infoItem.imgId) {
|
|
990
|
+
imgIdList = infoItem.imgId.split('|');
|
|
991
|
+
}
|
|
992
|
+
if (imgIdList.length >= 3) {
|
|
993
|
+
var imgSrc1 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[0] + "&token=" + getLoginUserInfo().token;
|
|
994
|
+
var imgSrc2 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[1] + "&token=" + getLoginUserInfo().token;
|
|
995
|
+
var imgSrc3 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[2] + "&token=" + getLoginUserInfo().token;
|
|
996
|
+
return _react2.default.createElement(
|
|
997
|
+
'div',
|
|
998
|
+
{ className: 'infoList3' },
|
|
999
|
+
_react2.default.createElement(
|
|
1000
|
+
'div',
|
|
1001
|
+
{ className: 'infoContent' },
|
|
1002
|
+
_react2.default.createElement(
|
|
1003
|
+
'p',
|
|
1004
|
+
null,
|
|
1005
|
+
infoItem.title
|
|
1006
|
+
),
|
|
1007
|
+
_react2.default.createElement(
|
|
1008
|
+
'div',
|
|
1009
|
+
{ className: 'infoPics' },
|
|
1010
|
+
_react2.default.createElement('img', { src: imgSrc1 }),
|
|
1011
|
+
_react2.default.createElement('img', { src: imgSrc2 }),
|
|
1012
|
+
_react2.default.createElement('img', { src: imgSrc3 })
|
|
1013
|
+
),
|
|
1014
|
+
_react2.default.createElement(
|
|
1015
|
+
'p',
|
|
1016
|
+
{ className: 't-FS14' },
|
|
1017
|
+
_react2.default.createElement('i', { className: infoItem.isTop == "1" ? "iconfont icon-istop t-FS14 t-FCddblue t-MR6" : "t-DN" }),
|
|
1018
|
+
_react2.default.createElement('img', { className: infoItem.isEssence == "1" ? "" : "t-DN" }),
|
|
1019
|
+
_react2.default.createElement(
|
|
1020
|
+
'span',
|
|
1021
|
+
{ className: 't-FB1 t-omit', style: { maxWidth: "115px" } },
|
|
1022
|
+
infoItem.columnName
|
|
1023
|
+
),
|
|
1024
|
+
_react2.default.createElement(
|
|
1025
|
+
'span',
|
|
1026
|
+
null,
|
|
1027
|
+
infoItem.publishDate
|
|
1028
|
+
)
|
|
1029
|
+
)
|
|
1030
|
+
)
|
|
1031
|
+
);
|
|
1032
|
+
} else {
|
|
1033
|
+
if (infoItem.imgId) {
|
|
1034
|
+
imgSrc = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[0] + "&token=" + getLoginUserInfo().token;
|
|
1035
|
+
}
|
|
1036
|
+
return _react2.default.createElement(
|
|
1037
|
+
'div',
|
|
1038
|
+
{ className: 'infoList' },
|
|
1039
|
+
_react2.default.createElement(
|
|
1040
|
+
'div',
|
|
1041
|
+
{ className: 'infoContent' },
|
|
1042
|
+
_react2.default.createElement(
|
|
1043
|
+
'div',
|
|
1044
|
+
{ className: imgSrc ? "imgContent" : "t-DN" },
|
|
1045
|
+
_react2.default.createElement('img', { src: imgSrc })
|
|
1046
|
+
),
|
|
1047
|
+
_react2.default.createElement(
|
|
1048
|
+
'div',
|
|
1049
|
+
{ className: 't-FB1' },
|
|
1050
|
+
_react2.default.createElement(
|
|
1051
|
+
'p',
|
|
1052
|
+
null,
|
|
1053
|
+
infoItem.title
|
|
1054
|
+
),
|
|
1055
|
+
_react2.default.createElement(
|
|
1056
|
+
'p',
|
|
1057
|
+
{ className: 't-FS14' },
|
|
1058
|
+
_react2.default.createElement('i', { className: infoItem.isTop == "1" ? "iconfont icon-istop t-FS14 t-FCddblue t-MR6" : "t-DN" }),
|
|
1059
|
+
_react2.default.createElement('img', { className: infoItem.isEssence == "1" ? "" : "t-DN" }),
|
|
1060
|
+
_react2.default.createElement(
|
|
1061
|
+
'span',
|
|
1062
|
+
{ className: 't-FB1 t-omit', style: { maxWidth: "115px" } },
|
|
1063
|
+
infoItem.columnName
|
|
1064
|
+
),
|
|
1065
|
+
_react2.default.createElement(
|
|
1066
|
+
'span',
|
|
1067
|
+
null,
|
|
1068
|
+
infoItem.publishDate
|
|
1069
|
+
)
|
|
1070
|
+
)
|
|
1071
|
+
)
|
|
1072
|
+
)
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
return _react2.default.createElement(
|
|
1077
|
+
_Tab2.default.Item,
|
|
1078
|
+
{ title: item.columnName, key: item.columnId },
|
|
1079
|
+
item.infoList.length > 0 ? _react2.default.createElement(
|
|
1080
|
+
'div',
|
|
1081
|
+
null,
|
|
1082
|
+
infoList,
|
|
1083
|
+
_react2.default.createElement(
|
|
1084
|
+
'div',
|
|
1085
|
+
{ className: 'info-more-btn' },
|
|
1086
|
+
'\u67E5\u770B\u66F4\u591A'
|
|
1087
|
+
)
|
|
1088
|
+
) : _react2.default.createElement(
|
|
1089
|
+
'div',
|
|
1090
|
+
null,
|
|
1091
|
+
'\u6682\u65E0\u6570\u636E'
|
|
1092
|
+
)
|
|
1093
|
+
);
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1098
|
+
componentContent2 = _react2.default.createElement(
|
|
1099
|
+
_Tab2.default,
|
|
1100
|
+
{ activeKey: t.state[item.portletCode + '_' + item.id][0].columnId, pageSize: 4, showExpandAll: false, speed: 2 },
|
|
1101
|
+
xwzxContent
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
return _react2.default.createElement(
|
|
1105
|
+
'div',
|
|
1106
|
+
{ key: item.id, style: {
|
|
1107
|
+
borderTopLeftRadius: _styleSetting4.otherSet.radius.topLeft,
|
|
1108
|
+
borderTopRightRadius: _styleSetting4.otherSet.radius.topRight,
|
|
1109
|
+
borderBottomLeftRadius: _styleSetting4.otherSet.radius.bottomLeft,
|
|
1110
|
+
borderBottomRightRadius: _styleSetting4.otherSet.radius.bottomRight,
|
|
1111
|
+
paddingLeft: _styleSetting4.pl,
|
|
1112
|
+
paddingright: _styleSetting4.pr,
|
|
1113
|
+
paddingTop: _styleSetting4.pt,
|
|
1114
|
+
paddingBottom: _styleSetting4.pb,
|
|
1115
|
+
background: _styleSetting4.bgColor ? _styleSetting4.bgColor : ''
|
|
1116
|
+
} },
|
|
1117
|
+
componentContent2
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
if (item.portletCode === 'gryj') {
|
|
1122
|
+
var _personalSetting4 = JSON.parse(item.personalSetting);
|
|
1123
|
+
var _styleSetting5 = JSON.parse(item.styleSetting);
|
|
1124
|
+
var gryjShowList = _personalSetting4.mailMenu.split(',');
|
|
1125
|
+
var _componentContent = '';
|
|
1126
|
+
var gryjContent = '';
|
|
1127
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1128
|
+
if (t.state[item.portletCode + '_' + item.id].data.personList) {
|
|
1129
|
+
gryjContent = t.state[item.portletCode + '_' + item.id].data.personList.map(function (item) {
|
|
1130
|
+
return _react2.default.createElement(
|
|
1131
|
+
'div',
|
|
1132
|
+
{ className: 'list-item' },
|
|
1133
|
+
_react2.default.createElement(
|
|
1134
|
+
'div',
|
|
1135
|
+
{ className: item.isRead == "false" ? "item-label label-special" : "t-DN" },
|
|
1136
|
+
'\u672A\u8BFB'
|
|
1137
|
+
),
|
|
1138
|
+
_react2.default.createElement(
|
|
1139
|
+
'div',
|
|
1140
|
+
{ className: 'item-title' },
|
|
1141
|
+
item.theme
|
|
1142
|
+
),
|
|
1143
|
+
_react2.default.createElement(
|
|
1144
|
+
'div',
|
|
1145
|
+
{ className: 'item-content' },
|
|
1146
|
+
_react2.default.createElement(
|
|
1147
|
+
'div',
|
|
1148
|
+
{ className: 'content t-FCddfontblue-60 t-FS12' },
|
|
1149
|
+
_react2.default.createElement(
|
|
1150
|
+
'span',
|
|
1151
|
+
{ className: 't-MR12' },
|
|
1152
|
+
item.sendTime
|
|
1153
|
+
),
|
|
1154
|
+
_react2.default.createElement(
|
|
1155
|
+
'span',
|
|
1156
|
+
null,
|
|
1157
|
+
'\u7533\u8BF7\u4EBA\uFF1A'
|
|
1158
|
+
),
|
|
1159
|
+
_react2.default.createElement(
|
|
1160
|
+
'span',
|
|
1161
|
+
null,
|
|
1162
|
+
item.sendUserName
|
|
1163
|
+
)
|
|
1164
|
+
),
|
|
1165
|
+
_react2.default.createElement(
|
|
1166
|
+
'a',
|
|
1167
|
+
{ className: 'more' },
|
|
1168
|
+
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow t-FCddfontblue-60' })
|
|
1169
|
+
)
|
|
1170
|
+
)
|
|
1171
|
+
);
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
var ggyjContent = '';
|
|
1176
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1177
|
+
if (t.state[item.portletCode + '_' + item.id].data.publicList) {
|
|
1178
|
+
ggyjContent = t.state[item.portletCode + '_' + item.id].data.publicList.map(function (item) {
|
|
1179
|
+
return _react2.default.createElement(
|
|
1180
|
+
'div',
|
|
1181
|
+
{ className: 'list-item' },
|
|
1182
|
+
_react2.default.createElement(
|
|
1183
|
+
'div',
|
|
1184
|
+
{ className: item.isRead == "false" ? "item-label label-special" : "t-DN" },
|
|
1185
|
+
'\u672A\u8BFB'
|
|
1186
|
+
),
|
|
1187
|
+
_react2.default.createElement(
|
|
1188
|
+
'div',
|
|
1189
|
+
{ className: 'item-title' },
|
|
1190
|
+
item.theme
|
|
1191
|
+
),
|
|
1192
|
+
_react2.default.createElement(
|
|
1193
|
+
'div',
|
|
1194
|
+
{ className: 'item-content' },
|
|
1195
|
+
_react2.default.createElement(
|
|
1196
|
+
'div',
|
|
1197
|
+
{ className: 'content t-FCddfontblue-60 t-FS12' },
|
|
1198
|
+
_react2.default.createElement(
|
|
1199
|
+
'span',
|
|
1200
|
+
{ className: 't-MR12' },
|
|
1201
|
+
item.sendTime
|
|
1202
|
+
),
|
|
1203
|
+
_react2.default.createElement(
|
|
1204
|
+
'span',
|
|
1205
|
+
null,
|
|
1206
|
+
'\u7533\u8BF7\u4EBA\uFF1A'
|
|
1207
|
+
),
|
|
1208
|
+
_react2.default.createElement(
|
|
1209
|
+
'span',
|
|
1210
|
+
null,
|
|
1211
|
+
item.sendUserName
|
|
1212
|
+
)
|
|
1213
|
+
),
|
|
1214
|
+
_react2.default.createElement(
|
|
1215
|
+
'a',
|
|
1216
|
+
{ className: 'more' },
|
|
1217
|
+
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow t-FCddfontblue-60' })
|
|
1218
|
+
)
|
|
1219
|
+
)
|
|
1220
|
+
);
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
var personMailTab = '';
|
|
1225
|
+
if (gryjShowList.indexOf('personMail') > -1) {
|
|
1226
|
+
var personMailTab = _react2.default.createElement(
|
|
1227
|
+
_Tab2.default.Item,
|
|
1228
|
+
{ title: _react2.default.createElement(
|
|
1229
|
+
'div',
|
|
1230
|
+
{ className: '', style: { color: _styleSetting5.titleSet.color, fontWeight: _styleSetting5.titleSet.fontWeight } },
|
|
1231
|
+
'\u4E2A\u4EBA\u90AE\u7BB1'
|
|
1232
|
+
), key: '0' },
|
|
1233
|
+
_react2.default.createElement(
|
|
1234
|
+
'div',
|
|
1235
|
+
{ className: 'list-RT-label' },
|
|
1236
|
+
gryjContent
|
|
1237
|
+
)
|
|
1238
|
+
);
|
|
1239
|
+
}
|
|
1240
|
+
if (gryjShowList.indexOf('commonMail') > -1) {
|
|
1241
|
+
var publicMailTab = _react2.default.createElement(
|
|
1242
|
+
_Tab2.default.Item,
|
|
1243
|
+
{ title: _react2.default.createElement(
|
|
1244
|
+
'div',
|
|
1245
|
+
{ className: '', style: { color: _styleSetting5.titleSet.color, fontWeight: _styleSetting5.titleSet.fontWeight } },
|
|
1246
|
+
'\u516C\u5171\u90AE\u7BB1'
|
|
1247
|
+
), key: '1' },
|
|
1248
|
+
_react2.default.createElement(
|
|
1249
|
+
'div',
|
|
1250
|
+
{ className: 'list-RT-label' },
|
|
1251
|
+
ggyjContent
|
|
1252
|
+
)
|
|
1253
|
+
);
|
|
1254
|
+
}
|
|
1255
|
+
_componentContent = _react2.default.createElement(
|
|
1256
|
+
_Tab2.default,
|
|
1257
|
+
{ activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
|
|
1258
|
+
personMailTab,
|
|
1259
|
+
publicMailTab
|
|
1260
|
+
);
|
|
1261
|
+
return _react2.default.createElement(
|
|
1262
|
+
'div',
|
|
1263
|
+
{ className: 'ggyjContent', key: item.id, style: {
|
|
1264
|
+
borderTopLeftRadius: _styleSetting5.otherSet.radius.topLeft,
|
|
1265
|
+
borderTopRightRadius: _styleSetting5.otherSet.radius.topRight,
|
|
1266
|
+
borderBottomLeftRadius: _styleSetting5.otherSet.radius.bottomLeft,
|
|
1267
|
+
borderBottomRightRadius: _styleSetting5.otherSet.radius.bottomRight,
|
|
1268
|
+
paddingLeft: _styleSetting5.pl,
|
|
1269
|
+
paddingright: _styleSetting5.pr,
|
|
1270
|
+
paddingTop: _styleSetting5.pt,
|
|
1271
|
+
paddingBottom: _styleSetting5.pb,
|
|
1272
|
+
background: _styleSetting5.bgColor ? _styleSetting5.bgColor : ''
|
|
1273
|
+
} },
|
|
1274
|
+
_react2.default.createElement(
|
|
1275
|
+
'p',
|
|
1276
|
+
{ className: 'rightMore' },
|
|
1277
|
+
'\u66F4\u591A',
|
|
1278
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
1279
|
+
),
|
|
1280
|
+
_componentContent
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
if (item.portletCode === 'grrc') {
|
|
1285
|
+
var _personalSetting5 = JSON.parse(item.personalSetting);
|
|
1286
|
+
var _styleSetting6 = JSON.parse(item.styleSetting);
|
|
1287
|
+
var componentHead = _react2.default.createElement(
|
|
1288
|
+
'div',
|
|
1289
|
+
null,
|
|
1290
|
+
_react2.default.createElement(
|
|
1291
|
+
_Tab2.default,
|
|
1292
|
+
{ activeKey: '0', className: 't-MB16' },
|
|
1293
|
+
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1294
|
+
'div',
|
|
1295
|
+
{ className: '', style: { color: _styleSetting6.titleSet.color, fontWeight: _styleSetting6.titleSet.fontWeight } },
|
|
1296
|
+
'\u6211\u7684\u65E5\u7A0B'
|
|
1297
|
+
), key: '0' })
|
|
1298
|
+
)
|
|
1299
|
+
);
|
|
1300
|
+
var calendarDom = _react2.default.createElement('div', { id: 'calendar' });
|
|
1301
|
+
var grrcList = '';
|
|
1302
|
+
var componentContent4 = '';
|
|
1303
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1304
|
+
grrcList = _react2.default.createElement(
|
|
1305
|
+
'div',
|
|
1306
|
+
{ className: 'rc-list' },
|
|
1307
|
+
grrcContent
|
|
1308
|
+
);
|
|
1309
|
+
}
|
|
1310
|
+
componentContent4 = _react2.default.createElement(
|
|
1311
|
+
'div',
|
|
1312
|
+
null,
|
|
1313
|
+
calendarDom,
|
|
1314
|
+
grrcList
|
|
1315
|
+
);
|
|
1316
|
+
setTimeout(function () {
|
|
1317
|
+
t.initCleader(t.state[item.portletCode + '_' + item.id]);
|
|
1318
|
+
}, 600);
|
|
1319
|
+
return _react2.default.createElement(
|
|
1320
|
+
'div',
|
|
1321
|
+
{ key: item.id, style: {
|
|
1322
|
+
borderTopLeftRadius: _styleSetting6.otherSet.radius.topLeft,
|
|
1323
|
+
borderTopRightRadius: _styleSetting6.otherSet.radius.topRight,
|
|
1324
|
+
borderBottomLeftRadius: _styleSetting6.otherSet.radius.bottomLeft,
|
|
1325
|
+
borderBottomRightRadius: _styleSetting6.otherSet.radius.bottomRight,
|
|
1326
|
+
paddingLeft: _styleSetting6.pl,
|
|
1327
|
+
paddingright: _styleSetting6.pr,
|
|
1328
|
+
paddingTop: _styleSetting6.pt,
|
|
1329
|
+
paddingBottom: _styleSetting6.pb,
|
|
1330
|
+
background: _styleSetting6.bgColor ? _styleSetting6.bgColor : ''
|
|
1331
|
+
} },
|
|
1332
|
+
componentHead,
|
|
1333
|
+
componentContent4
|
|
1334
|
+
);
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
if (item.portletCode === 'grhy') {
|
|
1338
|
+
var _personalSetting6 = JSON.parse(item.personalSetting);
|
|
1339
|
+
var _styleSetting7 = JSON.parse(item.styleSetting);
|
|
1340
|
+
var grhyContent = '';
|
|
1341
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1342
|
+
grhyContent = t.state[item.portletCode + '_' + item.id].data.map(function (item) {
|
|
1343
|
+
return _react2.default.createElement(
|
|
1344
|
+
'div',
|
|
1345
|
+
{ className: 'meetingCard' },
|
|
1346
|
+
_react2.default.createElement('div', { className: 'lineTop' }),
|
|
1347
|
+
_react2.default.createElement(
|
|
1348
|
+
'div',
|
|
1349
|
+
{ className: 'meetingBg' },
|
|
1350
|
+
_react2.default.createElement(
|
|
1351
|
+
'div',
|
|
1352
|
+
{ className: 'meetingContent' },
|
|
1353
|
+
_react2.default.createElement(
|
|
1354
|
+
'div',
|
|
1355
|
+
{ className: 'meetingTitle' },
|
|
1356
|
+
_react2.default.createElement(
|
|
1357
|
+
'p',
|
|
1358
|
+
{ className: 't-omit t-LH1_6' },
|
|
1359
|
+
item.applyRecordName
|
|
1360
|
+
)
|
|
1361
|
+
),
|
|
1362
|
+
_react2.default.createElement(
|
|
1363
|
+
'div',
|
|
1364
|
+
{ className: 'meetingTime' },
|
|
1365
|
+
_react2.default.createElement(
|
|
1366
|
+
'div',
|
|
1367
|
+
{ className: 'meetingDate' },
|
|
1368
|
+
_react2.default.createElement('i', { className: 'iconfont icon-shijian1 t-FS14' }),
|
|
1369
|
+
_react2.default.createElement(
|
|
1370
|
+
'span',
|
|
1371
|
+
{ className: 't-ML6' },
|
|
1372
|
+
item.week
|
|
1373
|
+
),
|
|
1374
|
+
_react2.default.createElement(
|
|
1375
|
+
'span',
|
|
1376
|
+
{ className: 't-ML10' },
|
|
1377
|
+
item.startDate
|
|
1378
|
+
)
|
|
1379
|
+
),
|
|
1380
|
+
_react2.default.createElement(
|
|
1381
|
+
'div',
|
|
1382
|
+
{ className: 'timeTitle' },
|
|
1383
|
+
_react2.default.createElement(
|
|
1384
|
+
'p',
|
|
1385
|
+
null,
|
|
1386
|
+
'\u5F00\u59CB\u65F6\u95F4'
|
|
1387
|
+
),
|
|
1388
|
+
_react2.default.createElement(
|
|
1389
|
+
'p',
|
|
1390
|
+
null,
|
|
1391
|
+
'\u7ED3\u675F\u65F6\u95F4'
|
|
1392
|
+
)
|
|
1393
|
+
),
|
|
1394
|
+
_react2.default.createElement(
|
|
1395
|
+
'div',
|
|
1396
|
+
{ className: 'time' },
|
|
1397
|
+
_react2.default.createElement(
|
|
1398
|
+
'li',
|
|
1399
|
+
null,
|
|
1400
|
+
item.sTime
|
|
1401
|
+
),
|
|
1402
|
+
_react2.default.createElement(
|
|
1403
|
+
'li',
|
|
1404
|
+
null,
|
|
1405
|
+
_react2.default.createElement(
|
|
1406
|
+
'p',
|
|
1407
|
+
null,
|
|
1408
|
+
item.durationTime
|
|
1409
|
+
)
|
|
1410
|
+
),
|
|
1411
|
+
_react2.default.createElement(
|
|
1412
|
+
'li',
|
|
1413
|
+
null,
|
|
1414
|
+
item.eTime
|
|
1415
|
+
)
|
|
1416
|
+
),
|
|
1417
|
+
_react2.default.createElement(
|
|
1418
|
+
'div',
|
|
1419
|
+
{ className: 'location' },
|
|
1420
|
+
_react2.default.createElement('i', { className: 'iconfont icon-dizhi t-FS14' }),
|
|
1421
|
+
_react2.default.createElement(
|
|
1422
|
+
'span',
|
|
1423
|
+
{ className: 't-ML6' },
|
|
1424
|
+
item.meetingAddress
|
|
1425
|
+
)
|
|
1426
|
+
)
|
|
1427
|
+
)
|
|
1428
|
+
)
|
|
1429
|
+
)
|
|
1430
|
+
);
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
var componentHead1 = _react2.default.createElement(
|
|
1434
|
+
'div',
|
|
1435
|
+
null,
|
|
1436
|
+
_react2.default.createElement(
|
|
1437
|
+
_Tab2.default,
|
|
1438
|
+
{ activeKey: '0', className: 't-MB16' },
|
|
1439
|
+
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1440
|
+
'div',
|
|
1441
|
+
{ className: '', style: { color: _styleSetting7.titleSet.color, fontWeight: _styleSetting7.titleSet.fontWeight } },
|
|
1442
|
+
'\u6211\u7684\u4F1A\u8BAE'
|
|
1443
|
+
), key: '0' })
|
|
1444
|
+
)
|
|
1445
|
+
);
|
|
1446
|
+
var componentContent5 = '';
|
|
1447
|
+
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1448
|
+
if (t.state[item.portletCode + '_' + item.id].data.length > 0) {
|
|
1449
|
+
componentContent5 = grhyContent;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
return _react2.default.createElement(
|
|
1453
|
+
'div',
|
|
1454
|
+
{ key: item.id, style: {
|
|
1455
|
+
borderTopLeftRadius: _styleSetting7.otherSet.radius.topLeft,
|
|
1456
|
+
borderTopRightRadius: _styleSetting7.otherSet.radius.topRight,
|
|
1457
|
+
borderBottomLeftRadius: _styleSetting7.otherSet.radius.bottomLeft,
|
|
1458
|
+
borderBottomRightRadius: _styleSetting7.otherSet.radius.bottomRight,
|
|
1459
|
+
paddingLeft: _styleSetting7.pl,
|
|
1460
|
+
paddingright: _styleSetting7.pr,
|
|
1461
|
+
paddingTop: _styleSetting7.pt,
|
|
1462
|
+
paddingBottom: _styleSetting7.pb,
|
|
1463
|
+
background: _styleSetting7.bgColor ? _styleSetting7.bgColor : ''
|
|
1464
|
+
} },
|
|
1465
|
+
componentHead1,
|
|
1466
|
+
componentContent5
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
if (item.portletCode === 'lcfq') {
|
|
1471
|
+
var _personalSetting7 = JSON.parse(item.personalSetting);
|
|
1472
|
+
var _styleSetting8 = JSON.parse(item.styleSetting);
|
|
1473
|
+
var _componentHead = _react2.default.createElement(
|
|
1474
|
+
'div',
|
|
1475
|
+
null,
|
|
1476
|
+
_react2.default.createElement(
|
|
1477
|
+
_Tab2.default,
|
|
1478
|
+
{ activeKey: '0', className: 't-MB16' },
|
|
1479
|
+
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1480
|
+
'div',
|
|
1481
|
+
{ className: '', style: { color: _styleSetting8.titleSet.color, fontWeight: _styleSetting8.titleSet.fontWeight } },
|
|
1482
|
+
'\u4E8B\u9879\u53D1\u8D77'
|
|
1483
|
+
), key: '0' })
|
|
1484
|
+
)
|
|
1485
|
+
);
|
|
1486
|
+
var _componentContent2 = '';
|
|
1487
|
+
_componentContent2 = lcfqContent;
|
|
1488
|
+
|
|
1489
|
+
return _react2.default.createElement(
|
|
1490
|
+
'div',
|
|
1491
|
+
{ key: item.id, style: {
|
|
1492
|
+
borderTopLeftRadius: _styleSetting8.otherSet.radius.topLeft,
|
|
1493
|
+
borderTopRightRadius: _styleSetting8.otherSet.radius.topRight,
|
|
1494
|
+
borderBottomLeftRadius: _styleSetting8.otherSet.radius.bottomLeft,
|
|
1495
|
+
borderBottomRightRadius: _styleSetting8.otherSet.radius.bottomRight,
|
|
1496
|
+
paddingLeft: _styleSetting8.pl,
|
|
1497
|
+
paddingright: _styleSetting8.pr,
|
|
1498
|
+
paddingTop: _styleSetting8.pt,
|
|
1499
|
+
paddingBottom: _styleSetting8.pb,
|
|
1500
|
+
background: _styleSetting8.bgColor ? _styleSetting8.bgColor : ''
|
|
1501
|
+
} },
|
|
1502
|
+
_react2.default.createElement(
|
|
1503
|
+
'p',
|
|
1504
|
+
{ className: 'rightMore' },
|
|
1505
|
+
'\u66F4\u591A',
|
|
1506
|
+
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
1507
|
+
),
|
|
1508
|
+
_componentHead,
|
|
1509
|
+
_componentContent2
|
|
1510
|
+
);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
if (item.portletCode === 'tbgl') {
|
|
1514
|
+
var _personalSetting8 = JSON.parse(item.personalSetting);
|
|
1515
|
+
var _styleSetting9 = JSON.parse(item.styleSetting);
|
|
1516
|
+
var _componentHead2 = _react2.default.createElement(
|
|
1517
|
+
'div',
|
|
1518
|
+
null,
|
|
1519
|
+
_react2.default.createElement(
|
|
1520
|
+
_Tab2.default,
|
|
1521
|
+
{ activeKey: '0', className: 't-MB16' },
|
|
1522
|
+
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1523
|
+
'div',
|
|
1524
|
+
{ className: '', style: { color: _styleSetting9.titleSet.color, fontWeight: _styleSetting9.titleSet.fontWeight } },
|
|
1525
|
+
'\u56FE\u8868'
|
|
1526
|
+
), key: '0' })
|
|
1527
|
+
)
|
|
1528
|
+
);
|
|
1529
|
+
|
|
1530
|
+
var _componentContent3 = _react2.default.createElement(_chart2.default, { portalId: item.portalId, height: '100%' });
|
|
1531
|
+
return _react2.default.createElement(
|
|
1532
|
+
'div',
|
|
1533
|
+
{ key: item.id, style: {
|
|
1534
|
+
borderTopLeftRadius: _styleSetting9.otherSet.radius.topLeft,
|
|
1535
|
+
borderTopRightRadius: _styleSetting9.otherSet.radius.topRight,
|
|
1536
|
+
borderBottomLeftRadius: _styleSetting9.otherSet.radius.bottomLeft,
|
|
1537
|
+
borderBottomRightRadius: _styleSetting9.otherSet.radius.bottomRight,
|
|
1538
|
+
paddingLeft: _styleSetting9.pl,
|
|
1539
|
+
paddingright: _styleSetting9.pr,
|
|
1540
|
+
paddingTop: _styleSetting9.pt,
|
|
1541
|
+
paddingBottom: _styleSetting9.pb,
|
|
1542
|
+
background: _styleSetting9.bgColor ? _styleSetting9.bgColor : ''
|
|
1543
|
+
} },
|
|
1544
|
+
_componentHead2,
|
|
1545
|
+
_componentContent3
|
|
1546
|
+
);
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
if (item.portletCode === 'wdsx') {
|
|
1550
|
+
var _personalSetting9 = JSON.parse(item.personalSetting);
|
|
1551
|
+
var _styleSetting10 = JSON.parse(item.styleSetting);
|
|
1552
|
+
var _componentHead3 = _react2.default.createElement(
|
|
1553
|
+
'div',
|
|
1554
|
+
null,
|
|
1555
|
+
_react2.default.createElement(
|
|
1556
|
+
_Tab2.default,
|
|
1557
|
+
{ activeKey: '0', className: 't-MB16' },
|
|
1558
|
+
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1559
|
+
'div',
|
|
1560
|
+
{ className: '', style: { color: _styleSetting10.titleSet.color, fontWeight: _styleSetting10.titleSet.fontWeight } },
|
|
1561
|
+
'\u6211\u7684\u4E8B\u9879'
|
|
1562
|
+
), key: '0' })
|
|
1563
|
+
)
|
|
1564
|
+
);
|
|
1565
|
+
var _componentContent4 = _react2.default.createElement(
|
|
1566
|
+
'div',
|
|
1567
|
+
{ className: 'list-item' },
|
|
1568
|
+
_react2.default.createElement(
|
|
1569
|
+
'div',
|
|
1570
|
+
{ className: 'item-content' },
|
|
1571
|
+
_react2.default.createElement(
|
|
1572
|
+
'div',
|
|
1573
|
+
{ className: 'item-title' },
|
|
1574
|
+
'\u540D\u5B57\u540D\u5B57'
|
|
1575
|
+
),
|
|
1576
|
+
_react2.default.createElement(
|
|
1577
|
+
'div',
|
|
1578
|
+
{ className: 'content t-FCddfontblue-60 t-FS12' },
|
|
1579
|
+
_react2.default.createElement(
|
|
1580
|
+
'span',
|
|
1581
|
+
{ className: 't-MR12' },
|
|
1582
|
+
'\u65F6\u95F4\u65F6\u95F4\u65F6\u95F4'
|
|
1583
|
+
),
|
|
1584
|
+
_react2.default.createElement(
|
|
1585
|
+
'span',
|
|
1586
|
+
null,
|
|
1587
|
+
'\u7533\u8BF7\u4EBA\uFF1A'
|
|
1588
|
+
),
|
|
1589
|
+
_react2.default.createElement(
|
|
1590
|
+
'span',
|
|
1591
|
+
null,
|
|
1592
|
+
'\u540D\u5B57\u540D\u5B57\u540D\u5B57'
|
|
1593
|
+
)
|
|
1594
|
+
)
|
|
1595
|
+
),
|
|
1596
|
+
_react2.default.createElement(
|
|
1597
|
+
'a',
|
|
1598
|
+
{ className: 'more' },
|
|
1599
|
+
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow t-FCddfontblue-60' })
|
|
1600
|
+
)
|
|
1601
|
+
);
|
|
1602
|
+
return _react2.default.createElement(
|
|
1603
|
+
'div',
|
|
1604
|
+
{ key: item.id, style: {
|
|
1605
|
+
borderTopLeftRadius: _styleSetting10.otherSet.radius.topLeft,
|
|
1606
|
+
borderTopRightRadius: _styleSetting10.otherSet.radius.topRight,
|
|
1607
|
+
borderBottomLeftRadius: _styleSetting10.otherSet.radius.bottomLeft,
|
|
1608
|
+
borderBottomRightRadius: _styleSetting10.otherSet.radius.bottomRight,
|
|
1609
|
+
paddingLeft: _styleSetting10.pl,
|
|
1610
|
+
paddingright: _styleSetting10.pr,
|
|
1611
|
+
paddingTop: _styleSetting10.pt,
|
|
1612
|
+
paddingBottom: _styleSetting10.pb,
|
|
1613
|
+
background: _styleSetting10.bgColor ? _styleSetting10.bgColor : ''
|
|
1614
|
+
} },
|
|
1615
|
+
_componentHead3,
|
|
1616
|
+
_react2.default.createElement(
|
|
1617
|
+
'div',
|
|
1618
|
+
{ className: 'list-RT-label wdsx-list' },
|
|
1619
|
+
_componentContent4
|
|
1620
|
+
)
|
|
1621
|
+
);
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
// if (item.portletCode === 'jxzt') {
|
|
1625
|
+
// let componentHead2 = <div>
|
|
1626
|
+
// <Tab activeKey={'0'} className="t-MB16">
|
|
1627
|
+
// <Tab.Item title="精选专题" key="0"></Tab.Item>
|
|
1628
|
+
// </Tab>
|
|
1629
|
+
// </div>
|
|
1630
|
+
// return <div key={item.id}>
|
|
1631
|
+
// {componentHead2}
|
|
1632
|
+
// <Carousel
|
|
1633
|
+
// showNav
|
|
1634
|
+
// auto
|
|
1635
|
+
// active={1}
|
|
1636
|
+
// >
|
|
1637
|
+
// <Carousel.Item title="标题" className="t-image-slide-item t-R10" >
|
|
1638
|
+
// <p className="t-FS20 t-ML20 t-PT20 t-MB10">专题服务</p>
|
|
1639
|
+
// <span className="t-FCf t-MT10 t-FS16 t-ML20">随便写点东西</span>
|
|
1640
|
+
// </Carousel.Item>
|
|
1641
|
+
// <Carousel.Item className="t-image-slide-item t-R10">
|
|
1642
|
+
// <p className="t-FS20 t-ML20 t-PT20 t-MB10">专题服务</p>
|
|
1643
|
+
// <span className="t-FCf t-MT10 t-FS16 t-ML20">随便写点东西</span>
|
|
1644
|
+
// </Carousel.Item>
|
|
1645
|
+
// <Carousel.Item className="t-image-slide-item t-R10" >
|
|
1646
|
+
// <p className="t-FS20 t-ML20 t-PT20 t-MB10">专题服务</p>
|
|
1647
|
+
// <span className="t-FCf t-MT10 t-FS16 t-ML20">随便写点东西</span>
|
|
1648
|
+
// </Carousel.Item>
|
|
1649
|
+
// <Carousel.Item className="t-image-slide-item t-R10" >
|
|
1650
|
+
// <p className="t-FS20 t-ML20 t-PT20 t-MB10">专题服务</p>
|
|
1651
|
+
// <span className="t-FCf t-MT10 t-FS16 t-ML20">随便写点东西</span>
|
|
1652
|
+
// </Carousel.Item>
|
|
1653
|
+
// <Carousel.Item className="t-image-slide-item t-R10">
|
|
1654
|
+
// <p className="t-FS20 t-ML20 t-PT20 t-MB10">专题服务</p>
|
|
1655
|
+
// <span className="t-FCf t-MT10 t-FS16 t-ML20">随便写点东西</span>
|
|
1656
|
+
// </Carousel.Item>
|
|
1657
|
+
// </Carousel>
|
|
1658
|
+
// </div>
|
|
1659
|
+
// }
|
|
1660
|
+
return null; // 添加一个默认返回值,以避免未指定键的错误
|
|
1661
|
+
})
|
|
1662
|
+
)
|
|
1663
|
+
);
|
|
1664
|
+
}
|
|
1665
|
+
}]);
|
|
1666
|
+
|
|
1667
|
+
return MyGrid;
|
|
1668
|
+
}(_react2.default.Component);
|
|
1669
|
+
|
|
1670
|
+
exports.default = MyGrid;
|