refactor(测试跟踪): 删掉不用的代码

This commit is contained in:
Captain.B 2021-03-24 21:55:41 +08:00
parent d03976d8e1
commit 51e820d697
2 changed files with 13 additions and 19 deletions

View File

@ -463,6 +463,9 @@ export default {
} else if (this.form.type === 'performance' || this.form.type === 'api') {
url = '/' + this.form.type + '/list/' + this.projectId
}
if (!url) {
return;
}
return new Promise((resolve, reject) => {
this.$get(url).then(res => {
console.log(res.data.data)
@ -475,7 +478,7 @@ export default {
}).catch((err) => {
reject(err)
})
})
});
},
/* lazyLoad(node, resolve){
const { level } = node;

View File

@ -206,7 +206,6 @@ import {TEST_CASE_CONFIGS} from "../../../common/components/search/search-compon
import ShowMoreBtn from "./ShowMoreBtn";
import BatchEdit from "./BatchEdit";
import {PROJECT_NAME, TEST_CASE_LIST, WORKSPACE_ID} from "@/common/js/constants";
import {LIST_CHANGE, TrackEvent} from "@/business/components/common/head/ListEvent";
import StatusTableItem from "@/business/components/track/common/tableItems/planview/StatusTableItem";
import TestCaseDetail from "./TestCaseDetail";
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
@ -500,8 +499,6 @@ export default {
this.selectRows.clear();
this.$emit("refresh");
this.$success(this.$t('commons.delete_success'));
// 广 head
TrackEvent.$emit(LIST_CHANGE);
});
}
}
@ -512,8 +509,6 @@ export default {
this.$post('/test/case/delete/' + testCaseId, {}, () => {
this.initTableData();
this.$success(this.$t('commons.delete_success'));
// 广 head
TrackEvent.$emit(LIST_CHANGE);
});
},
refresh() {
@ -607,8 +602,6 @@ export default {
this.$post('/test/case/batch/edit', param, () => {
this.$success(this.$t('commons.save_success'));
this.refresh();
// 广 head
TrackEvent.$emit(LIST_CHANGE);
});
},
filter(filters) {
@ -660,8 +653,6 @@ export default {
this.result = this.$post('/test/case/batch/edit', param, () => {
this.$success(this.$t('commons.save_success'));
this.$refs.testBatchMove.close();
// 广 head
TrackEvent.$emit(LIST_CHANGE);
this.refresh();
});
}