fmui-base 2.1.0-beta.9 → 2.1.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/lib/process_list/processList.js +89 -63
- package/lib/process_list/processList.less +99 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -197,9 +197,8 @@ var ListItem = function (_React$Component) {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
var comleteName = data.name;
|
|
200
|
-
if (data.type == 0) {
|
|
201
|
-
|
|
202
|
-
comleteName = data.curStepName;
|
|
200
|
+
if (data.type == 0) {//待办
|
|
201
|
+
// comleteName= data.curStepName;
|
|
203
202
|
} else if (data.type == 1) {
|
|
204
203
|
//待阅
|
|
205
204
|
comleteName = data.nodeName;
|
|
@@ -215,7 +214,7 @@ var ListItem = function (_React$Component) {
|
|
|
215
214
|
comleteName = "取消";
|
|
216
215
|
checkIsNotComplete = false;
|
|
217
216
|
} else {
|
|
218
|
-
comleteName = data.
|
|
217
|
+
comleteName = data.nodeName;
|
|
219
218
|
}
|
|
220
219
|
} else if (data.type == 3) {
|
|
221
220
|
//已阅
|
|
@@ -232,30 +231,36 @@ var ListItem = function (_React$Component) {
|
|
|
232
231
|
comleteName = "取消";
|
|
233
232
|
checkIsNotComplete = false;
|
|
234
233
|
} else {
|
|
235
|
-
comleteName = data.
|
|
234
|
+
comleteName = data.nodeName;
|
|
236
235
|
}
|
|
237
236
|
}
|
|
238
237
|
if (typeof comleteName == 'undefined' || comleteName == null) {
|
|
239
238
|
checkIsNotComplete = false;
|
|
240
239
|
}
|
|
241
240
|
|
|
242
|
-
var assigneeName = data.startUserName;
|
|
241
|
+
var assigneeName = '申请人:' + data.startUserName;
|
|
243
242
|
|
|
244
243
|
if (data.type == 0) {
|
|
245
244
|
//待办
|
|
246
|
-
assigneeName = data.startUserName;
|
|
245
|
+
assigneeName = '申请人:' + data.startUserName;
|
|
247
246
|
} else if (data.type == 1) {
|
|
248
247
|
//待阅
|
|
249
|
-
assigneeName = data.startUserName;
|
|
248
|
+
assigneeName = '申请人:' + data.startUserName;
|
|
250
249
|
} else if (data.type == 2) {
|
|
251
250
|
//已办
|
|
252
|
-
|
|
251
|
+
if (data.curUserName) {
|
|
252
|
+
assigneeName = '办理人:' + data.curUserName;
|
|
253
|
+
}
|
|
253
254
|
} else if (data.type == 3) {
|
|
254
255
|
//已阅
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
if (data.startUserName) {
|
|
257
|
+
assigneeName = '申请人:' + data.startUserName;
|
|
258
|
+
}
|
|
259
|
+
} else if (data.type == 4) {
|
|
257
260
|
//我的
|
|
258
|
-
|
|
261
|
+
if (data.curUserName) {
|
|
262
|
+
assigneeName = '办理人:' + data.curUserName;
|
|
263
|
+
}
|
|
259
264
|
}
|
|
260
265
|
if (typeof assigneeName == 'undefined' || assigneeName == null) {
|
|
261
266
|
checkIsNotComplete = false;
|
|
@@ -300,73 +305,96 @@ var ListItem = function (_React$Component) {
|
|
|
300
305
|
|
|
301
306
|
if (ss < 10) clock += '0';
|
|
302
307
|
clock += ss;
|
|
303
|
-
return
|
|
304
|
-
|
|
305
|
-
|
|
308
|
+
return (
|
|
309
|
+
|
|
310
|
+
// <HBox className='approve-item'>
|
|
311
|
+
// <Box className="approve-check">
|
|
312
|
+
// <Box className={'t-checkbox-field-icon-list un-checked t-MR10'} >
|
|
313
|
+
// <i className="iconfont icon-checked t-FCf t-FS14"></i>
|
|
314
|
+
// </Box>
|
|
315
|
+
// </Box>
|
|
316
|
+
// <Box className="approve-right-text">
|
|
317
|
+
// <HBox className='approveItem-title'>
|
|
318
|
+
// <Box className="label label-danger">加急</Box>
|
|
319
|
+
// <Box className="label label-info">暂不办理</Box>
|
|
320
|
+
// <Box className="label label-warn">超时</Box>
|
|
321
|
+
// <Box className="label label-primary">正常</Box>
|
|
322
|
+
// <Box className="title">五月行政总值班值班表</Box>
|
|
323
|
+
// </HBox>
|
|
324
|
+
// <HBox className='approveItem-tag'>
|
|
325
|
+
// <span className='label label-primary'>审核意见审核意见</span>
|
|
326
|
+
// <i className='iconfont icon-right-arrow'></i>
|
|
327
|
+
// </HBox>
|
|
328
|
+
// <HBox className="bottom-text">
|
|
329
|
+
// <Box className="text-item">申请人:王小红</Box>
|
|
330
|
+
// <Box className="text-item">2022-08-28 10:58:58</Box>
|
|
331
|
+
// </HBox>
|
|
332
|
+
// </Box>
|
|
333
|
+
// </HBox>
|
|
306
334
|
_react2.default.createElement(
|
|
307
335
|
HBox,
|
|
308
|
-
{ className: '
|
|
336
|
+
{ className: 'approve-item', onClick: this.clickDetail.bind(this) },
|
|
309
337
|
_react2.default.createElement(
|
|
310
338
|
Box,
|
|
311
|
-
{ className:
|
|
312
|
-
_react2.default.createElement(
|
|
339
|
+
{ className: 'approve-check' },
|
|
340
|
+
_react2.default.createElement(
|
|
341
|
+
Box,
|
|
342
|
+
{ 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 },
|
|
343
|
+
_react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
|
|
344
|
+
)
|
|
313
345
|
),
|
|
314
346
|
_react2.default.createElement(
|
|
315
347
|
Box,
|
|
316
|
-
{
|
|
348
|
+
{ className: 'approve-right-text' },
|
|
317
349
|
_react2.default.createElement(
|
|
318
|
-
|
|
319
|
-
{ className: '
|
|
320
|
-
_react2.default.createElement(
|
|
350
|
+
HBox,
|
|
351
|
+
{ className: 'approveItem-title' },
|
|
352
|
+
_react2.default.createElement(
|
|
353
|
+
Box,
|
|
354
|
+
{ className: this.props.urgency == '1' && this.props.type == 0 ? 'label label-danger' : 't-DN' },
|
|
355
|
+
'\u52A0\u6025'
|
|
356
|
+
),
|
|
321
357
|
_react2.default.createElement(
|
|
322
|
-
|
|
323
|
-
{ className: this.props.dueDate != null && this.props.dueDate < clock && this.props.type == 0 ? '
|
|
358
|
+
Box,
|
|
359
|
+
{ className: this.props.dueDate != null && this.props.dueDate < clock && this.props.type == 0 ? 'label label-warn' : 't-DN' },
|
|
324
360
|
'\u8D85\u65F6'
|
|
325
361
|
),
|
|
326
|
-
|
|
327
|
-
|
|
362
|
+
_react2.default.createElement(
|
|
363
|
+
Box,
|
|
364
|
+
{ className: this.props.deleted != null && this.props.deleted == '1' && this.props.type == 0 ? 'label label-info' : 't-DN' },
|
|
365
|
+
'\u6682\u4E0D\u529E\u7406'
|
|
366
|
+
),
|
|
367
|
+
_react2.default.createElement(
|
|
368
|
+
Box,
|
|
369
|
+
null,
|
|
370
|
+
this.props.title
|
|
371
|
+
)
|
|
372
|
+
),
|
|
373
|
+
_react2.default.createElement(
|
|
374
|
+
HBox,
|
|
375
|
+
{ className: 'approveItem-tag' },
|
|
376
|
+
_react2.default.createElement(
|
|
377
|
+
'span',
|
|
378
|
+
{ className: 'label label-primary' },
|
|
379
|
+
comleteName
|
|
380
|
+
)
|
|
328
381
|
),
|
|
329
382
|
_react2.default.createElement(
|
|
330
383
|
HBox,
|
|
331
|
-
{ className: '
|
|
384
|
+
{ className: 'bottom-text' },
|
|
332
385
|
_react2.default.createElement(
|
|
333
|
-
|
|
334
|
-
{
|
|
335
|
-
|
|
336
|
-
Box,
|
|
337
|
-
null,
|
|
338
|
-
_react2.default.createElement('i', { className: 'iconfont icon-time t-MR4 t-FS14' })
|
|
339
|
-
),
|
|
340
|
-
_react2.default.createElement(
|
|
341
|
-
Box,
|
|
342
|
-
null,
|
|
343
|
-
_react2.default.createElement(
|
|
344
|
-
'span',
|
|
345
|
-
{ className: 't-omit t-MR26' },
|
|
346
|
-
formatTime
|
|
347
|
-
)
|
|
348
|
-
)
|
|
386
|
+
Box,
|
|
387
|
+
{ className: checkIsNotComplete ? "text-item" : "t-DN" },
|
|
388
|
+
assigneeName
|
|
349
389
|
),
|
|
350
390
|
_react2.default.createElement(
|
|
351
|
-
|
|
352
|
-
{
|
|
353
|
-
|
|
354
|
-
Box,
|
|
355
|
-
null,
|
|
356
|
-
_react2.default.createElement(
|
|
357
|
-
'span',
|
|
358
|
-
{ className: checkIsNotComplete ? 't-list-text t-FCoranger t-omit t-MR4' : 't-list-text t-FCgreen t-omit t-MR4' },
|
|
359
|
-
checkIsNotComplete ? comleteName + ' ' + assigneeName : comleteName
|
|
360
|
-
)
|
|
361
|
-
)
|
|
391
|
+
Box,
|
|
392
|
+
{ className: 'text-item' },
|
|
393
|
+
formatTime
|
|
362
394
|
)
|
|
363
395
|
)
|
|
364
396
|
),
|
|
365
|
-
_react2.default.createElement(
|
|
366
|
-
Box,
|
|
367
|
-
null,
|
|
368
|
-
_react2.default.createElement(_AngleRight2.default, { width: 20, fill: '#ccc', className: 'demo-t-list-arrow' })
|
|
369
|
-
)
|
|
397
|
+
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow' })
|
|
370
398
|
)
|
|
371
399
|
);
|
|
372
400
|
}
|
|
@@ -1023,7 +1051,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1023
1051
|
|
|
1024
1052
|
return _react2.default.createElement(
|
|
1025
1053
|
'div',
|
|
1026
|
-
|
|
1054
|
+
{ className: 'approve-list' },
|
|
1027
1055
|
_react2.default.createElement(
|
|
1028
1056
|
_Tab2.default,
|
|
1029
1057
|
{ activeKey: this.state.activeTabIndex, onChange: this.handleTabChange.bind(this), destroyInactiveTabPane: false },
|
|
@@ -1058,9 +1086,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1058
1086
|
ref: 'transaction_undo_ref',
|
|
1059
1087
|
noDataImage: _variables2.default.nodataIcon,
|
|
1060
1088
|
currentPageKey: 'page',
|
|
1061
|
-
|
|
1062
|
-
noDataTip: this.state.noDataTip0,
|
|
1063
|
-
onLoad: this.onLoad.bind(this)
|
|
1089
|
+
noDataTip: this.state.noDataTip0
|
|
1064
1090
|
},
|
|
1065
1091
|
_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) })
|
|
1066
1092
|
)
|
|
@@ -2,4 +2,103 @@
|
|
|
2
2
|
left: 0;
|
|
3
3
|
-webkit-transform: translate3d(0, 0, 0);
|
|
4
4
|
transform: translate3d(0, 0, 0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
//新增审批列表
|
|
8
|
+
.approve-item {
|
|
9
|
+
background: #FFFFFF;
|
|
10
|
+
border-radius: 10px;
|
|
11
|
+
margin-left: 8px;
|
|
12
|
+
margin-right: 8px;
|
|
13
|
+
margin-bottom: 10px;
|
|
14
|
+
padding-top: 15px;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
position: relative;
|
|
17
|
+
line-height: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.approve-item:before {
|
|
21
|
+
content: "";
|
|
22
|
+
width: 3px;
|
|
23
|
+
height: 15px;
|
|
24
|
+
background-image: linear-gradient(180deg, #7AADFF 0%, #3480FB 100%);
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 15px;
|
|
28
|
+
left: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.approve-item .approve-check {
|
|
32
|
+
text-align: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
display: flex;
|
|
35
|
+
margin: 0 10px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.approve-item .approve-right-text {
|
|
39
|
+
width: calc(100% - 50px);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.approve-item .approveItem-title {
|
|
43
|
+
width: 90%;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
font-family: SourceHanSansCN-Regular;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
color: #000000;
|
|
50
|
+
letter-spacing: 0;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.approve-item .approveItem-title .tag {
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.approve-item .approveItem-tag {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
margin: 10px 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.approve-item .approveItem-title .title {
|
|
65
|
+
text-overflow: ellipsis;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.approve-item .approveItem-tag .label {
|
|
71
|
+
max-width: 70%;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.approve-item .icon-right-arrow {
|
|
78
|
+
color: #BCBCBC;
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
text-align: center;
|
|
81
|
+
position: absolute;
|
|
82
|
+
right: 15px;
|
|
83
|
+
bottom: 17px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.approve-item .bottom-text {
|
|
87
|
+
font-family: SourceHanSansSC-Regular;
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
color: #8C919D;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
width: 100%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.approve-item .bottom-text .text-item {
|
|
95
|
+
margin-right: 10px;
|
|
96
|
+
max-width: 50%;
|
|
97
|
+
text-overflow: ellipsis;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.approve-list .scrollHeight{
|
|
103
|
+
margin-top: 10px;
|
|
5
104
|
}
|