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.
package/lib/form/table.js CHANGED
@@ -303,8 +303,10 @@ var PageHome = function (_React$Component) {
303
303
  var t = this;
304
304
  var module = t.props.module;
305
305
  var formKey = t.props.allForm.formcode;
306
+ var formTblId = t.props.allForm.formTblId;
306
307
  if (itemParam && itemParam.key) {
307
308
  //修改事件的时候
309
+
308
310
  var mainTblData = data.mainTblData;
309
311
  var mainTblName = data.mainTblName;
310
312
  var subTbl = data.subTbl;
@@ -430,6 +432,7 @@ var PageHome = function (_React$Component) {
430
432
  }
431
433
 
432
434
  if (itemParam.itemType) {
435
+
433
436
  var fieldId = itemParam.fieldId;
434
437
  var linkFields = data.linkFields;
435
438
  var formItem = data.formItem;
@@ -1348,7 +1351,7 @@ var PageHome = function (_React$Component) {
1348
1351
  }, {
1349
1352
  key: 'changeSpyj1',
1350
1353
  value: function changeSpyj1(newValue) {
1351
- var regRule = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi;
1354
+ var regRule = /(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g;
1352
1355
  if (newValue.match(regRule)) {
1353
1356
  _Toast2.default.show({
1354
1357
  type: 'error',
@@ -1465,6 +1468,8 @@ var PageHome = function (_React$Component) {
1465
1468
  }, {
1466
1469
  key: 'render',
1467
1470
  value: function render() {
1471
+ var _this2 = this;
1472
+
1468
1473
  var t = this;
1469
1474
  var allForm = this.props.allForm;
1470
1475
  var tabCodes = allForm.tabCodes;
@@ -1480,26 +1485,32 @@ var PageHome = function (_React$Component) {
1480
1485
  return _react2.default.createElement(
1481
1486
  'div',
1482
1487
  null,
1483
- _react2.default.createElement(_form2.default, { keyNo: j, ref: item.uniqueName, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
1488
+ _react2.default.createElement(_form2.default, { keyNo: j, ref: item.uniqueName, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
1484
1489
  );
1485
1490
  }.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
1486
1491
  'div',
1487
1492
  null,
1488
- _react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
1493
+ _react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
1489
1494
  ) : _react2.default.createElement(
1490
1495
  'div',
1491
1496
  null,
1492
- _react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
1497
+ _react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
1493
1498
  );
1494
1499
  }.bind(this)) : _react2.default.createElement(
1495
1500
  'div',
1496
1501
  null,
1497
1502
  _react2.default.createElement(
1498
- _Tab2.default,
1499
- { activeKey: tabCodes[0], className: 'dd-tab-br-none', onChange: this.onChangeTab.bind(this), onTabClick: this.changeTab.bind(this) },
1500
- tabCodes.map(function (item1, k) {
1501
- return _react2.default.createElement(_Tab2.default.Item, { key: item1, title: tabNames[k] });
1502
- }.bind(this))
1503
+ 'ul',
1504
+ { className: 'tab-page-tree' },
1505
+ tabCodes.map(function (item, index) {
1506
+ return _react2.default.createElement(
1507
+ 'li',
1508
+ { className: t.state.active == item ? "tab-page-tree-item active" : "tab-page-tree-item", onClick: function onClick() {
1509
+ _this2.changeTab(item);
1510
+ }, key: item },
1511
+ tabNames[index]
1512
+ );
1513
+ })
1503
1514
  ),
1504
1515
  _react2.default.createElement('div', { className: 't-H10 t-BCf7' }),
1505
1516
  _react2.default.createElement(
@@ -1510,16 +1521,16 @@ var PageHome = function (_React$Component) {
1510
1521
  return _react2.default.createElement(
1511
1522
  'div',
1512
1523
  { className: t.state.active == item.tabCode ? "" : "t-DN" },
1513
- _react2.default.createElement(_form2.default, { keyNo: j, ref: item.uniqueName, operate: t.props.operate, hasCommentField: t.props.hasCommentField, newspyj: t.props.newspyj, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
1524
+ _react2.default.createElement(_form2.default, { keyNo: j, ref: item.uniqueName, operate: t.props.operate, hasCommentField: t.props.hasCommentField, newspyj: t.props.newspyj, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
1514
1525
  );
1515
1526
  }.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
1516
1527
  'div',
1517
1528
  { className: t.state.active == item.tabCode ? "" : "t-DN" },
1518
- _react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
1529
+ _react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
1519
1530
  ) : _react2.default.createElement(
1520
1531
  'div',
1521
1532
  { className: t.state.active == item.tabCode ? "" : "t-DN" },
1522
- _react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
1533
+ _react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
1523
1534
  );
1524
1535
  }.bind(this))
1525
1536
  )
@@ -1569,7 +1580,7 @@ var PageHome = function (_React$Component) {
1569
1580
  { className: t.props.commentField == "default" ? 't-PL10' : 't-DN' },
1570
1581
  _react2.default.createElement(
1571
1582
  'div',
1572
- { className: 't-FCddblue t-P6 t-FS16 commonwords', onClick: this.selectCommonwords.bind(this) },
1583
+ { className: 't-FCblue t-P6 t-FS16 commonwords', onClick: this.selectCommonwords.bind(this) },
1573
1584
  '\u5E38\u7528\u8BED'
1574
1585
  ),
1575
1586
  _react2.default.createElement(_TextareaField2.default, {
@@ -1625,7 +1636,7 @@ var PageHome = function (_React$Component) {
1625
1636
  { className: t.props.commentField == "default" ? 't-PL10 t-PT10 t-FB1' : 't-DN' },
1626
1637
  _react2.default.createElement(
1627
1638
  'div',
1628
- { className: 't-FCddblue t-P6 t-FS16 commonwords', onClick: this.selectCommonwords.bind(this) },
1639
+ { className: 't-FCblue t-P6 t-FS16 commonwords', onClick: this.selectCommonwords.bind(this) },
1629
1640
  '\u5E38\u7528\u8BED'
1630
1641
  ),
1631
1642
  _react2.default.createElement(
@@ -5247,7 +5247,7 @@ var PageHome = function (_React$Component) {
5247
5247
  { className: this.state.nextActivityList.length == 0 && this.state.nextRadomList.length == 0 ? '' : '', style: { background: '#f2f3f5', height: '35px', padding: '10px 5px' } },
5248
5248
  _react2.default.createElement(
5249
5249
  'span',
5250
- { className: 't-FCddblue' },
5250
+ { className: 't-FCblue' },
5251
5251
  _react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14 t-FR' }),
5252
5252
  '\u5BA1\u6279\u73AF\u8282'
5253
5253
  )
@@ -5397,7 +5397,7 @@ var PageHome = function (_React$Component) {
5397
5397
  { style: { background: '#f2f3f5', height: '35px', padding: '10px 5px' } },
5398
5398
  _react2.default.createElement(
5399
5399
  'span',
5400
- { className: 't-FCddblue' },
5400
+ { className: 't-FCblue' },
5401
5401
  _react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14 t-FR' }),
5402
5402
  '\u8F6C\u4EA4\u73AF\u8282'
5403
5403
  )
@@ -682,7 +682,7 @@ var PageHome = function (_React$Component) {
682
682
  ),
683
683
  _react2.default.createElement(
684
684
  Box,
685
- { className: 't-PR16 t-FCddblue', onClick: this.selectedOk.bind(this) },
685
+ { className: 't-PR16 t-FCblue', onClick: this.selectedOk.bind(this) },
686
686
  '\u5B8C\u6210'
687
687
  )
688
688
  )
@@ -718,7 +718,7 @@ var PageHome = function (_React$Component) {
718
718
  { vAlign: 'center', className: this.state.change ? "t-bottom-fixed" : "t-DN", style: { width: 300 } },
719
719
  _react2.default.createElement(
720
720
  Box,
721
- { flex: 2, className: 't-FS16 t-PL16 t-FCddblue', onClick: this.selectedBoxs.bind(this) },
721
+ { flex: 2, className: 't-FS16 t-PL16 t-FCblue', onClick: this.selectedBoxs.bind(this) },
722
722
  '\u5DF2\u9009',
723
723
  selectNum,
724
724
  '\u4E2A'
@@ -1472,12 +1472,12 @@ var PageHome = function (_React$Component) {
1472
1472
  { style: { background: '#f2f3f5', height: '35px', padding: '10px 5px' } },
1473
1473
  _react2.default.createElement(
1474
1474
  'span',
1475
- { className: 't-FCddblue' },
1475
+ { className: 't-FCblue' },
1476
1476
  this.state.operate == 1 ? "审批意见" : this.state.operate == 2 ? '驳回意见' : this.state.operate == 3 ? '转交意见' : this.state.operate == 5 ? '跳转意见' : this.state.operate == 10 ? '完成意见' : '签阅意见'
1477
1477
  ),
1478
1478
  _react2.default.createElement(
1479
1479
  'span',
1480
- { className: 't-FCddblue t-FR', onClick: this.selectCommonwords.bind(this) },
1480
+ { className: 't-FCblue t-FR', onClick: this.selectCommonwords.bind(this) },
1481
1481
  '\u5E38\u7528\u8BED'
1482
1482
  )
1483
1483
  ),
@@ -1504,7 +1504,7 @@ var PageHome = function (_React$Component) {
1504
1504
  { className: this.state.nextActivityList.length == 0 && this.state.nextRadomList.length == 0 ? 't-DN' : '', style: { background: '#f2f3f5', height: '35px', padding: '10px 5px' } },
1505
1505
  _react2.default.createElement(
1506
1506
  'span',
1507
- { className: 't-FCddblue' },
1507
+ { className: 't-FCblue' },
1508
1508
  _react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14 t-FR' }),
1509
1509
  '\u5BA1\u6279\u73AF\u8282'
1510
1510
  )
@@ -103,124 +103,87 @@ var Page = function (_React$Component) {
103
103
 
104
104
  return _react2.default.createElement(
105
105
  'div',
106
- { className: 't-BCf t-PT10 t-PB10 t-PR' },
107
- _react2.default.createElement('div', { className: 'dd-process-dec' }),
108
- this.state.processLogList.map(function (item, i) {
109
- var nameHtml = "";
110
- if (item.receivenames != null && item.receivenames != '') {
111
- var receivenames = item.receivenames.split('|');
112
- var delContent = '(该用户账号已被删除,请联系管理员修改流程)';
113
- var delContent1 = '(该用户账号已被删除)';
114
- nameHtml = receivenames.map(function (item, index) {
115
- var names = item.replace(delContent, '');
116
- if (item.indexOf(delContent1) > -1) {
117
- names = "";
118
- }
119
- return _react2.default.createElement(
120
- 'span',
121
- null,
122
- index == 0 ? names : "|" + names,
123
- _react2.default.createElement(
124
- 'i',
125
- { className: item.indexOf(delContent) > -1 ? "t-FCred" : 't-DN' },
126
- delContent
127
- ),
128
- _react2.default.createElement(
129
- 'i',
130
- { className: item.indexOf(delContent1) > -1 ? "t-FCred" : 't-DN' },
131
- delContent1
132
- )
133
- );
134
- });
135
- }
106
+ { className: 'approval-recording' },
107
+ _react2.default.createElement(
108
+ 'div',
109
+ { className: 't-PT12 t-PB10 t-PR' },
110
+ _react2.default.createElement('div', { className: 'dd-process-dec' }),
111
+ this.state.processLogList.map(function (item, i) {
112
+ var nameHtml = "";
113
+ if (item.receivenames != null && item.receivenames != '') {
114
+ var receivenames = item.receivenames.split('|');
115
+ var delContent = '(该用户账号已被删除,请联系管理员修改流程)';
116
+ var delContent1 = '(该用户账号已被删除)';
117
+ nameHtml = receivenames.map(function (item, index) {
118
+ var names = item.replace(delContent, '');
119
+ if (item.indexOf(delContent1) > -1) {
120
+ names = "";
121
+ }
122
+ return _react2.default.createElement(
123
+ 'span',
124
+ null,
125
+ index == 0 ? names : "|" + names,
126
+ _react2.default.createElement(
127
+ 'i',
128
+ { className: item.indexOf(delContent) > -1 ? "t-FCred" : 't-DN' },
129
+ delContent
130
+ ),
131
+ _react2.default.createElement(
132
+ 'i',
133
+ { className: item.indexOf(delContent1) > -1 ? "t-FCred" : 't-DN' },
134
+ delContent1
135
+ )
136
+ );
137
+ });
138
+ }
136
139
 
137
- return _react2.default.createElement(
138
- HBox,
139
- { className: 't-PR' },
140
- _react2.default.createElement(
141
- Box,
142
- { className: 't-W44' },
143
- _react2.default.createElement('div', { className: 'dd-border-o dd-Bgreen' })
144
- ),
145
- _react2.default.createElement(
146
- Box,
147
- { flex: 1, className: 't-PR t-M10' },
140
+ return _react2.default.createElement(
141
+ HBox,
142
+ { className: 't-PR' },
148
143
  _react2.default.createElement(
149
144
  Box,
150
- { className: 't-PA', style: { top: "14", left: "-10" } },
151
- _react2.default.createElement('img', { src: '../images/triangle.png' })
145
+ { className: 'dd-border-width' },
146
+ _react2.default.createElement('div', { className: i == this.state.processLogList.length - 1 ? "dd-border-o dd-Bddblue" : "dd-border-o" })
152
147
  ),
153
148
  _react2.default.createElement(
154
- Box,
155
- { className: 'dd-boxshow t-R6' },
149
+ 'div',
150
+ { className: 'recording-card' },
156
151
  _react2.default.createElement(
157
- Box,
158
- { className: 't-PT16 t-PR16 t-PL16 t-PB4 dd-bottom-border' },
152
+ 'div',
153
+ { className: 'recording-message' },
159
154
  _react2.default.createElement(
160
- Box,
155
+ 'div',
161
156
  { className: 't-omit' },
162
- item.curactivityname
163
- ),
164
- _react2.default.createElement(
165
- Box,
166
- { className: item.dealaction == 'commit' || item.dealaction == 'pass' || item.dealaction == 'transfer' || item.dealaction == 'addSign' || item.dealaction == 'jump' || item.dealaction == 'end' || item.dealaction == 'cancel' || item.dealaction == 'recall' ? 't-FCgreen t-PT0 t-FS12 t-omit' : item.dealaction == 'back' ? 't-FCred t-PT0 t-FS12 t-omit' : 't-PT0 t-FS12 t-omit' },
167
- dealactionname(item)
168
- )
169
- ),
170
- _react2.default.createElement(
171
- HBox,
172
- { className: 't-PL14 t-PR14 t-PT10 t-PB10 t-LH1_5', vAlign: 'center' },
173
- _react2.default.createElement(
174
- Box,
175
- { className: 't-MR10' },
176
- _react2.default.createElement(_Avatar2.default, { name: item.dealusername, src: this.state.dealusericon, defaultColor: '#F6BF26' })
157
+ item.createdDate
177
158
  ),
178
159
  _react2.default.createElement(
179
- Box,
180
- { className: 't-PR5', flex: 1 },
160
+ 'div',
161
+ { className: 'recording-info' },
181
162
  _react2.default.createElement(
182
163
  'div',
183
- { className: 't-omit t-FS16' },
184
- item.dealusername
164
+ { className: 'recording-info-left' },
165
+ _react2.default.createElement(
166
+ 'div',
167
+ { className: 'recording-name' },
168
+ nameHtml
169
+ ),
170
+ _react2.default.createElement(
171
+ 'div',
172
+ { className: 'recording-result' },
173
+ dealactionname(item)
174
+ )
185
175
  ),
186
176
  _react2.default.createElement(
187
177
  'div',
188
- { className: 't-FS12 t-omit' },
189
- item.dealuserorg
190
- )
191
- ),
192
- _react2.default.createElement(
193
- Box,
194
- { flex: 2 },
195
- _react2.default.createElement(
196
- HBox,
197
- null,
198
- _react2.default.createElement(
199
- Box,
200
- { flex: 1, className: 't-omit' },
201
- item.createdDate
202
- )
178
+ { className: 'recording-author' },
179
+ item.curactivityname
203
180
  )
204
181
  )
205
- ),
206
- _react2.default.createElement(
207
- HBox,
208
- { className: item.receivenames == null || item.receivenames == '' ? 't-DN' : 't-PL14 t-PR14 t-PT10 t-PB10 dd-top-border' },
209
- _react2.default.createElement(
210
- Box,
211
- { flex: 1 },
212
- '\u63A5\u6536\u8005'
213
- ),
214
- _react2.default.createElement(
215
- Box,
216
- { flex: 3, className: 't-FAR' },
217
- nameHtml
218
- )
219
182
  )
220
183
  )
221
- )
222
- );
223
- }.bind(this))
184
+ );
185
+ }.bind(this))
186
+ )
224
187
  );
225
188
  }
226
189
  }]);