fix(测试跟踪): 脑图保存完不自动刷新
--bug=1014144 --user=陈建星 【测试跟踪】脑图用例保存后跳转到模块级别,应停留在当前页面 https://www.tapd.cn/55049933/s/1186218
This commit is contained in:
parent
d485174edb
commit
528a9edc4d
|
@ -79,6 +79,7 @@ name: "TestCaseMinder",
|
||||||
result: {loading: false},
|
result: {loading: false},
|
||||||
needRefresh: false,
|
needRefresh: false,
|
||||||
noRefresh: false,
|
noRefresh: false,
|
||||||
|
noRefreshMinder: false,
|
||||||
saveCases: [],
|
saveCases: [],
|
||||||
saveModules: [],
|
saveModules: [],
|
||||||
saveModuleNodeMap: new Map(),
|
saveModuleNodeMap: new Map(),
|
||||||
|
@ -152,6 +153,11 @@ name: "TestCaseMinder",
|
||||||
methods: {
|
methods: {
|
||||||
handleNodeUpdateForMinder() {
|
handleNodeUpdateForMinder() {
|
||||||
this.noRefresh = true;
|
this.noRefresh = true;
|
||||||
|
if (this.noRefreshMinder) {
|
||||||
|
// 如果是保存触发的刷新模块,则不刷新脑图
|
||||||
|
this.noRefreshMinder = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
// 如果脑图没有修改直接刷新,有修改提示
|
// 如果脑图没有修改直接刷新,有修改提示
|
||||||
if (!this.$store.state.isTestCaseMinderChanged) {
|
if (!this.$store.state.isTestCaseMinderChanged) {
|
||||||
if (this.$refs.minder) {
|
if (this.$refs.minder) {
|
||||||
|
@ -286,6 +292,9 @@ name: "TestCaseMinder",
|
||||||
this.extraNodeChanged = [];
|
this.extraNodeChanged = [];
|
||||||
if (!this.noRefresh) {
|
if (!this.noRefresh) {
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
|
// 保存会刷新模块,刷新完模块,脑图也会自动刷新
|
||||||
|
// 如果是保存触发的刷新模块,则不刷新脑图
|
||||||
|
this.noRefreshMinder = true;
|
||||||
}
|
}
|
||||||
// 由于模块修改刷新的脑图,不刷新模块
|
// 由于模块修改刷新的脑图,不刷新模块
|
||||||
this.noRefresh = false;
|
this.noRefresh = false;
|
||||||
|
|
Loading…
Reference in New Issue