fix(工作台): 接口用例列表取消多余的点击操作

https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001026964
This commit is contained in:
song-tianyang 2023-06-20 15:58:50 +08:00 committed by 建国
parent 08cc360801
commit 8ff6084a0a
1 changed files with 1 additions and 13 deletions

View File

@ -133,7 +133,7 @@
min-width="120px" min-width="120px"
:label="$t('test_track.plan_view.execute_result')"> :label="$t('test_track.plan_view.execute_result')">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-link @click="getExecResult(scope.row)" :disabled="!scope.row.execResult || scope.row.execResult==='PENDING'"> <el-link :disabled="!scope.row.execResult || scope.row.execResult==='PENDING'">
<ms-api-report-status :status="scope.row.execResult"/> <ms-api-report-status :status="scope.row.execResult"/>
</el-link> </el-link>
</template> </template>
@ -291,7 +291,6 @@ import {
editApiCaseByParam, editApiCaseByParam,
editApiTestCaseOrder, editApiTestCaseOrder,
getApiCaseById, getApiCaseById,
getApiReportDetail,
getCaseById, getCaseById,
testCaseBatchRun testCaseBatchRun
} from "@/api/api"; } from "@/api/api";
@ -630,17 +629,6 @@ export default {
} }
}, },
methods: { methods: {
getExecResult(apiCase) {
if (apiCase.lastResultId) {
getApiReportDetail(apiCase.lastResultId).then(response => {
if (response.data) {
let data = JSON.parse(response.data.content);
this.response = data;
this.resVisible = true;
}
});
}
},
getStatusClass(status) { getStatusClass(status) {
switch (status) { switch (status) {
case "success": case "success":