fmui-base 1.0.48 → 2.0.0

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.
@@ -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.curStepName;
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.curStepName;
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
- assigneeName = data.curUserName;
251
+ if (data.curUserName) {
252
+ assigneeName = '办理人:' + data.curUserName;
253
+ }
253
254
  } else if (data.type == 3) {
254
255
  //已阅
255
- assigneeName = data.assigneeName;
256
- } else {
256
+ if (data.startUserName) {
257
+ assigneeName = '申请人:' + data.startUserName;
258
+ }
259
+ } else if (data.type == 4) {
257
260
  //我的
258
- assigneeName = data.curUserName;
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 _react2.default.createElement(
304
- 'div',
305
- null,
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: 't-BCf t-P16 t-PR12 dd-bottom-border', onClick: this.clickDetail.bind(this) },
336
+ { className: 'approve-item', onClick: this.clickDetail.bind(this) },
309
337
  _react2.default.createElement(
310
338
  Box,
311
- { 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 },
312
- _react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
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
- { flex: 1 },
348
+ { className: 'approve-right-text' },
317
349
  _react2.default.createElement(
318
- 'div',
319
- { className: 't-omit t-FC3 t-FS16 t-LH1_3 t-MR8' },
320
- _react2.default.createElement('i', { className: this.props.urgency == '1' && this.props.type == 0 ? 'iconfont icon-caution t-FCoranger t-MR8 t-FS16' : 't-DN' }),
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
- 'i',
323
- { className: this.props.dueDate != null && this.props.dueDate < clock && this.props.type == 0 ? 't-MR6 t-tag-orange t-FS10 t-P2' : 't-DN', 'data-reactid': '.0.0.1.0.$/=10.0.0.1.2' },
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
- this.props.title,
327
- _react2.default.createElement('i', { className: this.props.deleted != null && this.props.deleted == '1' && this.props.type == 0 ? 'iconfont icon-suspension t-MR8 t-FS16' : 't-DN' })
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: 't-FCddfontblue-40 t-LH1_3 t-PT8 t-FS14', vAlign: 'center' },
384
+ { className: 'bottom-text' },
332
385
  _react2.default.createElement(
333
- HBox,
334
- { vAlign: 'center' },
335
- _react2.default.createElement(
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
- HBox,
352
- { flex: 1, vAlign: 'center' },
353
- _react2.default.createElement(
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
- null,
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 },
@@ -1040,7 +1068,7 @@ var PageHome = function (_React$Component2) {
1040
1068
  ),
1041
1069
  _react2.default.createElement(
1042
1070
  Box,
1043
- { className: this.state.hasBatch ? this.state.isBatch ? "t-FCc t-PR16" : "t-FCddblue t-PR16" : "t-DN", onClick: this.clickBatch.bind(this, this.state.isBatch) },
1071
+ { className: this.state.hasBatch ? this.state.isBatch ? "t-FCc t-PR16 t-FS14" : "t-FCblue t-PR16 t-FS14" : "t-DN", onClick: this.clickBatch.bind(this, this.state.isBatch) },
1044
1072
  '\u6279\u91CF'
1045
1073
  )
1046
1074
  ),
@@ -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
- onRefresh: this.onScrollRefresh.bind(this),
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
  )
@@ -1079,7 +1105,7 @@ var PageHome = function (_React$Component2) {
1079
1105
  ),
1080
1106
  _react2.default.createElement(
1081
1107
  Box,
1082
- { className: this.state.hasBatch ? this.state.isBatch ? "t-FCc t-PR16" : "t-FCddblue t-PR16" : "t-DN", isBatch: this.state.isBatch, onClick: this.clickBatch.bind(this, this.state.isBatch) },
1108
+ { className: this.state.hasBatch ? this.state.isBatch ? "t-FCc t-PR16" : "t-FCblue t-PR16" : "t-DN", isBatch: this.state.isBatch, onClick: this.clickBatch.bind(this, this.state.isBatch) },
1083
1109
  '\u6279\u91CF'
1084
1110
  )
1085
1111
  ),
@@ -1202,18 +1228,18 @@ var PageHome = function (_React$Component2) {
1202
1228
  ),
1203
1229
  _react2.default.createElement(
1204
1230
  'div',
1205
- { className: this.state.isBatch ? "t-P0 t-bottom-fixed" : "t-DN" },
1231
+ { className: this.state.isBatch ? "t-bottom-fixed" : "t-DN" },
1206
1232
  _react2.default.createElement(
1207
1233
  _Button2.default.Group,
1208
1234
  null,
1209
1235
  _react2.default.createElement(
1210
1236
  _Button2.default,
1211
- { type: 'secondary', display: 'banner', onClick: this.selectAll.bind(this) },
1237
+ { type: 'secondary', display: 'inline', onClick: this.selectAll.bind(this) },
1212
1238
  this.state.selectAll ? '全选' : '取消'
1213
1239
  ),
1214
1240
  _react2.default.createElement(
1215
1241
  _Button2.default,
1216
- { type: 'primary', display: 'banner',
1242
+ { type: 'primary', display: 'inline',
1217
1243
  onClick: this.clickBatchButton.bind(this) },
1218
1244
  this.state.activeTabIndex == 0 ? '通过' : '已阅'
1219
1245
  )
@@ -2,4 +2,4 @@
2
2
  left: 0;
3
3
  -webkit-transform: translate3d(0, 0, 0);
4
4
  transform: translate3d(0, 0, 0);
5
- }
5
+ }