n20-common-lib 2.11.12 → 2.11.13

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.11.12",
3
+ "version": "2.11.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -434,6 +434,7 @@ export default {
434
434
  let approvalData = []
435
435
  data?.forEach((item) => {
436
436
  let _item = {
437
+ isShow: item.isShow, //是否显示
437
438
  endTime: item.endTime || '',
438
439
  assignee: item.assignee,
439
440
  suggestion: item.suggestion,
@@ -477,7 +478,11 @@ export default {
477
478
 
478
479
  approvalData.push(_item)
479
480
  })
480
- return approvalData
481
+ return (
482
+ approvalData?.filter((item) => {
483
+ return item.isShow !== '0'
484
+ }) || []
485
+ )
481
486
  },
482
487
  // 获取数据字典加签备注
483
488
  async getMdmDataDoc() {
@@ -34,9 +34,12 @@
34
34
  }}</span>
35
35
  <el-button type="text" icon="el-icon-full-screen" style="font-size: 16px" @click="scaleReset" />
36
36
  </div>
37
- <el-popover ref="title-pop" v-model="msgV" trigger="manual" placement="top">
37
+ <el-popover ref="title-pop" v-model="msgV" trigger="hover" placement="top">
38
38
  <div class="activiti-msg">
39
39
  <div v-if="assigneeEnd" class="m-t-ss m-b-ss">
40
+ <div class="flex-box flex-r">
41
+ <el-button type="text" @click="uploadList(assigneeEnd)">{{ '导出' | $lc }}</el-button>
42
+ </div>
40
43
  <table cellspacing="0" style="border-collapse: collapse; min-width: 460px">
41
44
  <tr>
42
45
  <td class="text-c">{{ '已审批人' | $lc }}</td>
@@ -128,10 +131,10 @@
128
131
  </div>
129
132
  </el-popover>
130
133
 
131
- <el-popover ref="child-pop" popper-class="n20-approval-child" v-model="childV" trigger="manual" placement="bottom">
132
- <div v-click-outside="clickOut" v-if="childV">
134
+ <el-popover ref="child-pop" v-model="childV" popper-class="n20-approval-child" trigger="manual" placement="bottom">
135
+ <div v-if="childV" v-click-outside="clickOut">
133
136
  <div>{{ childTitle }}</div>
134
- <child :data-pro="childDataPro"></child>
137
+ <child :data-pro="childDataPro" />
135
138
  </div>
136
139
  </el-popover>
137
140
  </div>
@@ -279,6 +282,31 @@ export default {
279
282
  document.body.removeEventListener('click', this.addTaskFn)
280
283
  },
281
284
  methods: {
285
+ // 导出
286
+ uploadList(assigneeEnd) {
287
+ axios
288
+ .post(
289
+ '/bems/activiti/sample/importTaskFlowHistory',
290
+ {
291
+ taskName: '',
292
+ detailList: assigneeEnd.map((item) => {
293
+ return {
294
+ assignee: item.assignee,
295
+ optResult: item.optResult,
296
+ suggestion: item.suggestion,
297
+ endTime: item.endTime
298
+ }
299
+ })
300
+ },
301
+ {
302
+ responseType: 'blob',
303
+ timeout: 600000 // 针对单个请求设置超时时间
304
+ }
305
+ )
306
+ .then((res) => {
307
+ this.$downloadBlob(res, res.name)
308
+ })
309
+ },
282
310
  addTaskFn() {
283
311
  this.addTaskV = false
284
312
  },
@@ -547,6 +575,9 @@ export default {
547
575
  } else if (this.dataPro.taskDefIdMap[id] /*已审批*/) {
548
576
  this.assigneeEnd = this.dataPro.taskDefIdMap[id]
549
577
  this.$nextTick(() => {
578
+ this.assigneeEnd = this.assigneeEnd?.filter((item) => {
579
+ return item.isShow !== '0'
580
+ })
550
581
  this.$refs['title-pop'].doDestroy()
551
582
  this.$refs['title-pop'].referenceElm = ev.currentTarget
552
583
  this.msgV = true
@@ -568,6 +599,9 @@ export default {
568
599
  this.assigneeEnd = list
569
600
  }
570
601
  this.$nextTick(() => {
602
+ this.assigneeEnd = this.assigneeEnd?.filter((item) => {
603
+ return item.isShow !== '0'
604
+ })
571
605
  this.$refs['title-pop'].doDestroy()
572
606
  this.$refs['title-pop'].referenceElm = task
573
607
  this.msgV = true