refactor(测试计划): 计划详情页-高级筛选-所属模块里禁用项目层级

This commit is contained in:
teukkk 2024-10-18 14:18:58 +08:00 committed by Craftsman
parent 6eb0a3ac1b
commit f713d8cf78
3 changed files with 18 additions and 3 deletions

View File

@ -587,7 +587,12 @@
title: 'common.belongModule', title: 'common.belongModule',
dataIndex: 'moduleId', dataIndex: 'moduleId',
type: FilterType.TREE_SELECT, type: FilterType.TREE_SELECT,
treeSelectData: props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value, treeSelectData: (props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value).map((node) => {
return {
...node,
disabled: true, //
};
}),
treeSelectProps: { treeSelectProps: {
fieldNames: { fieldNames: {
title: 'name', title: 'name',

View File

@ -564,7 +564,12 @@
title: 'common.belongModule', title: 'common.belongModule',
dataIndex: 'moduleId', dataIndex: 'moduleId',
type: FilterType.TREE_SELECT, type: FilterType.TREE_SELECT,
treeSelectData: props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value, treeSelectData: (props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value).map((node) => {
return {
...node,
disabled: true, //
};
}),
treeSelectProps: { treeSelectProps: {
fieldNames: { fieldNames: {
title: 'name', title: 'name',

View File

@ -664,7 +664,12 @@
title: 'common.belongModule', title: 'common.belongModule',
dataIndex: 'moduleId', dataIndex: 'moduleId',
type: FilterType.TREE_SELECT, type: FilterType.TREE_SELECT,
treeSelectData: props.treeType === 'MODULE' ? moduleTree.value : anotherTree.value, treeSelectData: (props.treeType === 'MODULE' ? moduleTree.value : anotherTree.value).map((node) => {
return {
...node,
disabled: true, //
};
}),
treeSelectProps: { treeSelectProps: {
fieldNames: { fieldNames: {
title: 'name', title: 'name',