fmui-base 2.1.69 → 2.1.71

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.71:传阅支持选择到组织、职务、群组
7
+ - 2.1.70:移动端流程发起推送标题实时更新
6
8
  - 2.1.69:移动端流程办理推送标题
7
9
  - 2.1.68:移动端流程办理推送标题
8
10
  - 2.1.67:移动端流程记录增加退回的意见显示
@@ -2294,7 +2294,7 @@ var PageHome = function (_React$Component) {
2294
2294
  editType: editType,
2295
2295
  module: this.state.module,
2296
2296
  lock: this.state.lock,
2297
- reminderContent: "",
2297
+ reminderContent: this.state.reminderContent,
2298
2298
  processInstanceId: this.state.processInstanceId
2299
2299
  };
2300
2300
  var dealActionName = "";
@@ -2320,7 +2320,8 @@ var PageHome = function (_React$Component) {
2320
2320
  if (content.title && content.title != "") {
2321
2321
  var reminderContent = content.title;
2322
2322
  t.setState({
2323
- reminderContent: reminderContent
2323
+ reminderContent: reminderContent,
2324
+ dealReminderContent: reminderContent
2324
2325
  });
2325
2326
  param.reminderContent = reminderContent;
2326
2327
  }
@@ -4719,32 +4720,15 @@ var PageHome = function (_React$Component) {
4719
4720
  param.nextTaskId = nextTaskId;
4720
4721
  if (circulatePersonValue.length > 0) {
4721
4722
  circulatePersonValue.map(function (item, index) {
4722
- if (item.scopeType == 'org') {
4723
- orgIds += item.scopeValue + ',';
4724
- } else if (item.scopeType == 'user') {
4725
- assignId += item.scopeValue + ',';
4726
- assignName += item.scopeName + ',';
4727
- }
4723
+ assignName += item.scopeName + ',';
4728
4724
  });
4729
- if (orgIds != '') {
4730
- orgIds = orgIds.substring(0, orgIds.length - 1);
4731
- var orgUserList = getUsersByOrgIDs(orgIds);
4732
- var orgUserids = '';
4733
- var orgUsernames = '';
4734
- for (var j = 0; j < orgUserList.length; j++) {
4735
- if (assignId.indexOf(orgUserList[j].id) < 0) {
4736
- orgUserids += orgUserList[j].id + ",";
4737
- orgUsernames += orgUserList[j].userName + ",";
4738
- }
4739
- }
4740
- assignId += orgUserids;
4741
- assignName += orgUsernames;
4742
- }
4743
- if (assignId) {
4744
- assignId = assignId.substring(0, assignId.length - 1);
4725
+
4726
+ if (assignName && assignName != '') {
4745
4727
  assignName = assignName.substring(0, assignName.length - 1);
4746
4728
  }
4747
4729
  }
4730
+ param.scopeJsonData = JSON.stringify(circulatePersonValue);
4731
+ console.log(JSON.stringify(circulatePersonValue));
4748
4732
  param.circulateIds = assignId;
4749
4733
  param.circulateNames = assignName;
4750
4734
  param.dealReminderContent = dealReminderContent;
@@ -5544,39 +5528,29 @@ var PageHome = function (_React$Component) {
5544
5528
  var orgIds = "";
5545
5529
  var isPush = t.state.isPush;
5546
5530
  for (var i = 0; i < value.length; i++) {
5547
- if (value[i].scopeType == 'org') {
5548
- orgIds += value[i].scopeValue + ',';
5549
- } else if (value[i].scopeType == 'user') {
5550
- targetUserIds += value[i].scopeValue + ',';
5551
- targetUserNames += value[i].scopeName + ',';
5552
- }
5553
- }
5554
- if (orgIds != '') {
5555
- orgIds = orgIds.substring(0, orgIds.length - 1);
5556
- var orgUserList = getUsersByOrgIDs(orgIds);
5557
- var orgUserids = '';
5558
- var orgUsernames = '';
5559
- for (var j = 0; j < orgUserList.length; j++) {
5560
- if (targetUserIds.indexOf(orgUserList[j].id) < 0) {
5561
- orgUserids += orgUserList[j].id + ",";
5562
- orgUsernames += orgUserList[j].userName + ",";
5563
- }
5564
- }
5565
- targetUserIds += orgUserids;
5566
- targetUserNames += orgUsernames;
5531
+ targetUserNames += value[i].scopeName + ',';
5567
5532
  }
5568
- if (targetUserIds) {
5569
- targetUserIds = targetUserIds.substring(0, targetUserIds.length - 1);
5533
+
5534
+ if (targetUserNames && targetUserNames != '') {
5535
+ // targetUserIds = targetUserIds.substring(0,targetUserIds.length-1);
5570
5536
  targetUserNames = targetUserNames.substring(0, targetUserNames.length - 1);
5571
5537
  }
5572
5538
 
5573
- if (targetUserIds == '') {
5539
+ // if(targetUserIds == ''){
5540
+ // Toast.show({
5541
+ // type: 'error',
5542
+ // content: '请选择传阅人',
5543
+ // });
5544
+ // return false;
5545
+ // }
5546
+ if (value.length == 0) {
5574
5547
  _Toast2.default.show({
5575
5548
  type: 'error',
5576
5549
  content: '请选择传阅人'
5577
5550
  });
5578
5551
  return false;
5579
5552
  }
5553
+
5580
5554
  var shortMessage = '0';
5581
5555
  var circulateShortMessage = t.state.circulateShortMessage;
5582
5556
  /* if(circulateShortMessage.length>0){
@@ -5598,6 +5572,7 @@ var PageHome = function (_React$Component) {
5598
5572
  taskId: t.state.taskId,
5599
5573
  targetUserIds: targetUserIds,
5600
5574
  targetUserNames: targetUserNames,
5575
+ scopeJsonData: JSON.stringify(value),
5601
5576
  module: t.state.module,
5602
5577
  formId: t.state.formId,
5603
5578
  permissionCode: t.state.permissionCode,
@@ -7741,8 +7716,8 @@ var PageHome = function (_React$Component) {
7741
7716
  readOnly: false,
7742
7717
  label: '传阅人',
7743
7718
  placeholder: '\u8BF7\u9009\u62E9',
7744
- code: 'user,org,group',
7745
- chooseType: 'userNotOrg,userNotGroup',
7719
+ code: 'user,org,group,duty,politicalOutlook,station,personGroup',
7720
+ chooseType: 'userAndOrg,userAndGroup,userAndDuty,userNotPoliticalOutlook,userAndStation,userAndPersonGroup',
7746
7721
  checkType: 'checkbox',
7747
7722
  defaultValue: this.state.readScopeList,
7748
7723
  ref: "selectMember_circulate1",
@@ -7969,8 +7944,8 @@ var PageHome = function (_React$Component) {
7969
7944
  readOnly: false,
7970
7945
  label: '传阅人',
7971
7946
  placeholder: '\u8BF7\u9009\u62E9',
7972
- code: 'user,org,group',
7973
- chooseType: 'userNotOrg,userNotGroup',
7947
+ code: 'user,org,group,duty,politicalOutlook,station,personGroup',
7948
+ chooseType: 'userAndOrg,userAndGroup,userAndDuty,userNotPoliticalOutlook,userAndStation,userAndPersonGroup',
7974
7949
  checkType: 'checkbox',
7975
7950
  defaultValue: this.state.readScopeList,
7976
7951
  ref: "selectMember_circulate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.69",
3
+ "version": "2.1.71",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",