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: {
|
||||||
|
@ -219,9 +221,9 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getProject();
|
this.getProject();
|
||||||
let routeTestCase = this.$route.params.testCase;
|
let routeTestCase = this.$route.params.testCase;
|
||||||
if(routeTestCase && routeTestCase.add===true){
|
if (routeTestCase && routeTestCase.add === true) {
|
||||||
this.addTab({name: 'add'});
|
this.addTab({name: 'add'});
|
||||||
}else {
|
} else {
|
||||||
this.init(this.$route);
|
this.init(this.$route);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -451,9 +453,9 @@ export default {
|
||||||
this.$warning(this.$t('commons.check_project_tip'));
|
this.$warning(this.$t('commons.check_project_tip'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(routeTestCase){
|
if (routeTestCase) {
|
||||||
this.editTestCase(routeTestCase);
|
this.editTestCase(routeTestCase);
|
||||||
}else if (caseId) {
|
} else if (caseId) {
|
||||||
this.$get('test/case/get/' + caseId, response => {
|
this.$get('test/case/get/' + caseId, response => {
|
||||||
let testCase = response.data;
|
let testCase = response.data;
|
||||||
this.editTestCase(testCase);
|
this.editTestCase(testCase);
|
||||||
|
@ -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