fix: 测试计划用例添加时间
This commit is contained in:
parent
d6a2fe52ca
commit
4d4661b5a0
|
@ -224,9 +224,13 @@
|
|||
|
||||
<select id="list" resultType="io.metersphere.track.dto.TestPlanCaseDTO">
|
||||
select test_plan_test_case.id as id, test_case.id as caseId, test_case.name, test_case.priority,
|
||||
test_case.type,test_case.test_id as testId,test_case.node_id, test_case.tags, test_case.maintainer, test_case.custom_fields,
|
||||
test_case.node_path, test_case.method, if(project.custom_num = 0, cast(test_case.num as char), test_case.custom_num) as customNum, test_plan_test_case.executor, test_plan_test_case.status, test_plan_test_case.actual_result,
|
||||
test_plan_test_case.update_time, test_case_node.name as model, project.name as projectName,
|
||||
test_case.type,test_case.test_id as testId,test_case.node_id, test_case.tags, test_case.maintainer,
|
||||
test_case.custom_fields,
|
||||
test_case.node_path, test_case.method, if(project.custom_num = 0, cast(test_case.num as char),
|
||||
test_case.custom_num) as customNum, test_plan_test_case.executor, test_plan_test_case.status,
|
||||
test_plan_test_case.actual_result,
|
||||
test_plan_test_case.update_time, test_plan_test_case.create_time,test_case_node.name as model, project.name as
|
||||
projectName,
|
||||
test_plan_test_case.plan_id as planId
|
||||
from test_plan_test_case
|
||||
inner join test_case on test_plan_test_case.case_id = test_case.id
|
||||
|
|
|
@ -94,7 +94,9 @@ export const Test_Plan_Api_Case = [
|
|||
{id: 'custom', label: i18n.t('api_test.definition.api_last_time')},
|
||||
{id: 'tags', label: i18n.t('commons.tag')},
|
||||
{id: 'execResult', label: '执行状态'},
|
||||
{id: 'maintainer', label: i18n.t('api_test.definition.request.responsible')}
|
||||
{id: 'maintainer', label: i18n.t('api_test.definition.request.responsible')},
|
||||
{id: 'createTime', label: i18n.t('commons.create_time')},
|
||||
|
||||
|
||||
]
|
||||
//测试计划-性能用例
|
||||
|
@ -119,7 +121,9 @@ export const Test_Plan_Scenario_Case = [
|
|||
{id: 'stepTotal', label: i18n.t('api_test.automation.success')},
|
||||
{id: 'lastResult', label: i18n.t('api_test.automation.fail')},
|
||||
{id: 'passRate', label: i18n.t('api_test.automation.passing_rate')},
|
||||
{id: 'maintainer', label: i18n.t('api_test.definition.request.responsible')}
|
||||
{id: 'maintainer', label: i18n.t('api_test.definition.request.responsible')},
|
||||
{id: 'createTime', label: i18n.t('commons.create_time')},
|
||||
|
||||
|
||||
]
|
||||
|
||||
|
|
|
@ -92,6 +92,17 @@
|
|||
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="item.id == 'createTime'"
|
||||
sortable="custom"
|
||||
min-width="160"
|
||||
:label="$t('commons.create_time')"
|
||||
prop="createTime"
|
||||
:key="index">
|
||||
<template v-slot:default="scope">
|
||||
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
v-if="item.id == 'tags'"
|
||||
|
|
|
@ -74,6 +74,15 @@
|
|||
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="item.id == 'createTime'"
|
||||
prop="createTime"
|
||||
min-width="120px"
|
||||
sortable="custom"
|
||||
:label="$t('commons.create_time')" width="180" :key="index">
|
||||
<template v-slot:default="scope">
|
||||
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="item.id == 'stepTotal'" prop="stepTotal" :label="$t('api_test.automation.step')"
|
||||
min-width="80px"
|
||||
show-overflow-tooltip :key="index"/>
|
||||
|
|
|
@ -65,26 +65,37 @@
|
|||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
prop="tags"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('commons.tag')"
|
||||
min-width="120px">
|
||||
prop="tags"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('commons.tag')"
|
||||
min-width="120px">
|
||||
<template v-slot:default="scope">
|
||||
<ms-tag v-for="(tag, index) in scope.row.showTags" :key="tag + '_' + index" type="success" effect="plain"
|
||||
:content="tag" style="margin-left: 0px; margin-right: 2px"/>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="createTime"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('commons.create_time')"
|
||||
min-width="120px">
|
||||
<template v-slot:default="scope">
|
||||
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
prop="nodePath"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('test_track.case.module')"
|
||||
min-width="120px"/>
|
||||
prop="nodePath"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('test_track.case.module')"
|
||||
min-width="120px"/>
|
||||
|
||||
<ms-table-column
|
||||
prop="projectName"
|
||||
prop="projectName"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('test_track.plan.plan_project')"
|
||||
|
|
|
@ -123,6 +123,7 @@ export const CUSTOM_TABLE_HEADER = {
|
|||
{id: 'executorName', key: '7', label: i18n.t('test_track.plan_view.executor')},
|
||||
{id: 'status', key: '8', label: i18n.t('test_track.plan_view.execute_result')},
|
||||
{id: 'updateTime', key: '9', label: i18n.t('commons.update_time')},
|
||||
{id: 'createTime', key: 'a', label: i18n.t('commons.create_time')},
|
||||
],
|
||||
//测试计划-api用例
|
||||
TEST_PLAN_API_CASE: [
|
||||
|
|
Loading…
Reference in New Issue