fix(接口自动化): 修复导出问题
This commit is contained in:
parent
e929c0f6a9
commit
55194beabf
|
@ -50,7 +50,7 @@
|
|||
<el-table-column :label="$t('commons.operating')" width="200px" v-if="!referenced">
|
||||
<template v-slot:default="{row}">
|
||||
<div v-if="trashEnable">
|
||||
<el-button type="text" @click="reductionApi(row)">恢复</el-button>
|
||||
<el-button type="text" @click="reductionApi(row)">{{$t('commons.reduction')}}</el-button>
|
||||
<el-button type="text" @click="remove(row)">{{ $t('api_test.automation.remove') }}</el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
|
|
@ -249,22 +249,13 @@
|
|||
downloadFile("导出API.json", JSON.stringify(obj));
|
||||
} else {
|
||||
let condition = {};
|
||||
if (this.isApiListEnable) {
|
||||
let url = "/api/definition/list/1/100000";
|
||||
condition.filters = ["Prepare", "Underway", "Completed"];
|
||||
condition.projectId = getCurrentProjectID();
|
||||
this.$post(url, condition, response => {
|
||||
obj.data = response.data.listObject;
|
||||
downloadFile("导出API.json", JSON.stringify(obj));
|
||||
});
|
||||
} else {
|
||||
let url = "/api/testcase/list/";
|
||||
condition.projectId = getCurrentProjectID();
|
||||
this.$post(url, condition, response => {
|
||||
obj.data = response.data;
|
||||
downloadFile("导出API.json", JSON.stringify(obj));
|
||||
});
|
||||
}
|
||||
let url = "/api/definition/list/1/100000";
|
||||
condition.filters = ["Prepare", "Underway", "Completed"];
|
||||
condition.projectId = getCurrentProjectID();
|
||||
this.$post(url, condition, response => {
|
||||
obj.data = response.data.listObject;
|
||||
downloadFile("导出API.json", JSON.stringify(obj));
|
||||
});
|
||||
}
|
||||
},
|
||||
refresh(data) {
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
<el-table-column v-if="!isReadOnly && !isRelevanceModel" :label="$t('commons.operating')" min-width="130" align="center">
|
||||
<template v-slot:default="scope">
|
||||
<!--<el-button type="text" @click="reductionApi(scope.row)" v-if="trashEnable">恢复</el-button>-->
|
||||
<!--<el-button type="text" @click="reductionApi(scope.row)" v-if="trashEnable">{{$t('commons.reduction')}}</el-button>-->
|
||||
<el-button type="text" @click="handleTestCase(scope.row)" v-if="!trashEnable">{{$t('commons.edit')}}</el-button>
|
||||
<el-button type="text" @click="handleDelete(scope.row)" style="color: #F56C6C">{{$t('commons.delete')}}</el-button>
|
||||
</template>
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
|
||||
<el-table-column v-if="!isReadOnly && !isRelevance" :label="$t('commons.operating')" min-width="130" align="center">
|
||||
<template v-slot:default="scope">
|
||||
<el-button type="text" @click="reductionApi(scope.row)" v-if="trashEnable">恢复</el-button>
|
||||
<el-button type="text" @click="reductionApi(scope.row)" v-if="trashEnable">{{$t('commons.reduction')}}</el-button>
|
||||
<el-button type="text" @click="editApi(scope.row)" v-else>{{$t('commons.edit')}}</el-button>
|
||||
<el-button type="text" @click="handleTestCase(scope.row)">{{$t('api_test.definition.request.case')}}</el-button>
|
||||
<el-button type="text" @click="handleDelete(scope.row)" style="color: #F56C6C">{{$t('commons.delete')}}</el-button>
|
||||
|
|
|
@ -65,6 +65,7 @@ export default {
|
|||
refresh: 'Refresh',
|
||||
remark: 'Remark',
|
||||
delete: 'Delete',
|
||||
reduction: 'Reduction',
|
||||
not_filled: 'Not filled',
|
||||
please_select: 'Please select',
|
||||
search_by_name: 'Search by name',
|
||||
|
|
|
@ -65,6 +65,7 @@ export default {
|
|||
refresh: '刷新',
|
||||
remark: '备注',
|
||||
delete: '删除',
|
||||
reduction: '恢复',
|
||||
not_filled: '未填写',
|
||||
please_select: '请选择',
|
||||
search_by_name: '根据名称搜索',
|
||||
|
|
|
@ -65,6 +65,7 @@ export default {
|
|||
refresh: '刷新',
|
||||
remark: '備註',
|
||||
delete: '刪除',
|
||||
reduction: '恢复',
|
||||
not_filled: '未填寫',
|
||||
please_select: '請選擇',
|
||||
search_by_name: '根據名稱搜索',
|
||||
|
@ -796,88 +797,88 @@ export default {
|
|||
suffixFormatErr: "文件格式不符合要求",
|
||||
swagger_url_import: "使用URL導入",
|
||||
},
|
||||
home_page:{
|
||||
unit_of_measurement:"個",
|
||||
api_count_card:{
|
||||
home_page: {
|
||||
unit_of_measurement: "個",
|
||||
api_count_card: {
|
||||
title: "接口數量統計",
|
||||
},
|
||||
test_case_count_card:{
|
||||
test_case_count_card: {
|
||||
title: "接口用例數量統計",
|
||||
},
|
||||
test_scene_count_card:{
|
||||
test_scene_count_card: {
|
||||
title: "場景用例數量統計",
|
||||
},
|
||||
schedule_task_count_card:{
|
||||
schedule_task_count_card: {
|
||||
title: "定時任務數量統計",
|
||||
},
|
||||
detail_card:{
|
||||
running:"進行中",
|
||||
not_started:"未開始",
|
||||
finished:"已完成",
|
||||
uncoverage:"未覆蓋",
|
||||
coverage:"已覆蓋",
|
||||
unexecute:"未執行",
|
||||
execution_failed:"未通過",
|
||||
execution_pass:"已通過",
|
||||
failed:"失敗",
|
||||
success:"成功",
|
||||
rate:{
|
||||
completion:"完成率",
|
||||
coverage:"覆蓋率",
|
||||
pass:"通過率",
|
||||
success:"成功率",
|
||||
detail_card: {
|
||||
running: "進行中",
|
||||
not_started: "未開始",
|
||||
finished: "已完成",
|
||||
uncoverage: "未覆蓋",
|
||||
coverage: "已覆蓋",
|
||||
unexecute: "未執行",
|
||||
execution_failed: "未通過",
|
||||
execution_pass: "已通過",
|
||||
failed: "失敗",
|
||||
success: "成功",
|
||||
rate: {
|
||||
completion: "完成率",
|
||||
coverage: "覆蓋率",
|
||||
pass: "通過率",
|
||||
success: "成功率",
|
||||
},
|
||||
},
|
||||
api_details_card:{
|
||||
api_details_card: {
|
||||
title: "接口",
|
||||
this_week_add:"本週新增: {0}个",
|
||||
this_week_add: "本週新增: {0}个",
|
||||
},
|
||||
test_case_details_card:{
|
||||
test_case_details_card: {
|
||||
title: "用例",
|
||||
this_week_add:"本週新增: {0}个",
|
||||
this_week_execute:"本週執行: {0}次",
|
||||
executed:"歷史總執行: {0}次",
|
||||
this_week_add_sm:"本週新增:<br/>{0}个",
|
||||
this_week_execute_sm:"本週執行:<br/>{0}次",
|
||||
executed_sm:"歷史總執行:<br/>{0}次",
|
||||
this_week_add: "本週新增: {0}个",
|
||||
this_week_execute: "本週執行: {0}次",
|
||||
executed: "歷史總執行: {0}次",
|
||||
this_week_add_sm: "本週新增:<br/>{0}个",
|
||||
this_week_execute_sm: "本週執行:<br/>{0}次",
|
||||
executed_sm: "歷史總執行:<br/>{0}次",
|
||||
},
|
||||
test_scene_details_card:{
|
||||
test_scene_details_card: {
|
||||
title: "場景",
|
||||
this_week_add:"本週新增: {0}个",
|
||||
this_week_execute:"本週執行: {0}次",
|
||||
executed:"歷史總執行: {0}次",
|
||||
this_week_add_sm:"本週新增:<br/>{0}个",
|
||||
this_week_execute_sm:"本週執行:<br/>{0}次",
|
||||
executed_sm:"歷史總執行:<br/>{0}次",
|
||||
this_week_add: "本週新增: {0}个",
|
||||
this_week_execute: "本週執行: {0}次",
|
||||
executed: "歷史總執行: {0}次",
|
||||
this_week_add_sm: "本週新增:<br/>{0}个",
|
||||
this_week_execute_sm: "本週執行:<br/>{0}次",
|
||||
executed_sm: "歷史總執行:<br/>{0}次",
|
||||
},
|
||||
schedule_task_details_card:{
|
||||
schedule_task_details_card: {
|
||||
title: "定時任務",
|
||||
this_week_add:"本週新增: {0}个",
|
||||
this_week_execute:"本週執行: {0}次",
|
||||
executed:"歷史總執行: {0}次",
|
||||
this_week_add_sm:"本週新增:<br/>{0}个",
|
||||
this_week_execute_sm:"本週執行:<br/>{0}次",
|
||||
executed_sm:"歷史總執行:<br/>{0}次",
|
||||
this_week_add: "本週新增: {0}个",
|
||||
this_week_execute: "本週執行: {0}次",
|
||||
executed: "歷史總執行: {0}次",
|
||||
this_week_add_sm: "本週新增:<br/>{0}个",
|
||||
this_week_execute_sm: "本週執行:<br/>{0}次",
|
||||
executed_sm: "歷史總執行:<br/>{0}次",
|
||||
},
|
||||
failed_case_list:{
|
||||
failed_case_list: {
|
||||
title: "過去7天測試計畫失敗用例TOP 10",
|
||||
table_coloum:{
|
||||
table_coloum: {
|
||||
index: "排名",
|
||||
case_name: "用例名稱",
|
||||
case_type: "用例類型",
|
||||
test_plan: "所屬測試計畫",
|
||||
failure_times: "失敗次數",
|
||||
},
|
||||
table_value:{
|
||||
case_type:{
|
||||
table_value: {
|
||||
case_type: {
|
||||
api: "接口用例",
|
||||
scene: "場景用例",
|
||||
}
|
||||
}
|
||||
},
|
||||
running_task_list:{
|
||||
running_task_list: {
|
||||
title: "運行中的定時任務",
|
||||
table_coloum:{
|
||||
table_coloum: {
|
||||
index: "序號",
|
||||
scenario: "場景名稱",
|
||||
run_rule: "運行規則",
|
||||
|
@ -886,7 +887,7 @@ export default {
|
|||
create_user: "創建人",
|
||||
update_time: "更新時間",
|
||||
},
|
||||
confirm:{
|
||||
confirm: {
|
||||
close_title: "要關閉這條定時任務嗎?",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue