fmui-base 2.2.97 → 2.2.98
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/form/form.js +13 -1
- package/lib/form/table.js +23 -1
- package/lib/tblform/FlowCommentPane.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -3687,6 +3687,18 @@ var PageHome = function (_React$Component) {
|
|
|
3687
3687
|
});
|
|
3688
3688
|
this.props.newspyj.content = spyj + commonwords;
|
|
3689
3689
|
}
|
|
3690
|
+
|
|
3691
|
+
// 意见态度点击:先执行默认拼接,再触发 FlowCommon 扩展回调
|
|
3692
|
+
|
|
3693
|
+
}, {
|
|
3694
|
+
key: 'attitudeItemClick',
|
|
3695
|
+
value: function attitudeItemClick(item) {
|
|
3696
|
+
var attitudeValue = item && item.value != null ? item.value : '';
|
|
3697
|
+
this.phraseItemClick(attitudeValue);
|
|
3698
|
+
if (FlowCommon && typeof FlowCommon.dealwithAttitudeClick === 'function') {
|
|
3699
|
+
FlowCommon.dealwithAttitudeClick(item, this);
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3690
3702
|
//切换修改常用语
|
|
3691
3703
|
|
|
3692
3704
|
}, {
|
|
@@ -4423,7 +4435,7 @@ var PageHome = function (_React$Component) {
|
|
|
4423
4435
|
this.state.attitudeList.length > 0 ? this.state.attitudeList.map(function (item, i) {
|
|
4424
4436
|
return _react2.default.createElement(
|
|
4425
4437
|
'div',
|
|
4426
|
-
{ className: 'phrase-item', onClick: this.
|
|
4438
|
+
{ className: 'phrase-item', onClick: this.attitudeItemClick.bind(this, item) },
|
|
4427
4439
|
item.value
|
|
4428
4440
|
);
|
|
4429
4441
|
}.bind(this)) : ''
|
package/lib/form/table.js
CHANGED
|
@@ -2451,6 +2451,28 @@ var PageHome = function (_React$Component) {
|
|
|
2451
2451
|
this.props.newspyj.content = spyj + commonwords;
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
|
+
// 意见态度点击:先执行默认拼接,再触发 FlowCommon 扩展回调
|
|
2455
|
+
|
|
2456
|
+
}, {
|
|
2457
|
+
key: 'attitudeItemClick',
|
|
2458
|
+
value: function attitudeItemClick(item) {
|
|
2459
|
+
var t = this;
|
|
2460
|
+
var attitudeValue = item && item.value != null ? item.value : '';
|
|
2461
|
+
t.phraseItemClick(attitudeValue);
|
|
2462
|
+
var flowCommonRef = FlowCommon;
|
|
2463
|
+
if (!flowCommonRef) {
|
|
2464
|
+
var formCode = t.state.formCode || t.props.formCode || '';
|
|
2465
|
+
var module = t.state.module || t.props.module;
|
|
2466
|
+
if (formCode || module) {
|
|
2467
|
+
var loaded = (0, _formExtHelper.loadFlowOrFormCommon)({ formCode: formCode, module: module || '' });
|
|
2468
|
+
flowCommonRef = loaded.FlowCommon;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
if (flowCommonRef && typeof flowCommonRef.dealwithAttitudeClick === 'function') {
|
|
2472
|
+
flowCommonRef.dealwithAttitudeClick(item, t);
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2454
2476
|
//切换修改常用语
|
|
2455
2477
|
|
|
2456
2478
|
}, {
|
|
@@ -2729,7 +2751,7 @@ var PageHome = function (_React$Component) {
|
|
|
2729
2751
|
this.state.attitudeList.length > 0 ? this.state.attitudeList.map(function (item, i) {
|
|
2730
2752
|
return _react2.default.createElement(
|
|
2731
2753
|
'div',
|
|
2732
|
-
{ className: 'phrase-item', onClick: this.
|
|
2754
|
+
{ className: 'phrase-item', onClick: this.attitudeItemClick.bind(this, item) },
|
|
2733
2755
|
item.value
|
|
2734
2756
|
);
|
|
2735
2757
|
}.bind(this)) : ''
|