Skip to content

Commit

Permalink
fix: 第三方插件执行中调用 detail 接口报错问题修复 --story=120926155 (#72)
Browse files Browse the repository at this point in the history
* fix: 第三方插件执行中调用 detail 接口报错问题修复 --story=120926155

* fix: 调试任务创建者不是自己问题修复 --ignore
# Reviewed, transaction id: 25007
  • Loading branch information
ywywZhou authored and normal-wls committed Dec 4, 2024
1 parent 3c0ab8a commit 5779d0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions frontend/src/views/task/TaskExecute/ExecuteInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
},
// 补充记录缺少的字段
async setFillRecordField(record) {
const { version, component_code: componentCode } = this.nodeDetailConfig;
const { version, component_code: componentCode, componentData } = this.nodeDetailConfig;
const { inputs, state } = record;
let { outputs } = record;
// 执行记录的outputs可能为Object格式,需要转为Array格式
Expand Down Expand Up @@ -563,7 +563,8 @@
const { constants } = islegacySubProcess ? this.pipelineData : this.componentValue.pipeline;
this.renderConfig = await this.getSubflowInputsConfig(constants);
} else if (componentCode) { // 任务节点需要加载标准插件
await this.getNodeConfig(componentCode, version, inputs.plugin_version);
const pluginVersion = componentData.plugin_version.value;
await this.getNodeConfig(componentCode, version, pluginVersion);
}
inputsInfo = Object.keys(inputs).reduce((acc, cur) => {
const scheme = Array.isArray(this.renderConfig)
Expand Down
11 changes: 6 additions & 5 deletions frontend/src/views/template/TemplateMock/MockExecute/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
</template>

<script>
import { mapActions } from 'vuex';
import { mapActions, mapState } from 'vuex';
import tools from '@/utils/tools';
import TaskParamEdit from './components/TaskParamEdit.vue';
import MockRecode from './components/MockRecode.vue';
Expand All @@ -108,10 +108,6 @@
type: String,
default: '',
},
creator: {
type: String,
default: '',
},
templateId: {
type: [String, Number],
default: '',
Expand Down Expand Up @@ -139,6 +135,11 @@
unMockExpend: false,
};
},
computed: {
...mapState({
creator: state => state.username,
}),
},
created() {
this.loadData();
},
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/template/TemplateMock/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
v-else-if="!templateDataLoading"
ref="mockExecute"
:mock-task-name="mockTaskName"
:creator="creator"
:template-id="templateId"
:selected-nodes="selectedNodes"
:tpl-actions="tplActions"
Expand Down Expand Up @@ -106,7 +105,6 @@
curSelectedNodeId: '',
saveLoading: false,
executeLoading: false,
creator: '',
mockSchemeId: '',
lastSchemeMsg: null,
isShowConditionEdit: false,
Expand Down Expand Up @@ -227,7 +225,6 @@
};
const templateData = await this.loadTemplateData(data);
this.tplActions = templateData.auth;
this.creator = templateData.creator;
this.tplSpaceId = templateData.space_id;
this.setTemplateData(templateData);
this.setSpaceId(templateData.space_id);
Expand Down

0 comments on commit 5779d0c

Please sign in to comment.