diff --git a/backend/src/main/resources/db/migration/V82__v1.9.2_release.sql b/backend/src/main/resources/db/migration/V82__v1.9.2_release.sql index 3218ff61bc..5d8b5b5732 100644 --- a/backend/src/main/resources/db/migration/V82__v1.9.2_release.sql +++ b/backend/src/main/resources/db/migration/V82__v1.9.2_release.sql @@ -1,9 +1,20 @@ -- 缺陷添加创建人字段 -ALTER TABLE issues ADD creator varchar(50) NULL COMMENT 'Creator'; +ALTER TABLE issues + ADD creator varchar(50) NULL COMMENT 'Creator'; -- 删除创建人的自定义字段 -delete cft,cf from custom_field_template cft,custom_field cf - where cft.field_id = cf.id and cf.name = '创建人' and cf.scene = 'ISSUE'; +delete cft,cf +from custom_field_template cft, + custom_field cf +where cft.field_id = cf.id + and cf.name = '创建人' + and cf.scene = 'ISSUE'; -alter table project add scenario_custom_num tinyint(1) default 0 null comment '是否开启场景自定义ID(默认关闭)'; -alter table api_scenario add custom_num varchar(64) null comment 'custom num'; \ No newline at end of file +alter table project + add scenario_custom_num tinyint(1) default 0 null comment '是否开启场景自定义ID(默认关闭)'; +alter table api_scenario + add custom_num varchar(64) null comment 'custom num'; +-- 场景表头修改 +update system_header +set props='[{"id":"num","label":"ID"},{"id":"name","label":"场景名称"},{"id":"level","label":"用例等级"},{"id":"status","label":"当前状态"},{"id":"tags","label":"标签"},{"id":"principal","label":"负责人"},{"id":"updateTime","label":"最后更新时间"},{"id":"stepTotal","label":"步骤数"},{"id":"lastResult","label":"最后结果"},{"id":"passRate","label":"通过率"}]' +where type = 'api_scenario_list'; \ No newline at end of file diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index d5a0db6407..5e6390db99 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -81,14 +81,22 @@ + diff --git a/frontend/src/business/components/common/model/JsonData.js b/frontend/src/business/components/common/model/JsonData.js index d08e82360e..39b693a03b 100644 --- a/frontend/src/business/components/common/model/JsonData.js +++ b/frontend/src/business/components/common/model/JsonData.js @@ -69,6 +69,7 @@ export const Api_Scenario_List = [ {id: 'status', label: i18n.t('test_track.plan.plan_status')}, {id: 'tags', label: i18n.t('commons.tag')}, {id: 'userId', label: i18n.t('api_test.automation.creator')}, + {id: 'principal', label: i18n.t('api_test.definition.api_principal')}, {id: 'updateTime', label: i18n.t('api_test.definition.api_last_time')}, {id: 'stepTotal', label: i18n.t('api_test.automation.step')}, {id: 'lastResult', label: i18n.t('api_test.automation.last_result')},