refactor(测试计划): 计划详情页-高级筛选-所属模块里禁用项目层级
This commit is contained in:
parent
6eb0a3ac1b
commit
f713d8cf78
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue