fmui-base 2.0.66 → 2.0.67

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.0.67:批示意见常用语样式修改和加载逻辑修改
6
7
  - 2.0.66:默认批示意见常用语编辑跳转
7
8
  - 2.0.65:移动端门户边距修改
8
9
  - 2.0.64:移动端门户常用应用修改
package/lib/form/form.js CHANGED
@@ -2652,10 +2652,11 @@ var PageHome = function (_React$Component) {
2652
2652
  value: function selectCommonwords() {
2653
2653
  var t = this;
2654
2654
  t.setState({ fold: !this.state.fold });
2655
- var phraseListNow = t.state.phraseList;
2656
- if (phraseListNow.length > 0) {
2657
- // t.refs.slotCommonwords.show();
2658
- } else {
2655
+ // let phraseListNow = t.state.phraseList;
2656
+ // if (phraseListNow.length > 0) {
2657
+ // t.refs.slotCommonwords.show();
2658
+ // } else {
2659
+ if (this.state.fold) {
2659
2660
  //获取常用语列表
2660
2661
  _db2.default.FlowModuleAPI.getPersonalPhrase({}).then(function (content) {
2661
2662
  if (content.length > 0) {
@@ -2663,13 +2664,13 @@ var PageHome = function (_React$Component) {
2663
2664
  content.map(function (item) {
2664
2665
  phraseList1.push({ text: item.content, value: item.content });
2665
2666
  });
2666
- var phraseList2 = [];
2667
- phraseList2.push(phraseList1);
2667
+ // var phraseList2 = [];
2668
+ // phraseList2.push(phraseList1);
2668
2669
  t.setState({
2669
- phraseList: phraseList2,
2670
+ // phraseList: phraseList2,
2670
2671
  phraseListNew: phraseList1
2671
2672
  }, function () {
2672
- // t.refs.slotCommonwords.show();
2673
+ // t.refs.slotCommonwords.show();
2673
2674
  });
2674
2675
  } else {
2675
2676
  _Toast2.default.show({
@@ -2683,6 +2684,8 @@ var PageHome = function (_React$Component) {
2683
2684
  });
2684
2685
  });
2685
2686
  }
2687
+ // }
2688
+
2686
2689
  }
2687
2690
 
2688
2691
  //常用语设置跳转
@@ -2690,6 +2693,7 @@ var PageHome = function (_React$Component) {
2690
2693
  }, {
2691
2694
  key: 'skipToCommonwordsSet',
2692
2695
  value: function skipToCommonwordsSet() {
2696
+ this.setState({ fold: true });
2693
2697
  pageSkip('mobile/modules/mobileoffice/dist/index.html', '#/hospitalmanage/personal/setting/listPhrase');
2694
2698
  }
2695
2699
  }, {
package/lib/form/table.js CHANGED
@@ -1450,10 +1450,11 @@ var PageHome = function (_React$Component) {
1450
1450
  value: function selectCommonwords() {
1451
1451
  var t = this;
1452
1452
  t.setState({ fold: !this.state.fold });
1453
- var phraseListNow = t.state.phraseList;
1454
- if (phraseListNow.length > 0) {
1455
- // t.refs.slotCommonwords.show();
1456
- } else {
1453
+ // let phraseListNow = t.state.phraseList;
1454
+ // if (phraseListNow.length > 0) {
1455
+ // t.refs.slotCommonwords.show();
1456
+ // } else {
1457
+ if (this.state.fold) {
1457
1458
  //获取常用语列表
1458
1459
  _db2.default.FlowModuleAPI.getPersonalPhrase({}).then(function (content) {
1459
1460
  if (content.length > 0) {
@@ -1461,10 +1462,10 @@ var PageHome = function (_React$Component) {
1461
1462
  content.map(function (item) {
1462
1463
  phraseList1.push({ text: item.content, value: item.content });
1463
1464
  });
1464
- var phraseList2 = [];
1465
- phraseList2.push(phraseList1);
1465
+ // var phraseList2 = [];
1466
+ // phraseList2.push(phraseList1);
1466
1467
  t.setState({
1467
- phraseList: phraseList2,
1468
+ // phraseList: phraseList2,
1468
1469
  phraseListNew: phraseList1
1469
1470
  }, function () {
1470
1471
  // t.refs.slotCommonwords.show();
@@ -1481,6 +1482,8 @@ var PageHome = function (_React$Component) {
1481
1482
  });
1482
1483
  });
1483
1484
  }
1485
+ // }
1486
+
1484
1487
  }
1485
1488
 
1486
1489
  //常用语设置跳转
@@ -1488,6 +1491,7 @@ var PageHome = function (_React$Component) {
1488
1491
  }, {
1489
1492
  key: 'skipToCommonwordsSet',
1490
1493
  value: function skipToCommonwordsSet() {
1494
+ this.setState({ fold: true });
1491
1495
  pageSkip('mobile/modules/mobileoffice/dist/index.html', '#/hospitalmanage/personal/setting/listPhrase');
1492
1496
  }
1493
1497
  }, {
@@ -169,10 +169,10 @@ var MyGrid = function (_React$Component) {
169
169
  thirdMenuType = 'DING';
170
170
  }
171
171
  params.showClient = thirdMenuType;
172
- _db2.default.reactGrid.getNewComAppInfo(params).then(function (content) {
173
- if (content.data) {
174
- _this.setState(_defineProperty({}, 'cyyy' + '_' + id, content.data));
175
- var appOftenListlocal = JSON.stringify(content.data);
172
+ _db2.default.reactGrid.getComponentInfoListAll(params).then(function (content) {
173
+ if (content) {
174
+ _this.setState(_defineProperty({}, 'cyyy' + '_' + id, content));
175
+ var appOftenListlocal = JSON.stringify(content);
176
176
  // localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
177
177
  localStorage.setItem('appOftenList', appOftenListlocal);
178
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.66",
3
+ "version": "2.0.67",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",