eoss-ui 0.8.18 → 0.8.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.8.18",
3
+ "version": "0.8.19",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -2813,6 +2813,9 @@ this.$confirm('确认提交?', '提示', {
2813
2813
  this.nextNode.customLimitTimeText =
2814
2814
  data.nodeMoreInfo.defaultCustomLimitDays + '';
2815
2815
  }
2816
+ if( this.currentOrgSelectorParams.department && !this.currentOrgSelectorParams.department.roleid && this.selectorParams.roleid && data.nodeExtAttr.deptRoleCode){
2817
+ this.currentOrgSelectorParams.department.roleid = data.nodeExtAttr.deptRoleCode;
2818
+ }
2816
2819
  if(data.nodeMoreInfo.currentOrgDefaultSelectObjectItems){
2817
2820
  if(data.nodeMoreInfo.currentOrgDefaultSelectObjectItems.deptIds.length > 0){
2818
2821
  data.nodeMoreInfo.currentOrgDefaultSelectObjectItems.deptIds.map((x,i) => {
@@ -3236,7 +3239,8 @@ this.$confirm('确认提交?', '提示', {
3236
3239
  currentOrgparams[i] == 'my'
3237
3240
  ? choiceOrgId
3238
3241
  : currentOrgparams[i],
3239
- only_filid: true
3242
+ only_filid: true,
3243
+ roleid:this.selectorParams.roleid
3240
3244
  };
3241
3245
  });
3242
3246
  }
@@ -4184,7 +4188,6 @@ this.$confirm('确认提交?', '提示', {
4184
4188
  },
4185
4189
  // 单位选择完回调
4186
4190
  disposeAppUnit(res, type) {
4187
- console.log(res, '选完了');
4188
4191
  let label = type.substring(0, type.lastIndexOf('Select'));
4189
4192
  this.nextNode[label + 'Name'] = '';
4190
4193
  res.options && (this[type] = res.options);
@@ -147,7 +147,8 @@
147
147
  mix
148
148
  @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
149
149
  :showTooltip="showTooltip"
150
- :types="['employee', 'persongroup']"
150
+ :selectUserList="nextCurrentOrgselectUserList"
151
+ :types="currentOrgSelectorTabs"
151
152
  :params="currentOrgSelectorParams"
152
153
  />
153
154
  </el-form-item>
@@ -166,7 +167,11 @@
166
167
  <el-form-item
167
168
  v-if="!isHideOtherOrg && !isHideCurrentOrg"
168
169
  :prop="isShowNextUser ? 'nextUser' : 'nextOrgId'"
169
- :label="isShowNextUser ? `${flowLabelConfig.nextUser||'下步办理人'}` : '办理对象'"
170
+ :label="
171
+ isShowNextUser
172
+ ? `${flowLabelConfig.nextUser || '下步办理人'}`
173
+ : '办理对象'
174
+ "
170
175
  >
171
176
  <SelectUser
172
177
  :nextUser="isShowNextUser ? nextNode.nextUser : nextNode.nextOrgId"
@@ -510,11 +515,13 @@ export default {
510
515
  default: 0
511
516
  },
512
517
  selectorParams: { type: Object, default: () => {} },
513
- flowLabelConfig: {
514
- type:Object,
515
- default: () => {return {}}
518
+ flowLabelConfig: {
519
+ type: Object,
520
+ default: () => {
521
+ return {};
522
+ }
516
523
  },
517
- hideMessage: { type: Boolean, default: false },
524
+ hideMessage: { type: Boolean, default: false }
518
525
  },
519
526
  data() {
520
527
  return {
@@ -525,6 +532,7 @@ export default {
525
532
  selectUser: false,
526
533
  multiple: false,
527
534
  readMultiple: true,
535
+ currentOrgSelectorTabs: ['employee', 'persongroup'],
528
536
  customPresetHintMessage: '', //流程预设标题
529
537
  nextNodeCheckType: 'select',
530
538
  nextOperateCheckType: 'select',
@@ -535,6 +543,7 @@ export default {
535
543
  show: true,
536
544
  enableCustomLimitTimeSetting: false,
537
545
  radioList: [],
546
+ nextCurrentOrgselectUserList: [],
538
547
  showCustomLimitTimeText: false,
539
548
  activeNames: '',
540
549
  selectUserList: [],
@@ -1046,7 +1055,9 @@ export default {
1046
1055
  !this.isHideCurrentOrg &&
1047
1056
  !this.isHideOtherOrg
1048
1057
  ) {
1049
- return this.$message.warning(`请选择${this.flowLabelConfig.nextUser || '下步办理人'}`);
1058
+ return this.$message.warning(
1059
+ `请选择${this.flowLabelConfig.nextUser || '下步办理人'}`
1060
+ );
1050
1061
  }
1051
1062
  } else {
1052
1063
  if (nextOrgId == '' || (this.multiple && nextOrgId.length == 0)) {
@@ -1368,6 +1379,9 @@ export default {
1368
1379
  this.allLoading.close();
1369
1380
  }
1370
1381
  if (status === 'success') {
1382
+ if( this.currentOrgSelectorParams.department && !this.currentOrgSelectorParams.department.roleid && this.selectorParams.roleid && nodeExtAttr.deptRoleCode){
1383
+ this.currentOrgSelectorParams.department.roleid = nodeExtAttr.deptRoleCode;
1384
+ }
1371
1385
  this.isCurrentNodeForbiddenChangeCandidate =
1372
1386
  nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
1373
1387
  this.nextNode.userInfo = nextUserList;
@@ -1375,6 +1389,58 @@ export default {
1375
1389
  this.nextNode.countersignaturetypeText = countersignaturetypeText;
1376
1390
  this.enableCustomLimitTimeSetting =
1377
1391
  nodeExtAttr.enableCustomLimitTimeSetting == 1;
1392
+ if (nodeMoreInfo.currentOrgDefaultSelectObjectItems) {
1393
+ this.nextCurrentOrgselectUserList = []
1394
+ if (
1395
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems.deptIds.length >
1396
+ 0
1397
+ ) {
1398
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems.deptIds.map(
1399
+ (x, i) => {
1400
+ this.nextCurrentOrgselectUserList.push({
1401
+ showname:
1402
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems
1403
+ .deptNames[i],
1404
+ showid: x,
1405
+ stype: 'department'
1406
+ });
1407
+ }
1408
+ );
1409
+ }
1410
+ if (
1411
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems.userIds.length >
1412
+ 0
1413
+ ) {
1414
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems.userIds.map(
1415
+ (x, i) => {
1416
+ this.nextCurrentOrgselectUserList.push({
1417
+ showname:
1418
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems
1419
+ .userNames[i],
1420
+ showid: x,
1421
+ stype: 'employee'
1422
+ });
1423
+ }
1424
+ );
1425
+ }
1426
+ if (
1427
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems.orgIds.length >
1428
+ 0
1429
+ ) {
1430
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems.orgIds.map(
1431
+ (x, i) => {
1432
+ this.nextCurrentOrgselectUserList.push({
1433
+ showname:
1434
+ nodeMoreInfo.currentOrgDefaultSelectObjectItems
1435
+ .orgNames[i],
1436
+ showid: x,
1437
+ stype: 'enterprise'
1438
+ });
1439
+ }
1440
+ );
1441
+ }
1442
+ this.nextNode.nextCurrentOrgObj = nodeMoreInfo.currentOrgDefaultSelectObjects
1443
+ }
1378
1444
  if (
1379
1445
  this.enableCustomLimitTimeSetting &&
1380
1446
  nodeMoreInfo.defaultCustomLimitDays
@@ -1492,7 +1558,7 @@ export default {
1492
1558
  .then((res) => {
1493
1559
  const { status, message } = res;
1494
1560
  if (status === 'success') {
1495
- if(this.hideMessage) return
1561
+ if (this.hideMessage) return;
1496
1562
  this.nextNode.noticeType = message.split(',');
1497
1563
  let arr = [];
1498
1564
  this.nextNode.noticeList.map((item) => {
@@ -1598,6 +1664,26 @@ export default {
1598
1664
  (this.nextNodeCheckType = data.nextNodeCheckType);
1599
1665
  data.nextOperateCheckType &&
1600
1666
  (this.nextOperateCheckType = data.nextOperateCheckType);
1667
+ if (data.currentOrgSelectorParams) {
1668
+ if (
1669
+ data.currentOrgSelectorParams.enableCurrentOrgConfig == 'true'
1670
+ ) {
1671
+ this.currentOrgSelectorTabs =
1672
+ data.currentOrgSelectorParams.currentOrgType.split(',');
1673
+ let currentOrgparams =
1674
+ data.currentOrgSelectorParams.currentOrgRange.split(',');
1675
+ this.currentOrgSelectorTabs.map((x, i) => {
1676
+ this.currentOrgSelectorParams[x] = {
1677
+ filid:
1678
+ currentOrgparams[i] == 'my'
1679
+ ? JSON.parse(util.getStorage('mainConfig')).userModel
1680
+ .orgId
1681
+ : currentOrgparams[i],
1682
+ only_filid: true
1683
+ };
1684
+ });
1685
+ }
1686
+ }
1601
1687
  this.customPresetHintMessage = data.customPresetHintMessage;
1602
1688
  this.readOnlyNotificationType = data.readOnlyNotificationType;
1603
1689
  this.notificationMessageReadOnly =
@@ -1643,15 +1729,18 @@ export default {
1643
1729
  ? this.defaultNextNode
1644
1730
  : data.nextNodeList[0].nodeId;
1645
1731
  }
1646
- }
1732
+ }
1647
1733
  if (
1648
1734
  data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 ||
1649
1735
  data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1
1650
1736
  ) {
1651
1737
  // this.nextNode.nodeInfo = data.nextNodeList
1652
1738
  this.nextNode.nextOperate = 1;
1653
- this.nextNode.nodeInfo = this.operationList[this.isHideDefaultOperation != 1?1:0].list;
1654
-
1739
+ this.nextNode.nodeInfo =
1740
+ this.operationList[
1741
+ this.isHideDefaultOperation != 1 ? 1 : 0
1742
+ ].list;
1743
+
1655
1744
  if (this.nextNode.nodeInfo.length > 0) {
1656
1745
  let defaultNodeData = this.nextNode.nodeInfo.filter(
1657
1746
  (x) => x.nodeId == this.defaultNextNode
@@ -1659,7 +1748,7 @@ export default {
1659
1748
  this.nextNode.nextNode =
1660
1749
  defaultNodeData.length > 0
1661
1750
  ? this.defaultNextNode
1662
- :this.nextNode.nodeInfo[0].nodeId;
1751
+ : this.nextNode.nodeInfo[0].nodeId;
1663
1752
  }
1664
1753
  }
1665
1754
  }
@@ -385,7 +385,6 @@ export default {
385
385
  if (this.mix) data = this.getMixList();
386
386
  if (this.newMultiple) {
387
387
  this.newNextUser = [];
388
-
389
388
  this.newSelectUserList.map((item) => {
390
389
  if (this.mix) {
391
390
  this.newOptions.push({
@@ -1853,20 +1853,20 @@
1853
1853
  "
1854
1854
  @blur="
1855
1855
  (event) => {
1856
- handleBlur(item.name, event);
1856
+ handleBlur(item, event);
1857
1857
  }
1858
1858
  "
1859
1859
  @focus="
1860
1860
  (event) => {
1861
- handleFocus(item.name, event);
1861
+ handleFocus(item, event);
1862
1862
  }
1863
1863
  "
1864
1864
  @input="
1865
1865
  (val) => {
1866
- handleInput(item.name, val);
1866
+ handleInput(item, val);
1867
1867
  }
1868
1868
  "
1869
- @clear="handleClear(item.name)"
1869
+ @clear="handleClear(item)"
1870
1870
  @change="
1871
1871
  (val) => {
1872
1872
  handleChange(item, val);
@@ -3491,6 +3491,7 @@ export default {
3491
3491
  }
3492
3492
  },
3493
3493
  handleFocus(a, b, c) {
3494
+ console.log('handleFocus focus', a);
3494
3495
  if (a.events && a.events.focus) {
3495
3496
  a.events.focus(a.name, b, c, this.models);
3496
3497
  } else if (this.events[a.name] && this.events[a.name].focus) {
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.8.18',
128
+ version: '0.8.19',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,