fix: tcp等类型添加关系图

This commit is contained in:
chenjianxing 2021-10-21 13:44:00 +08:00 committed by jianxing
parent ce1d80b77b
commit 2bb5cbdc93
4 changed files with 14 additions and 2 deletions

View File

@ -26,6 +26,8 @@
<!-- 请求参数 --> <!-- 请求参数 -->
<p class="tip">{{ $t('api_test.definition.request.req_param') }} </p> <p class="tip">{{ $t('api_test.definition.request.req_param') }} </p>
<ms-basis-parameters :showScript="false" :request="request"/> <ms-basis-parameters :showScript="false" :request="request"/>
<api-other-info :api="basisData"/>
<ms-change-history ref="changeHistory"/> <ms-change-history ref="changeHistory"/>
</div> </div>
</template> </template>
@ -34,10 +36,12 @@
import MsBasisApi from "./BasisApi"; import MsBasisApi from "./BasisApi";
import MsBasisParameters from "../request/dubbo/BasisParameters"; import MsBasisParameters from "../request/dubbo/BasisParameters";
import MsChangeHistory from "../../../../history/ChangeHistory"; import MsChangeHistory from "../../../../history/ChangeHistory";
import ApiOtherInfo from "@/business/components/api/definition/components/complete/ApiOtherInfo";
export default { export default {
name: "MsApiDubboRequestForm", name: "MsApiDubboRequestForm",
components: { components: {
ApiOtherInfo,
MsBasisApi, MsBasisParameters,MsChangeHistory MsBasisApi, MsBasisParameters,MsChangeHistory
}, },
props: { props: {

View File

@ -25,6 +25,9 @@
<!-- 请求参数 --> <!-- 请求参数 -->
<p class="tip">{{ $t('api_test.definition.request.req_param') }} </p> <p class="tip">{{ $t('api_test.definition.request.req_param') }} </p>
<ms-basis-parameters :showScript="false" :request="request"/> <ms-basis-parameters :showScript="false" :request="request"/>
<api-other-info :api="basisData"/>
<ms-change-history ref="changeHistory"/> <ms-change-history ref="changeHistory"/>
</div> </div>
@ -34,10 +37,12 @@
import MsBasisApi from "./BasisApi"; import MsBasisApi from "./BasisApi";
import MsBasisParameters from "../request/database/BasisParameters"; import MsBasisParameters from "../request/database/BasisParameters";
import MsChangeHistory from "../../../../history/ChangeHistory"; import MsChangeHistory from "../../../../history/ChangeHistory";
import ApiOtherInfo from "@/business/components/api/definition/components/complete/ApiOtherInfo";
export default { export default {
name: "MsApiSqlRequestForm", name: "MsApiSqlRequestForm",
components: { components: {
ApiOtherInfo,
MsBasisApi, MsBasisParameters,MsChangeHistory MsBasisApi, MsBasisParameters,MsChangeHistory
}, },
props: { props: {

View File

@ -52,6 +52,7 @@
<esb-definition-response v-xpack v-if="showXpackCompnent" :is-api-component="true" :show-options-button="true" :request="request" /> <esb-definition-response v-xpack v-if="showXpackCompnent" :is-api-component="true" :show-options-button="true" :request="request" />
<!-- <api-response-component :currentProtocol="apiCase.request.protocol" :api-item="apiCase"/>--> <!-- <api-response-component :currentProtocol="apiCase.request.protocol" :api-item="apiCase"/>-->
</div> </div>
<api-other-info :api="basisData"/>
<ms-change-history ref="changeHistory"/> <ms-change-history ref="changeHistory"/>
@ -64,13 +65,15 @@ import MsTcpBasicApi from "./TCPBasicApi";
import MsTcpFormatParameters from "../request/tcp/TcpFormatParameters"; import MsTcpFormatParameters from "../request/tcp/TcpFormatParameters";
import MsChangeHistory from "../../../../history/ChangeHistory"; import MsChangeHistory from "../../../../history/ChangeHistory";
import {hasLicense, getCurrentProjectID, getUUID} from "@/common/js/utils"; import {hasLicense, getCurrentProjectID, getUUID} from "@/common/js/utils";
import ApiOtherInfo from "@/business/components/api/definition/components/complete/ApiOtherInfo";
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/); const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
const esbDefinition = (requireComponent!=null&&requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinition.vue") : {}; const esbDefinition = (requireComponent!=null&&requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinition.vue") : {};
const esbDefinitionResponse = (requireComponent!=null&&requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinitionResponse.vue") : {}; const esbDefinitionResponse = (requireComponent!=null&&requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinitionResponse.vue") : {};
export default { export default {
name: "MsAddCompleteTcpApi", name: "MsAddCompleteTcpApi",
components: {MsTcpBasicApi, MsTcpFormatParameters,MsChangeHistory, components: {
ApiOtherInfo, MsTcpBasicApi, MsTcpFormatParameters,MsChangeHistory,
"esbDefinition": esbDefinition.default, "esbDefinition": esbDefinition.default,
"esbDefinitionResponse": esbDefinitionResponse.default}, "esbDefinitionResponse": esbDefinitionResponse.default},
props: { props: {

View File

@ -45,7 +45,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.dependencies-container .el-main:nth-child(3) { .dependencies-container .el-main {
margin-top: 20px; margin-top: 20px;
} }
</style> </style>