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 CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.2.98:批示意见态度增加回调方法
6
7
  - 2.2.97:表单字段关联选人字段关联子表,没有触发关联时还原原来状态
7
8
  - 2.2.96:表单字段关联选人字段关联时可能会出现死循环问题修复
8
9
  - 2.2.95:表单字段关联只读字段必填不需要生效
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.phraseItemClick.bind(this, item.value) },
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.phraseItemClick.bind(this, item.value) },
2754
+ { className: 'phrase-item', onClick: this.attitudeItemClick.bind(this, item) },
2733
2755
  item.value
2734
2756
  );
2735
2757
  }.bind(this)) : ''
@@ -223,7 +223,7 @@ var FlowCommentPane = function (_BaseTable) {
223
223
  {
224
224
  key: item.value,
225
225
  className: 'phrase-item',
226
- onClick: this.phraseItemClick.bind(this, item.value)
226
+ onClick: this.attitudeItemClick.bind(this, item)
227
227
  },
228
228
  item.value
229
229
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.97",
3
+ "version": "2.2.98",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",