fix: 测试计划报告总结保存失败
--bug=1009123 --user=陈建星 [ github#8603]报告总结里面编辑完之后,无法保存到报告里面。 https://www.tapd.cn/55049933/s/1092758
This commit is contained in:
parent
14bba28fe4
commit
e594ece194
|
@ -41,6 +41,7 @@ import TestPlanApiReport from "@/business/components/track/plan/view/comonents/r
|
||||||
import {generateShareInfoWithExpired} from "@/network/share";
|
import {generateShareInfoWithExpired} from "@/network/share";
|
||||||
import TestPlanReportEdit
|
import TestPlanReportEdit
|
||||||
from "@/business/components/track/plan/view/comonents/report/detail/component/TestPlanReportEdit";
|
from "@/business/components/track/plan/view/comonents/report/detail/component/TestPlanReportEdit";
|
||||||
|
import {editPlanReport, saveTestPlanReport} from "@/network/test-plan";
|
||||||
export default {
|
export default {
|
||||||
name: "TestPlanReportButtons",
|
name: "TestPlanReportButtons",
|
||||||
components: {
|
components: {
|
||||||
|
@ -80,8 +81,8 @@ export default {
|
||||||
handleSave() {
|
handleSave() {
|
||||||
let param = {};
|
let param = {};
|
||||||
this.buildParam(param);
|
this.buildParam(param);
|
||||||
this.$get('/test/plan/report/saveTestPlanReport/'+this.planId+'/MANUAL', () => {
|
editPlanReport({id: this.planId, reportSummary: this.report.summary}, () => {
|
||||||
this.result = this.$post('/case/report/edit', param, () => {
|
saveTestPlanReport(this.planId, () => {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,9 +24,13 @@ export function getShareTestPlanReport(shareId, planId, callback) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function editPlanReport(param) {
|
export function editPlanReport(param, callback) {
|
||||||
return post('/test/plan/edit/report', param, () => {
|
return post('/test/plan/edit/report', param, () => {
|
||||||
success(i18n.t('commons.save_success'));
|
if (callback) {
|
||||||
|
callback();
|
||||||
|
} else {
|
||||||
|
success(i18n.t('commons.save_success'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,3 +149,8 @@ export function getPlanStageOption(callback) {
|
||||||
let wId = getCurrentWorkspaceId();
|
let wId = getCurrentWorkspaceId();
|
||||||
return wId ? baseGet('/test/plan/get/stage/option/' + wId, callback) : {};
|
return wId ? baseGet('/test/plan/get/stage/option/' + wId, callback) : {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export function saveTestPlanReport(planId, callback) {
|
||||||
|
return planId ? baseGet('/test/plan/report/saveTestPlanReport/' + planId + '/MANUAL', callback) : {};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue