refactor: 创建新接口版本时同步备注和依赖关系
This commit is contained in:
parent
fbab9072d4
commit
112a71d1fa
|
@ -159,14 +159,14 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="同步以下信息到新版本"
|
:title="$t('commons.sync_other_info')"
|
||||||
:visible.sync="createNewVersionVisible"
|
:visible.sync="createNewVersionVisible"
|
||||||
:show-close="false"
|
:show-close="false"
|
||||||
width="30%"
|
width="30%"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<el-checkbox v-model="httpForm.newVersionRemark">备注</el-checkbox>
|
<el-checkbox v-model="httpForm.newVersionRemark">{{ $t('commons.remark') }}</el-checkbox>
|
||||||
<el-checkbox v-model="httpForm.newVersionDeps">依赖关系</el-checkbox>
|
<el-checkbox v-model="httpForm.newVersionDeps">{{ $t('commons.relationship.name') }}</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-slot:footer>
|
<template v-slot:footer>
|
||||||
|
@ -193,9 +193,9 @@ import MsChangeHistory from "../../../../history/ChangeHistory";
|
||||||
import {getCurrentProjectID, getCurrentUser, getUUID, hasLicense} from "@/common/js/utils";
|
import {getCurrentProjectID, getCurrentUser, getUUID, hasLicense} from "@/common/js/utils";
|
||||||
import MsFormDivider from "@/business/components/common/components/MsFormDivider";
|
import MsFormDivider from "@/business/components/common/components/MsFormDivider";
|
||||||
import ApiOtherInfo from "@/business/components/api/definition/components/complete/ApiOtherInfo";
|
import ApiOtherInfo from "@/business/components/api/definition/components/complete/ApiOtherInfo";
|
||||||
import HttpApiVersionDiff from "./version/HttpApiVersionDiff"
|
import HttpApiVersionDiff from "./version/HttpApiVersionDiff";
|
||||||
import {createComponent } from ".././jmeter/components";
|
import {createComponent} from ".././jmeter/components";
|
||||||
import { TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
|
import {TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
|
||||||
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";
|
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";
|
||||||
|
|
||||||
const {Body} = require("@/business/components/api/definition/model/ApiTestModel");
|
const {Body} = require("@/business/components/api/definition/model/ApiTestModel");
|
||||||
|
|
|
@ -419,7 +419,8 @@ export default {
|
||||||
version: 'Version',
|
version: 'Version',
|
||||||
is_new: "Is new",
|
is_new: "Is new",
|
||||||
form_config: "Form config",
|
form_config: "Form config",
|
||||||
form_content: "Form content"
|
form_content: "Form content",
|
||||||
|
sync_other_info: "Sync other config",
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
normal_Login: "Normal Login",
|
normal_Login: "Normal Login",
|
||||||
|
|
|
@ -421,7 +421,8 @@ export default {
|
||||||
version: '版本',
|
version: '版本',
|
||||||
is_new: "是否新建",
|
is_new: "是否新建",
|
||||||
form_config: "表单配置",
|
form_config: "表单配置",
|
||||||
form_content: "表单内容"
|
form_content: "表单内容",
|
||||||
|
sync_other_info: "同步以下信息到新版本",
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
normal_Login: "普通登录",
|
normal_Login: "普通登录",
|
||||||
|
|
|
@ -421,7 +421,8 @@ export default {
|
||||||
version: '版本',
|
version: '版本',
|
||||||
is_new: "是否新建",
|
is_new: "是否新建",
|
||||||
form_config: "表單配置",
|
form_config: "表單配置",
|
||||||
form_content: "表單內容"
|
form_content: "表單內容",
|
||||||
|
sync_other_info: "同步以下信息到新版本",
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
normal_Login: "普通登錄",
|
normal_Login: "普通登錄",
|
||||||
|
|
Loading…
Reference in New Issue