@lambo-design/workflow-approve 1.0.0-beta.10 → 1.0.0-beta.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": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "axios": "^0.24.0",
14
14
  "axios-cache-plugin": "^0.1.0",
15
- "@lambo-design/core": "^4.7.1-beta.139",
16
- "@lambo-design/shared": "^1.0.0-beta.200"
15
+ "@lambo-design/shared": "^1.0.0-beta.204",
16
+ "@lambo-design/core": "^4.7.1-beta.139"
17
17
  },
18
18
  "dependencies": {
19
19
  "bpmn-js": "^7.3.1",
@@ -188,15 +188,15 @@ export default {
188
188
  if (result.code == '200') {
189
189
  self.loading = false
190
190
  self.$Message.success(result.message);
191
- if (this.executionCompleted) {
192
- this.executionCompleted(true, self.data.instanceId, self.data.taskId, auditResult, self.data.taskId);
191
+ if (self.executionCompleted) {
192
+ self.executionCompleted(true, self.data.instanceId, self.data.taskId, auditResult, self.data.taskId);
193
193
  }
194
194
  self.toBeDoneListDoSearch();
195
195
  } else {
196
196
  self.loading = false
197
197
  self.$Message.error(result.message)
198
- if (this.executionCompleted) {
199
- this.executionCompleted(false, null, null, auditResult, self.data.taskId);
198
+ if (self.executionCompleted) {
199
+ self.executionCompleted(false, null, null, auditResult, self.data.taskId);
200
200
  }
201
201
  }
202
202
  })
package/src/portrait.vue CHANGED
@@ -177,7 +177,7 @@
177
177
  @on-current-change="selectNode">
178
178
  </Table>
179
179
  </Modal>
180
- <assigneeBox ref="assigneeHelpBox" :executionCompleted="executionCompleted" @update-selected="handleSelectedUser"
180
+ <assigneeBox ref="assigneeHelpBox" :execution-completed="executionCompleted" @update-selected="handleSelectedUser"
181
181
  :data="assigneeBoxData" :smart-flow-server-context="smartFlowServerContext" :upms-server-context="upmsServerContext"/>
182
182
  <Modal v-model="modalBoxShow" width="1000" title="流程跟踪图">
183
183
  <Workflow_Diagram ref="processTrace" :instanceId="process.instanceId" :applyId="process.applyId"
@@ -380,13 +380,13 @@ export default {
380
380
  let str = '';
381
381
  const hasAuditOpinion = !this.handleButtons || this.handleButtons.includes('auditOpinion')
382
382
  const hasAttachmentFile = (!this.handleButtons || this.handleButtons.includes('attachmentFile')) && this.attachmentList.length > 0
383
- const isDetail = this.isDetail && this.hisAuditOpinion[0].auditOpinion
383
+ const isDetail = this.isDetail && !this.hisAuditOpinion[0].auditOpinion.length > 0
384
384
  if (hasAuditOpinion && !hasAttachmentFile && !isDetail){
385
385
  str+= "height: 43vh"
386
386
  } else if (hasAuditOpinion && hasAttachmentFile && !isDetail){
387
387
  str+= "height: 40vh"
388
388
  } else {
389
- str+= "height: 60vh"
389
+ str+= "height: 67vh"
390
390
  }
391
391
  return str;
392
392
  },
@@ -885,6 +885,7 @@ export default {
885
885
  this.auditResult = '';
886
886
  },
887
887
  ok() {
888
+ let self = this;
888
889
  this.modal = false
889
890
  let auditResult = {
890
891
  code: self.auditResult,
@@ -919,8 +920,8 @@ export default {
919
920
  self.disable = false
920
921
  self.$Message.success("审批成功");
921
922
  if (self.executionCompleted) {
922
- let taskIds = result.data.map(item => item.id).join(',');
923
- self.executionCompleted(true, result.data[0].processInstanceId, taskIds, auditResult, self.taskId)
923
+ let taskIds = result.data.id;
924
+ self.executionCompleted(true, result.data.processInstanceId, taskIds, auditResult, self.taskId)
924
925
  }
925
926
  bus.$emit('triggerTimer')
926
927
  }, 500)