refactor: 创建新接口版本时同步备注和依赖关系

This commit is contained in:
CaptainB 2022-01-15 18:28:24 +08:00 committed by 刘瑞斌
parent fbab9072d4
commit 112a71d1fa
4 changed files with 12 additions and 9 deletions

View File

@ -159,14 +159,14 @@
</el-card>
<el-dialog
title="同步以下信息到新版本"
:title="$t('commons.sync_other_info')"
:visible.sync="createNewVersionVisible"
:show-close="false"
width="30%"
>
<div>
<el-checkbox v-model="httpForm.newVersionRemark">备注</el-checkbox>
<el-checkbox v-model="httpForm.newVersionDeps">依赖关系</el-checkbox>
<el-checkbox v-model="httpForm.newVersionRemark">{{ $t('commons.remark') }}</el-checkbox>
<el-checkbox v-model="httpForm.newVersionDeps">{{ $t('commons.relationship.name') }}</el-checkbox>
</div>
<template v-slot:footer>
@ -193,7 +193,7 @@ import MsChangeHistory from "../../../../history/ChangeHistory";
import {getCurrentProjectID, getCurrentUser, getUUID, hasLicense} from "@/common/js/utils";
import MsFormDivider from "@/business/components/common/components/MsFormDivider";
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 {TYPE_TO_C} from "@/business/components/api/automation/scenario/Setting";
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";

View File

@ -419,7 +419,8 @@ export default {
version: 'Version',
is_new: "Is new",
form_config: "Form config",
form_content: "Form content"
form_content: "Form content",
sync_other_info: "Sync other config",
},
login: {
normal_Login: "Normal Login",

View File

@ -421,7 +421,8 @@ export default {
version: '版本',
is_new: "是否新建",
form_config: "表单配置",
form_content: "表单内容"
form_content: "表单内容",
sync_other_info: "同步以下信息到新版本",
},
login: {
normal_Login: "普通登录",

View File

@ -421,7 +421,8 @@ export default {
version: '版本',
is_new: "是否新建",
form_config: "表單配置",
form_content: "表單內容"
form_content: "表單內容",
sync_other_info: "同步以下信息到新版本",
},
login: {
normal_Login: "普通登錄",