测试计划-测试用例取消自动保存

This commit is contained in:
chenjianxing 2020-05-26 21:44:42 +08:00
parent ff4d2f0da5
commit ee83169911
1 changed files with 1 additions and 9 deletions

View File

@ -217,7 +217,7 @@
statusChange(status) { statusChange(status) {
this.testCase.status = status; this.testCase.status = status;
}, },
saveCase(isContinuous) { saveCase() {
let param = {}; let param = {};
param.id = this.testCase.id; param.id = this.testCase.id;
param.status = this.testCase.status; param.status = this.testCase.status;
@ -238,22 +238,14 @@
param.results = JSON.stringify(param.results); param.results = JSON.stringify(param.results);
param.issues = JSON.stringify(this.testCase.issues); param.issues = JSON.stringify(this.testCase.issues);
this.$post('/test/plan/case/edit', param, () => { this.$post('/test/plan/case/edit', param, () => {
if (isContinuous) {
this.updateTestCases(param);
return;
}
this.$refs.drawer.closeDrawer();
this.$success(this.$t('commons.save_success')); this.$success(this.$t('commons.save_success'));
this.$emit('refresh');
}); });
}, },
handleNext() { handleNext() {
this.saveCase(true);
this.index++; this.index++;
this.getTestCase(this.index); this.getTestCase(this.index);
}, },
handlePre() { handlePre() {
this.saveCase(true);
this.index--; this.index--;
this.getTestCase(this.index); this.getTestCase(this.index);
}, },