parent
4e2af32e82
commit
f7a97a78e0
|
@ -430,7 +430,7 @@ export default {
|
|||
changeRedirectParam(redirectIDParam) {
|
||||
this.redirectID = redirectIDParam;
|
||||
if (redirectIDParam != null) {
|
||||
if (this.redirectFlag == "none") {
|
||||
if (this.redirectFlag === "none") {
|
||||
this.activeName = "default";
|
||||
this.redirectFlag = "redirected";
|
||||
}
|
||||
|
@ -610,14 +610,10 @@ export default {
|
|||
if (!index) {
|
||||
this.type = "edit";
|
||||
this.testCaseReadOnly = false;
|
||||
if (!this.ignoreTreeNodes) {
|
||||
if (testCase.label !== "redirect") {
|
||||
if (this.treeNodes.length < 1) {
|
||||
if (!this.ignoreTreeNodes && testCase.label !== "redirect" && this.treeNodes.length < 1) {
|
||||
this.$warning(this.$t('test_track.case.create_module_first'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
let hasEditPermission = hasPermission('PROJECT_TRACK_CASE:READ+EDIT');
|
||||
this.$set(testCase, 'rowClickHasPermission', hasEditPermission);
|
||||
this.addTab({name: 'edit', testCaseInfo: testCase});
|
||||
|
@ -631,12 +627,10 @@ export default {
|
|||
if (!index) {
|
||||
this.type = "edit";
|
||||
this.testCaseReadOnly = false;
|
||||
if (testCase.label !== "redirect") {
|
||||
if (this.treeNodes.length < 1) {
|
||||
if (testCase.label !== "redirect" && this.treeNodes.length < 1) {
|
||||
this.$warning(this.$t('test_track.case.create_module_first'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
let hasEditPermission = hasPermission('PROJECT_TRACK_CASE:READ+EDIT');
|
||||
this.$set(testCase, 'rowClickHasPermission', hasEditPermission);
|
||||
this.addTabShow({name: 'show', testCaseInfo: testCase});
|
||||
|
|
Loading…
Reference in New Issue