From d64853c57aeb582c36cee12578d090d1a6aedff7 Mon Sep 17 00:00:00 2001
From: AnAngle <1323481023@qq.com>
Date: Tue, 23 Aug 2022 22:30:33 +0800
Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?=
=?UTF-8?q?=20=E5=AF=BC=E5=85=A5=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B?=
=?UTF-8?q?=E5=90=8E=E6=8F=90=E7=A4=BA=E9=87=8D=E5=BC=80=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
--bug=1016081 --user=陈建星 【测试跟踪】github #17077,表格用例导入更新,提示更新成功,但是内容没有更新 https://www.tapd.cn/55049933/s/1231922
---
frontend/src/business/components/track/case/TestCase.vue | 9 +++++++++
.../components/track/module/TestCaseNodeTree.vue | 5 ++++-
frontend/src/i18n/track/en-US.js | 1 +
frontend/src/i18n/track/zh-CN.js | 1 +
frontend/src/i18n/track/zh-TW.js | 1 +
5 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue
index a49fcfa45e..8cc00016bb 100644
--- a/frontend/src/business/components/track/case/TestCase.vue
+++ b/frontend/src/business/components/track/case/TestCase.vue
@@ -17,6 +17,7 @@
@enableTrash="enableTrash"
@enablePublic="enablePublic"
@toPublic="toPublic"
+ @importRefresh="importRefresh"
@importChangeConfirm="importChangeConfirm"
@createCase="handleCaseSimpleCreate($event, 'add')"
ref="nodeTree"
@@ -747,6 +748,14 @@ export default {
this.$refs.nodeTree.list();
this.setTable(data);
},
+ importRefresh() {
+ this.refreshAll();
+ if (this.$refs.testCaseEdit) {
+ setTimeout(() => {
+ this.$info(this.$t('test_track.case.import.import_refresh_tips'));
+ }, 3000)
+ }
+ },
minderSaveRefresh() {
if (this.$refs.testCaseList) {
this.$refs.testCaseList.initTableData();
diff --git a/frontend/src/business/components/track/module/TestCaseNodeTree.vue b/frontend/src/business/components/track/module/TestCaseNodeTree.vue
index 94ce4d07d8..8d64c4f657 100644
--- a/frontend/src/business/components/track/module/TestCaseNodeTree.vue
+++ b/frontend/src/business/components/track/module/TestCaseNodeTree.vue
@@ -35,7 +35,7 @@