refactor(测试计划): 清理无用代码
This commit is contained in:
parent
7aa5a6fc5c
commit
f9f897c027
|
@ -18,20 +18,12 @@
|
|||
@click="dialogFormVisible=true">
|
||||
{{ $t('report.test_stop_now') }}
|
||||
</el-button>
|
||||
<!-- <el-button :disabled="isReadOnly || report.status !== 'Completed'" type="success" plain size="mini"-->
|
||||
<!-- @click="rerun(testId)">-->
|
||||
<!-- {{ $t('report.test_execute_again') }}-->
|
||||
<!-- </el-button>-->
|
||||
<el-button :disabled="isReadOnly" type="info" plain size="mini" @click="handleExport(reportName)">
|
||||
{{ $t('test_track.plan_view.export_report') }}
|
||||
</el-button>
|
||||
<el-button :disabled="isReadOnly" type="warning" plain size="mini" @click="downloadJtl()">
|
||||
{{ $t('report.downloadJtl') }}
|
||||
</el-button>
|
||||
|
||||
<!--<el-button :disabled="isReadOnly" type="warning" plain size="mini">-->
|
||||
<!--{{$t('report.compare')}}-->
|
||||
<!--</el-button>-->
|
||||
</el-row>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
|
@ -159,7 +151,6 @@ export default {
|
|||
this.testName = data.testName;
|
||||
this.projectId = data.projectId;
|
||||
this.projectName = data.projectName;
|
||||
//
|
||||
if (callback) callback(res);
|
||||
} else {
|
||||
this.$error(this.$t('report.not_exist'));
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
ref="nodeTree"/>
|
||||
</template>
|
||||
|
||||
<!-- <ms-table-header :condition.sync="condition" @search="search" title="" :show-create="false"/>-->
|
||||
|
||||
<el-table
|
||||
v-loading="result.loading"
|
||||
|
@ -30,11 +29,6 @@
|
|||
:label="$t('commons.name')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="userName"-->
|
||||
<!-- :label="$t('load_test.user_name')"-->
|
||||
<!-- show-overflow-tooltip>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="status"
|
||||
column-key="status"
|
||||
|
|
|
@ -48,14 +48,6 @@
|
|||
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- sortable-->
|
||||
<!-- prop="updateTime"-->
|
||||
<!-- :label="$t('commons.update_time')">-->
|
||||
<!-- <template v-slot:default="scope">-->
|
||||
<!-- <span>{{ scope.row.updateTime | timestampFormatDate }}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="status"
|
||||
column-key="status"
|
||||
|
@ -143,9 +135,6 @@ export default {
|
|||
status: 'default',
|
||||
screenHeight: document.documentElement.clientHeight - 330,//屏幕高度
|
||||
buttons: [
|
||||
// {
|
||||
// name: "批量编辑用例", handleClick: this.handleBatchEdit
|
||||
// },
|
||||
{
|
||||
name: this.$t('test_track.plan.load_case.unlink_in_bulk'), handleClick: this.handleDeleteBatch
|
||||
},
|
||||
|
@ -238,9 +227,6 @@ export default {
|
|||
this.selectRows.add(row);
|
||||
}
|
||||
},
|
||||
// handleBatchEdit() {
|
||||
//
|
||||
// },
|
||||
handleDeleteBatch() {
|
||||
this.$alert(this.$t('test_track.plan_view.confirm_cancel_relevance') + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
|
@ -325,7 +311,6 @@ export default {
|
|||
this.$refs.loadCaseReport.drawer = true;
|
||||
} else {
|
||||
this.$warning(this.$t('test_track.plan.load_case.report_not_found'));
|
||||
// this.initTable();
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
:show-create="false"
|
||||
:tip="$t('commons.search_by_name_or_id')">
|
||||
<template v-slot:title>
|
||||
性能用例
|
||||
{{ $t('test_track.plan.load_case.case') }}
|
||||
</template>
|
||||
<template v-slot:button>
|
||||
<ms-table-button :is-tester-permission="true" icon="el-icon-connection"
|
||||
|
|
|
@ -1129,6 +1129,7 @@ export default {
|
|||
plan_delete_tip: "The test plan is under way, please confirm and delete it!",
|
||||
plan_delete: "Delete test plan",
|
||||
load_case: {
|
||||
case: "Load Case",
|
||||
execution_status: "Execution status",
|
||||
report: "report",
|
||||
view_report: "View report",
|
||||
|
|
|
@ -1133,6 +1133,7 @@ export default {
|
|||
plan_delete_tip: "该测试计划正在进行中,请确认再删除!",
|
||||
plan_delete: "删除计划",
|
||||
load_case: {
|
||||
case: "性能用例",
|
||||
execution_status: "执行状态",
|
||||
report: "报告",
|
||||
view_report: "查看报告",
|
||||
|
|
|
@ -1131,6 +1131,7 @@ export default {
|
|||
plan_delete_tip: "該測試計劃正在進行中,請確認再刪除!",
|
||||
plan_delete: "刪除計劃",
|
||||
load_case: {
|
||||
case: "性能用例",
|
||||
execution_status: "執行狀態",
|
||||
report: "報告",
|
||||
view_report: "查看報告",
|
||||
|
|
Loading…
Reference in New Issue