fix(测试计划): 定时任务开关提醒优化

This commit is contained in:
limin-fit2 2022-02-17 11:45:01 +08:00 committed by 刘瑞斌
parent 1875638720
commit 1d6b6c0511
4 changed files with 19 additions and 14 deletions

@ -1 +1 @@
Subproject commit bd451607ee198520f89faeebab38dd0c75e7b397
Subproject commit 17293a0e1faed0922a3914d1f021e947d1da3353

View File

@ -628,7 +628,12 @@ export default {
cancelButtonText: this.$t('commons.cancel'),
type: 'warning',
}).then(() => {
this.result = this.$post('/test/plan/schedule/updateEnableByPrimyKey', param, response => {
this.result = this.$post('/test/plan/schedule/updateEnableByPrimyKey', param, () => {
if (row.scheduleOpen) {
row.scheduleStatus = 'OPEN'
} else {
row.scheduleStatus = 'SHUT'
}
this.$success(this.$t('commons.save_success'));
});
}).catch(() => {

@ -1 +1 @@
Subproject commit 54dfbe2f9dfa3ffe6042737f5cbb1768085f7143
Subproject commit 9b8007988010508ea145e42ab3e088968e3003ea

View File

@ -118,16 +118,16 @@ export let CUSTOM_TABLE_HEADER = {
{id: 'plannedStartTime', key: '7', label: 'test_track.plan.planned_start_time'},
{id: 'plannedEndTime', key: '8', label: 'test_track.plan.planned_end_time'},
{id: 'actualStartTime', key: '9', label: 'test_track.plan.actual_start_time'},
{id: 'actualEndTime', key: '10', label: 'test_track.plan.actual_end_time'},
{id: 'tags', key: 'a', label: 'commons.tag'},
{id: 'scheduleStatus', key: 'b', label: 'commons.trigger_mode.schedule'},
{id: 'executionTimes', key: 'c', label: 'commons.execution_times'},
{id: 'passRate', key: 'd', label: 'commons.pass_rate'},
{id: 'createUser', key: 'e', label: 'commons.create_user'},
{id: 'testPlanTestCaseCount', key: 'f', label: 'test_track.plan.test_plan_test_case_count'},
{id: 'testPlanApiCaseCount', key: 'g', label: 'test_track.plan.test_plan_api_case_count'},
{id: 'testPlanApiScenarioCount', key: 'h', label: 'test_track.plan.test_plan_api_scenario_count'},
{id: 'testPlanLoadCaseCount', key: 'i', label: 'test_track.plan.test_plan_load_case_count'}
{id: 'actualEndTime', key: 'a', label: 'test_track.plan.actual_end_time'},
{id: 'tags', key: 'b', label: 'commons.tag'},
{id: 'scheduleStatus', key: 'c', label: 'commons.trigger_mode.schedule'},
{id: 'executionTimes', key: 'd', label: 'commons.execution_times'},
{id: 'passRate', key: 'e', label: 'commons.pass_rate'},
{id: 'createUser', key: 'f', label: 'commons.create_user'},
{id: 'testPlanTestCaseCount', key: 'g', label: 'test_track.plan.test_plan_test_case_count'},
{id: 'testPlanApiCaseCount', key: 'h', label: 'test_track.plan.test_plan_api_case_count'},
{id: 'testPlanApiScenarioCount', key: 'i', label: 'test_track.plan.test_plan_api_scenario_count'},
{id: 'testPlanLoadCaseCount', key: 'j', label: 'test_track.plan.test_plan_load_case_count'}
],
//测试计划-功能用例
TEST_PLAN_FUNCTION_TEST_CASE: [