fmui-base 2.0.95 → 2.0.96
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 +1 -0
- package/lib/process_list/processList.js +197 -11
- package/package.json +1 -1
- package/lib/.DS_Store +0 -0
package/README.md
CHANGED
|
@@ -41,6 +41,10 @@ var _Popup = require('saltui/lib/Popup');
|
|
|
41
41
|
|
|
42
42
|
var _Popup2 = _interopRequireDefault(_Popup);
|
|
43
43
|
|
|
44
|
+
var _Filter = require('saltui/lib/Filter');
|
|
45
|
+
|
|
46
|
+
var _Filter2 = _interopRequireDefault(_Filter);
|
|
47
|
+
|
|
44
48
|
var _AngleRight = require('salt-icon/lib/AngleRight');
|
|
45
49
|
|
|
46
50
|
var _AngleRight2 = _interopRequireDefault(_AngleRight);
|
|
@@ -497,7 +501,13 @@ var PageHome = function (_React$Component2) {
|
|
|
497
501
|
readListUrl: readListUrl,
|
|
498
502
|
myselfListUrl: myselfListUrl,
|
|
499
503
|
hasBatch: hasBatch,
|
|
500
|
-
categoryList: []
|
|
504
|
+
categoryList: [],
|
|
505
|
+
categoryListTitle: '全部分类',
|
|
506
|
+
category0: [],
|
|
507
|
+
category1: [],
|
|
508
|
+
category2: [],
|
|
509
|
+
category3: [],
|
|
510
|
+
category4: []
|
|
501
511
|
};
|
|
502
512
|
_this2.getTransactionTitleCount(module, "undo,unread");
|
|
503
513
|
_this2.getCategoryListByModule(module);
|
|
@@ -635,11 +645,17 @@ var PageHome = function (_React$Component2) {
|
|
|
635
645
|
data.corpId = corpid;
|
|
636
646
|
// data.code = ;
|
|
637
647
|
var search = from.title;
|
|
648
|
+
var cate = from.category;
|
|
638
649
|
if (search == undefined) {
|
|
639
650
|
data.title = this.state.search0;
|
|
640
651
|
} else {
|
|
641
652
|
data.title = from.title;
|
|
642
653
|
}
|
|
654
|
+
if (cate == undefined) {
|
|
655
|
+
data.category = this.state.category0;
|
|
656
|
+
} else {
|
|
657
|
+
data.category = from.category;
|
|
658
|
+
}
|
|
643
659
|
return data;
|
|
644
660
|
}
|
|
645
661
|
}, {
|
|
@@ -652,11 +668,17 @@ var PageHome = function (_React$Component2) {
|
|
|
652
668
|
data.corpId = corpid;
|
|
653
669
|
// data.code = ;
|
|
654
670
|
var search = from.title;
|
|
671
|
+
var cate = from.category;
|
|
655
672
|
if (search == undefined) {
|
|
656
673
|
data.title = this.state.search1;
|
|
657
674
|
} else {
|
|
658
675
|
data.title = from.title;
|
|
659
676
|
}
|
|
677
|
+
if (cate == undefined) {
|
|
678
|
+
data.category = this.state.category1;
|
|
679
|
+
} else {
|
|
680
|
+
data.category = from.category;
|
|
681
|
+
}
|
|
660
682
|
return data;
|
|
661
683
|
}
|
|
662
684
|
}, {
|
|
@@ -669,11 +691,17 @@ var PageHome = function (_React$Component2) {
|
|
|
669
691
|
data.corpId = corpid;
|
|
670
692
|
// data.code = ;
|
|
671
693
|
var search = from.title;
|
|
694
|
+
var cate = from.category;
|
|
672
695
|
if (search == undefined) {
|
|
673
696
|
data.title = this.state.search2;
|
|
674
697
|
} else {
|
|
675
698
|
data.title = from.title;
|
|
676
699
|
}
|
|
700
|
+
if (cate == undefined) {
|
|
701
|
+
data.category = this.state.category2;
|
|
702
|
+
} else {
|
|
703
|
+
data.category = from.category;
|
|
704
|
+
}
|
|
677
705
|
return data;
|
|
678
706
|
}
|
|
679
707
|
}, {
|
|
@@ -686,11 +714,17 @@ var PageHome = function (_React$Component2) {
|
|
|
686
714
|
data.corpId = corpid;
|
|
687
715
|
// data.code = ;
|
|
688
716
|
var search = from.title;
|
|
717
|
+
var cate = from.category;
|
|
689
718
|
if (search == undefined) {
|
|
690
719
|
data.title = this.state.search3;
|
|
691
720
|
} else {
|
|
692
721
|
data.title = from.title;
|
|
693
722
|
}
|
|
723
|
+
if (cate == undefined) {
|
|
724
|
+
data.category = this.state.category4;
|
|
725
|
+
} else {
|
|
726
|
+
data.category = from.category;
|
|
727
|
+
}
|
|
694
728
|
return data;
|
|
695
729
|
}
|
|
696
730
|
}, {
|
|
@@ -703,11 +737,17 @@ var PageHome = function (_React$Component2) {
|
|
|
703
737
|
data.corpId = corpid;
|
|
704
738
|
// data.code = ;
|
|
705
739
|
var search = from.title;
|
|
740
|
+
var cate = from.category;
|
|
706
741
|
if (search == undefined) {
|
|
707
742
|
data.title = this.state.search4;
|
|
708
743
|
} else {
|
|
709
744
|
data.title = from.title;
|
|
710
745
|
}
|
|
746
|
+
if (cate == undefined) {
|
|
747
|
+
data.category = this.state.category4;
|
|
748
|
+
} else {
|
|
749
|
+
data.category = from.category;
|
|
750
|
+
}
|
|
711
751
|
return data;
|
|
712
752
|
}
|
|
713
753
|
|
|
@@ -754,7 +794,8 @@ var PageHome = function (_React$Component2) {
|
|
|
754
794
|
noDataTip0: noDataTip
|
|
755
795
|
});
|
|
756
796
|
var param = {
|
|
757
|
-
title: searchValue
|
|
797
|
+
title: searchValue,
|
|
798
|
+
category: this.state.category0
|
|
758
799
|
};
|
|
759
800
|
this.refs.transaction_undo_ref.fetchData(param);
|
|
760
801
|
} else if (this.state.activeTabIndex == 1) {
|
|
@@ -763,7 +804,8 @@ var PageHome = function (_React$Component2) {
|
|
|
763
804
|
noDataTip1: noDataTip
|
|
764
805
|
});
|
|
765
806
|
var _param = {
|
|
766
|
-
title: searchValue
|
|
807
|
+
title: searchValue,
|
|
808
|
+
category: this.state.category1
|
|
767
809
|
};
|
|
768
810
|
this.refs.transaction_unread_ref.fetchData(_param);
|
|
769
811
|
} else if (this.state.activeTabIndex == 2) {
|
|
@@ -772,7 +814,8 @@ var PageHome = function (_React$Component2) {
|
|
|
772
814
|
noDataTip2: noDataTip
|
|
773
815
|
});
|
|
774
816
|
var _param2 = {
|
|
775
|
-
title: searchValue
|
|
817
|
+
title: searchValue,
|
|
818
|
+
category: this.state.category2
|
|
776
819
|
};
|
|
777
820
|
this.refs.transaction_done_ref.fetchData(_param2);
|
|
778
821
|
} else if (this.state.activeTabIndex == 3) {
|
|
@@ -781,7 +824,8 @@ var PageHome = function (_React$Component2) {
|
|
|
781
824
|
noDataTip3: noDataTip
|
|
782
825
|
});
|
|
783
826
|
var _param3 = {
|
|
784
|
-
title: searchValue
|
|
827
|
+
title: searchValue,
|
|
828
|
+
category: this.state.category3
|
|
785
829
|
};
|
|
786
830
|
this.refs.transaction_read_ref.fetchData(_param3);
|
|
787
831
|
} else if (this.state.activeTabIndex == 4) {
|
|
@@ -790,7 +834,8 @@ var PageHome = function (_React$Component2) {
|
|
|
790
834
|
noDataTip4: noDataTip
|
|
791
835
|
});
|
|
792
836
|
var _param4 = {
|
|
793
|
-
title: searchValue
|
|
837
|
+
title: searchValue,
|
|
838
|
+
category: this.state.category4
|
|
794
839
|
};
|
|
795
840
|
this.refs.transaction_myself_ref.fetchData(_param4);
|
|
796
841
|
}
|
|
@@ -820,7 +865,8 @@ var PageHome = function (_React$Component2) {
|
|
|
820
865
|
$('.empty-content').hide();
|
|
821
866
|
if (this.state.activeTabIndex == 0) {
|
|
822
867
|
this.refs.transaction_undo_ref.fetchData({
|
|
823
|
-
title: searchValue
|
|
868
|
+
title: searchValue,
|
|
869
|
+
category: this.state.category0
|
|
824
870
|
});
|
|
825
871
|
this.setState({
|
|
826
872
|
search0: '',
|
|
@@ -828,7 +874,8 @@ var PageHome = function (_React$Component2) {
|
|
|
828
874
|
});
|
|
829
875
|
} else if (this.state.activeTabIndex == 1) {
|
|
830
876
|
this.refs.transaction_unread_ref.fetchData({
|
|
831
|
-
title: searchValue
|
|
877
|
+
title: searchValue,
|
|
878
|
+
category: this.state.category1
|
|
832
879
|
});
|
|
833
880
|
this.setState({
|
|
834
881
|
search1: '',
|
|
@@ -836,7 +883,8 @@ var PageHome = function (_React$Component2) {
|
|
|
836
883
|
});
|
|
837
884
|
} else if (this.state.activeTabIndex == 2) {
|
|
838
885
|
this.refs.transaction_done_ref.fetchData({
|
|
839
|
-
title: searchValue
|
|
886
|
+
title: searchValue,
|
|
887
|
+
category: this.state.category2
|
|
840
888
|
});
|
|
841
889
|
this.setState({
|
|
842
890
|
search2: '',
|
|
@@ -844,7 +892,8 @@ var PageHome = function (_React$Component2) {
|
|
|
844
892
|
});
|
|
845
893
|
} else if (this.state.activeTabIndex == 3) {
|
|
846
894
|
this.refs.transaction_read_ref.fetchData({
|
|
847
|
-
title: searchValue
|
|
895
|
+
title: searchValue,
|
|
896
|
+
category: this.state.category3
|
|
848
897
|
});
|
|
849
898
|
this.setState({
|
|
850
899
|
search3: '',
|
|
@@ -852,7 +901,8 @@ var PageHome = function (_React$Component2) {
|
|
|
852
901
|
});
|
|
853
902
|
} else if (this.state.activeTabIndex == 4) {
|
|
854
903
|
this.refs.transaction_myself_ref.fetchData({
|
|
855
|
-
title: searchValue
|
|
904
|
+
title: searchValue,
|
|
905
|
+
category: this.state.category4
|
|
856
906
|
});
|
|
857
907
|
this.setState({
|
|
858
908
|
search4: '',
|
|
@@ -1071,9 +1121,80 @@ var PageHome = function (_React$Component2) {
|
|
|
1071
1121
|
});
|
|
1072
1122
|
}
|
|
1073
1123
|
}
|
|
1124
|
+
}, {
|
|
1125
|
+
key: 'filterConfirm',
|
|
1126
|
+
value: function filterConfirm(data) {
|
|
1127
|
+
var noDataTip = '暂无搜索结果';
|
|
1128
|
+
var category = [];
|
|
1129
|
+
if (data.sort) {
|
|
1130
|
+
data.sort.map(function (item) {
|
|
1131
|
+
category.push(item.value);
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
if (this.state.activeTabIndex == 0) {
|
|
1136
|
+
this.setState({
|
|
1137
|
+
category0: category.join(','),
|
|
1138
|
+
noDataTip1: noDataTip
|
|
1139
|
+
// categoryListTitle: category.join(',') || '全部分类'
|
|
1140
|
+
});
|
|
1141
|
+
|
|
1142
|
+
var param = {
|
|
1143
|
+
title: this.state.search0,
|
|
1144
|
+
category: category.join(',')
|
|
1145
|
+
};
|
|
1146
|
+
this.refs.transaction_undo_ref.fetchData(param);
|
|
1147
|
+
} else if (this.state.activeTabIndex == 1) {
|
|
1148
|
+
this.setState({
|
|
1149
|
+
category1: category.join(','),
|
|
1150
|
+
noDataTip1: noDataTip
|
|
1151
|
+
// categoryListTitle: category.join(',') || '全部分类'
|
|
1152
|
+
});
|
|
1153
|
+
var _param5 = {
|
|
1154
|
+
title: this.state.search1,
|
|
1155
|
+
category: category.join(',')
|
|
1156
|
+
};
|
|
1157
|
+
this.refs.transaction_unread_ref.fetchData(_param5);
|
|
1158
|
+
} else if (this.state.activeTabIndex == 2) {
|
|
1159
|
+
this.setState({
|
|
1160
|
+
category2: category.join(','),
|
|
1161
|
+
noDataTip1: noDataTip
|
|
1162
|
+
// categoryListTitle: category.join(',') || '全部分类'
|
|
1163
|
+
});
|
|
1164
|
+
var _param6 = {
|
|
1165
|
+
title: this.state.search2,
|
|
1166
|
+
category: category.join(',')
|
|
1167
|
+
};
|
|
1168
|
+
this.refs.transaction_done_ref.fetchData(_param6);
|
|
1169
|
+
} else if (this.state.activeTabIndex == 3) {
|
|
1170
|
+
this.setState({
|
|
1171
|
+
category3: category.join(','),
|
|
1172
|
+
noDataTip1: noDataTip
|
|
1173
|
+
// categoryListTitle: category.join(',') || '全部分类'
|
|
1174
|
+
});
|
|
1175
|
+
var _param7 = {
|
|
1176
|
+
title: this.state.search3,
|
|
1177
|
+
category: category.join(',')
|
|
1178
|
+
};
|
|
1179
|
+
this.refs.transaction_read_ref.fetchData(_param7);
|
|
1180
|
+
} else if (this.state.activeTabIndex == 4) {
|
|
1181
|
+
this.setState({
|
|
1182
|
+
category4: category.join(','),
|
|
1183
|
+
noDataTip1: noDataTip
|
|
1184
|
+
// categoryListTitle: category.join(',') || '全部分类'
|
|
1185
|
+
});
|
|
1186
|
+
var _param8 = {
|
|
1187
|
+
title: this.state.search4,
|
|
1188
|
+
category: category.join(',')
|
|
1189
|
+
};
|
|
1190
|
+
this.refs.transaction_myself_ref.fetchData(_param8);
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1074
1193
|
}, {
|
|
1075
1194
|
key: 'render',
|
|
1076
1195
|
value: function render() {
|
|
1196
|
+
var _this5 = this;
|
|
1197
|
+
|
|
1077
1198
|
var tabBarStyle = {};
|
|
1078
1199
|
var winHeightStyle = { height: this.state.winHeight };
|
|
1079
1200
|
|
|
@@ -1131,6 +1252,19 @@ var PageHome = function (_React$Component2) {
|
|
|
1131
1252
|
'\u6279\u91CF'
|
|
1132
1253
|
)
|
|
1133
1254
|
),
|
|
1255
|
+
_react2.default.createElement(_Filter2.default, {
|
|
1256
|
+
size: 1,
|
|
1257
|
+
activeIndex: 1,
|
|
1258
|
+
options: [{
|
|
1259
|
+
name: 'sort',
|
|
1260
|
+
title: this.state.categoryListTitle,
|
|
1261
|
+
type: 'select',
|
|
1262
|
+
multiSelect: true,
|
|
1263
|
+
items: this.state.categoryList
|
|
1264
|
+
}],
|
|
1265
|
+
onConfirm: function onConfirm(data) {
|
|
1266
|
+
_this5.filterConfirm(data);
|
|
1267
|
+
} }),
|
|
1134
1268
|
_react2.default.createElement(
|
|
1135
1269
|
'div',
|
|
1136
1270
|
{ className: 'scrollHeight', style: winHeightStyle },
|
|
@@ -1168,6 +1302,19 @@ var PageHome = function (_React$Component2) {
|
|
|
1168
1302
|
'\u6279\u91CF'
|
|
1169
1303
|
)
|
|
1170
1304
|
),
|
|
1305
|
+
_react2.default.createElement(_Filter2.default, {
|
|
1306
|
+
size: 1,
|
|
1307
|
+
activeIndex: 1,
|
|
1308
|
+
options: [{
|
|
1309
|
+
name: 'sort',
|
|
1310
|
+
title: this.state.categoryListTitle,
|
|
1311
|
+
type: 'select',
|
|
1312
|
+
multiSelect: true,
|
|
1313
|
+
items: this.state.categoryList
|
|
1314
|
+
}],
|
|
1315
|
+
onConfirm: function onConfirm(data) {
|
|
1316
|
+
_this5.filterConfirm(data);
|
|
1317
|
+
} }),
|
|
1171
1318
|
_react2.default.createElement(
|
|
1172
1319
|
'div',
|
|
1173
1320
|
{ className: 'scrollHeight', style: winHeightStyle },
|
|
@@ -1200,6 +1347,19 @@ var PageHome = function (_React$Component2) {
|
|
|
1200
1347
|
_react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_done_ref', className: 'searchActive' }, this.searchBarProps))
|
|
1201
1348
|
)
|
|
1202
1349
|
),
|
|
1350
|
+
_react2.default.createElement(_Filter2.default, {
|
|
1351
|
+
size: 1,
|
|
1352
|
+
activeIndex: 1,
|
|
1353
|
+
options: [{
|
|
1354
|
+
name: 'sort',
|
|
1355
|
+
title: this.state.categoryListTitle,
|
|
1356
|
+
type: 'select',
|
|
1357
|
+
multiSelect: true,
|
|
1358
|
+
items: this.state.categoryList
|
|
1359
|
+
}],
|
|
1360
|
+
onConfirm: function onConfirm(data) {
|
|
1361
|
+
_this5.filterConfirm(data);
|
|
1362
|
+
} }),
|
|
1203
1363
|
_react2.default.createElement(
|
|
1204
1364
|
'div',
|
|
1205
1365
|
{ className: 'scrollHeight', style: winHeightStyle },
|
|
@@ -1232,6 +1392,19 @@ var PageHome = function (_React$Component2) {
|
|
|
1232
1392
|
_react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_read_ref', className: 'searchActive' }, this.searchBarProps))
|
|
1233
1393
|
)
|
|
1234
1394
|
),
|
|
1395
|
+
_react2.default.createElement(_Filter2.default, {
|
|
1396
|
+
size: 1,
|
|
1397
|
+
activeIndex: 1,
|
|
1398
|
+
options: [{
|
|
1399
|
+
name: 'sort',
|
|
1400
|
+
title: this.state.categoryListTitle,
|
|
1401
|
+
type: 'select',
|
|
1402
|
+
multiSelect: true,
|
|
1403
|
+
items: this.state.categoryList
|
|
1404
|
+
}],
|
|
1405
|
+
onConfirm: function onConfirm(data) {
|
|
1406
|
+
_this5.filterConfirm(data);
|
|
1407
|
+
} }),
|
|
1235
1408
|
_react2.default.createElement(
|
|
1236
1409
|
'div',
|
|
1237
1410
|
{ className: 'scrollHeight', style: winHeightStyle },
|
|
@@ -1264,6 +1437,19 @@ var PageHome = function (_React$Component2) {
|
|
|
1264
1437
|
_react2.default.createElement(_SearchBar2.default, _extends({ ref: 'search_myself_ref', className: 'searchActive' }, this.searchBarProps))
|
|
1265
1438
|
)
|
|
1266
1439
|
),
|
|
1440
|
+
_react2.default.createElement(_Filter2.default, {
|
|
1441
|
+
size: 1,
|
|
1442
|
+
activeIndex: 1,
|
|
1443
|
+
options: [{
|
|
1444
|
+
name: 'sort',
|
|
1445
|
+
title: this.state.categoryListTitle,
|
|
1446
|
+
type: 'select',
|
|
1447
|
+
multiSelect: true,
|
|
1448
|
+
items: this.state.categoryList
|
|
1449
|
+
}],
|
|
1450
|
+
onConfirm: function onConfirm(data) {
|
|
1451
|
+
_this5.filterConfirm(data);
|
|
1452
|
+
} }),
|
|
1267
1453
|
_react2.default.createElement(
|
|
1268
1454
|
'div',
|
|
1269
1455
|
{ className: 'scrollHeight', style: winHeightStyle },
|
package/package.json
CHANGED
package/lib/.DS_Store
DELETED
|
Binary file
|