fix: 修复接口测试创建新版本的时候右上角显示的版本没有及时更新的问题
--bug=1009728 --user=刘瑞斌 【接口定义】-CASE和Mock页面默认的版本都是版本:v1.0.0不会自动更新为实际版本 https://www.tapd.cn/55049933/s/1093834
This commit is contained in:
parent
112777dcb1
commit
7b37283303
|
@ -38,12 +38,10 @@ import MsEditCompleteDubboApi from "./complete/EditCompleteDubboApi";
|
||||||
import MsEditCompleteSqlApi from "./complete/EditCompleteSQLApi";
|
import MsEditCompleteSqlApi from "./complete/EditCompleteSQLApi";
|
||||||
|
|
||||||
import {Body} from "../model/ApiTestModel";
|
import {Body} from "../model/ApiTestModel";
|
||||||
import {getCurrentProjectID, getUUID} from "@/common/js/utils";
|
import {getCurrentProjectID, getUUID, handleCtrlSEvent} from "@/common/js/utils";
|
||||||
import {createComponent, Request} from "./jmeter/components";
|
import {createComponent, Request} from "./jmeter/components";
|
||||||
import Sampler from "./jmeter/components/sampler/sampler";
|
import Sampler from "./jmeter/components/sampler/sampler";
|
||||||
import {WORKSPACE_ID} from '@/common/js/constants';
|
import {TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
|
||||||
import {handleCtrlSEvent} from "../../../../../common/js/utils";
|
|
||||||
import {ELEMENT_TYPE, TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ApiConfig",
|
name: "ApiConfig",
|
||||||
|
|
|
@ -340,6 +340,7 @@ export default {
|
||||||
create(row) {
|
create(row) {
|
||||||
// 创建新版本
|
// 创建新版本
|
||||||
this.basisData.versionId = row.id;
|
this.basisData.versionId = row.id;
|
||||||
|
this.basisData.versionName = row.name;
|
||||||
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
|
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
|
||||||
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
||||||
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
|
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
|
||||||
|
|
|
@ -660,6 +660,7 @@ export default {
|
||||||
create(row) {
|
create(row) {
|
||||||
// 创建新版本
|
// 创建新版本
|
||||||
this.httpForm.versionId = row.id;
|
this.httpForm.versionId = row.id;
|
||||||
|
this.httpForm.versionName = row.name;
|
||||||
this.$set(this.httpForm, 'newVersionRemark', !!this.httpForm.remark);
|
this.$set(this.httpForm, 'newVersionRemark', !!this.httpForm.remark);
|
||||||
this.$set(this.httpForm, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
this.$set(this.httpForm, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
||||||
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.httpForm.remark) {
|
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.httpForm.remark) {
|
||||||
|
|
|
@ -346,6 +346,7 @@ export default {
|
||||||
create(row) {
|
create(row) {
|
||||||
// 创建新版本
|
// 创建新版本
|
||||||
this.basisData.versionId = row.id;
|
this.basisData.versionId = row.id;
|
||||||
|
this.basisData.versionName = row.name;
|
||||||
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
|
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
|
||||||
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
||||||
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
|
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
|
||||||
|
|
|
@ -468,6 +468,7 @@ export default {
|
||||||
create(row) {
|
create(row) {
|
||||||
// 创建新版本
|
// 创建新版本
|
||||||
this.basisData.versionId = row.id;
|
this.basisData.versionId = row.id;
|
||||||
|
this.basisData.versionName = row.name;
|
||||||
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
|
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
|
||||||
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
||||||
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
|
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
|
||||||
|
|
|
@ -120,7 +120,6 @@ export default {
|
||||||
reportId: "",
|
reportId: "",
|
||||||
envMap: new Map,
|
envMap: new Map,
|
||||||
runLoading: false,
|
runLoading: false,
|
||||||
versionName: '',
|
|
||||||
versionEnable: false,
|
versionEnable: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue