fix (接口自动化): 合并丢失部分补充 (#5915)

Co-authored-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-09-02 17:41:57 +08:00 committed by GitHub
parent 17856ece01
commit 9873db7165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 25 deletions

View File

@ -23,11 +23,11 @@ export default {
name: "ComponentConfig", name: "ComponentConfig",
components: { components: {
PluginComponent, PluginComponent,
MsIfController , MsIfController,
MsTransactionController , MsTransactionController,
MsApiComponent , MsApiComponent,
MsLoopController , MsLoopController,
MsApiScenarioComponent , MsApiScenarioComponent,
JmeterElementComponent, JmeterElementComponent,
MsConstantTimer: () => import("./ConstantTimer"), MsConstantTimer: () => import("./ConstantTimer"),
MsJsr233Processor: () => import("./Jsr233Processor"), MsJsr233Processor: () => import("./Jsr233Processor"),
@ -114,21 +114,21 @@ export default {
case "JmeterElement": case "JmeterElement":
name = "JmeterElementComponent"; name = "JmeterElementComponent";
break; break;
case "DubboSampler": case "DubboSampler":
name = "MsApiComponent";
break;
case "HTTPSamplerProxy":
name = "MsApiComponent";
break;
case "JDBCSampler":
name = "MsApiComponent";
break;
case "TCPSampler":
name = "MsApiComponent";
break;
default:
name = "MsApiComponent"; name = "MsApiComponent";
break; break;
case "HTTPSamplerProxy":
name = "MsApiComponent";
break;
case "JDBCSampler":
name = "MsApiComponent";
break;
case "TCPSampler":
name = "MsApiComponent";
break;
default:
name = this.getComponent(ELEMENT_TYPE.Plugin);
break;
} }
return name; return name;
} }
@ -155,13 +155,13 @@ export default {
this.titleColor = "#1483F6"; this.titleColor = "#1483F6";
this.backgroundColor = "#F2ECF3"; this.backgroundColor = "#F2ECF3";
return "MsJdbcProcessor"; return "MsJdbcProcessor";
} }
else if (type === ELEMENT_TYPE.Plugin) { else if (type === ELEMENT_TYPE.Plugin) {
this.titleColor = "#1483F6"; this.titleColor = "#1483F6";
this.backgroundColor = "#F2ECF3"; this.backgroundColor = "#F2ECF3";
return "PluginComponent"; return "PluginComponent";
} }
else { else {
this.title = this.$t('api_test.automation.customize_script'); this.title = this.$t('api_test.automation.customize_script');
this.titleColor = "#7B4D12"; this.titleColor = "#7B4D12";
this.backgroundColor = "#F1EEE9"; this.backgroundColor = "#F1EEE9";