Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 第三方插件执行中调用 detail 接口报错问题修复 --story=120926155 #72

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading