From 29a1e72a7658bb5b4ebf6d1d505a7374b35b0467 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 19 Nov 2021 10:06:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E6=89=A7=E8=A1=8C=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E4=B8=8D=E5=AE=9E=E6=97=B6=E5=90=8C=E6=AD=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20--bug=3D1008017=20--user=3D=E8=B5=B5=E5=8B=87=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=89=A7=E8=A1=8C=E6=8E=A5=E5=8F=A3case?= =?UTF-8?q?=EF=BC=8C=E6=89=A7=E8=A1=8C=E7=BB=93=E6=9E=9C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=EF=BC=8C=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E4=B8=8A=E5=B7=B2=E7=BB=8F=E5=A4=B1=E8=B4=A5=E4=BA=86=20https:?= =?UTF-8?q?//www.tapd.cn/55049933/s/1070239?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../definition/components/list/ApiCaseSimpleList.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index f3574904cb..2b26311db7 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -548,6 +548,7 @@ export default { this.$post('/api/testcase/batch/run', obj, () => { this.condition.ids = []; this.$refs.batchRun.close(); + this.$store.state.currentApiCase.case = true; this.search(); }); }, @@ -643,7 +644,7 @@ export default { this.condition.protocol = this.currentProtocol; } //检查是否只查询本周数据 - this.isSelectThissWeekData(); + this.isSelectThisWeekData(); this.condition.selectThisWeedData = false; this.condition.id = null; if (this.selectDataRange == 'thisWeekCount') { @@ -799,7 +800,6 @@ export default { obj = Object.assign(obj, this.condition); this.$post('/api/testcase/deleteBatchByParam/', obj, () => { this.$refs.caseTable.clearSelectRows(); - // this.initTable(); this.$emit('refreshTable'); this.$success(this.$t('commons.delete_success')); }); @@ -879,7 +879,6 @@ export default { if (action === 'confirm') { this.$get('/api/testcase/delete/' + apiCase.id, () => { this.$success(this.$t('commons.delete_success')); - // this.initTable(); this.$emit('refreshTable'); }); } @@ -987,7 +986,7 @@ export default { } }, //判断是否只显示本周的数据。 从首页跳转过来的请求会带有相关参数 - isSelectThissWeekData() { + isSelectThisWeekData() { this.selectDataRange = "all"; let routeParam = this.$route.params.dataSelectRange; let dataType = this.$route.params.dataType; @@ -1010,8 +1009,6 @@ export default { this.$refs.viewRef.open(param); }, showEnvironment(row) { - - let projectID = this.projectId; if (this.projectId) { this.$get('/api/environment/list/' + this.projectId, response => { this.environments = response.data; @@ -1078,7 +1075,6 @@ export default { } let projectId = getCurrentProjectID(); let runData = []; - let singleLoading = true; row.request = JSON.parse(row.request); row.request.name = row.id; row.request.useEnvironment = environment.id;