eoss-ui 0.5.81-beta16 → 0.5.81-beta17

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.
@@ -117,6 +117,17 @@
117
117
  @change="changeSelectUser($event, 'addSignUserId', true)"
118
118
  />
119
119
  </el-form-item>
120
+ <el-form-item
121
+ prop="addSignMode"
122
+ v-if="isCanPreAddSign"
123
+ label="加签模式"
124
+ :rules="[{ required: true, trigger: 'blur' }]"
125
+ >
126
+ <el-radio-group v-model="nextNode.addSignMode">
127
+ <el-radio label="preAddSign">前置加签</el-radio>
128
+ <el-radio label="postAddSign">后置加签</el-radio>
129
+ </el-radio-group>
130
+ </el-form-item>
120
131
  </div>
121
132
  <!-- 加签结束 -->
122
133
  <!-- 减签开始 -->
@@ -400,12 +411,10 @@
400
411
  <div
401
412
  v-show="showNews"
402
413
  style="
403
- {
404
- border: 1px solid #ccc;
405
- padding: 5px;
406
- border-radius: 5px;
407
- font-size: 13px;
408
- }
414
+ border: 1px solid #ccc;
415
+ padding: 5px;
416
+ border-radius: 5px;
417
+ font-size: 13px;
409
418
  "
410
419
  >
411
420
  {{ nextNode.notificationMsg }}
@@ -740,6 +749,7 @@ export default {
740
749
  return {
741
750
  styles: {},
742
751
  userModel: {},
752
+ isCanPreAddSign: false,
743
753
  nextOtherOrgObjSelect: [],
744
754
  subProcessColumns: [],
745
755
  nextCurrentOrgObjSelect: [],
@@ -860,6 +870,7 @@ export default {
860
870
  presetReadUserId: [],
861
871
  nextNode: {
862
872
  nextNodeId: '', // 下步节点
873
+ addSignMode: 'postAddSign',
863
874
  isAddSign: '', // 是否加签
864
875
  isRemoveSign: '', // 是否减签
865
876
  nextOperate: '', // 下步操作
@@ -1332,8 +1343,8 @@ export default {
1332
1343
  rejectBtn() {
1333
1344
  if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
1334
1345
  if (!this.value) {
1335
- if(!this.$refs.commonOpinions.validate()) return
1336
- }
1346
+ if (!this.$refs.commonOpinions.validate()) return;
1347
+ }
1337
1348
  if (this.beforeSubmit != undefined) {
1338
1349
  this.beforeSubmit(0)
1339
1350
  .then((next) => {
@@ -1341,7 +1352,6 @@ export default {
1341
1352
  })
1342
1353
  .catch((e) => {});
1343
1354
  } else {
1344
-
1345
1355
  this.showReject = true;
1346
1356
  }
1347
1357
  },
@@ -1643,11 +1653,10 @@ export default {
1643
1653
  * @date 2022年9月29日
1644
1654
  **/
1645
1655
  rejectAndEnd(res) {
1646
- if (this.isOpinionRequired == 1 && (this.value == '' || !this.value)){
1647
- if(!this.$refs.commonOpinions.validate()) return
1648
- }
1656
+ if (this.isOpinionRequired == 1 && (this.value == '' || !this.value)) {
1657
+ if (!this.$refs.commonOpinions.validate()) return;
1658
+ }
1649
1659
  if (this.beforeSubmit != undefined) {
1650
-
1651
1660
  this.beforeSubmit()
1652
1661
  .then((next) => {
1653
1662
  this.saveRejectAndEnd(res);
@@ -1660,7 +1669,6 @@ export default {
1660
1669
  saveRejectAndEnd(res) {
1661
1670
  this.$confirm('确认' + res.value + '?')
1662
1671
  .then(() => {
1663
-
1664
1672
  // return this.$message.warning('请填写意见');
1665
1673
  let params = {
1666
1674
  url: rejectAndEnd,
@@ -1783,7 +1791,7 @@ export default {
1783
1791
  this.isHideOtherOrg = false;
1784
1792
  this.isNodeShowProcess = false;
1785
1793
  this.isMainSubProcess = false;
1786
- this.isNextUser =this.nextNode.nextOperate != 9 ;
1794
+ this.isNextUser = this.nextNode.nextOperate != 9;
1787
1795
  // this.isMainSubProcess === true
1788
1796
  // ? (this.isMainSubProcess = true)
1789
1797
  // : (this.isMainSubProcess = false);
@@ -1960,7 +1968,7 @@ export default {
1960
1968
  return;
1961
1969
  } else {
1962
1970
  }
1963
-
1971
+
1964
1972
  if (isDef !== true) this.getNodeInfo();
1965
1973
  },
1966
1974
  /**
@@ -2041,13 +2049,15 @@ export default {
2041
2049
  isSpecial,
2042
2050
  canPresetRead,
2043
2051
  isCdjxjTaskHandle,
2044
- taskButtonList
2052
+ taskButtonList,
2053
+ isCanPreAddSign
2045
2054
  }
2046
2055
  } = res;
2047
2056
  this.$emit('startTaskRead', res);
2048
2057
  this.$emit('start-task-read', res);
2049
2058
  this.currentOrgName = currentOrgName;
2050
2059
  this.otherOrgName = otherOrgName;
2060
+ this.isCanPreAddSign = isCanPreAddSign;
2051
2061
  this.endFlowInfo.choiceOrgId = choiceOrgId;
2052
2062
  this.endFlowInfo.choiceDeptId = choiceDeptId;
2053
2063
  this.endFlowInfo.pendingId = this.pendingId;
@@ -2514,6 +2524,9 @@ export default {
2514
2524
  notificationType = this.nextNode.notificationType.join(',');
2515
2525
  addSignUserId = addSignUserId.join(',');
2516
2526
  removeSignUserId = removeSignUserId.join(',');
2527
+ if (!this.isCanPreAddSign) {
2528
+ delete this.nextNode.addSignMode;
2529
+ }
2517
2530
  let params = {
2518
2531
  ...this.nextNode,
2519
2532
  pendingId: this.pendingId,
@@ -1359,6 +1359,16 @@ export default {
1359
1359
  } else {
1360
1360
  if (res.method == 'iframe') {
1361
1361
  res.url = util.handlerUrl(res.url);
1362
+ } else {
1363
+ let tab = this.tabs[i];
1364
+ if (tab.method === 'iframe') {
1365
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1366
+ } else {
1367
+ this.$set(this.tabs[i], 'refresh', false);
1368
+ this.$nextTick(() => {
1369
+ this.$set(this.tabs[i], 'refresh', true);
1370
+ });
1371
+ }
1362
1372
  }
1363
1373
  }
1364
1374
  },
@@ -1415,11 +1425,17 @@ export default {
1415
1425
  let tab = this.tabs[i];
1416
1426
  if (tab.method === 'iframe') {
1417
1427
  tab.url = util.handlerUrl(tab.url);
1428
+ } else {
1429
+ let tab = this.tabs[i];
1430
+ if (tab.method === 'iframe') {
1431
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1432
+ } else {
1433
+ this.$set(this.tabs[i], 'refresh', false);
1434
+ this.$nextTick(() => {
1435
+ this.$set(this.tabs[i], 'refresh', true);
1436
+ });
1437
+ }
1418
1438
  }
1419
- tab.refresh = false;
1420
- this.$nextTick(() => {
1421
- tab.refresh = true;
1422
- });
1423
1439
  },
1424
1440
  /**
1425
1441
  * @desc:删除iframe
@@ -1501,7 +1517,7 @@ export default {
1501
1517
  } else if (open) {
1502
1518
  util.win.open(open);
1503
1519
  } else if (link) {
1504
- util.win.location.href = link;
1520
+ util.win.open(link, '_self');
1505
1521
  } else {
1506
1522
  switch (type) {
1507
1523
  case 'quit':
@@ -1525,15 +1541,23 @@ export default {
1525
1541
  this.showMsg = false;
1526
1542
  break;
1527
1543
  case 'home':
1528
- if (this.homePage.id !== this.activeName) {
1529
- let i = util.indexOfObj(this.tabs, this.homePage.id, 'id');
1530
- if (i == -1) {
1531
- this.tabs.unshift(this.homePage);
1544
+ let i = util.indexOfObj(this.tabs, this.homePage.id, 'id');
1545
+ if (i == -1) {
1546
+ this.tabs.unshift(this.homePage);
1547
+ } else {
1548
+ let tab = this.tabs[i];
1549
+ if (tab.method === 'iframe') {
1550
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1551
+ } else {
1552
+ this.$set(this.tabs[i], 'refresh', false);
1553
+ this.$nextTick(() => {
1554
+ this.$set(this.tabs[i], 'refresh', true);
1555
+ });
1532
1556
  }
1533
- this.activeName = this.homePage.id;
1534
- this.showMsg = false;
1535
- this.showSet = false;
1536
1557
  }
1558
+ this.activeName = this.homePage.id;
1559
+ this.showMsg = false;
1560
+ this.showSet = false;
1537
1561
  break;
1538
1562
  case 'search':
1539
1563
  this.handlerSetDrawer(res);
@@ -1684,6 +1708,16 @@ export default {
1684
1708
  if (i == -1) {
1685
1709
  let tab = this.setIframeType(obj);
1686
1710
  this.tabs.splice(n + 1, 0, tab);
1711
+ } else {
1712
+ let tab = this.tabs[i];
1713
+ if (tab.method === 'iframe') {
1714
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1715
+ } else {
1716
+ this.$set(this.tabs[i], 'refresh', false);
1717
+ this.$nextTick(() => {
1718
+ this.$set(this.tabs[i], 'refresh', true);
1719
+ });
1720
+ }
1687
1721
  }
1688
1722
  } else {
1689
1723
  this.$message.error('没有此菜单!');
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.81-beta16',
124
+ version: '0.5.81-beta17',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,