Skip to content

Commit

Permalink
Merge pull request #3339 from hLinx/feature_3.11
Browse files Browse the repository at this point in the history
feat: api 协议变更 #3333
  • Loading branch information
hLinx authored Dec 17, 2024
2 parents 2059433 + 8473ed1 commit faf0b8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/src/domain/source/task-execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ class TaskExecute extends ModuleBase {
getStepVariables(params) {
const realParams = { ...params };
delete realParams.stepInstanceId;
return Request.get(`${this.path}/step-execution-result/step/${params.stepInstanceId}/variables`, {
delete realParams.executeObjectType;
delete realParams.executeObjectResourceId;
return Request.get(`${this.path}/taskInstance/${params.taskInstanceId}/stepInstance/${params.stepInstanceId}/executeObject/${params.executeObjectType}/${params.executeObjectResourceId}/variables`, {
params: realParams,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,18 @@
inheritAttrs: false,
props: {
name: String,
taskInstanceId: {
type: Number,
required: true,
},
stepInstanceId: {
type: Number,
required: true,
},
taskExecuteDetail: {
type: Object,
required: true,
},
},
data() {
return {
Expand All @@ -89,7 +97,10 @@
fetchStepVariables() {
this.isLoading = true;
TaskExecuteService.fetchStepVariables({
taskInstanceId: this.taskInstanceId,
stepInstanceId: this.stepInstanceId,
executeObjectType: this.taskExecuteDetail.executeObject.type,
executeObjectResourceId: this.taskExecuteDetail.executeObject.executeObjectResourceId,
}).then((data) => {
this.variableList = Object.freeze(data);
})
Expand Down

0 comments on commit faf0b8b

Please sign in to comment.