fix(测试跟踪): 功能用例修改版本时隐藏未开启的版本
--bug=1040843 --user=宋天阳 【项目管理】版本管理-某个版本是关闭状态,创建用例/批量编辑用例时仍可以选中关闭的版本号 https://www.tapd.cn/55049933/s/1517771
This commit is contained in:
parent
16851d8d1b
commit
56e391770b
|
@ -664,7 +664,7 @@ export default {
|
||||||
id: "version",
|
id: "version",
|
||||||
name: this.$t('commons.version')
|
name: this.$t('commons.version')
|
||||||
})
|
})
|
||||||
let versionOptions = this.$refs.versionSelect.versionOptions;
|
let versionOptions = this.$refs.versionSelect.versionOptions.filter(r => r.status === 'open');
|
||||||
// console.info("version-options", versionOptions);
|
// console.info("version-options", versionOptions);
|
||||||
this.valueArr['version'] = versionOptions;
|
this.valueArr['version'] = versionOptions;
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,16 +337,17 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getProjectVersions} from "metersphere-frontend/src/api/version";
|
import {getProjectVersions} from "metersphere-frontend/src/api/version";
|
||||||
import { hasLicense } from "metersphere-frontend/src/utils/permission";
|
import {hasLicense} from "metersphere-frontend/src/utils/permission";
|
||||||
import MsFormDivider from "metersphere-frontend/src/components/MsFormDivider";
|
import MsFormDivider from "metersphere-frontend/src/components/MsFormDivider";
|
||||||
import MsSelectTree from "metersphere-frontend/src/components/select-tree/SelectTree";
|
import MsSelectTree from "metersphere-frontend/src/components/select-tree/SelectTree";
|
||||||
import MsInputTag from "metersphere-frontend/src/components/new-ui/MsInputTag";
|
import MsInputTag from "metersphere-frontend/src/components/new-ui/MsInputTag";
|
||||||
import CustomFiledFormRow from "./CaseCustomFiledFormRow";
|
import CustomFiledFormRow from "./CaseCustomFiledFormRow";
|
||||||
import { useStore } from "@/store";
|
import {useStore} from "@/store";
|
||||||
import BaseEditItemComponent from "../BaseEditItemComponent";
|
import BaseEditItemComponent from "../BaseEditItemComponent";
|
||||||
import { issueDemandList } from "@/api/issue";
|
import {issueDemandList} from "@/api/issue";
|
||||||
import {getTestCaseNodesByCaseFilter} from "@/api/testCase";
|
import {getTestCaseNodesByCaseFilter} from "@/api/testCase";
|
||||||
import {buildTree} from "@/business/utils/sdk-utils";
|
import {buildTree} from "@/business/utils/sdk-utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CaseBaseInfo",
|
name: "CaseBaseInfo",
|
||||||
components: {
|
components: {
|
||||||
|
@ -572,7 +573,7 @@ export default {
|
||||||
if (hasLicense()) {
|
if (hasLicense()) {
|
||||||
if (this.projectId) {
|
if (this.projectId) {
|
||||||
getProjectVersions(this.projectId).then(
|
getProjectVersions(this.projectId).then(
|
||||||
(r) => (this.versionFilters = r.data)
|
(r) => (this.versionFilters = r.data.filter(r => r.status === 'open'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue