fmui-base 2.1.97 → 2.1.99

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,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.99:移动端选人组件,默认展开当前登录人所在组织
7
+ - 2.1.98:组件样式调整
6
8
  - 2.1.97:选人组件支持党员非党员检索
7
9
  - 2.1.96:新规范流程表单样式修改
8
10
  - 2.1.95:新规范样式修改
@@ -318,7 +318,7 @@ var PageHome = function (_React$Component) {
318
318
  return _react2.default.createElement(
319
319
  VBox,
320
320
  { className: 't-PB10 t-LH1_5 t-field t-FS14 t-PL10' },
321
- item.type.indexOf('image') < 0 ? _react2.default.createElement(Box, { className: 't-FS16 t-PR16', dangerouslySetInnerHTML: { __html: item.fullMessage == null ? "" : item.fullMessage.replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/ /g, '&nbsp;') } }) : item.fullMessage == '' ? _react2.default.createElement(
321
+ item.type.indexOf('image') < 0 ? _react2.default.createElement(Box, { className: 't-PR16', dangerouslySetInnerHTML: { __html: item.fullMessage == null ? "" : item.fullMessage.replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/ /g, '&nbsp;') } }) : item.fullMessage == '' ? _react2.default.createElement(
322
322
  Box,
323
323
  null,
324
324
  '\'\''
package/lib/form/form.js CHANGED
@@ -3150,7 +3150,7 @@ var PageHome = function (_React$Component) {
3150
3150
  { className: this.state.label == '' ? 't-DN' : 't-field-box t-FBH t-FBAC t-FBJ' },
3151
3151
  _react2.default.createElement(
3152
3152
  'div',
3153
- { className: this.state.required ? 't-field-layout-h-label t-FS16 required' : 't-field-layout-h-label t-FS16' },
3153
+ { className: this.state.required ? 't-field-layout-h-label required' : 't-field-layout-h-label' },
3154
3154
  _react2.default.createElement(
3155
3155
  'span',
3156
3156
  { style: t.state.itemParam.formStyleObj.titleStyle == null ? {} : t.state.itemParam.formStyleObj.titleStyle },
@@ -3345,7 +3345,7 @@ var PageHome = function (_React$Component) {
3345
3345
  { className: 't-field-box t-FBAC t-W100' },
3346
3346
  _react2.default.createElement(
3347
3347
  'div',
3348
- { className: t.state.itemParam.required ? "t-field-layout-h-label t-FS16 required" : "t-field-layout-h-label t-FS16" },
3348
+ { className: t.state.itemParam.required ? "t-field-layout-h-label required" : "t-field-layout-h-label" },
3349
3349
  t.state.itemParam.title
3350
3350
  ),
3351
3351
  _react2.default.createElement(
@@ -3358,7 +3358,7 @@ var PageHome = function (_React$Component) {
3358
3358
  { flex: '1' },
3359
3359
  _react2.default.createElement(
3360
3360
  'span',
3361
- { className: 't-FL t-FS16' },
3361
+ { className: 't-FL ' },
3362
3362
  t.state.itemParam.selectValue
3363
3363
  )
3364
3364
  ),
@@ -3522,7 +3522,7 @@ var PageHome = function (_React$Component) {
3522
3522
  { className: 'flex-comment t-field-box' },
3523
3523
  _react2.default.createElement(
3524
3524
  'div',
3525
- { className: 't-field-layout-h-label t-FS16 t-FBJ' },
3525
+ { className: 't-field-layout-h-label t-FBJ' },
3526
3526
  _react2.default.createElement(
3527
3527
  'span',
3528
3528
  null,
@@ -3538,7 +3538,7 @@ var PageHome = function (_React$Component) {
3538
3538
  { className: t.state.commentField == this.state.itemParam.uniqueName ? 't-PL10 t-PR10' : 't-DN' },
3539
3539
  _react2.default.createElement(
3540
3540
  'div',
3541
- { className: t.state.commentField == this.state.itemParam.uniqueName ? 'theme-color t-P6 t-FS16 commonwords' : 't-DN' },
3541
+ { className: t.state.commentField == this.state.itemParam.uniqueName ? 'theme-color t-P6 commonwords' : 't-DN' },
3542
3542
  _react2.default.createElement(
3543
3543
  'div',
3544
3544
  { onClick: this.selectCommonwords.bind(this) },
@@ -871,7 +871,7 @@ var PageHome = function (_React$Component) {
871
871
  _react2.default.createElement('div', { className: t.state.isHideSubTblHeadTblList.indexOf(t.state.itemParam.key) == -1 ? "t-BCf7 t-H10" : "t-DN" }),
872
872
  _react2.default.createElement(
873
873
  HBox,
874
- { className: t.state.isHideSubTblHeadTblList.indexOf(t.state.itemParam.key) == -1 ? "t-P16 t-FS16 t-BCf dd-bottom-border" : "t-DN", onClick: this.detailShowAll.bind(this) },
874
+ { className: t.state.isHideSubTblHeadTblList.indexOf(t.state.itemParam.key) == -1 ? "t-P16 t-BCf dd-bottom-border" : "t-DN", onClick: this.detailShowAll.bind(this) },
875
875
  _react2.default.createElement(
876
876
  Box,
877
877
  { flex: 1 },
@@ -895,7 +895,7 @@ var PageHome = function (_React$Component) {
895
895
  ),
896
896
  _react2.default.createElement(
897
897
  'div',
898
- { className: "hejidiv-" + t.state.itemParam.key + " t-FS16 t-BCf ", style: { textAlign: 'right', paddingRight: 20 } },
898
+ { className: "hejidiv-" + t.state.itemParam.key + " t-BCf ", style: { textAlign: 'right', paddingRight: 20 } },
899
899
  this.getSubTotal()
900
900
  ),
901
901
  _react2.default.createElement(
package/lib/form/table.js CHANGED
@@ -1813,7 +1813,7 @@ var PageHome = function (_React$Component) {
1813
1813
  { className: 't-field-box' },
1814
1814
  _react2.default.createElement(
1815
1815
  'div',
1816
- { className: 't-field-layout-h-label t-FS16' },
1816
+ { className: 't-field-layout-h-label' },
1817
1817
  '\u9000\u56DE\u610F\u89C1'
1818
1818
  ),
1819
1819
  _react2.default.createElement(
@@ -1832,7 +1832,7 @@ var PageHome = function (_React$Component) {
1832
1832
  { className: 'flex-comment default-comment t-field-box' },
1833
1833
  _react2.default.createElement(
1834
1834
  'div',
1835
- { className: 't-field-layout-h-label t-FS16 t-FBJ' },
1835
+ { className: 't-field-layout-h-label t-FBJ' },
1836
1836
  _react2.default.createElement(
1837
1837
  'span',
1838
1838
  null,
@@ -1848,7 +1848,7 @@ var PageHome = function (_React$Component) {
1848
1848
  { className: t.props.commentField == "default" ? 't-PL10 t-PR10' : 't-DN' },
1849
1849
  _react2.default.createElement(
1850
1850
  'div',
1851
- { className: 'theme-color t-P6 t-FS16 commonwords' },
1851
+ { className: 'theme-color t-P6 commonwords' },
1852
1852
  _react2.default.createElement(
1853
1853
  'div',
1854
1854
  { onClick: this.selectCommonwords.bind(this) },
@@ -310,8 +310,9 @@ var Page = function (_React$Component) {
310
310
  top: "",
311
311
  nodataText: "暂无数据",
312
312
  isShowSelectCpc: isShowSelectCpc, //是否显示党员选项
313
- cunSelectCpc: "1", //1是党员,0是非党员
314
- selectCpcOptions: [{ value: "1", checked: true, content: '党员', disable: false }, { value: "0", checked: false, content: '非党员', disable: false }]
313
+ curSelectCpc: "1", //1是党员,0是非党员
314
+ selectCpcOptions: [{ value: "1", checked: true, content: '党员', disable: false }, { value: "0", checked: false, content: '非党员', disable: false }],
315
+ selUserOurorg: "0" //是否默认打开本组织
315
316
  };
316
317
 
317
318
  _db2.default.FlowModuleAPI.getSysSettingByMark({ mark: 'selUserIsDJ' }).then(function (content) {
@@ -321,6 +322,14 @@ var Page = function (_React$Component) {
321
322
  }).catch(function (error) {
322
323
  console.error(error);
323
324
  });
325
+ _db2.default.FlowModuleAPI.getSysSettingByMark({ mark: 'selUserOurorg' }).then(function (content) {
326
+ console.log("selUserOurorg", content);
327
+ if (!(typeof _this.props.isShowInMyOrg != "undefined" && _this.props.isShowInMyOrg != null) && content && content == '1') {
328
+ _this.state.isShowInMyOrg = true;
329
+ }
330
+ }).catch(function (error) {
331
+ console.error(error);
332
+ });
324
333
  _this.listener = _this.handleHidePopup.bind(_this);
325
334
  return _this;
326
335
  }
@@ -810,7 +819,6 @@ var Page = function (_React$Component) {
810
819
  if (t.props.onChange != undefined) {
811
820
  t.props.onChange(scopeLists, fieldDataValue);
812
821
  }
813
-
814
822
  //选人验签
815
823
  if (bizSn && bizSn != "" && bizSn != undefined) {
816
824
 
@@ -1003,7 +1011,7 @@ var Page = function (_React$Component) {
1003
1011
  }
1004
1012
  }
1005
1013
  for (var i = 0; i < orgUserList.length; i++) {
1006
- if (t.state.isShowSelectCpc && t.state.cunSelectCpc.indexOf(orgUserList[i].isCpc) === -1) {
1014
+ if (t.state.isShowSelectCpc && t.state.curSelectCpc.indexOf(orgUserList[i].isCpc) === -1) {
1007
1015
  continue;
1008
1016
  }
1009
1017
  if (!orgUserList[i].checked) {
@@ -1759,7 +1767,7 @@ var Page = function (_React$Component) {
1759
1767
  if (i == data.length - 1) newremindStyle += data[i].value;else newremindStyle += data[i].value + ',';
1760
1768
  }
1761
1769
  t.setState({
1762
- cunSelectCpc: newremindStyle
1770
+ curSelectCpc: newremindStyle
1763
1771
  }, function () {
1764
1772
  t.instance.update(t.getContent());
1765
1773
  });
@@ -8081,9 +8089,9 @@ var Page = function (_React$Component) {
8081
8089
  }
8082
8090
  }
8083
8091
  var isShowSelectCpc = this.state.isShowSelectCpc;
8084
- var cunSelectCpc = this.state.cunSelectCpc;
8092
+ var curSelectCpc = this.state.curSelectCpc;
8085
8093
  console.log("isShowSelectCpc:" + isShowSelectCpc);
8086
- console.log("cunSelectCpc:" + cunSelectCpc);
8094
+ console.log("curSelectCpc:" + curSelectCpc);
8087
8095
 
8088
8096
  var props = {
8089
8097
  placeholder: "请输入",
@@ -8994,7 +9002,7 @@ var Page = function (_React$Component) {
8994
9002
  chooseType.indexOf("userAndOrg") >= 0 || chooseType.indexOf("userNotOrg") >= 0 ? t.state.orgUserList.map(function (user, index) {
8995
9003
  return _react2.default.createElement(
8996
9004
  HBox,
8997
- { vAlign: 'center', className: isShowSelectCpc && cunSelectCpc.indexOf(user.isCpc) == -1 ? "t-DN" : "t-BCf", onClick: function onClick() {
9005
+ { vAlign: 'center', className: isShowSelectCpc && curSelectCpc.indexOf(user.isCpc) == -1 ? "t-DN" : "t-BCf", onClick: function onClick() {
8998
9006
  t.checkItemMember(index, "orgUser");
8999
9007
  } },
9000
9008
  _react2.default.createElement(
@@ -11071,12 +11079,12 @@ var Page = function (_React$Component) {
11071
11079
  { className: 't-field-box t-FBH' },
11072
11080
  _react2.default.createElement(
11073
11081
  'div',
11074
- { className: required ? "t-field-layout-h-label t-FS16 required" : "t-field-layout-h-label t-FS16" },
11082
+ { className: required ? "t-field-layout-h-label required" : "t-field-layout-h-label" },
11075
11083
  t.state.label
11076
11084
  ),
11077
11085
  _react2.default.createElement(
11078
11086
  HBox,
11079
- { flex: 1, className: t.state.scopeList == null || t.state.scopeList.length <= 0 ? "t-fw t-FS12 t-FC9 t-PL14 t-PR14" : "t-fw t-FS12 t-FC9 t-P10", vAlign: 'center' },
11087
+ { flex: 1, className: t.state.scopeList == null || t.state.scopeList.length <= 0 ? "t-fw t-FS12 t-FC9 t-PL14 t-PR14" : "t-fw t-FS12 t-FC9", style: { justifyContent: "flex-end" }, vAlign: 'center' },
11080
11088
  t.state.scopeList.map(function (item, i) {
11081
11089
  var className = "";
11082
11090
  if (item.scopeType == "user") {
@@ -627,7 +627,7 @@ var PageHome = function (_React$Component) {
627
627
  { className: this.state.label == '' ? 't-DN' : 't-field-box t-FBH t-FBAC t-FBJ' },
628
628
  _react2.default.createElement(
629
629
  'div',
630
- { className: this.state.required ? 't-field-layout-h-label t-FS16 required' : 't-field-layout-h-label t-FS16' },
630
+ { className: this.state.required ? 't-field-layout-h-label required' : 't-field-layout-h-label ' },
631
631
  this.props.label
632
632
  )
633
633
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.97",
3
+ "version": "2.1.99",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",