n20-common-lib 2.4.42 → 2.4.43

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": "n20-common-lib",
3
- "version": "2.4.42",
3
+ "version": "2.4.43",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -482,7 +482,9 @@ export default {
482
482
  // 审批
483
483
  approvalFn() {
484
484
  if (this.required && !this.messageC) {
485
- return this.errMsgFn($lc('批准'))
485
+ return this.errMsgFn(
486
+ this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
487
+ )
486
488
  }
487
489
  if (this.addTaskList.length > 0 && !this.addTaskType) {
488
490
  return this.addErrFn()
@@ -490,7 +492,10 @@ export default {
490
492
 
491
493
  this.beforeFn(this.beforeRatify, () => {
492
494
  axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
493
- this.thenMsg(data, $lc('批准'))
495
+ this.thenMsg(
496
+ data,
497
+ this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
498
+ )
494
499
  })
495
500
  })
496
501
  },
@@ -468,9 +468,13 @@ export default {
468
468
  }
469
469
  )
470
470
  .then((res) => {
471
+ this.loadingSub()
471
472
  this.loginAfter(res.data)
472
473
  })
473
- .catch(this.getImgCode)
474
+ .catch(() => {
475
+ this.loadingSub()
476
+ this.getImgCode()
477
+ })
474
478
 
475
479
  return
476
480
  }
@@ -487,7 +487,7 @@ export default {
487
487
  }
488
488
  })
489
489
  .finally(() => {
490
- localStorage.setItem('SYSTEM_LIST', JSON.stringify(this.form.SYSTEM_LIST))
490
+ localStorage.setItem('SYSTEM_LIST', JSON.stringify(this.form.SYSTEM_LIST.filter((item) => item.OPEN)))
491
491
  resolve()
492
492
  })
493
493
  })
@@ -64,6 +64,12 @@ export default {
64
64
  .work-card ::v-deep .el-badge__content {
65
65
  line-height: 14px;
66
66
  }
67
+ .work-card .el-badge__content.is-fixed {
68
+ position: absolute;
69
+ top: 0;
70
+ right: -1px;
71
+ transform: scale(0.7) translateY(-50%) translateX(100%);
72
+ }
67
73
 
68
74
  .work-card--empty-title {
69
75
  color: #cacaca;