refactor(测试计划): 计划详情页-高级筛选-所属模块里禁用项目层级
This commit is contained in:
parent
6eb0a3ac1b
commit
f713d8cf78
|
@ -587,7 +587,12 @@
|
|||
title: 'common.belongModule',
|
||||
dataIndex: 'moduleId',
|
||||
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: {
|
||||
fieldNames: {
|
||||
title: 'name',
|
||||
|
|
|
@ -564,7 +564,12 @@
|
|||
title: 'common.belongModule',
|
||||
dataIndex: 'moduleId',
|
||||
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: {
|
||||
fieldNames: {
|
||||
title: 'name',
|
||||
|
|
|
@ -664,7 +664,12 @@
|
|||
title: 'common.belongModule',
|
||||
dataIndex: 'moduleId',
|
||||
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: {
|
||||
fieldNames: {
|
||||
title: 'name',
|
||||
|
|
Loading…
Reference in New Issue