refactor(测试计划): 执行测试计划打开任务中心
This commit is contained in:
parent
fa6eecfbd7
commit
2bc61befb9
|
@ -229,6 +229,7 @@
|
||||||
<ms-test-plan-schedule-maintain ref="scheduleMaintain" @refreshTable="initTableData"/>
|
<ms-test-plan-schedule-maintain ref="scheduleMaintain" @refreshTable="initTableData"/>
|
||||||
<plan-run-mode-with-env @handleRunBatch="_handleRun" ref="runMode" :plan-case-ids="[]" :type="'plan'" :plan-id="currentPlanId"/>
|
<plan-run-mode-with-env @handleRunBatch="_handleRun" ref="runMode" :plan-case-ids="[]" :type="'plan'" :plan-id="currentPlanId"/>
|
||||||
<test-plan-report-review ref="testCaseReportView"/>
|
<test-plan-report-review ref="testCaseReportView"/>
|
||||||
|
<ms-task-center ref="taskCenter"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -260,6 +261,7 @@ import MsTestPlanScheduleMaintain from "@/business/components/track/plan/compone
|
||||||
import {getCurrentProjectID, getCurrentUserId, hasPermission} from "@/common/js/utils";
|
import {getCurrentProjectID, getCurrentUserId, hasPermission} from "@/common/js/utils";
|
||||||
import PlanRunModeWithEnv from "@/business/components/track/plan/common/PlanRunModeWithEnv";
|
import PlanRunModeWithEnv from "@/business/components/track/plan/common/PlanRunModeWithEnv";
|
||||||
import TestPlanReportReview from "@/business/components/track/report/components/TestPlanReportReview";
|
import TestPlanReportReview from "@/business/components/track/report/components/TestPlanReportReview";
|
||||||
|
import MsTaskCenter from "@/business/components/task/TaskCenter";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestPlanList",
|
name: "TestPlanList",
|
||||||
|
@ -272,7 +274,9 @@ export default {
|
||||||
PlanStageTableItem,
|
PlanStageTableItem,
|
||||||
PlanStatusTableItem,
|
PlanStatusTableItem,
|
||||||
MsTestPlanScheduleMaintain,
|
MsTestPlanScheduleMaintain,
|
||||||
MsTableOperator, MsTableOperatorButton, MsDialogFooter, MsTableHeader, MsCreateBox, MsTablePagination, PlanRunModeWithEnv
|
MsTableOperator, MsTableOperatorButton,
|
||||||
|
MsDialogFooter, MsTableHeader, MsCreateBox,
|
||||||
|
MsTablePagination, PlanRunModeWithEnv, MsTaskCenter
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -496,6 +500,7 @@ export default {
|
||||||
param.projectId = getCurrentProjectID();
|
param.projectId = getCurrentProjectID();
|
||||||
param.userId = getCurrentUserId();
|
param.userId = getCurrentUserId();
|
||||||
param.triggerMode = 'MANUAL';
|
param.triggerMode = 'MANUAL';
|
||||||
|
this.$refs.taskCenter.open();
|
||||||
this.result = this.$post('test/plan/run/', param,() => {
|
this.result = this.$post('test/plan/run/', param,() => {
|
||||||
this.$success(this.$t('commons.run_success'));
|
this.$success(this.$t('commons.run_success'));
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|
Loading…
Reference in New Issue