fmui-base 1.0.0 → 1.0.3
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/poppage/check.js +15 -11
- package/lib/process_list/processList.js +74 -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 }; }
|
package/lib/poppage/check.js
CHANGED
|
@@ -11,23 +11,27 @@ var _react = require('react');
|
|
|
11
11
|
|
|
12
12
|
var _react2 = _interopRequireDefault(_react);
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _Boxs = require('saltui/lib/Boxs');
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _Boxs2 = _interopRequireDefault(_Boxs);
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Button = require('saltui/lib/Button');
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _Button2 = _interopRequireDefault(_Button);
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _Dialog = require('saltui/lib/Dialog');
|
|
23
|
+
|
|
24
|
+
var _Dialog2 = _interopRequireDefault(_Dialog);
|
|
25
|
+
|
|
26
|
+
var _table = require('./table/table');
|
|
23
27
|
|
|
24
28
|
var _table2 = _interopRequireDefault(_table);
|
|
25
29
|
|
|
26
|
-
var _tree = require('./tree');
|
|
30
|
+
var _tree = require('./tree/tree');
|
|
27
31
|
|
|
28
32
|
var _tree2 = _interopRequireDefault(_tree);
|
|
29
33
|
|
|
30
|
-
var _treetable = require('./treetable');
|
|
34
|
+
var _treetable = require('./treetable/treetable');
|
|
31
35
|
|
|
32
36
|
var _treetable2 = _interopRequireDefault(_treetable);
|
|
33
37
|
|
|
@@ -47,8 +51,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
|
47
51
|
|
|
48
52
|
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; }
|
|
49
53
|
|
|
50
|
-
var HBox =
|
|
51
|
-
Box =
|
|
54
|
+
var HBox = _Boxs2.default.HBox,
|
|
55
|
+
Box = _Boxs2.default.Box;
|
|
52
56
|
|
|
53
57
|
var PageHome = function (_React$Component) {
|
|
54
58
|
_inherits(PageHome, _React$Component);
|
|
@@ -255,7 +259,7 @@ var PageHome = function (_React$Component) {
|
|
|
255
259
|
popType = popData.popType;
|
|
256
260
|
// 显示字段
|
|
257
261
|
if (popType == 'treetable') {
|
|
258
|
-
|
|
262
|
+
_Dialog2.default.alert({
|
|
259
263
|
content: '暂不支持树-列表格式的弹出选择!',
|
|
260
264
|
onConfirm: function onConfirm() {
|
|
261
265
|
$("#App").removeAttr("style");
|
|
@@ -489,7 +493,7 @@ var PageHome = function (_React$Component) {
|
|
|
489
493
|
'div',
|
|
490
494
|
{ className: 'section-content' },
|
|
491
495
|
_react2.default.createElement(
|
|
492
|
-
|
|
496
|
+
_Button2.default,
|
|
493
497
|
{ type: 'primary', onClick: function onClick() {
|
|
494
498
|
_this3.popupFuc();
|
|
495
499
|
} },
|
|
@@ -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 = this.props.fromType; //self:本应用,all:全模块
|
|
108
109
|
|
|
109
110
|
var taskId = '';
|
|
110
111
|
var processInstanceId = itemInfo.processInstanceId;
|
|
@@ -117,12 +118,30 @@ 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
|
+
var mobilePath = module;
|
|
131
|
+
if (module.indexOf("_") > 0) {
|
|
132
|
+
var category = module.split("_")[0];
|
|
133
|
+
mobilePath = module.substring(module.indexOf("_") + 1);
|
|
134
|
+
fullUrl = fullUrl.replace(/approve/g, mobilePath).replace("/modules/", "/" + category + "/").split('?_')[0].split('/approval/all')[0];
|
|
135
|
+
} else {
|
|
136
|
+
fullUrl = fullUrl.replace(/approve/g, mobilePath).split('?_')[0].split('/approval/all')[0];
|
|
137
|
+
}
|
|
138
|
+
//alert(fullUrl);
|
|
139
|
+
var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
140
|
+
_url = fullUrl + '/' + _url;
|
|
141
|
+
decodeURI(_url);
|
|
142
|
+
location.href = _url;
|
|
123
143
|
}
|
|
124
|
-
|
|
125
|
-
location.hash = url;
|
|
144
|
+
|
|
126
145
|
// window.salt.router.push({
|
|
127
146
|
// id: 'detailPage',
|
|
128
147
|
// url: url,
|
|
@@ -357,249 +376,6 @@ var ListItem = function (_React$Component) {
|
|
|
357
376
|
|
|
358
377
|
;
|
|
359
378
|
|
|
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
379
|
var transactionIndex = {
|
|
604
380
|
activeTabIndex: ''
|
|
605
381
|
};
|
|
@@ -618,12 +394,15 @@ var PageHome = function (_React$Component2) {
|
|
|
618
394
|
// 禁用iOS弹性事件
|
|
619
395
|
dd.ui.webViewBounce.disable();
|
|
620
396
|
//获取内容显示区域高度
|
|
621
|
-
var
|
|
397
|
+
var hasBottomTabHidden = document.getElementById("hasBottomTab") ? document.getElementById("hasBottomTab").value : "0";
|
|
398
|
+
var hasBottomTab = props.hasBottomTab ? props.hasBottomTab : hasBottomTabHidden;
|
|
622
399
|
var winHeight = getScrollHigh(1, 1, hasBottomTab);
|
|
623
400
|
|
|
624
401
|
var constIndex = document.getElementById("activeTabIndex").value; //常量
|
|
625
402
|
var activeIndex = props.activeIndex ? props.activeIndex : 0;
|
|
626
403
|
var module = props.module ? props.module : "approve";
|
|
404
|
+
var type = props.type ? props.type : "self"; //self:本应用,all:全模块
|
|
405
|
+
var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //self:本应用,all:全模块
|
|
627
406
|
var searchVal = props.search;
|
|
628
407
|
if (constIndex == '') {
|
|
629
408
|
if (!activeIndex) {
|
|
@@ -633,7 +412,27 @@ var PageHome = function (_React$Component2) {
|
|
|
633
412
|
} else {
|
|
634
413
|
activeIndex = constIndex;
|
|
635
414
|
}
|
|
415
|
+
var undoListUrl;
|
|
416
|
+
var unreadListUrl;
|
|
417
|
+
var doneListUrl;
|
|
418
|
+
var readListUrl;
|
|
419
|
+
var myselfListUrl;
|
|
420
|
+
if (type == "self") {
|
|
421
|
+
undoListUrl = _variables2.default.URLS.transaction.undo + "&module=" + module;
|
|
422
|
+
unreadListUrl = _variables2.default.URLS.transaction.unread + "&module=" + module;
|
|
423
|
+
doneListUrl = _variables2.default.URLS.transaction.done + "&module=" + module;
|
|
424
|
+
readListUrl = _variables2.default.URLS.transaction.read + "&module=" + module;
|
|
425
|
+
myselfListUrl = _variables2.default.URLS.transaction.myself + "&module=" + module;
|
|
426
|
+
} else {
|
|
427
|
+
undoListUrl = _variables2.default.URLS.transaction.undo;
|
|
428
|
+
unreadListUrl = _variables2.default.URLS.transaction.unread;
|
|
429
|
+
doneListUrl = _variables2.default.URLS.transaction.done;
|
|
430
|
+
readListUrl = _variables2.default.URLS.transaction.read;
|
|
431
|
+
myselfListUrl = _variables2.default.URLS.transaction.myself;
|
|
432
|
+
}
|
|
636
433
|
_this2.state = {
|
|
434
|
+
tabCodes: tabCodes,
|
|
435
|
+
type: type,
|
|
637
436
|
activeTabIndex: activeIndex, // 待办-0;待阅-1;已办-2;已阅-3;我的-4
|
|
638
437
|
winHeight: winHeight,
|
|
639
438
|
page: 0,
|
|
@@ -656,7 +455,12 @@ var PageHome = function (_React$Component2) {
|
|
|
656
455
|
noDataTip2: '暂无数据',
|
|
657
456
|
noDataTip3: '暂无数据',
|
|
658
457
|
noDataTip4: '暂无数据',
|
|
659
|
-
module: module
|
|
458
|
+
module: module,
|
|
459
|
+
undoListUrl: undoListUrl,
|
|
460
|
+
unreadListUrl: unreadListUrl,
|
|
461
|
+
doneListUrl: doneListUrl,
|
|
462
|
+
readListUrl: readListUrl,
|
|
463
|
+
myselfListUrl: myselfListUrl
|
|
660
464
|
};
|
|
661
465
|
|
|
662
466
|
/**
|
|
@@ -1176,7 +980,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1176
980
|
_react2.default.createElement(
|
|
1177
981
|
_Tab2.default,
|
|
1178
982
|
{ activeKey: this.state.activeTabIndex, onChange: this.handleTabChange.bind(this), destroyInactiveTabPane: false },
|
|
1179
|
-
_react2.default.createElement(
|
|
983
|
+
this.state.tabCodes.indexOf('undo') >= 0 ? _react2.default.createElement(
|
|
1180
984
|
_Tab2.default.Item,
|
|
1181
985
|
{ title: "待办" + (this.state.titleCount.undo == 0 ? '' : '(' + this.state.titleCount.undo + ')') },
|
|
1182
986
|
_react2.default.createElement(
|
|
@@ -1199,7 +1003,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1199
1003
|
_react2.default.createElement(
|
|
1200
1004
|
_ScrollList2.default,
|
|
1201
1005
|
{
|
|
1202
|
-
url:
|
|
1006
|
+
url: this.state.undoListUrl,
|
|
1203
1007
|
dataType: 'json',
|
|
1204
1008
|
pageSize: 10,
|
|
1205
1009
|
beforeFetch: this.beforeFetch0.bind(this),
|
|
@@ -1211,11 +1015,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1211
1015
|
noDataTip: this.state.noDataTip0,
|
|
1212
1016
|
onLoad: this.onLoad.bind(this)
|
|
1213
1017
|
},
|
|
1214
|
-
_react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1018
|
+
_react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1215
1019
|
)
|
|
1216
1020
|
)
|
|
1217
|
-
),
|
|
1218
|
-
_react2.default.createElement(
|
|
1021
|
+
) : "",
|
|
1022
|
+
this.state.tabCodes.indexOf('unread') >= 0 ? _react2.default.createElement(
|
|
1219
1023
|
_Tab2.default.Item,
|
|
1220
1024
|
{ title: "待阅" + (this.state.titleCount.unread == 0 ? '' : '(' + this.state.titleCount.unread + ')') },
|
|
1221
1025
|
_react2.default.createElement(
|
|
@@ -1238,7 +1042,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1238
1042
|
_react2.default.createElement(
|
|
1239
1043
|
_ScrollList2.default,
|
|
1240
1044
|
{
|
|
1241
|
-
url:
|
|
1045
|
+
url: this.state.unreadListUrl,
|
|
1242
1046
|
dataType: 'json',
|
|
1243
1047
|
pageSize: 10,
|
|
1244
1048
|
beforeFetch: this.beforeFetch1.bind(this),
|
|
@@ -1248,11 +1052,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1248
1052
|
currentPageKey: 'page',
|
|
1249
1053
|
noDataTip: this.state.noDataTip1
|
|
1250
1054
|
},
|
|
1251
|
-
_react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1055
|
+
_react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1252
1056
|
)
|
|
1253
1057
|
)
|
|
1254
|
-
),
|
|
1255
|
-
_react2.default.createElement(
|
|
1058
|
+
) : "",
|
|
1059
|
+
this.state.tabCodes.indexOf('done') >= 0 ? _react2.default.createElement(
|
|
1256
1060
|
_Tab2.default.Item,
|
|
1257
1061
|
{ title: "已办" + (this.state.titleCount.done == 0 ? '' : '(' + this.state.titleCount.done + ')') },
|
|
1258
1062
|
_react2.default.createElement(
|
|
@@ -1270,7 +1074,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1270
1074
|
_react2.default.createElement(
|
|
1271
1075
|
_ScrollList2.default,
|
|
1272
1076
|
{
|
|
1273
|
-
url:
|
|
1077
|
+
url: this.state.doneListUrl,
|
|
1274
1078
|
dataType: 'json',
|
|
1275
1079
|
pageSize: 10,
|
|
1276
1080
|
beforeFetch: this.beforeFetch2.bind(this),
|
|
@@ -1280,11 +1084,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1280
1084
|
currentPageKey: 'page',
|
|
1281
1085
|
noDataTip: this.state.noDataTip2
|
|
1282
1086
|
},
|
|
1283
|
-
_react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1087
|
+
_react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1284
1088
|
)
|
|
1285
1089
|
)
|
|
1286
|
-
),
|
|
1287
|
-
_react2.default.createElement(
|
|
1090
|
+
) : "",
|
|
1091
|
+
this.state.tabCodes.indexOf('read') >= 0 ? _react2.default.createElement(
|
|
1288
1092
|
_Tab2.default.Item,
|
|
1289
1093
|
{ title: "已阅" + (this.state.titleCount.read == 0 ? '' : '(' + this.state.titleCount.read + ')') },
|
|
1290
1094
|
_react2.default.createElement(
|
|
@@ -1302,7 +1106,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1302
1106
|
_react2.default.createElement(
|
|
1303
1107
|
_ScrollList2.default,
|
|
1304
1108
|
{
|
|
1305
|
-
url:
|
|
1109
|
+
url: this.state.readListUrl,
|
|
1306
1110
|
dataType: 'json',
|
|
1307
1111
|
pageSize: 10,
|
|
1308
1112
|
beforeFetch: this.beforeFetch3.bind(this),
|
|
@@ -1312,11 +1116,11 @@ var PageHome = function (_React$Component2) {
|
|
|
1312
1116
|
currentPageKey: 'page',
|
|
1313
1117
|
noDataTip: this.state.noDataTip3
|
|
1314
1118
|
},
|
|
1315
|
-
_react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1119
|
+
_react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1316
1120
|
)
|
|
1317
1121
|
)
|
|
1318
|
-
),
|
|
1319
|
-
_react2.default.createElement(
|
|
1122
|
+
) : "",
|
|
1123
|
+
this.state.tabCodes.indexOf('myself') >= 0 ? _react2.default.createElement(
|
|
1320
1124
|
_Tab2.default.Item,
|
|
1321
1125
|
{ title: "我的" + (this.state.titleCount.myself == 0 ? '' : '(' + this.state.titleCount.myself + ')') },
|
|
1322
1126
|
_react2.default.createElement(
|
|
@@ -1334,7 +1138,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1334
1138
|
_react2.default.createElement(
|
|
1335
1139
|
_ScrollList2.default,
|
|
1336
1140
|
{
|
|
1337
|
-
url:
|
|
1141
|
+
url: this.state.myselfListUrl,
|
|
1338
1142
|
dataType: 'json',
|
|
1339
1143
|
pageSize: 10,
|
|
1340
1144
|
beforeFetch: this.beforeFetch4.bind(this),
|
|
@@ -1344,10 +1148,10 @@ var PageHome = function (_React$Component2) {
|
|
|
1344
1148
|
currentPageKey: 'page',
|
|
1345
1149
|
noDataTip: this.state.noDataTip4
|
|
1346
1150
|
},
|
|
1347
|
-
_react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1151
|
+
_react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, updateAbleClick: this.updateAbleClick.bind(this) })
|
|
1348
1152
|
)
|
|
1349
1153
|
)
|
|
1350
|
-
)
|
|
1154
|
+
) : ""
|
|
1351
1155
|
),
|
|
1352
1156
|
_react2.default.createElement(
|
|
1353
1157
|
'div',
|