fix: 接口自动化场景更新时创建人不变,场景列表默认显示负责人而非创建人
This commit is contained in:
parent
16d60c3f39
commit
5f4aa0f227
|
@ -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
|
delete cft,cf
|
||||||
where cft.field_id = cf.id and cf.name = '创建人' and cf.scene = 'ISSUE';
|
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 project
|
||||||
alter table api_scenario add custom_num varchar(64) null comment 'custom num';
|
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';
|
|
@ -81,14 +81,22 @@
|
||||||
<el-table-column v-if="item.id == 'tags'" prop="tags" min-width="120px"
|
<el-table-column v-if="item.id == 'tags'" prop="tags" min-width="120px"
|
||||||
:label="$t('api_test.automation.tag')" :key="index">
|
:label="$t('api_test.automation.tag')" :key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<ms-tag v-for="(itemName,index) in scope.row.tags" :key="index" type="success" effect="plain" :content="itemName" :show-tooltip="true"
|
<ms-tag v-for="(itemName,index) in scope.row.tags" :key="index" type="success" effect="plain"
|
||||||
|
:content="itemName" :show-tooltip="true"
|
||||||
tooltip style="margin-left: 0px; margin-right: 2px"/>
|
tooltip style="margin-left: 0px; margin-right: 2px"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column v-if="item.id == 'principal'" prop="principal" min-width="120px"
|
||||||
|
:label="$t('api_test.definition.api_principal')"
|
||||||
|
:filters="userFilters"
|
||||||
|
column-key="principal"
|
||||||
|
sortable="custom"
|
||||||
|
show-overflow-tooltip
|
||||||
|
:key="index"/>
|
||||||
<el-table-column v-if="item.id == 'userId'" prop="userId" min-width="120px"
|
<el-table-column v-if="item.id == 'userId'" prop="userId" min-width="120px"
|
||||||
:label="$t('api_test.automation.creator')"
|
:label="$t('api_test.automation.creator')"
|
||||||
:filters="userFilters"
|
:filters="userFilters"
|
||||||
column-key="user_id"
|
column-key="userId"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="index"/>
|
:key="index"/>
|
||||||
|
|
|
@ -69,6 +69,7 @@ export const Api_Scenario_List = [
|
||||||
{id: 'status', label: i18n.t('test_track.plan.plan_status')},
|
{id: 'status', label: i18n.t('test_track.plan.plan_status')},
|
||||||
{id: 'tags', label: i18n.t('commons.tag')},
|
{id: 'tags', label: i18n.t('commons.tag')},
|
||||||
{id: 'userId', label: i18n.t('api_test.automation.creator')},
|
{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: 'updateTime', label: i18n.t('api_test.definition.api_last_time')},
|
||||||
{id: 'stepTotal', label: i18n.t('api_test.automation.step')},
|
{id: 'stepTotal', label: i18n.t('api_test.automation.step')},
|
||||||
{id: 'lastResult', label: i18n.t('api_test.automation.last_result')},
|
{id: 'lastResult', label: i18n.t('api_test.automation.last_result')},
|
||||||
|
|
Loading…
Reference in New Issue