fix(测试跟踪): 公共用例库列表跳转bug
--bug=1009041 --user=王孝刚 公共用例库列表跳转bug https://www.tapd.cn/55049933/s/1089345
This commit is contained in:
parent
7d05f30c91
commit
13f6f50918
|
@ -13,6 +13,7 @@
|
||||||
@refreshAll="refreshAll"
|
@refreshAll="refreshAll"
|
||||||
@enableTrash="enableTrash"
|
@enableTrash="enableTrash"
|
||||||
@enablePublic="enablePublic"
|
@enablePublic="enablePublic"
|
||||||
|
@toPublic="toPublic"
|
||||||
:type="'edit'"
|
:type="'edit'"
|
||||||
:total='total'
|
:total='total'
|
||||||
:public-total="publicTotal"
|
:public-total="publicTotal"
|
||||||
|
@ -182,6 +183,7 @@ import TestCaseMinder from "@/business/components/track/common/minder/TestCaseMi
|
||||||
import IsChangeConfirm from "@/business/components/common/components/IsChangeConfirm";
|
import IsChangeConfirm from "@/business/components/common/components/IsChangeConfirm";
|
||||||
import {openMinderConfirm, saveMinderConfirm} from "@/business/components/track/common/minder/minderUtils";
|
import {openMinderConfirm, saveMinderConfirm} from "@/business/components/track/common/minder/minderUtils";
|
||||||
import TestCaseEditShow from "@/business/components/track/case/components/TestCaseEditShow";
|
import TestCaseEditShow from "@/business/components/track/case/components/TestCaseEditShow";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestCase",
|
name: "TestCase",
|
||||||
components: {
|
components: {
|
||||||
|
@ -608,6 +610,14 @@ export default {
|
||||||
this.initApiTableOpretion = "publicEnable";
|
this.initApiTableOpretion = "publicEnable";
|
||||||
this.publicEnable = data;
|
this.publicEnable = data;
|
||||||
},
|
},
|
||||||
|
toPublic(data) {
|
||||||
|
if (data === 'public') {
|
||||||
|
this.activeName = "public"
|
||||||
|
} else {
|
||||||
|
this.activeName = "trash"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -148,10 +148,12 @@ export default {
|
||||||
enableTrash() {
|
enableTrash() {
|
||||||
this.condition.trashEnable = true;
|
this.condition.trashEnable = true;
|
||||||
this.$emit('enableTrash', this.condition.trashEnable);
|
this.$emit('enableTrash', this.condition.trashEnable);
|
||||||
|
this.$emit('toPublic', 'trash');
|
||||||
},
|
},
|
||||||
enablePublic() {
|
enablePublic() {
|
||||||
this.condition.publicEnable = true;
|
this.condition.publicEnable = true;
|
||||||
this.$emit('enablePublic', this.condition.publicEnable);
|
this.$emit('enablePublic', this.condition.publicEnable);
|
||||||
|
this.$emit('toPublic', 'public');
|
||||||
},
|
},
|
||||||
list() {
|
list() {
|
||||||
if (this.projectId) {
|
if (this.projectId) {
|
||||||
|
|
Loading…
Reference in New Issue