Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class CaseLists extends React.Component {
isReName: true,
treeSelect: [],
treeData: [],
expendKeys: [] // 控制用例列表中处于展开状态的行
};
}
componentDidMount() {
Expand Down Expand Up @@ -332,6 +333,7 @@ class CaseLists extends React.Component {
createrFilter={createrFilter}
iterationFilter={iterationFilter}
choiseDate={choiseDate}
expendKeys={this.state.expendKeys}
></List>

{(this.props.type === 'oe' && filterVisble && (
Expand Down Expand Up @@ -362,9 +364,13 @@ class CaseLists extends React.Component {
doneApiPrefix={this.props.doneApiPrefix}
baseUrl={this.props.baseUrl}
onUpdate={() => {
// this.getCaseList(this.state.current || 1, '', '', '', []);
this.getTreeList();
this.setState({ currCase: null, visible: false });
this.setState({
currCase: null,
visible: false,
expendKeys: [] // 强制把处于展开状态的行变为无
});
// 更新完成后回到原页面
this.getCaseList(this.state.current || 1, '', '', '', []);
}}
type={this.props.type}
caseIds={caseIds}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Lists extends React.Component {
taskVisible: false,
record: null,
extRecord: null,
expendKeys: [],
expendKeys: this.props.expendKeys,
titleModeTask: '',
loading: this.props.loading,
extendLoading: new Map(),
Expand All @@ -71,6 +71,7 @@ class Lists extends React.Component {
iterationFilter: this.props.iterationFilter,
createrFilter: this.props.createrFilter,
nameFilter: this.props.nameFilter,
expendKeys: nextProps.expendKeys,
});
});
}
Expand Down