fmui-base 1.0.0 → 1.0.2
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/lib/db/db.js +16 -0
- package/lib/form/form.js +5 -1
- package/lib/form_info/formInfo.js +5485 -0
- package/lib/form_info/index.js +16 -0
- package/lib/process_list/processList.js +71 -270
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _formInfo = require('./formInfo');
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, 'default', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _interopRequireDefault(_formInfo).default;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -105,6 +105,7 @@ var ListItem = function (_React$Component) {
|
|
|
105
105
|
var param_list_type = this.props.type; // 列表类型 待办-0,待阅-1,
|
|
106
106
|
var processName = itemInfo.processName; // 流程名称
|
|
107
107
|
var module = itemInfo.module; // 流程名称
|
|
108
|
+
var type = itemInfo.type; //self:本应用,all:全模块
|
|
108
109
|
|
|
109
110
|
var taskId = '';
|
|
110
111
|
var processInstanceId = itemInfo.processInstanceId;
|
|
@@ -117,12 +118,27 @@ var ListItem = function (_React$Component) {
|
|
|
117
118
|
// location.hash = 'approval/approval-details/detail-servlet/' + param_list_type + '/1/' + param_processKey + '/' + param_formKey + '/' +param_businessKey +
|
|
118
119
|
// '/' + param_startUserId;
|
|
119
120
|
// alert(searchVal);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
if (type == "self") {
|
|
122
|
+
var url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
123
|
+
if (searchVal != '') {
|
|
124
|
+
url += "/" + searchVal;
|
|
125
|
+
}
|
|
126
|
+
decodeURI(url);
|
|
127
|
+
location.hash = url;
|
|
128
|
+
} else {
|
|
129
|
+
var fullUrl = window.location.href;
|
|
130
|
+
if (module.indexOf("hoa_") >= 0) {
|
|
131
|
+
fullUrl = fullUrl.replace(/approve/g, module).replace("/modules/", "/hoa/").split('?_')[0].split('/approval/all')[0];
|
|
132
|
+
} else {
|
|
133
|
+
fullUrl = fullUrl.replace(/approve/g, module).split('?_')[0].split('/approval/all')[0];
|
|
134
|
+
}
|
|
135
|
+
//alert(fullUrl);
|
|
136
|
+
var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
137
|
+
_url = fullUrl + '/' + _url;
|
|
138
|
+
decodeURI(_url);
|
|
139
|
+
location.href = _url;
|
|
123
140
|
}
|
|
124
|
-
|
|
125
|
-
location.hash = url;
|
|
141
|
+
|
|
126
142
|
// window.salt.router.push({
|
|
127
143
|
// id: 'detailPage',
|
|
128
144
|
// url: url,
|
|
@@ -357,249 +373,6 @@ var ListItem = function (_React$Component) {
|
|
|
357
373
|
|
|
358
374
|
;
|
|
359
375
|
|
|
360
|
-
// const ItemCollapse = React.createClass({
|
|
361
|
-
// getInitialState: function () {//组件相关的状态对象
|
|
362
|
-
// return {
|
|
363
|
-
// show: false,
|
|
364
|
-
// itemList: []
|
|
365
|
-
// }
|
|
366
|
-
// },
|
|
367
|
-
// clickList: function (item) {
|
|
368
|
-
// if (this.props.ableClick) {
|
|
369
|
-
// let processInstanceId = item.processInstanceId;
|
|
370
|
-
// let taskId = item.id;
|
|
371
|
-
// //let handleUserId = item.assignee;
|
|
372
|
-
// let formId = item.formKey;
|
|
373
|
-
// let dataId = item.businessKey;
|
|
374
|
-
// let type = this.props.type;
|
|
375
|
-
// let processKey = this.props.processKey;
|
|
376
|
-
// let category = item.category;
|
|
377
|
-
// let id = "";
|
|
378
|
-
// // if(type == 1){//已办
|
|
379
|
-
// // id = processInstanceId;
|
|
380
|
-
// // }else{
|
|
381
|
-
// id = taskId;
|
|
382
|
-
// //}
|
|
383
|
-
// let url = "process/processDetails/" + id + "/" + formId + "/" + dataId + "/" + type + "/0/" + processInstanceId +"/approve";
|
|
384
|
-
// location.hash = url;
|
|
385
|
-
// } else {
|
|
386
|
-
// this.props.updateAbleClick(true);
|
|
387
|
-
// }
|
|
388
|
-
// },
|
|
389
|
-
// clickList2: function (show) {
|
|
390
|
-
// let t = this;
|
|
391
|
-
// if(!show){
|
|
392
|
-
// DB.FlowModuleAPI.getDoneTaskListByProcessId({
|
|
393
|
-
// processInstanceId:this.props.processInstanceId,
|
|
394
|
-
// module:"approve",
|
|
395
|
-
// })
|
|
396
|
-
// .then((content) => {
|
|
397
|
-
// t.setState({
|
|
398
|
-
// itemList:content.list,
|
|
399
|
-
// show: !show
|
|
400
|
-
// })
|
|
401
|
-
// }).catch((error) => {
|
|
402
|
-
// console.error(error);
|
|
403
|
-
// });
|
|
404
|
-
// }else{
|
|
405
|
-
// t.setState({
|
|
406
|
-
// itemList:[],
|
|
407
|
-
// show: !show
|
|
408
|
-
// })
|
|
409
|
-
// }
|
|
410
|
-
// },
|
|
411
|
-
// render: function () {
|
|
412
|
-
// let checkIsNotComplete = function (data) { //检查是否办理完成
|
|
413
|
-
// if (data.type == 0) { //待办
|
|
414
|
-
// return true;
|
|
415
|
-
// } else if (data.type == 1) { //待阅
|
|
416
|
-
// if(data.status == 2){
|
|
417
|
-
// return false;
|
|
418
|
-
// }else{
|
|
419
|
-
// return true;
|
|
420
|
-
// }
|
|
421
|
-
// } else if (data.type == 2) { //已办
|
|
422
|
-
// if (typeof (data.processEndTime) == 'undefined' || data.processEndTime == null) {
|
|
423
|
-
// if(typeof (data.curStepName) == 'undefined' || data.curStepName == null){
|
|
424
|
-
// return false;
|
|
425
|
-
// }
|
|
426
|
-
// return true;
|
|
427
|
-
// } else {
|
|
428
|
-
// return false;
|
|
429
|
-
// }
|
|
430
|
-
// } else if (data.type == 3) { //已阅
|
|
431
|
-
// if (data.status == 2) {
|
|
432
|
-
// return false;
|
|
433
|
-
// } else {
|
|
434
|
-
// return true;
|
|
435
|
-
// }
|
|
436
|
-
// } else { //我的
|
|
437
|
-
// if (typeof (data.finishedTime) == 'undefined' || data.finishedTime == null) {
|
|
438
|
-
// return true;
|
|
439
|
-
// } else {
|
|
440
|
-
// return false;
|
|
441
|
-
// }
|
|
442
|
-
// }
|
|
443
|
-
// }
|
|
444
|
-
|
|
445
|
-
// //主列表
|
|
446
|
-
// let comleteName = function (data) {
|
|
447
|
-
// if (data.type == 0) { //待办
|
|
448
|
-
// return data.name;
|
|
449
|
-
// } else if (data.type == 1) { //待阅
|
|
450
|
-
// return data.name;
|
|
451
|
-
// } else if (data.type == 2) { //已办
|
|
452
|
-
// if(data.status=='2') {
|
|
453
|
-
// return "结束";
|
|
454
|
-
// }else if(data.status=='3') {
|
|
455
|
-
// return "作废";
|
|
456
|
-
// }else if(data.status=='4') {
|
|
457
|
-
// return "取消";
|
|
458
|
-
// }
|
|
459
|
-
// return data.curStepName;
|
|
460
|
-
// } else if (data.type == 3) { //已阅
|
|
461
|
-
// return data.name;
|
|
462
|
-
// } else { //我的
|
|
463
|
-
// if(data.status=='2') {
|
|
464
|
-
// return "结束";
|
|
465
|
-
// }else if(data.status=='3') {
|
|
466
|
-
// return "作废";
|
|
467
|
-
// }else if(data.status=='4') {
|
|
468
|
-
// return "取消";
|
|
469
|
-
// }
|
|
470
|
-
// return data.curStepName;
|
|
471
|
-
// }
|
|
472
|
-
// }
|
|
473
|
-
|
|
474
|
-
// //子列表
|
|
475
|
-
// let comleteName2 = function (data,type) {
|
|
476
|
-
// if (type == 0) { //待办
|
|
477
|
-
// return data.name;
|
|
478
|
-
// } else if (type == 1) { //待阅
|
|
479
|
-
// return data.name;
|
|
480
|
-
// } else if (type == 2) { //已办
|
|
481
|
-
// return data.curStepName;
|
|
482
|
-
// } else if (type == 3) { //已阅
|
|
483
|
-
// return data.name;
|
|
484
|
-
// } else { //我的
|
|
485
|
-
// return data.curStepName;
|
|
486
|
-
// }
|
|
487
|
-
// }
|
|
488
|
-
// //主列表
|
|
489
|
-
// let assigneeName = function (data) {
|
|
490
|
-
// if (data.type == 0) { //待办
|
|
491
|
-
// return data.startUserName;
|
|
492
|
-
// } else if (data.type == 1) { //待阅
|
|
493
|
-
// return data.startUserName;
|
|
494
|
-
// } else if (data.type == 2) { //已办
|
|
495
|
-
// return data.curUserName;
|
|
496
|
-
// } else if (data.type == 3) { //已阅
|
|
497
|
-
// return data.assigneeName;
|
|
498
|
-
// } else { //我的
|
|
499
|
-
// return data.curUserName;
|
|
500
|
-
// }
|
|
501
|
-
// }
|
|
502
|
-
|
|
503
|
-
// //主列表
|
|
504
|
-
// let formatTime = function (data) {
|
|
505
|
-
// if (data.type == 0) { //待办
|
|
506
|
-
// return data.createTime;
|
|
507
|
-
// } else if (data.type == 1) { //待阅
|
|
508
|
-
// return data.createTime;
|
|
509
|
-
// } else if (data.type == 2) { //已办
|
|
510
|
-
// return data.createTime;
|
|
511
|
-
// } else if (data.type == 3) { //已阅
|
|
512
|
-
// return data.endTime;
|
|
513
|
-
// } else { //我的
|
|
514
|
-
// return data.createTime;
|
|
515
|
-
// }
|
|
516
|
-
// }
|
|
517
|
-
|
|
518
|
-
// //子列表
|
|
519
|
-
// let formatTime2 = function (data,type) {
|
|
520
|
-
// if (type == 0) { //待办
|
|
521
|
-
// return data.createTime;
|
|
522
|
-
// } else if (type == 1) { //待阅
|
|
523
|
-
// return data.createTime;
|
|
524
|
-
// } else if (type == 2) { //已办
|
|
525
|
-
// return data.endTime;
|
|
526
|
-
// } else if (type == 3) { //已阅
|
|
527
|
-
// return data.endTime;
|
|
528
|
-
// } else { //我的
|
|
529
|
-
// return data.createTime;
|
|
530
|
-
// }
|
|
531
|
-
// }
|
|
532
|
-
|
|
533
|
-
// //子列表
|
|
534
|
-
// let formatAction = function (data) {
|
|
535
|
-
// if (data.action == 'submit') {
|
|
536
|
-
// return "提交";;
|
|
537
|
-
// } else if (data.action == 'transfer') {
|
|
538
|
-
// return "转交";
|
|
539
|
-
// } else if (data.action == 'back') {
|
|
540
|
-
// return "驳回";
|
|
541
|
-
// } else if (data.action == 'jump') {
|
|
542
|
-
// return "跳转";
|
|
543
|
-
// } else if (data.action == 'end') {
|
|
544
|
-
// return "结束";
|
|
545
|
-
// } else if (data.action == 'cancel') {
|
|
546
|
-
// return "取消";
|
|
547
|
-
// } else if(data.action == 'finish'){
|
|
548
|
-
// return "完成";
|
|
549
|
-
// }
|
|
550
|
-
// }
|
|
551
|
-
|
|
552
|
-
// return <div className="t-BCf dd-bottom-border">
|
|
553
|
-
// <div className="dd-t-list-wrap text-omit" >
|
|
554
|
-
// <HBox className="t-BCf t-P16 t-PR12 " onClick={this.clickList2.bind(this)}>
|
|
555
|
-
// <Box flex={1}>
|
|
556
|
-
// <div className="t-omit t-FC3 t-FS16 t-LH1_3 t-MR8">
|
|
557
|
-
// <i className="t-list-title t-omit t-LH1_4"></i>
|
|
558
|
-
// {this.props.title}
|
|
559
|
-
// </div>
|
|
560
|
-
// <HBox className="t-FCddfontblue-40 t-LH1_3 t-PT8 t-FS14" vAlign="center">
|
|
561
|
-
// <HBox vAlign="center">
|
|
562
|
-
// <Box><i className="iconfont icon-time t-MR4 t-FS14"></i></Box>
|
|
563
|
-
// <Box><span className="t-omit t-MR26">{formatTime(this.props)}</span></Box>
|
|
564
|
-
// </HBox>
|
|
565
|
-
// <HBox flex={1} vAlign="center">
|
|
566
|
-
// <Box><span className={checkIsNotComplete(this.props)?'t-list-text t-FCoranger t-omit t-MR4':'t-list-text t-FCgreen t-omit t-MR4'}>{checkIsNotComplete(this.props)?comleteName(this.props)+' '+assigneeName(this.props):comleteName(this.props)}</span></Box>
|
|
567
|
-
// </HBox>
|
|
568
|
-
// </HBox>
|
|
569
|
-
// </Box>
|
|
570
|
-
// <Box>
|
|
571
|
-
// <AngleRight width={20} fill="#ccc" className="demo-t-list-arrow" />
|
|
572
|
-
// </Box>
|
|
573
|
-
// </HBox>
|
|
574
|
-
// </div>
|
|
575
|
-
// <div className={this.state.shows ? "t-DN" : "t-DN"}>
|
|
576
|
-
// {
|
|
577
|
-
// this.state.itemList.map(function (item, i) {
|
|
578
|
-
// return (
|
|
579
|
-
// <div className="dd-t-list-wrap t-PL0 t-ML67 dd-top-border" onClick={this.clickList.bind(this,item)}>
|
|
580
|
-
// <HBox flex={1} vAlign="center">
|
|
581
|
-
// <Box className="dd-t-list-text-content" flex={1}>
|
|
582
|
-
// <p className="dd-t-list-title t-LH1_4 t-omit">{item.title}</p>
|
|
583
|
-
// <div className="dd-t-list-time t-FBAC t-FBH">
|
|
584
|
-
// <i className="iconfont icon-time t-FCc t-MR4 t-FS14"></i>
|
|
585
|
-
// <span className="t-list-text t-omit t-MR12">{formatTime2(item,this.props.type)}</span>
|
|
586
|
-
// <i className="iconfont icon-approval t-MR4" style={{ fontSize: 14 }}></i>
|
|
587
|
-
// <span className="t-list-text t-omit t-MR4"> {comleteName2(item,this.props.type)}</span>
|
|
588
|
-
// <span className="t-list-text t-MR4 t-omit">{formatAction(item)}</span>
|
|
589
|
-
// </div>
|
|
590
|
-
// </Box>
|
|
591
|
-
// </HBox>
|
|
592
|
-
|
|
593
|
-
// </div>
|
|
594
|
-
// )
|
|
595
|
-
// }.bind(this))
|
|
596
|
-
// }
|
|
597
|
-
// </div>
|
|
598
|
-
// </div>;
|
|
599
|
-
// }
|
|
600
|
-
// });
|
|
601
|
-
|
|
602
|
-
|
|
603
376
|
var transactionIndex = {
|
|
604
377
|
activeTabIndex: ''
|
|
605
378
|
};
|
|
@@ -618,12 +391,15 @@ var PageHome = function (_React$Component2) {
|
|
|
618
391
|
// 禁用iOS弹性事件
|
|
619
392
|
dd.ui.webViewBounce.disable();
|
|
620
393
|
//获取内容显示区域高度
|
|
621
|
-
var
|
|
394
|
+
var hasBottomTabHidden = document.getElementById("hasBottomTab") ? document.getElementById("hasBottomTab").value : "0";
|
|
395
|
+
var hasBottomTab = props.hasBottomTab ? props.hasBottomTab : hasBottomTabHidden;
|
|
622
396
|
var winHeight = getScrollHigh(1, 1, hasBottomTab);
|
|
623
397
|
|
|
624
398
|
var constIndex = document.getElementById("activeTabIndex").value; //常量
|
|
625
399
|
var activeIndex = props.activeIndex ? props.activeIndex : 0;
|
|
626
400
|
var module = props.module ? props.module : "approve";
|
|
401
|
+
var type = props.type ? props.type : "self"; //self:本应用,all:全模块
|
|
402
|
+
var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //self:本应用,all:全模块
|
|
627
403
|
var searchVal = props.search;
|
|
628
404
|
if (constIndex == '') {
|
|
629
405
|
if (!activeIndex) {
|
|
@@ -633,7 +409,27 @@ var PageHome = function (_React$Component2) {
|
|
|
633
409
|
} else {
|
|
634
410
|
activeIndex = constIndex;
|
|
635
411
|
}
|
|
412
|
+
var undoListUrl;
|
|
413
|
+
var unreadListUrl;
|
|
414
|
+
var doneListUrl;
|
|
415
|
+
var readListUrl;
|
|
416
|
+
var myselfListUrl;
|
|
417
|
+
if (type == "self") {
|
|
418
|
+
undoListUrl = _variables2.default.URLS.transaction.undo + "&module=" + module;
|
|
419
|
+
unreadListUrl = _variables2.default.URLS.transaction.unread + "&module=" + module;
|
|
420
|
+
doneListUrl = _variables2.default.URLS.transaction.done + "&module=" + module;
|
|
421
|
+
readListUrl = _variables2.default.URLS.transaction.read + "&module=" + module;
|
|
422
|
+
myselfListUrl = _variables2.default.URLS.transaction.myself + "&module=" + module;
|
|
423
|
+
} else {
|
|
424
|
+
undoListUrl = _variables2.default.URLS.transaction.undo;
|
|
425
|
+
unreadListUrl = _variables2.default.URLS.transaction.unread;
|
|
426
|
+
doneListUrl = _variables2.default.URLS.transaction.done;
|
|
427
|
+
readListUrl = _variables2.default.URLS.transaction.read;
|
|
428
|
+
myselfListUrl = _variables2.default.URLS.transaction.myself;
|
|
429
|
+
}
|
|
636
430
|
_this2.state = {
|
|
431
|
+
tabCodes: tabCodes,
|
|
432
|
+
type: type,
|
|
637
433
|
activeTabIndex: activeIndex, // 待办-0;待阅-1;已办-2;已阅-3;我的-4
|
|
638
434
|
winHeight: winHeight,
|
|
639
435
|
page: 0,
|
|
@@ -656,7 +452,12 @@ var PageHome = function (_React$Component2) {
|
|
|
656
452
|
noDataTip2: '暂无数据',
|
|
657
453
|
noDataTip3: '暂无数据',
|
|
658
454
|
noDataTip4: '暂无数据',
|
|
659
|
-
module: module
|
|
455
|
+
module: module,
|
|
456
|
+
undoListUrl: undoListUrl,
|
|
457
|
+
unreadListUrl: unreadListUrl,
|
|
458
|
+
doneListUrl: doneListUrl,
|
|
459
|
+
readListUrl: readListUrl,
|
|
460
|
+
myselfListUrl: myselfListUrl
|
|
660
461
|
};
|
|
661
462
|
|
|
662
463
|
/**
|
|
@@ -1176,7 +977,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1176
977
|
_react2.default.createElement(
|
|
1177
978
|
_Tab2.default,
|
|
1178
979
|
{ activeKey: this.state.activeTabIndex, onChange: this.handleTabChange.bind(this), destroyInactiveTabPane: false },
|
|
1179
|
-
_react2.default.createElement(
|
|
980
|
+
this.state.tabCodes.indexOf('undo') >= 0 ? _react2.default.createElement(
|
|
1180
981
|
_Tab2.default.Item,
|
|
1181
982
|
{ title: "待办" + (this.state.titleCount.undo == 0 ? '' : '(' + this.state.titleCount.undo + ')') },
|
|
1182
983
|
_react2.default.createElement(
|
|
@@ -1199,7 +1000,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1199
1000
|
_react2.default.createElement(
|
|
1200
1001
|
_ScrollList2.default,
|
|
1201
1002
|
{
|
|
1202
|
-
url:
|
|
1003
|
+
url: this.state.undoListUrl,
|
|
1203
1004
|
dataType: 'json',
|
|
1204
1005
|
pageSize: 10,
|
|
1205
1006
|
beforeFetch: this.beforeFetch0.bind(this),
|
|
@@ -1211,11 +1012,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1211
1012
|
noDataTip: this.state.noDataTip0,
|
|
1212
1013
|
onLoad: this.onLoad.bind(this)
|
|
1213
1014
|
},
|
|
1214
|
-
_react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1015
|
+
_react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1215
1016
|
)
|
|
1216
1017
|
)
|
|
1217
|
-
),
|
|
1218
|
-
_react2.default.createElement(
|
|
1018
|
+
) : "",
|
|
1019
|
+
this.state.tabCodes.indexOf('unread') >= 0 ? _react2.default.createElement(
|
|
1219
1020
|
_Tab2.default.Item,
|
|
1220
1021
|
{ title: "待阅" + (this.state.titleCount.unread == 0 ? '' : '(' + this.state.titleCount.unread + ')') },
|
|
1221
1022
|
_react2.default.createElement(
|
|
@@ -1238,7 +1039,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1238
1039
|
_react2.default.createElement(
|
|
1239
1040
|
_ScrollList2.default,
|
|
1240
1041
|
{
|
|
1241
|
-
url:
|
|
1042
|
+
url: this.state.unreadListUrl,
|
|
1242
1043
|
dataType: 'json',
|
|
1243
1044
|
pageSize: 10,
|
|
1244
1045
|
beforeFetch: this.beforeFetch1.bind(this),
|
|
@@ -1248,11 +1049,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1248
1049
|
currentPageKey: 'page',
|
|
1249
1050
|
noDataTip: this.state.noDataTip1
|
|
1250
1051
|
},
|
|
1251
|
-
_react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1052
|
+
_react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1252
1053
|
)
|
|
1253
1054
|
)
|
|
1254
|
-
),
|
|
1255
|
-
_react2.default.createElement(
|
|
1055
|
+
) : "",
|
|
1056
|
+
this.state.tabCodes.indexOf('done') >= 0 ? _react2.default.createElement(
|
|
1256
1057
|
_Tab2.default.Item,
|
|
1257
1058
|
{ title: "已办" + (this.state.titleCount.done == 0 ? '' : '(' + this.state.titleCount.done + ')') },
|
|
1258
1059
|
_react2.default.createElement(
|
|
@@ -1270,7 +1071,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1270
1071
|
_react2.default.createElement(
|
|
1271
1072
|
_ScrollList2.default,
|
|
1272
1073
|
{
|
|
1273
|
-
url:
|
|
1074
|
+
url: this.state.doneListUrl,
|
|
1274
1075
|
dataType: 'json',
|
|
1275
1076
|
pageSize: 10,
|
|
1276
1077
|
beforeFetch: this.beforeFetch2.bind(this),
|
|
@@ -1280,11 +1081,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1280
1081
|
currentPageKey: 'page',
|
|
1281
1082
|
noDataTip: this.state.noDataTip2
|
|
1282
1083
|
},
|
|
1283
|
-
_react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1084
|
+
_react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1284
1085
|
)
|
|
1285
1086
|
)
|
|
1286
|
-
),
|
|
1287
|
-
_react2.default.createElement(
|
|
1087
|
+
) : "",
|
|
1088
|
+
this.state.tabCodes.indexOf('read') >= 0 ? _react2.default.createElement(
|
|
1288
1089
|
_Tab2.default.Item,
|
|
1289
1090
|
{ title: "已阅" + (this.state.titleCount.read == 0 ? '' : '(' + this.state.titleCount.read + ')') },
|
|
1290
1091
|
_react2.default.createElement(
|
|
@@ -1302,7 +1103,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1302
1103
|
_react2.default.createElement(
|
|
1303
1104
|
_ScrollList2.default,
|
|
1304
1105
|
{
|
|
1305
|
-
url:
|
|
1106
|
+
url: this.state.readListUrl,
|
|
1306
1107
|
dataType: 'json',
|
|
1307
1108
|
pageSize: 10,
|
|
1308
1109
|
beforeFetch: this.beforeFetch3.bind(this),
|
|
@@ -1312,11 +1113,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1312
1113
|
currentPageKey: 'page',
|
|
1313
1114
|
noDataTip: this.state.noDataTip3
|
|
1314
1115
|
},
|
|
1315
|
-
_react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1116
|
+
_react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1316
1117
|
)
|
|
1317
1118
|
)
|
|
1318
|
-
),
|
|
1319
|
-
_react2.default.createElement(
|
|
1119
|
+
) : "",
|
|
1120
|
+
this.state.tabCodes.indexOf('myself') >= 0 ? _react2.default.createElement(
|
|
1320
1121
|
_Tab2.default.Item,
|
|
1321
1122
|
{ title: "我的" + (this.state.titleCount.myself == 0 ? '' : '(' + this.state.titleCount.myself + ')') },
|
|
1322
1123
|
_react2.default.createElement(
|
|
@@ -1334,7 +1135,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1334
1135
|
_react2.default.createElement(
|
|
1335
1136
|
_ScrollList2.default,
|
|
1336
1137
|
{
|
|
1337
|
-
url:
|
|
1138
|
+
url: this.state.myselfListUrl,
|
|
1338
1139
|
dataType: 'json',
|
|
1339
1140
|
pageSize: 10,
|
|
1340
1141
|
beforeFetch: this.beforeFetch4.bind(this),
|
|
@@ -1344,10 +1145,10 @@ var PageHome = function (_React$Component2) {
|
|
|
1344
1145
|
currentPageKey: 'page',
|
|
1345
1146
|
noDataTip: this.state.noDataTip4
|
|
1346
1147
|
},
|
|
1347
|
-
_react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1148
|
+
_react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1348
1149
|
)
|
|
1349
1150
|
)
|
|
1350
|
-
)
|
|
1151
|
+
) : ""
|
|
1351
1152
|
),
|
|
1352
1153
|
_react2.default.createElement(
|
|
1353
1154
|
'div',
|