n20-common-lib 2.22.10 → 2.22.12

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.22.10",
3
+ "version": "2.22.12",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -579,27 +579,8 @@ export default {
579
579
  noMsg: true
580
580
  }
581
581
  )
582
- // addTaskTip 是否给出加签提示
583
- if (res.code === 200 && res.data && res.data.addTaskTip) {
584
- this.$confirm('请确定是否向后加签', $lc('提示'), {
585
- confirmButtonText: $lc('确定'),
586
- cancelButtonText: $lc('取消'),
587
- type: 'warning'
588
- }).then(() => {
589
- // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
590
- if (
591
- res.code === 200 &&
592
- res.data &&
593
- (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)
594
- ) {
595
- this.setSpr = true
596
- this.selectSprList = res.data
597
- } else {
598
- this.checkFlowFn()
599
- }
600
- })
601
- } else {
602
- // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
582
+ // 处理请求结果:showNextEgwOutgoingNodeName 或 showNextNodeAssignee 有一个为 true 时显示加签列表
583
+ const handleResult = () => {
603
584
  if (
604
585
  res.code === 200 &&
605
586
  res.data &&
@@ -608,9 +589,21 @@ export default {
608
589
  this.setSpr = true
609
590
  this.selectSprList = res.data
610
591
  } else {
592
+ this.nextEgwOutgoingNodeId = undefined
593
+ this.nextNodeApproveUnos = undefined
611
594
  this.checkFlowFn()
612
595
  }
613
596
  }
597
+ // addTaskTip 是否给出加签提示
598
+ if (res.code === 200 && res.data && res.data.addTaskTip) {
599
+ this.$confirm('请确定是否向后加签', $lc('提示'), {
600
+ confirmButtonText: $lc('确定'),
601
+ cancelButtonText: $lc('取消'),
602
+ type: 'warning'
603
+ }).then(handleResult)
604
+ } else {
605
+ handleResult()
606
+ }
614
607
  } catch (error) {
615
608
  console.log(error)
616
609
  this.checkFlowFn()
@@ -7,7 +7,8 @@
7
7
  clearable
8
8
  :multiple="multiple"
9
9
  collapse-tags
10
- :placeholder="'常用审批意见,选择后将自动填充至下方输入框,您可在此基础上修改' | $lc"
10
+ :placeholder="'
11
+ ,选择后将自动填充至下方输入框,您可在此基础上修改' | $lc"
11
12
  @change="changeFn"
12
13
  >
13
14
  <el-option v-for="(item, i) in approveMsgList" :key="i" :label="item.suggestion" :value="item.suggestion" />
@@ -106,6 +107,7 @@ import ClTablePro from '../TablePro/index.vue'
106
107
  import { $lc } from '../../utils/i18n/index'
107
108
  import axios from '../../utils/axios'
108
109
  export default {
110
+ name: 'ShowAppOpi',
109
111
  components: {
110
112
  clSecondaryTab,
111
113
  ClDialog,
@@ -258,6 +258,8 @@ export default {
258
258
  handleClose() {
259
259
  this.progressV = false
260
260
  this.$emit('clearFiles')
261
+ this.page.current = 1
262
+ this.page.pageSize = 20
261
263
  },
262
264
  getList() {
263
265
  const startIndex = (this.page.current - 1) * this.page.pageSize
package/src/index.js CHANGED
@@ -5,6 +5,7 @@ import AnchorItem from './components/Anchor/AnchorItem.vue'
5
5
  import Anchor from './components/Anchor/index.vue'
6
6
 
7
7
  import ApprovalButtons from './components/ApprovalButtons/index.vue'
8
+ import ShowAppOpi from './components/ApprovalButtons/showAppOpi.vue'
8
9
  import ApproveCard from './components/ApprovalCard/ApproveCard.vue'
9
10
  import ApprovalCard from './components/ApprovalCard/index.vue'
10
11
  import ApprovalImg from './components/ApprovalRecord/approvalImg.vue'
@@ -183,6 +184,7 @@ const components = [
183
184
  ApproveCard,
184
185
  ApprovalRecord,
185
186
  ApprovalButtons,
187
+ ShowAppOpi,
186
188
  Expandable,
187
189
  ExpandablePane,
188
190
  Empty,
@@ -302,6 +304,7 @@ export {
302
304
  Anchor,
303
305
  AnchorItem,
304
306
  ApprovalButtons,
307
+ ShowAppOpi,
305
308
  ApprovalCard,
306
309
  /* 中建科 */
307
310
  ApprovalCardZjk,