@lambo-design/workflow-approve 1.0.0-beta.57 → 1.0.0-beta.59

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/src/portrait.vue CHANGED
@@ -208,15 +208,15 @@
208
208
  @add-multitask-instance="addMultitaskInstance" @delegate-task-assignee="delegateTask"
209
209
  :data="assigneeBoxData" :smart-flow-server-context="smartFlowServerContext"
210
210
  :upms-server-context="upmsServerContext"/>
211
- <Modal ref="processTraceModal" v-model="modalBoxShow" width="1000" title="流程跟踪图" @scroll="handleScroll">
212
- <Workflow_Diagram ref="processTrace" @scroll="handleScroll" :instanceId="process.instanceId" :applyId="process.applyId"
213
- :procId="process.procId" :table-columns="diagramTableColumns"
211
+ <Modal ref="processTraceModal" v-model="modalBoxShow" width="1000" title="流程跟踪图">
212
+ <Workflow_Diagram ref="processTrace" :instanceId="process.instanceId" :applyId="process.applyId"
213
+ :procId="process.procId" :table-columns="diagramTableColumns" :scroll-element="scrollElement"
214
214
  :tableData="process.tableData" :hisAudit="hisAudit"
215
215
  :approve-detail-show-way="approveDetailShowWay"
216
216
  :smart-flow-server-context="smartFlowServerContext">
217
217
  </Workflow_Diagram>
218
218
  </Modal>
219
- <Modal v-model="reductionMultitaskInstanceModal" title="会签减签"
219
+ <Modal v-model="reductionMultitaskInstanceModal" title="选择减签人员"
220
220
  @on-cancel="reductionModalCancel"
221
221
  @on-ok="reductionMultitaskInstance">
222
222
  <Table border
@@ -497,6 +497,7 @@ export default {
497
497
  targetTaskNode: '',
498
498
  allNode: [],
499
499
  auditParams: {},
500
+ scrollElement: null,
500
501
  modal1: false,
501
502
  modalBoxShow: false,
502
503
  reductionMultitaskInstanceModal: false,
@@ -596,7 +597,15 @@ export default {
596
597
  if (this.procId) {
597
598
  this.initData()
598
599
  }
599
-
600
+ let modalElement = this.$refs.processTraceModal.$el
601
+ for (let i = 0; i < modalElement.children.length; i++) {
602
+ //找到滚动的目标element
603
+ let targetElement = modalElement.children[i]
604
+ if (targetElement.classList.toString().includes('-wrap')){
605
+ this.scrollElement = targetElement
606
+ break
607
+ }
608
+ }
600
609
  },
601
610
  computed: {
602
611
  processHistoryHeight() {
@@ -1768,17 +1777,6 @@ export default {
1768
1777
  this.$forceUpdate()
1769
1778
  }
1770
1779
  },
1771
- handleScroll(delta) {
1772
- let modalElement = this.$refs.processTraceModal.$el
1773
- for (let i = 0; i < modalElement.children.length; i++) {
1774
- //找到目标element进行滚动
1775
- let targetElement = modalElement.children[i]
1776
- if (targetElement.classList.toString().includes('-wrap')){
1777
- targetElement.scrollTop -= delta.dy
1778
- break
1779
- }
1780
- }
1781
- }
1782
1780
  },
1783
1781
  watch: {
1784
1782
  auditOpinionText(label) {
@@ -169,7 +169,7 @@
169
169
  text-overflow: ellipsis;
170
170
  }
171
171
 
172
- .audit-audit-comment-style {
172
+ .audit-comment-style {
173
173
  margin-bottom: -5px;
174
174
  white-space: nowrap;
175
175
  display: inline-block;