fmui-base 2.0.46 → 2.0.47

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.47:移动端默认传阅
6
7
  - 2.0.46:移动门户图表组件单维表多维表不支持提示
7
8
  - 2.0.45:移动门户组件修改
8
9
  - 2.0.44:移动门户组件修改
@@ -424,7 +424,9 @@ var PageHome = function (_React$Component) {
424
424
  commentBackAlert: [], //退回批示意见弹出
425
425
  showCommentBackAlert: true, //显示退回批示意见弹出
426
426
  endSelect: false,
427
- mobileFlowChar: '0' //是否开启流程图 1开启 0禁用
427
+ mobileFlowChar: '0', //是否开启流程图 1开启 0禁用
428
+ readScopeId: '',
429
+ readScopeList: []
428
430
  };
429
431
  FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
430
432
 
@@ -744,6 +746,14 @@ var PageHome = function (_React$Component) {
744
746
  }
745
747
 
746
748
  var form = content.form;
749
+ var readScopeId = '';
750
+ var readScopeList = [];
751
+ if (content.readScopeId && typeof content.readScopeId != "undefined") {
752
+ readScopeId = content.readScopeId;
753
+ }
754
+ if (content.readScopeList && typeof content.readScopeList != "undefined") {
755
+ readScopeList = content.readScopeList;
756
+ }
747
757
  var formKey = form.formcode;
748
758
  var formStyleObj = form.formStyle;
749
759
 
@@ -1299,7 +1309,12 @@ var PageHome = function (_React$Component) {
1299
1309
  preCaFields: preCaFields,
1300
1310
  formRelaField: formRelaField,
1301
1311
  dealReminderContent: dealReminderContent,
1302
- mobileFlowChar: mobileFlowChar
1312
+ mobileFlowChar: mobileFlowChar,
1313
+ readScopeId: readScopeId,
1314
+ readScopeList: readScopeList
1315
+ }, function () {
1316
+ t.refs["selectMember_circulate"].initSelectData();
1317
+ t.refs["selectMember_circulate1"].initSelectData();
1303
1318
  });
1304
1319
  t.dealWithButtons(content, formKey);
1305
1320
  }, function (error) {
@@ -1386,7 +1401,7 @@ var PageHome = function (_React$Component) {
1386
1401
  }, {
1387
1402
  key: 'dealwithButtonsFunc',
1388
1403
  value: function dealwithButtonsFunc(content, extensionButtonList) {
1389
-
1404
+ debugger;
1390
1405
  var t = this;
1391
1406
  var buttons = content.buttons; //按钮
1392
1407
  var startButtons = content.startButtons; //发起人节点按钮配置
@@ -1412,7 +1427,7 @@ var PageHome = function (_React$Component) {
1412
1427
  for (var b = 0; b < buttonArray.length; b++) {
1413
1428
  var buttonCode = buttonArray[b];
1414
1429
  //PAGE_SAVE保存按钮只有当新建时才有,HELP_ADDLOTS加签只有在会签和串签才有,RADOM_FINISH随机流程完成按钮去掉
1415
- if (buttonCode == 'OTHER_RELATION' || buttonCode == 'HELP_CIRCULATE' || buttonCode == 'BASE_INVALID' || buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && (participantMode == '0' || participantMode == '3')) {
1430
+ if (buttonCode == 'OTHER_RELATION' || buttonCode == 'BASE_INVALID' || buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && (participantMode == '0' || participantMode == '3')) {
1416
1431
  continue;
1417
1432
  } else {
1418
1433
  if (dataId == '' || isStart == true && permissionCode == 'start' || isDraft == '1') {
@@ -6910,6 +6925,39 @@ var PageHome = function (_React$Component) {
6910
6925
  '\u62A2\u5360'
6911
6926
  )
6912
6927
  )
6928
+ ),
6929
+ _react2.default.createElement(
6930
+ 'div',
6931
+ { className: this.state.buttons.indexOf("HELP_CIRCULATE") > -1 && this.state.isHideRead == false ? "" : "t-DN", style: { background: '#f2f3f5', height: '35px', padding: '10px 5px' } },
6932
+ _react2.default.createElement(
6933
+ 'span',
6934
+ { className: 'theme-color' },
6935
+ _react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14 t-FR' }),
6936
+ '\u4F20\u9605'
6937
+ )
6938
+ ),
6939
+ _react2.default.createElement(
6940
+ 'div',
6941
+ { className: this.state.buttons.indexOf("HELP_CIRCULATE") > -1 && this.state.isHideRead == false ? "" : "t-DN" },
6942
+ _react2.default.createElement(_select2.default, {
6943
+ required: false,
6944
+ readOnly: false,
6945
+ label: '传阅人',
6946
+ placeholder: '\u8BF7\u9009\u62E9',
6947
+ code: 'user,org,group',
6948
+ chooseType: 'userNotOrg,userNotGroup',
6949
+ checkType: 'checkbox',
6950
+ defaultValue: this.state.readScopeList,
6951
+ ref: "selectMember_circulate1",
6952
+ isDelete: true,
6953
+ onChange: this.getCirculatePerson.bind(this)
6954
+ }),
6955
+ _react2.default.createElement(_CheckboxField2.default, {
6956
+ data: this.state.readShortMessageList,
6957
+ className: '',
6958
+ mode: 'list',
6959
+ onChange: this.changeCirculateShortMessage.bind(this),
6960
+ required: false })
6913
6961
  )
6914
6962
  ),
6915
6963
  _react2.default.createElement(
@@ -7127,6 +7175,7 @@ var PageHome = function (_React$Component) {
7127
7175
  code: 'user,org,group',
7128
7176
  chooseType: 'userNotOrg,userNotGroup',
7129
7177
  checkType: 'checkbox',
7178
+ defaultValue: this.state.readScopeList,
7130
7179
  ref: "selectMember_circulate",
7131
7180
  isDelete: true,
7132
7181
  onChange: this.circulateCallback.bind(this)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.46",
3
+ "version": "2.0.47",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",