refactor(接口定义): 更改接口自动化列表最后更新时间为更新时间

--bug=1018485 --user=王孝刚 【接口测试】接口自动化页面最后更新时间应该是更新时间
https://www.tapd.cn/55049933/s/1269375
This commit is contained in:
wxg0103 2022-10-20 13:37:47 +08:00 committed by f2c-ci-robot[bot]
parent 867fea7605
commit a1961e83ce
4 changed files with 18 additions and 20 deletions

View File

@ -187,7 +187,7 @@
<ms-table-column <ms-table-column
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:label="$t('api_test.automation.update_time')" :label="$t('commons.update_time')"
sortable sortable
prop="updateTime" prop="updateTime"
min-width="180px"> min-width="180px">

View File

@ -1,15 +1,15 @@
<template> <template>
<div v-loading="result.loading"> <div v-loading="result.loading">
<env-group-popover :env-map="projectEnvMap" <env-group-popover :env-map="projectEnvMap"
:project-ids="projectIds" :project-ids="projectIds"
@setProjectEnvMap="setProjectEnvMap" @setProjectEnvMap="setProjectEnvMap"
:environment-type.sync="environmentType" :environment-type.sync="environmentType"
:group-id="envGroupId" :group-id="envGroupId"
:is-scenario="false" :is-scenario="false"
@setEnvGroup="setEnvGroup" @setEnvGroup="setEnvGroup"
:show-config-button-with-out-permission="showConfigButtonWithOutPermission" :show-config-button-with-out-permission="showConfigButtonWithOutPermission"
:project-list="projectList" :project-list="projectList"
ref="envPopover" class="env-popover"/> ref="envPopover" class="env-popover"/>
<el-input :placeholder="$t('api_test.definition.request.select_case')" @blur="filterSearch" <el-input :placeholder="$t('api_test.definition.request.select_case')" @blur="filterSearch"
@ -68,7 +68,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="userId" :label="$t('api_test.automation.creator')" show-overflow-tooltip sortable="custom" <el-table-column prop="userId" :label="$t('api_test.automation.creator')" show-overflow-tooltip sortable="custom"
min-width="100px"/> min-width="100px"/>
<el-table-column prop="updateTime" :label="$t('api_test.automation.update_time')" width="180" sortable="custom"> <el-table-column prop="updateTime" :label="$t('commons.update_time')" width="180" sortable="custom">
<template v-slot:default="scope"> <template v-slot:default="scope">
<span>{{ scope.row.updateTime | datetimeFormat }}</span> <span>{{ scope.row.updateTime | datetimeFormat }}</span>
</template> </template>
@ -103,9 +103,8 @@ import MsTableAdvSearchBar from "metersphere-frontend/src/components/search/MsTa
import TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS from "metersphere-frontend/src/components/search/search-components"; import TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS from "metersphere-frontend/src/components/search/search-components";
import {ENV_TYPE} from "metersphere-frontend/src/utils/constants"; import {ENV_TYPE} from "metersphere-frontend/src/utils/constants";
import MsTable from "metersphere-frontend/src/components/table/MsTable"; import MsTable from "metersphere-frontend/src/components/table/MsTable";
import {getVersionFilters} from "@/business/utils/sdk-utils"; import {getOwnerProjects, getVersionFilters} from "@/business/utils/sdk-utils";
import MxVersionSelect from "metersphere-frontend/src/components/version/MxVersionSelect"; import MxVersionSelect from "metersphere-frontend/src/components/version/MxVersionSelect";
import {getOwnerProjects} from "@/business/utils/sdk-utils";
import {getProjectApplicationConfig} from "@/api/project-application"; import {getProjectApplicationConfig} from "@/api/project-application";
import {getApiScenarioEnvByProjectId} from "@/api/remote/api/api-automation"; import {getApiScenarioEnvByProjectId} from "@/api/remote/api/api-automation";
import {scenarioRelevanceList} from "@/api/remote/plan/test-plan-scenario"; import {scenarioRelevanceList} from "@/api/remote/plan/test-plan-scenario";

View File

@ -45,7 +45,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="userId" :label="$t('api_test.automation.creator')" show-overflow-tooltip sortable="custom" <el-table-column prop="userId" :label="$t('api_test.automation.creator')" show-overflow-tooltip sortable="custom"
min-width="100px"/> min-width="100px"/>
<el-table-column prop="updateTime" :label="$t('api_test.automation.update_time')" width="180" sortable="custom"> <el-table-column prop="updateTime" :label="$t('commons.update_time')" width="180" sortable="custom">
<template v-slot:default="scope"> <template v-slot:default="scope">
<span>{{ scope.row.updateTime | datetimeFormat }}</span> <span>{{ scope.row.updateTime | datetimeFormat }}</span>
</template> </template>
@ -81,8 +81,7 @@ import MsTableAdvSearchBar from "metersphere-frontend/src/components/search/MsTa
import TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS from "metersphere-frontend/src/components/search/search-components"; import TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS from "metersphere-frontend/src/components/search/search-components";
import {ENV_TYPE} from "metersphere-frontend/src/utils/constants"; import {ENV_TYPE} from "metersphere-frontend/src/utils/constants";
import MsTable from "metersphere-frontend/src/components/table/MsTable"; import MsTable from "metersphere-frontend/src/components/table/MsTable";
import {getVersionFilters} from "@/business/utils/sdk-utils"; import {getOwnerProjects, getVersionFilters} from "@/business/utils/sdk-utils";
import {getOwnerProjects} from "@/business/utils/sdk-utils";
import {getProjectApplicationConfig} from "@/api/project-application"; import {getProjectApplicationConfig} from "@/api/project-application";
import {testPlanUiScenarioRelevanceList} from "@/api/remote/ui/test-plan-ui-scenario-case"; import {testPlanUiScenarioRelevanceList} from "@/api/remote/ui/test-plan-ui-scenario-case";
@ -251,7 +250,7 @@ export default {
<style scoped> <style scoped>
:deep(.ms-select-all-fixed th:nth-child(2) .table-select-icon) { :deep(.ms-select-all-fixed th:nth-child(2) .table-select-icon) {
top: -3px!important; top: -3px !important;
} }
.env-popover { .env-popover {

View File

@ -48,7 +48,7 @@ const TRACK_HEADER = {
{id: 'tags', key: '7', label: 'commons.tag'}, {id: 'tags', key: '7', label: 'commons.tag'},
{id: 'execResult', key: '8', label: 'test_track.plan.execute_result'}, {id: 'execResult', key: '8', label: 'test_track.plan.execute_result'},
{id: 'maintainer', key: '9', label: 'api_test.definition.request.responsible'}, {id: 'maintainer', key: '9', label: 'api_test.definition.request.responsible'},
{id: 'updateTime', key: 'a', label: 'api_test.automation.update_time'}, {id: 'updateTime', key: 'a', label: 'commons.update_time'},
{id: 'createTime', key: 'b', label: 'commons.create_time'}, {id: 'createTime', key: 'b', label: 'commons.create_time'},
{id: 'environmentName', key: 'c', label: 'commons.environment'}, {id: 'environmentName', key: 'c', label: 'commons.environment'},
], ],
@ -76,7 +76,7 @@ const TRACK_HEADER = {
{id: 'passRate', key: '9', label: 'api_test.automation.passing_rate'}, {id: 'passRate', key: '9', label: 'api_test.automation.passing_rate'},
{id: 'maintainer', key: 'a', label: 'api_test.definition.request.responsible'}, {id: 'maintainer', key: 'a', label: 'api_test.definition.request.responsible'},
{id: 'createUser', key: '5', label: 'api_test.automation.creator'}, {id: 'createUser', key: '5', label: 'api_test.automation.creator'},
{id: 'updateTime', key: '6', label: 'api_test.automation.update_time'}, {id: 'updateTime', key: '6', label: 'commons.update_time'},
{id: 'createTime', key: 'b', label: 'commons.create_time'}, {id: 'createTime', key: 'b', label: 'commons.create_time'},
{id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'}, {id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'},
], ],
@ -91,7 +91,7 @@ const TRACK_HEADER = {
{id: 'passRate', key: '9', label: 'api_test.automation.passing_rate'}, {id: 'passRate', key: '9', label: 'api_test.automation.passing_rate'},
{id: 'maintainer', key: 'a', label: 'api_test.definition.request.responsible'}, {id: 'maintainer', key: 'a', label: 'api_test.definition.request.responsible'},
{id: 'createUser', key: '5', label: 'api_test.automation.creator'}, {id: 'createUser', key: '5', label: 'api_test.automation.creator'},
{id: 'updateTime', key: '6', label: 'api_test.automation.update_time'}, {id: 'updateTime', key: '6', label: 'commons.update_time'},
{id: 'createTime', key: 'b', label: 'commons.create_time'}, {id: 'createTime', key: 'b', label: 'commons.create_time'},
{id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'}, {id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'},
], ],