n20-common-lib 2.13.13 → 2.13.15

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.13.13",
3
+ "version": "2.13.15",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -516,25 +516,31 @@ export default {
516
516
  methods: {
517
517
  // 查询选择审批人
518
518
  async showAdvancePop() {
519
- try {
520
- const res = await this.$axios.post('/bems/activiti/admin/todo/showAdvancePop', {
521
- isAgentcy: this.$route.query.isAgentcy,
522
- taskId: this.$route.query.taskId
523
- }, {
524
- loading: false,
525
- noMsg:true
526
- })
527
- // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
528
- if (res.code === 200 && res.data && (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)) {
529
- this.setSpr = true
530
- this.selectSprList = res.data
531
- } else {
519
+ this.beforeFn(this.beforeRatify, async () => {
520
+ try {
521
+ const res = await this.$axios.post(
522
+ '/bems/activiti/admin/todo/showAdvancePop',
523
+ {
524
+ isAgentcy: this.$route.query.isAgentcy,
525
+ taskId: this.$route.query.taskId
526
+ },
527
+ {
528
+ loading: false,
529
+ noMsg: true
530
+ }
531
+ )
532
+ // 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
533
+ if (res.code === 200 && res.data && (res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)) {
534
+ this.setSpr = true
535
+ this.selectSprList = res.data
536
+ } else {
537
+ this.checkFlowFn()
538
+ }
539
+ } catch (error) {
540
+ console.log(error)
532
541
  this.checkFlowFn()
533
542
  }
534
- } catch (error) {
535
- console.log(error)
536
- this.checkFlowFn()
537
- }
543
+ })
538
544
  },
539
545
  // 选择审批人
540
546
  selectSprListFn(data) {
@@ -932,13 +938,11 @@ export default {
932
938
  if (this.addTaskList.length > 0 && !this.addTaskType) {
933
939
  return this.addErrFn()
934
940
  }
935
- this.beforeFn(this.beforeRatify, () => {
936
- axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
937
- this.thenMsg(
938
- data,
939
- this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
940
- )
941
- })
941
+ axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
942
+ this.thenMsg(
943
+ data,
944
+ this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
945
+ )
942
946
  })
943
947
  },
944
948
  approvalNext() {
@@ -366,7 +366,7 @@ export default {
366
366
  return columns.map((column) => {
367
367
  if (!column.type) {
368
368
  const rate = column['_width_'] / columnsWidth
369
- column['width'] = windowWidth * rate
369
+ column['width'] = Math.ceil(windowWidth * rate)
370
370
  return column
371
371
  }
372
372