fmui-base 2.1.91 → 2.1.93

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.
@@ -0,0 +1,1271 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = undefined;
7
+
8
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
9
+
10
+ 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; }; }();
11
+
12
+ var _react = require('react');
13
+
14
+ var _react2 = _interopRequireDefault(_react);
15
+
16
+ var _Tab = require('saltui/lib/Tab');
17
+
18
+ var _Tab2 = _interopRequireDefault(_Tab);
19
+
20
+ var _SearchBar = require('saltui/lib/SearchBar');
21
+
22
+ var _SearchBar2 = _interopRequireDefault(_SearchBar);
23
+
24
+ var _ScrollList = require('../ScrollList/ScrollList');
25
+
26
+ var _ScrollList2 = _interopRequireDefault(_ScrollList);
27
+
28
+ var _Boxs = require('saltui/lib/Boxs');
29
+
30
+ var _Boxs2 = _interopRequireDefault(_Boxs);
31
+
32
+ var _Toast = require('saltui/lib/Toast');
33
+
34
+ var _Toast2 = _interopRequireDefault(_Toast);
35
+
36
+ var _Button = require('saltui/lib/Button');
37
+
38
+ var _Button2 = _interopRequireDefault(_Button);
39
+
40
+ var _Popup = require('saltui/lib/Popup');
41
+
42
+ var _Popup2 = _interopRequireDefault(_Popup);
43
+
44
+ var _Filter = require('saltui/lib/Filter');
45
+
46
+ var _Filter2 = _interopRequireDefault(_Filter);
47
+
48
+ var _AngleRight = require('salt-icon/lib/AngleRight');
49
+
50
+ var _AngleRight2 = _interopRequireDefault(_AngleRight);
51
+
52
+ var _variables = require('../db/variables');
53
+
54
+ var _variables2 = _interopRequireDefault(_variables);
55
+
56
+ var _db = require('../db/db');
57
+
58
+ var _db2 = _interopRequireDefault(_db);
59
+
60
+ require('./msgList.less');
61
+
62
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
63
+
64
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
65
+
66
+ 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; }
67
+
68
+ 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; }
69
+
70
+ var HBox = _Boxs2.default.HBox,
71
+ Box = _Boxs2.default.Box;
72
+
73
+ var searchVal = '';
74
+ var isPageHide = false;
75
+ window.addEventListener('pageshow', function () {
76
+ console.log("isPageHide===" + isPageHide);
77
+ if (isPageHide) {
78
+ window.location.reload();
79
+ }
80
+ });
81
+
82
+ var ListItem = function (_React$Component) {
83
+ _inherits(ListItem, _React$Component);
84
+
85
+ function ListItem(props) {
86
+ _classCallCheck(this, ListItem);
87
+
88
+ var _this = _possibleConstructorReturn(this, (ListItem.__proto__ || Object.getPrototypeOf(ListItem)).call(this, props));
89
+
90
+ setPageTitle('待办');
91
+ return _this;
92
+ }
93
+
94
+ _createClass(ListItem, [{
95
+ key: 'clickDetail',
96
+ value: function clickDetail(event) {
97
+ if (this.props.isBatch) {
98
+ //批量状态
99
+ var checkDiv = $(event.currentTarget).find(".t-checkbox-field-icon-list");
100
+ if (checkDiv.hasClass("un-checked")) {
101
+ //判断是否未选中
102
+ checkDiv.removeClass("un-checked");
103
+ checkDiv.addClass("checked");
104
+ } else {
105
+ checkDiv.removeClass("checked");
106
+ checkDiv.addClass("un-checked");
107
+ }
108
+ } else {
109
+ if (this.props.ableClick) {
110
+ var itemInfo = this.props.data;
111
+ console.log(itemInfo);
112
+ var appmsgLink = itemInfo.appmsgLink; // 消息链接
113
+ var openMode = itemInfo.openMode; // 打开方式 2或8 为三方
114
+ var param_formKey = itemInfo.formKey; // 表单id
115
+ var param_businessKey = itemInfo.businessKey; // 表单数据id;
116
+ var param_startUserId = itemInfo.startUserId; // 流程发起人id
117
+ var param_list_type = this.props.type; // 列表类型 待办-0,待阅-1,
118
+ var processName = itemInfo.processName; // 流程名称
119
+ var module = itemInfo.module; // 流程名称
120
+ var type = this.props.fromType; //self:本应用,all:全模块
121
+ var projectPath = this.props.projectPath; //项目路径
122
+ var _searchVal = this.props.search ? this.props.search : '';
123
+
124
+ var taskId = '';
125
+ var processInstanceId = itemInfo.processInstanceId;
126
+ if (param_list_type == '2') {
127
+ taskId = itemInfo.taskId;
128
+ } else {
129
+ taskId = itemInfo.id;
130
+ }
131
+ var loginUserId = getLoginUserInfo().userId;
132
+ // location.hash = 'approval/approval-details/detail-servlet/' + param_list_type + '/1/' + param_processKey + '/' + param_formKey + '/' +param_businessKey +
133
+ // '/' + param_startUserId;
134
+ // alert(searchVal);
135
+ if (openMode == "2" || openMode == "8") {
136
+ // 三方应用
137
+ decodeURI(appmsgLink);
138
+ location.href = appmsgLink;
139
+ } else {
140
+ isPageHide = true;
141
+ var fullUrl = window.location.href;
142
+ fullUrl = fullUrl.replace(/clientType/g, "");
143
+ fullUrl = fullUrl.replace(/thirdMenuType/g, "");
144
+ fullUrl = fullUrl.replace(/clientAppType/g, "");
145
+ var mobilePath = module;
146
+ //projectPath = modules/mobileoffice
147
+ // 预算模块跳转特殊处理
148
+ if (module == 'bud_cost') {
149
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('/approval/all')[0];
150
+ } else if (module == 'bud_project') {
151
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
152
+ } else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
153
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('/approval/all')[0];
154
+ } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
155
+ fullUrl = fullUrl.split('?_')[0].split('/approval/all')[0];
156
+ } else if (module.indexOf("hoa_") != '-1') {
157
+ var category = module.split("_")[0];
158
+ mobilePath = module.substring(module.indexOf("_") + 1);
159
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
160
+ } else {
161
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
162
+ }
163
+ //alert(fullUrl);
164
+ var url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
165
+ url = fullUrl + '/' + url;
166
+ decodeURI(url);
167
+ location.href = url;
168
+ }
169
+
170
+ // window.salt.router.push({
171
+ // id: 'detailPage',
172
+ // url: url,
173
+ // anim: 1,
174
+ // needPost: true,
175
+ // param: {
176
+ // title: processName,
177
+ // }
178
+ // }).then().catch((e) => {
179
+ // // alert(e);
180
+ // });
181
+ } else {
182
+ this.props.updateAbleClick(true);
183
+ }
184
+ }
185
+ }
186
+ }, {
187
+ key: 'render',
188
+ value: function render() {
189
+ var data = this.props;
190
+ var checkIsNotComplete = true;
191
+ var urgencyTag = false;
192
+ var tagClass = '';
193
+ if (data.type == 0) {
194
+ //待办
195
+ checkIsNotComplete = true;
196
+ if (data.urgency == '90') {
197
+ urgencyTag = true;
198
+ tagClass = 'label label-danger';
199
+ } else if (data.urgency == '80') {
200
+ urgencyTag = true;
201
+ tagClass = 'label label-danger';
202
+ } else if (data.urgency == '70') {
203
+ urgencyTag = true;
204
+ tagClass = 'label label-warn';
205
+ } else if (data.urgency == '60') {
206
+ urgencyTag = true;
207
+ tagClass = 'label label-primary';
208
+ } else {
209
+ urgencyTag = false;
210
+ }
211
+ } else if (data.type == 1) {
212
+ //待阅
213
+ if (data.status == 2) {
214
+ checkIsNotComplete = false;
215
+ } else {
216
+ checkIsNotComplete = true;
217
+ }
218
+ } else if (data.type == 2) {
219
+ //已办
220
+ if (data.status == 2) {
221
+ checkIsNotComplete = false;
222
+ } else {
223
+ checkIsNotComplete = true;
224
+ }
225
+ } else if (data.type == 3) {
226
+ //已阅
227
+ if (data.status == 2) {
228
+ checkIsNotComplete = false;
229
+ } else {
230
+ checkIsNotComplete = true;
231
+ }
232
+ } else {
233
+ //我的
234
+ if (typeof data.finishedTime == 'undefined' || data.finishedTime == null) {
235
+ checkIsNotComplete = true;
236
+ } else {
237
+ checkIsNotComplete = false;
238
+ }
239
+ }
240
+ var comleteName = data.name;
241
+ if (data.type == 0) {//待办
242
+ // comleteName= data.curStepName;
243
+ } else if (data.type == 1) {
244
+ //待阅
245
+ comleteName = data.nodeName;
246
+ } else if (data.type == 2) {
247
+ //已办
248
+ if (data.status == '2') {
249
+ comleteName = "结束";
250
+ checkIsNotComplete = false;
251
+ } else if (data.status == '3') {
252
+ comleteName = "作废";
253
+ checkIsNotComplete = false;
254
+ } else if (data.status == '4') {
255
+ comleteName = "取消";
256
+ checkIsNotComplete = false;
257
+ } else if (data.status == '5') {
258
+ comleteName = "结束(退回)";
259
+ checkIsNotComplete = false;
260
+ } else {
261
+ comleteName = data.nodeName;
262
+ }
263
+ } else if (data.type == 3) {
264
+ //已阅
265
+ comleteName = data.nodeName;
266
+ } else {
267
+ //我的
268
+ if (data.status == '2') {
269
+ comleteName = "结束";
270
+ checkIsNotComplete = false;
271
+ } else if (data.status == '3') {
272
+ comleteName = "作废";
273
+ checkIsNotComplete = false;
274
+ } else if (data.status == '4') {
275
+ comleteName = "取消";
276
+ checkIsNotComplete = false;
277
+ } else if (data.status == '5') {
278
+ comleteName = "结束(退回)";
279
+ checkIsNotComplete = false;
280
+ } else {
281
+ comleteName = data.nodeName;
282
+ }
283
+ }
284
+ if (typeof comleteName == 'undefined' || comleteName == null) {
285
+ checkIsNotComplete = false;
286
+ }
287
+
288
+ var assigneeName = '申请人:' + data.startUserName;
289
+
290
+ if (data.type == 0) {
291
+ //待办
292
+ assigneeName = '申请人:' + data.startUserName;
293
+ } else if (data.type == 1) {
294
+ //待阅
295
+ assigneeName = '申请人:' + data.startUserName;
296
+ } else if (data.type == 2) {
297
+ //已办
298
+ if (data.curUserName) {
299
+ assigneeName = '办理人:' + data.curUserName;
300
+ }
301
+ } else if (data.type == 3) {
302
+ //已阅
303
+ if (data.startUserName) {
304
+ assigneeName = '申请人:' + data.startUserName;
305
+ }
306
+ } else if (data.type == 4) {
307
+ //我的
308
+ if (data.curUserName) {
309
+ assigneeName = '办理人:' + data.curUserName;
310
+ }
311
+ }
312
+ if (typeof assigneeName == 'undefined' || assigneeName == null) {
313
+ checkIsNotComplete = false;
314
+ }
315
+ var formatTime = data.createTime;
316
+
317
+ if (data.type == 0) {
318
+ //待办
319
+ formatTime = data.createTime;
320
+ } else if (data.type == 1) {
321
+ //待阅
322
+ formatTime = data.createTime;
323
+ } else if (data.type == 2) {
324
+ //已办
325
+ formatTime = data.dealTime;
326
+ } else if (data.type == 3) {
327
+ //已阅
328
+ formatTime = data.endTime;
329
+ } else {
330
+ //我的
331
+ formatTime = data.createTime;
332
+ }
333
+ comleteName = data.curStepName;
334
+ var now = new Date();
335
+ var year = now.getFullYear(); //年
336
+ var month = now.getMonth() + 1; //月
337
+ var day = now.getDate(); //日
338
+ var hh = now.getHours(); //时
339
+ var mm = now.getMinutes(); //分
340
+ var ss = now.getSeconds(); //秒
341
+ var clock = year + "-";
342
+ if (month < 10) clock += "0";
343
+ clock += month + "-";
344
+ if (day < 10) clock += "0";
345
+ clock += day + " ";
346
+
347
+ if (hh < 10) clock += "0";
348
+
349
+ clock += hh + ":";
350
+ if (mm < 10) clock += '0';
351
+ clock += mm + ":";
352
+
353
+ if (ss < 10) clock += '0';
354
+ clock += ss;
355
+ return (
356
+
357
+ // <HBox className='approve-item'>
358
+ // <Box className="approve-check">
359
+ // <Box className={'t-checkbox-field-icon-list un-checked t-MR10'} >
360
+ // <i className="iconfont icon-checked t-FCf t-FS14"></i>
361
+ // </Box>
362
+ // </Box>
363
+ // <Box className="approve-right-text">
364
+ // <HBox className='approveItem-title'>
365
+ // <Box className="label label-danger">加急</Box>
366
+ // <Box className="label label-info">暂不办理</Box>
367
+ // <Box className="label label-warn">超时</Box>
368
+ // <Box className="label label-primary">正常</Box>
369
+ // <Box className="title">五月行政总值班值班表</Box>
370
+ // </HBox>
371
+ // <HBox className='approveItem-tag'>
372
+ // <span className='label label-primary'>审核意见审核意见</span>
373
+ // <i className='iconfont icon-right-arrow'></i>
374
+ // </HBox>
375
+ // <HBox className="bottom-text">
376
+ // <Box className="text-item">申请人:王小红</Box>
377
+ // <Box className="text-item">2022-08-28 10:58:58</Box>
378
+ // </HBox>
379
+ // </Box>
380
+ // </HBox>
381
+ _react2.default.createElement(
382
+ HBox,
383
+ { className: 'approve-item', onClick: this.clickDetail.bind(this) },
384
+ _react2.default.createElement(
385
+ Box,
386
+ { className: 'approve-check' },
387
+ _react2.default.createElement(
388
+ Box,
389
+ { className: this.props.isBatch == false ? 't-DN' : 't-checkbox-field-icon-list un-checked t-MR10', 'data-taskId': this.props.id, 'data-module': this.props.module, 'data-processInstanceId': this.props.processInstanceId },
390
+ _react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
391
+ )
392
+ ),
393
+ _react2.default.createElement(
394
+ Box,
395
+ { className: 'approve-right-text' },
396
+ _react2.default.createElement(
397
+ HBox,
398
+ { className: 'approveItem-title' },
399
+ _react2.default.createElement(
400
+ Box,
401
+ { className: urgencyTag ? tagClass : 't-DN' },
402
+ this.props.urgencyName
403
+ ),
404
+ _react2.default.createElement(
405
+ Box,
406
+ { className: this.props.dueDate != null && this.props.dueDate < clock && this.props.type == 0 ? 'label label-warn' : 't-DN' },
407
+ '\u8D85\u65F6'
408
+ ),
409
+ _react2.default.createElement(
410
+ Box,
411
+ { className: this.props.deleted != null && this.props.deleted == '1' && this.props.type == 0 ? 'label label-info' : 't-DN' },
412
+ '\u6682\u4E0D\u529E\u7406'
413
+ ),
414
+ _react2.default.createElement(
415
+ Box,
416
+ { className: 'title' },
417
+ this.props.title
418
+ )
419
+ ),
420
+ _react2.default.createElement(
421
+ HBox,
422
+ { className: 'approveItem-tag' },
423
+ _react2.default.createElement(
424
+ 'span',
425
+ { className: 'label label-primary' },
426
+ comleteName
427
+ )
428
+ ),
429
+ _react2.default.createElement(
430
+ HBox,
431
+ { className: 'bottom-text' },
432
+ _react2.default.createElement(
433
+ Box,
434
+ { className: checkIsNotComplete ? "text-item" : "t-DN" },
435
+ assigneeName
436
+ ),
437
+ _react2.default.createElement(
438
+ Box,
439
+ { className: 'text-item' },
440
+ formatTime
441
+ )
442
+ )
443
+ ),
444
+ _react2.default.createElement('i', { className: 'iconfont icon-right-arrow' })
445
+ )
446
+ );
447
+ }
448
+ }]);
449
+
450
+ return ListItem;
451
+ }(_react2.default.Component);
452
+
453
+ ;
454
+
455
+ var transactionIndex = {
456
+ activeTabIndex: ''
457
+ };
458
+
459
+ var PageHome = function (_React$Component2) {
460
+ _inherits(PageHome, _React$Component2);
461
+
462
+ function PageHome(props) {
463
+ _classCallCheck(this, PageHome);
464
+
465
+ document.addEventListener('resume', function (e) {});
466
+
467
+ var _this2 = _possibleConstructorReturn(this, (PageHome.__proto__ || Object.getPrototypeOf(PageHome)).call(this, props));
468
+
469
+ setPageTitle('办理');
470
+ // 禁用iOS弹性事件
471
+ if (navigator.userAgent.indexOf('DingTalk') > -1) {
472
+ dd.ui.webViewBounce.disable();
473
+ }
474
+ //获取内容显示区域高度
475
+ var hasBottomTabHidden = document.getElementById("hasBottomTab") ? document.getElementById("hasBottomTab").value : "0";
476
+ var hasBottomTab = props.hasBottomTab ? props.hasBottomTab : hasBottomTabHidden;
477
+ var winHeight = getScrollHigh(1, 1, 0, 0); // 50为标题栏高度
478
+
479
+
480
+ var constIndex = document.getElementById("activeTabIndex").value; //常量
481
+ var activeIndex = props.activeIndex ? props.activeIndex : 0;
482
+ var type = props.type ? props.type : "self"; //self:本应用,all:全模块
483
+ var module = props.module ? props.module : type == "self" ? "approve" : "";
484
+ var hasBatch = eval(props.hasBatch ? props.hasBatch : "true"); //是否有批量办理
485
+ var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read"; //标签页
486
+ var searchVal = props.search;
487
+
488
+ var projectPath = props.projectPath ? props.projectPath : "modules/mobileoffice";
489
+ if (constIndex == '') {
490
+ if (!activeIndex) {
491
+ activeIndex = '0';
492
+ }
493
+ constIndex = activeIndex;
494
+ } else {
495
+ activeIndex = constIndex;
496
+ }
497
+ var undoListUrl;
498
+ var unreadListUrl;
499
+ var doneListUrl;
500
+ var readListUrl;
501
+ var myselfListUrl;
502
+ undoListUrl = _variables2.default.URLS.msgList.undo + "&module=" + module;
503
+ unreadListUrl = _variables2.default.URLS.msgList.unread + "&module=" + module;
504
+ doneListUrl = _variables2.default.URLS.msgList.done + "&module=" + module;
505
+ readListUrl = _variables2.default.URLS.msgList.read + "&module=" + module;
506
+ myselfListUrl = _variables2.default.URLS.msgList.myself + "&module=" + module;
507
+ _this2.state = {
508
+ tabCodes: tabCodes,
509
+ type: type,
510
+ activeTabIndex: activeIndex, // 待办-0;待阅-1;已办-2;已阅-3;我的-4
511
+ winHeight: winHeight,
512
+ projectPath: projectPath,
513
+ page: 0,
514
+ search0: searchVal,
515
+ search1: searchVal,
516
+ search2: searchVal,
517
+ search3: searchVal,
518
+ search4: searchVal,
519
+ titleCount: {
520
+ undo: 0, // 待办
521
+ unread: 0, // 待阅
522
+ done: 0, // 已办
523
+ read: 0, // 已阅
524
+ myself: 0 // 我的
525
+ },
526
+ ableClick: true, //列表是否可点击,
527
+ isBatch: false,
528
+ noDataTip0: '暂无数据',
529
+ noDataTip1: '暂无数据',
530
+ noDataTip2: '暂无数据',
531
+ noDataTip3: '暂无数据',
532
+ noDataTip4: '暂无数据',
533
+ module: module,
534
+ undoListUrl: undoListUrl,
535
+ unreadListUrl: unreadListUrl,
536
+ doneListUrl: doneListUrl,
537
+ readListUrl: readListUrl,
538
+ myselfListUrl: myselfListUrl,
539
+ hasBatch: hasBatch,
540
+ categoryList: [],
541
+ categoryListTitle: '全部分类',
542
+ category0: [],
543
+ category1: [],
544
+ category2: [],
545
+ category3: [],
546
+ category4: []
547
+ };
548
+ _this2.getTransactionTitleCount(module, "undo,unread");
549
+ // this.getCategoryListByModule(module);
550
+ /**
551
+ * 办理页面搜索框设置项
552
+ * @type {{locale: string, instantSearch: boolean, hasHistory: boolean, searchDelay: number, onEnter: (()), onExit: (()), onChange: ((p1:*)), onSearch: ((p1?:*))}}
553
+ */
554
+ _this2.searchBarProps = {
555
+ placeholder: "请输入标题查询",
556
+ instantSearch: false,
557
+ hasHistory: false,
558
+ searchDelay: 450,
559
+ value: searchVal,
560
+ exitAfterEnter: false,
561
+ onEnter: function onEnter() {
562
+ console.log('enter');
563
+ },
564
+ onExit: _this2.onExit.bind(_this2),
565
+ onChange: function onChange(value) {
566
+ console.log('Typing>>' + value);
567
+ },
568
+ onSearch: _this2.onSearch.bind(_this2)
569
+ };
570
+
571
+ return _this2;
572
+ }
573
+
574
+ _createClass(PageHome, [{
575
+ key: 'componentDidMount',
576
+ value: function componentDidMount() {
577
+ var obj = $("title");
578
+ obj.text("办理");
579
+ var thirdMenuType = getLoginUserInfo().thirdMenuType;
580
+ if (thirdMenuType == 'DING') {
581
+ dd.biz.navigation.setTitle({
582
+ title: "办理", //控制标题文本,空字符串表示显示默认文本
583
+ onSuccess: function onSuccess(result) {},
584
+ onFail: function onFail(err) {}
585
+ });
586
+ } else if (thirdMenuType == 'MH' && typeof emp != "undefined") {
587
+ emp.window.setTitle({
588
+ title: {
589
+ text: "办理",
590
+ icon: '',
591
+ actionmenu: {}
592
+ }
593
+ });
594
+ }
595
+ $("#App").removeAttr("style");
596
+ _Popup2.default.hide();
597
+ // dd.ready(function(){
598
+ // document.addEventListener('resume', function(e) {
599
+ // this.refs.transaction_undo_ref.fetchData(param);
600
+ // this.refs.transaction_done_ref.fetchData(param);
601
+ // this.refs.transaction_myself_ref.fetchData(param);
602
+ // });
603
+ // });
604
+ }
605
+
606
+ /**
607
+ * tab页切换方法
608
+ * @param obj
609
+ */
610
+
611
+ }, {
612
+ key: 'handleTabChange',
613
+ value: function handleTabChange(obj) {
614
+ var t = this;
615
+ // this.setState({ activeTabIndex:obj.active });
616
+ var active = obj.active;
617
+ console.log(active);
618
+ document.getElementById("activeTabIndex").value = active;
619
+ this.setState({
620
+ activeTabIndex: active,
621
+ page: 0,
622
+ selectAll: true,
623
+ isBatch: false
624
+ });
625
+ var preActive = obj.preActive;
626
+
627
+ // 点击tab页签,关闭遮罩
628
+ $('.title-wrapper.active').click();
629
+ }
630
+
631
+ /**
632
+ * 获取页面 标题数量 方法
633
+ */
634
+
635
+ }, {
636
+ key: 'getTransactionTitleCount',
637
+ value: function getTransactionTitleCount(module, codes) {
638
+ var _this3 = this;
639
+
640
+ var t = this;
641
+ _db2.default.FlowApproval.getUmcCount({
642
+ module: module,
643
+ codes: codes
644
+ }).then(function (content) {
645
+ _this3.state.titleCount.undo = content.undo;
646
+ _this3.state.titleCount.unread = content.unread;
647
+ }).catch(function (error) {
648
+ console.log(error);
649
+ });
650
+ }
651
+
652
+ /**
653
+ * 获取分类
654
+ */
655
+
656
+ }, {
657
+ key: 'getCategoryListByModule',
658
+ value: function getCategoryListByModule(module) {
659
+ var _this4 = this;
660
+
661
+ var t = this;
662
+ _db2.default.FlowApproval.getCategoryListByModule({
663
+ module: module
664
+ }).then(function (content) {
665
+ if (content) {
666
+ _this4.state.categoryList = content;
667
+ }
668
+ }).catch(function (error) {
669
+ console.log(error);
670
+ });
671
+ }
672
+
673
+ /**
674
+ * ScrollList 请求数据之前的函数
675
+ */
676
+
677
+ }, {
678
+ key: 'beforeFetch0',
679
+ value: function beforeFetch0(data, from) {
680
+ this.setState({
681
+ ableClick: false
682
+ });
683
+ //alert("this.state.search: " + JSON.stringify(this.state.search) + ';;;param: ' + JSON.stringify(from));
684
+ data.corpId = corpid;
685
+ // data.code = ;
686
+ var search = from.title;
687
+ var cate = from.category;
688
+ if (search == undefined) {
689
+ data.title = this.state.search0;
690
+ } else {
691
+ data.title = from.title;
692
+ }
693
+ if (cate == undefined) {
694
+ data.category = this.state.category0;
695
+ } else {
696
+ data.category = from.category;
697
+ }
698
+ return data;
699
+ }
700
+ }, {
701
+ key: 'beforeFetch1',
702
+ value: function beforeFetch1(data, from) {
703
+ this.setState({
704
+ ableClick: false
705
+ });
706
+ //alert("this.state.search: " + JSON.stringify(this.state.search) + ';;;param: ' + JSON.stringify(from));
707
+ data.corpId = corpid;
708
+ // data.code = ;
709
+ var search = from.title;
710
+ var cate = from.category;
711
+ if (search == undefined) {
712
+ data.title = this.state.search1;
713
+ } else {
714
+ data.title = from.title;
715
+ }
716
+ if (cate == undefined) {
717
+ data.category = this.state.category1;
718
+ } else {
719
+ data.category = from.category;
720
+ }
721
+ return data;
722
+ }
723
+ }, {
724
+ key: 'beforeFetch2',
725
+ value: function beforeFetch2(data, from) {
726
+ this.setState({
727
+ ableClick: false
728
+ });
729
+ //alert("this.state.search: " + JSON.stringify(this.state.search) + ';;;param: ' + JSON.stringify(from));
730
+ data.corpId = corpid;
731
+ // data.code = ;
732
+ var search = from.title;
733
+ var cate = from.category;
734
+ if (search == undefined) {
735
+ data.title = this.state.search2;
736
+ } else {
737
+ data.title = from.title;
738
+ }
739
+ if (cate == undefined) {
740
+ data.category = this.state.category2;
741
+ } else {
742
+ data.category = from.category;
743
+ }
744
+ return data;
745
+ }
746
+ }, {
747
+ key: 'beforeFetch3',
748
+ value: function beforeFetch3(data, from) {
749
+ this.setState({
750
+ ableClick: false
751
+ });
752
+ //alert("this.state.search: " + JSON.stringify(this.state.search) + ';;;param: ' + JSON.stringify(from));
753
+ data.corpId = corpid;
754
+ // data.code = ;
755
+ var search = from.title;
756
+ var cate = from.category;
757
+ if (search == undefined) {
758
+ data.title = this.state.search3;
759
+ } else {
760
+ data.title = from.title;
761
+ }
762
+ if (cate == undefined) {
763
+ data.category = this.state.category4;
764
+ } else {
765
+ data.category = from.category;
766
+ }
767
+ return data;
768
+ }
769
+ }, {
770
+ key: 'beforeFetch4',
771
+ value: function beforeFetch4(data, from) {
772
+ this.setState({
773
+ ableClick: false
774
+ });
775
+ //alert("this.state.search: " + JSON.stringify(this.state.search) + ';;;param: ' + JSON.stringify(from));
776
+ data.corpId = corpid;
777
+ // data.code = ;
778
+ var search = from.title;
779
+ var cate = from.category;
780
+ if (search == undefined) {
781
+ data.title = this.state.search4;
782
+ } else {
783
+ data.title = from.title;
784
+ }
785
+ if (cate == undefined) {
786
+ data.category = this.state.category4;
787
+ } else {
788
+ data.category = from.category;
789
+ }
790
+ return data;
791
+ }
792
+
793
+ /**
794
+ * ScrollList 得到返回数据
795
+ * @param data
796
+ * @returns {*}
797
+ */
798
+
799
+ }, {
800
+ key: 'processData',
801
+ value: function processData(data) {
802
+ this.setState({
803
+ ableClick: true
804
+ });
805
+ $('.empty-content').show();
806
+ return data;
807
+ }
808
+
809
+ /**
810
+ * 搜索栏,确认搜索
811
+ */
812
+
813
+ }, {
814
+ key: 'onSearch',
815
+ value: function onSearch(searchValue) {
816
+ console.log('onSearch>>' + searchValue);
817
+ var noDataTip = '无搜索结果';
818
+ if (this.state.activeTabIndex == 0) {
819
+ this.setState({
820
+ search0: searchValue,
821
+ noDataTip0: noDataTip
822
+ });
823
+ var param = {
824
+ title: searchValue,
825
+ category: this.state.category0
826
+ };
827
+ this.refs.transaction_undo_ref.fetchData(param);
828
+ } else if (this.state.activeTabIndex == 1) {
829
+ this.setState({
830
+ search1: searchValue,
831
+ noDataTip1: noDataTip
832
+ });
833
+ var _param = {
834
+ title: searchValue,
835
+ category: this.state.category1
836
+ };
837
+ this.refs.transaction_unread_ref.fetchData(_param);
838
+ } else if (this.state.activeTabIndex == 2) {
839
+ this.setState({
840
+ search2: searchValue,
841
+ noDataTip2: noDataTip
842
+ });
843
+ var _param2 = {
844
+ title: searchValue,
845
+ category: this.state.category2
846
+ };
847
+ this.refs.transaction_done_ref.fetchData(_param2);
848
+ } else if (this.state.activeTabIndex == 3) {
849
+ this.setState({
850
+ search3: searchValue,
851
+ noDataTip3: noDataTip
852
+ });
853
+ var _param3 = {
854
+ title: searchValue,
855
+ category: this.state.category3
856
+ };
857
+ this.refs.transaction_read_ref.fetchData(_param3);
858
+ } else if (this.state.activeTabIndex == 4) {
859
+ this.setState({
860
+ search4: searchValue,
861
+ noDataTip4: noDataTip
862
+ });
863
+ var _param4 = {
864
+ title: searchValue,
865
+ category: this.state.category4
866
+ };
867
+ this.refs.transaction_myself_ref.fetchData(_param4);
868
+ }
869
+ }
870
+
871
+ /**
872
+ * 退出搜索栏工具
873
+ */
874
+
875
+ }, {
876
+ key: 'onExit',
877
+ value: function onExit() {
878
+ // debugger;
879
+ console.log('onExit!');
880
+ var noDataTip = '暂无数据';
881
+ var searchValue = '';
882
+
883
+ var type = this.state.type;
884
+ if (type == "self") {
885
+ var url = 'approval/transaction/' + this.state.activeTabIndex;
886
+ location.hash = url;
887
+ } else {
888
+ var url = 'approval/all/' + this.state.activeTabIndex;
889
+ location.hash = url;
890
+ }
891
+ searchVal = '';
892
+ $('.empty-content').hide();
893
+ if (this.state.activeTabIndex == 0) {
894
+ this.refs.transaction_undo_ref.fetchData({
895
+ title: searchValue,
896
+ category: this.state.category0
897
+ });
898
+ this.setState({
899
+ search0: '',
900
+ noDataTip0: noDataTip
901
+ });
902
+ } else if (this.state.activeTabIndex == 1) {
903
+ this.refs.transaction_unread_ref.fetchData({
904
+ title: searchValue,
905
+ category: this.state.category1
906
+ });
907
+ this.setState({
908
+ search1: '',
909
+ noDataTip1: noDataTip
910
+ });
911
+ } else if (this.state.activeTabIndex == 2) {
912
+ this.refs.transaction_done_ref.fetchData({
913
+ title: searchValue,
914
+ category: this.state.category2
915
+ });
916
+ this.setState({
917
+ search2: '',
918
+ noDataTip2: noDataTip
919
+ });
920
+ } else if (this.state.activeTabIndex == 3) {
921
+ this.refs.transaction_read_ref.fetchData({
922
+ title: searchValue,
923
+ category: this.state.category3
924
+ });
925
+ this.setState({
926
+ search3: '',
927
+ noDataTip3: noDataTip
928
+ });
929
+ } else if (this.state.activeTabIndex == 4) {
930
+ this.refs.transaction_myself_ref.fetchData({
931
+ title: searchValue,
932
+ category: this.state.category4
933
+ });
934
+ this.setState({
935
+ search4: '',
936
+ noDataTip4: noDataTip
937
+ });
938
+ }
939
+ }
940
+ }, {
941
+ key: 'onScrollRefresh',
942
+ value: function onScrollRefresh() {}
943
+ }, {
944
+ key: 'onLoad',
945
+ value: function onLoad() {}
946
+ //更新可点击状态
947
+
948
+ }, {
949
+ key: 'updateAbleClick',
950
+ value: function updateAbleClick(boolean) {
951
+ this.setState({
952
+ ableClick: boolean
953
+ });
954
+ }
955
+
956
+ //点击批量
957
+
958
+ }, {
959
+ key: 'clickBatch',
960
+ value: function clickBatch(boolean) {
961
+ this.setState({
962
+ isBatch: !boolean,
963
+ selectAll: true
964
+ });
965
+ }
966
+
967
+ //全选
968
+
969
+ }, {
970
+ key: 'selectAll',
971
+ value: function selectAll() {
972
+ var t = this;
973
+ if (this.state.selectAll) {
974
+ $(".t-checkbox-field-icon-list").map(function (index, item) {
975
+ $(item).removeClass("un-checked");
976
+ $(item).addClass("checked");
977
+ });
978
+ this.setState({
979
+ selectAll: false
980
+ });
981
+ } else {
982
+ $(".t-checkbox-field-icon-list").map(function (index, item) {
983
+ $(item).removeClass("checked");
984
+ $(item).addClass("un-checked");
985
+ });
986
+ this.setState({
987
+ selectAll: true
988
+ });
989
+ }
990
+ }
991
+ }, {
992
+ key: 'filterConfirm',
993
+ value: function filterConfirm(data) {
994
+ var noDataTip = '暂无搜索结果';
995
+ var category = [];
996
+ if (data.sort) {
997
+ data.sort.map(function (item) {
998
+ category.push(item.value);
999
+ });
1000
+ }
1001
+
1002
+ if (this.state.activeTabIndex == 0) {
1003
+ this.setState({
1004
+ category0: category.join(','),
1005
+ noDataTip1: noDataTip
1006
+ // categoryListTitle: category.join(',') || '全部分类'
1007
+ });
1008
+
1009
+ var param = {
1010
+ title: this.state.search0,
1011
+ category: category.join(',')
1012
+ };
1013
+ this.refs.transaction_undo_ref.fetchData(param);
1014
+ } else if (this.state.activeTabIndex == 1) {
1015
+ this.setState({
1016
+ category1: category.join(','),
1017
+ noDataTip1: noDataTip
1018
+ // categoryListTitle: category.join(',') || '全部分类'
1019
+ });
1020
+ var _param5 = {
1021
+ title: this.state.search1,
1022
+ category: category.join(',')
1023
+ };
1024
+ this.refs.transaction_unread_ref.fetchData(_param5);
1025
+ } else if (this.state.activeTabIndex == 2) {
1026
+ this.setState({
1027
+ category2: category.join(','),
1028
+ noDataTip1: noDataTip
1029
+ // categoryListTitle: category.join(',') || '全部分类'
1030
+ });
1031
+ var _param6 = {
1032
+ title: this.state.search2,
1033
+ category: category.join(',')
1034
+ };
1035
+ this.refs.transaction_done_ref.fetchData(_param6);
1036
+ } else if (this.state.activeTabIndex == 3) {
1037
+ this.setState({
1038
+ category3: category.join(','),
1039
+ noDataTip1: noDataTip
1040
+ // categoryListTitle: category.join(',') || '全部分类'
1041
+ });
1042
+ var _param7 = {
1043
+ title: this.state.search3,
1044
+ category: category.join(',')
1045
+ };
1046
+ this.refs.transaction_read_ref.fetchData(_param7);
1047
+ } else if (this.state.activeTabIndex == 4) {
1048
+ this.setState({
1049
+ category4: category.join(','),
1050
+ noDataTip1: noDataTip
1051
+ // categoryListTitle: category.join(',') || '全部分类'
1052
+ });
1053
+ var _param8 = {
1054
+ title: this.state.search4,
1055
+ category: category.join(',')
1056
+ };
1057
+ this.refs.transaction_myself_ref.fetchData(_param8);
1058
+ }
1059
+ }
1060
+ }, {
1061
+ key: 'render',
1062
+ value: function render() {
1063
+ var tabBarStyle = {};
1064
+ var winHeightStyle = { height: this.state.winHeight };
1065
+
1066
+ var Item = function Item(props) {
1067
+ return _react2.default.createElement(
1068
+ 'div',
1069
+ { className: 'demo-item' },
1070
+ props.id + ' ' + props.name
1071
+ );
1072
+ };
1073
+ var undoDiv = _react2.default.createElement(
1074
+ 'div',
1075
+ null,
1076
+ ' \u5F85\u529E',
1077
+ this.state.titleCount.undo == 0 ? '' : _react2.default.createElement(
1078
+ 'span',
1079
+ { style: { color: 'red' } },
1080
+ '(',
1081
+ this.state.titleCount.undo,
1082
+ ')'
1083
+ )
1084
+ );
1085
+ var unreadDiv = _react2.default.createElement(
1086
+ 'div',
1087
+ null,
1088
+ ' \u5F85\u9605',
1089
+ this.state.titleCount.unread == 0 ? '' : _react2.default.createElement(
1090
+ 'span',
1091
+ { style: { color: 'red' } },
1092
+ '(',
1093
+ this.state.titleCount.unread,
1094
+ ')'
1095
+ )
1096
+ );
1097
+ return _react2.default.createElement(
1098
+ 'div',
1099
+ { className: 'approve-list' },
1100
+ _react2.default.createElement(
1101
+ _Tab2.default,
1102
+ { activeKey: this.state.activeTabIndex, onChange: this.handleTabChange.bind(this), destroyInactiveTabPane: false },
1103
+ this.state.tabCodes.indexOf('undo') >= 0 ? _react2.default.createElement(
1104
+ _Tab2.default.Item,
1105
+ { title: undoDiv },
1106
+ _react2.default.createElement(
1107
+ HBox,
1108
+ { vAlign: 'center', className: 't-BCf' },
1109
+ _react2.default.createElement(
1110
+ Box,
1111
+ { flex: 1 },
1112
+ _react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_undo_ref', className: 'searchActive' }, this.searchBarProps))
1113
+ )
1114
+ ),
1115
+ _react2.default.createElement(
1116
+ 'div',
1117
+ { className: 'scrollHeight', style: winHeightStyle },
1118
+ _react2.default.createElement(
1119
+ _ScrollList2.default,
1120
+ {
1121
+ url: this.state.undoListUrl,
1122
+ dataType: 'json',
1123
+ pageSize: 10,
1124
+ beforeFetch: this.beforeFetch0.bind(this),
1125
+ processData: this.processData.bind(this),
1126
+ ref: 'transaction_undo_ref',
1127
+ noDataImage: _variables2.default.nodataIcon,
1128
+ currentPageKey: 'page',
1129
+ noDataTip: this.state.noDataTip0
1130
+ },
1131
+ _react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1132
+ )
1133
+ )
1134
+ ) : "",
1135
+ this.state.tabCodes.indexOf('unread') >= 0 ? _react2.default.createElement(
1136
+ _Tab2.default.Item,
1137
+ { title: unreadDiv },
1138
+ _react2.default.createElement(
1139
+ HBox,
1140
+ { vAlign: 'center', className: 't-BCf' },
1141
+ _react2.default.createElement(
1142
+ Box,
1143
+ { flex: 1 },
1144
+ _react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_unread_ref', className: 'searchActive' }, this.searchBarProps))
1145
+ )
1146
+ ),
1147
+ _react2.default.createElement(
1148
+ 'div',
1149
+ { className: 'scrollHeight', style: winHeightStyle },
1150
+ _react2.default.createElement(
1151
+ _ScrollList2.default,
1152
+ {
1153
+ url: this.state.unreadListUrl,
1154
+ dataType: 'json',
1155
+ pageSize: 10,
1156
+ beforeFetch: this.beforeFetch1.bind(this),
1157
+ processData: this.processData.bind(this),
1158
+ ref: 'transaction_unread_ref',
1159
+ noDataImage: _variables2.default.nodataIcon,
1160
+ currentPageKey: 'page',
1161
+ noDataTip: this.state.noDataTip1
1162
+ },
1163
+ _react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1164
+ )
1165
+ )
1166
+ ) : "",
1167
+ this.state.tabCodes.indexOf('done') >= 0 ? _react2.default.createElement(
1168
+ _Tab2.default.Item,
1169
+ { title: "已办" + (this.state.titleCount.done == 0 ? '' : '(' + this.state.titleCount.done + ')') },
1170
+ _react2.default.createElement(
1171
+ HBox,
1172
+ { vAlign: 'center', className: 't-BCf' },
1173
+ _react2.default.createElement(
1174
+ Box,
1175
+ { flex: 1 },
1176
+ _react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_done_ref', className: 'searchActive' }, this.searchBarProps))
1177
+ )
1178
+ ),
1179
+ _react2.default.createElement(
1180
+ 'div',
1181
+ { className: 'scrollHeight', style: winHeightStyle },
1182
+ _react2.default.createElement(
1183
+ _ScrollList2.default,
1184
+ {
1185
+ url: this.state.doneListUrl,
1186
+ dataType: 'json',
1187
+ pageSize: 10,
1188
+ beforeFetch: this.beforeFetch2.bind(this),
1189
+ processData: this.processData.bind(this),
1190
+ ref: 'transaction_done_ref',
1191
+ noDataImage: _variables2.default.nodataIcon,
1192
+ currentPageKey: 'page',
1193
+ noDataTip: this.state.noDataTip2
1194
+ },
1195
+ _react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1196
+ )
1197
+ )
1198
+ ) : "",
1199
+ this.state.tabCodes.indexOf('read') >= 0 ? _react2.default.createElement(
1200
+ _Tab2.default.Item,
1201
+ { title: "已阅" + (this.state.titleCount.read == 0 ? '' : '(' + this.state.titleCount.read + ')') },
1202
+ _react2.default.createElement(
1203
+ HBox,
1204
+ { vAlign: 'center', className: 't-BCf' },
1205
+ _react2.default.createElement(
1206
+ Box,
1207
+ { flex: 1 },
1208
+ _react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_read_ref', className: 'searchActive' }, this.searchBarProps))
1209
+ )
1210
+ ),
1211
+ _react2.default.createElement(
1212
+ 'div',
1213
+ { className: 'scrollHeight', style: winHeightStyle },
1214
+ _react2.default.createElement(
1215
+ _ScrollList2.default,
1216
+ {
1217
+ url: this.state.readListUrl,
1218
+ dataType: 'json',
1219
+ pageSize: 10,
1220
+ beforeFetch: this.beforeFetch3.bind(this),
1221
+ processData: this.processData.bind(this),
1222
+ ref: 'transaction_read_ref',
1223
+ noDataImage: _variables2.default.nodataIcon,
1224
+ currentPageKey: 'page',
1225
+ noDataTip: this.state.noDataTip3
1226
+ },
1227
+ _react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1228
+ )
1229
+ )
1230
+ ) : "",
1231
+ this.state.tabCodes.indexOf('myself') >= 0 ? _react2.default.createElement(
1232
+ _Tab2.default.Item,
1233
+ { title: "我的" + (this.state.titleCount.myself == 0 ? '' : '(' + this.state.titleCount.myself + ')') },
1234
+ _react2.default.createElement(
1235
+ HBox,
1236
+ { vAlign: 'center', className: 't-BCf' },
1237
+ _react2.default.createElement(
1238
+ Box,
1239
+ { flex: 1 },
1240
+ _react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_myself_ref', className: 'searchActive' }, this.searchBarProps))
1241
+ )
1242
+ ),
1243
+ _react2.default.createElement(
1244
+ 'div',
1245
+ { className: 'scrollHeight', style: winHeightStyle },
1246
+ _react2.default.createElement(
1247
+ _ScrollList2.default,
1248
+ {
1249
+ url: this.state.myselfListUrl,
1250
+ dataType: 'json',
1251
+ pageSize: 10,
1252
+ beforeFetch: this.beforeFetch4.bind(this),
1253
+ processData: this.processData.bind(this),
1254
+ ref: 'transaction_myself_ref',
1255
+ noDataImage: _variables2.default.nodataIcon,
1256
+ currentPageKey: 'page',
1257
+ noDataTip: this.state.noDataTip4
1258
+ },
1259
+ _react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1260
+ )
1261
+ )
1262
+ ) : ""
1263
+ )
1264
+ );
1265
+ }
1266
+ }]);
1267
+
1268
+ return PageHome;
1269
+ }(_react2.default.Component);
1270
+
1271
+ exports.default = PageHome;