refactor(测试跟踪): 删掉不用的代码
This commit is contained in:
parent
d03976d8e1
commit
51e820d697
|
@ -463,6 +463,9 @@ export default {
|
||||||
} else if (this.form.type === 'performance' || this.form.type === 'api') {
|
} else if (this.form.type === 'performance' || this.form.type === 'api') {
|
||||||
url = '/' + this.form.type + '/list/' + this.projectId
|
url = '/' + this.form.type + '/list/' + this.projectId
|
||||||
}
|
}
|
||||||
|
if (!url) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.$get(url).then(res => {
|
this.$get(url).then(res => {
|
||||||
console.log(res.data.data)
|
console.log(res.data.data)
|
||||||
|
@ -475,7 +478,7 @@ export default {
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
reject(err)
|
reject(err)
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
/* lazyLoad(node, resolve){
|
/* lazyLoad(node, resolve){
|
||||||
const { level } = node;
|
const { level } = node;
|
||||||
|
|
|
@ -206,7 +206,6 @@ import {TEST_CASE_CONFIGS} from "../../../common/components/search/search-compon
|
||||||
import ShowMoreBtn from "./ShowMoreBtn";
|
import ShowMoreBtn from "./ShowMoreBtn";
|
||||||
import BatchEdit from "./BatchEdit";
|
import BatchEdit from "./BatchEdit";
|
||||||
import {PROJECT_NAME, TEST_CASE_LIST, WORKSPACE_ID} from "@/common/js/constants";
|
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 StatusTableItem from "@/business/components/track/common/tableItems/planview/StatusTableItem";
|
||||||
import TestCaseDetail from "./TestCaseDetail";
|
import TestCaseDetail from "./TestCaseDetail";
|
||||||
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
||||||
|
@ -500,8 +499,6 @@ export default {
|
||||||
this.selectRows.clear();
|
this.selectRows.clear();
|
||||||
this.$emit("refresh");
|
this.$emit("refresh");
|
||||||
this.$success(this.$t('commons.delete_success'));
|
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.$post('/test/case/delete/' + testCaseId, {}, () => {
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
// 发送广播,刷新 head 上的最新列表
|
|
||||||
TrackEvent.$emit(LIST_CHANGE);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh() {
|
refresh() {
|
||||||
|
@ -607,8 +602,6 @@ export default {
|
||||||
this.$post('/test/case/batch/edit', param, () => {
|
this.$post('/test/case/batch/edit', param, () => {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
this.refresh();
|
this.refresh();
|
||||||
// 发送广播,刷新 head 上的最新列表
|
|
||||||
TrackEvent.$emit(LIST_CHANGE);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
filter(filters) {
|
filter(filters) {
|
||||||
|
@ -660,8 +653,6 @@ export default {
|
||||||
this.result = this.$post('/test/case/batch/edit', param, () => {
|
this.result = this.$post('/test/case/batch/edit', param, () => {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
this.$refs.testBatchMove.close();
|
this.$refs.testBatchMove.close();
|
||||||
// 发送广播,刷新 head 上的最新列表
|
|
||||||
TrackEvent.$emit(LIST_CHANGE);
|
|
||||||
this.refresh();
|
this.refresh();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue