fix: 接口定义报告详情报错

This commit is contained in:
chenjianxing 2020-12-17 15:36:25 +08:00
parent ba689c3e27
commit cbf472dceb
3 changed files with 10 additions and 2 deletions

View File

@ -211,6 +211,9 @@
return true; return true;
} }
}, },
showExecResult(data) {
this.$emit('showExecResult', data);
},
getBodyUploadFiles(row) { getBodyUploadFiles(row) {
let bodyUploadFiles = []; let bodyUploadFiles = [];
row.bodyUploadIds = []; row.bodyUploadIds = [];

View File

@ -23,6 +23,7 @@
<api-case-item v-loading="singleLoading && singleRunId === item.id" <api-case-item v-loading="singleLoading && singleRunId === item.id"
@refresh="getApiTest" @refresh="getApiTest"
@singleRun="singleRun" @singleRun="singleRun"
@showExecResult="showExecResult"
:is-case-edit="isCaseEdit" :is-case-edit="isCaseEdit"
:api="api" :api="api"
:api-case="item" :index="index"/> :api-case="item" :index="index"/>

View File

@ -65,7 +65,7 @@
:total="total"/> :total="total"/>
</api-list-container> </api-list-container>
<api-case-list @refresh="initTable" :currentApi="selectCase" ref="caseList"/> <api-case-list @showExecResult="showExecResult" @refresh="initTable" :currentApi="selectCase" ref="caseList"/>
<!--批量编辑--> <!--批量编辑-->
<ms-batch-edit ref="batchEdit" @batchEdit="batchEdit" :typeArr="typeArr" :value-arr="valueArr"/> <ms-batch-edit ref="batchEdit" @batchEdit="batchEdit" :typeArr="typeArr" :value-arr="valueArr"/>
</div> </div>
@ -86,7 +86,7 @@
import MsBottomContainer from "../BottomContainer"; import MsBottomContainer from "../BottomContainer";
import ShowMoreBtn from "../../../../track/case/components/ShowMoreBtn"; import ShowMoreBtn from "../../../../track/case/components/ShowMoreBtn";
import MsBatchEdit from "../basis/BatchEdit"; import MsBatchEdit from "../basis/BatchEdit";
import {API_METHOD_COLOUR, REQ_METHOD, API_STATUS, CASE_PRIORITY} from "../../model/JsonData"; import {API_METHOD_COLOUR, CASE_PRIORITY} from "../../model/JsonData";
import {getCurrentProjectID} from "@/common/js/utils"; import {getCurrentProjectID} from "@/common/js/utils";
import ApiListContainer from "./ApiListContainer"; import ApiListContainer from "./ApiListContainer";
import PriorityTableItem from "../../../../track/common/tableItems/planview/PriorityTableItem"; import PriorityTableItem from "../../../../track/common/tableItems/planview/PriorityTableItem";
@ -223,6 +223,10 @@
}) })
} }
}, },
showExecResult(row) {
this.visible = false;
this.$emit('showExecResult', row);
},
filter(filters) { filter(filters) {
_filter(filters, this.condition); _filter(filters, this.condition);
this.initTable(); this.initTable();