refactor(测试跟踪): 导入功能用例后提示重开编辑页
--bug=1016081 --user=陈建星 【测试跟踪】github #17077,表格用例导入更新,提示更新成功,但是内容没有更新 https://www.tapd.cn/55049933/s/1231922
This commit is contained in:
parent
6d9ebafe17
commit
d64853c57a
|
@ -17,6 +17,7 @@
|
||||||
@enableTrash="enableTrash"
|
@enableTrash="enableTrash"
|
||||||
@enablePublic="enablePublic"
|
@enablePublic="enablePublic"
|
||||||
@toPublic="toPublic"
|
@toPublic="toPublic"
|
||||||
|
@importRefresh="importRefresh"
|
||||||
@importChangeConfirm="importChangeConfirm"
|
@importChangeConfirm="importChangeConfirm"
|
||||||
@createCase="handleCaseSimpleCreate($event, 'add')"
|
@createCase="handleCaseSimpleCreate($event, 'add')"
|
||||||
ref="nodeTree"
|
ref="nodeTree"
|
||||||
|
@ -747,6 +748,14 @@ export default {
|
||||||
this.$refs.nodeTree.list();
|
this.$refs.nodeTree.list();
|
||||||
this.setTable(data);
|
this.setTable(data);
|
||||||
},
|
},
|
||||||
|
importRefresh() {
|
||||||
|
this.refreshAll();
|
||||||
|
if (this.$refs.testCaseEdit) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$info(this.$t('test_track.case.import.import_refresh_tips'));
|
||||||
|
}, 3000)
|
||||||
|
}
|
||||||
|
},
|
||||||
minderSaveRefresh() {
|
minderSaveRefresh() {
|
||||||
if (this.$refs.testCaseList) {
|
if (this.$refs.testCaseList) {
|
||||||
this.$refs.testCaseList.initTableData();
|
this.$refs.testCaseList.initTableData();
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
</template>
|
</template>
|
||||||
</ms-node-tree>
|
</ms-node-tree>
|
||||||
<test-case-import
|
<test-case-import
|
||||||
@refreshAll="refreshAll"
|
@refreshAll="importRefresh"
|
||||||
ref="testCaseImport"/>
|
ref="testCaseImport"/>
|
||||||
<test-case-export
|
<test-case-export
|
||||||
@refreshAll="refreshAll"
|
@refreshAll="refreshAll"
|
||||||
|
@ -169,6 +169,9 @@ export default {
|
||||||
refreshAll() {
|
refreshAll() {
|
||||||
this.$emit('refreshAll');
|
this.$emit('refreshAll');
|
||||||
},
|
},
|
||||||
|
importRefresh() {
|
||||||
|
this.$emit('importRefresh');
|
||||||
|
},
|
||||||
enableTrash() {
|
enableTrash() {
|
||||||
this.condition.trashEnable = true;
|
this.condition.trashEnable = true;
|
||||||
// 隐藏公共用例库背景色
|
// 隐藏公共用例库背景色
|
||||||
|
|
|
@ -170,6 +170,7 @@ export default {
|
||||||
import_tip1: "The ID is required when the \"Test Case Custom ID\" switch is turned on in the project settings",
|
import_tip1: "The ID is required when the \"Test Case Custom ID\" switch is turned on in the project settings",
|
||||||
import_tip2: "ID is required when importing and updating",
|
import_tip2: "ID is required when importing and updating",
|
||||||
import_file_tips: "Please upload the file first!",
|
import_file_tips: "Please upload the file first!",
|
||||||
|
import_refresh_tips: "Content has been updated, please reopen the edit page!",
|
||||||
import_format: "Import Format",
|
import_format: "Import Format",
|
||||||
select_import_field: "Select Field",
|
select_import_field: "Select Field",
|
||||||
select_import_all_field: "Select All",
|
select_import_all_field: "Select All",
|
||||||
|
|
|
@ -164,6 +164,7 @@ export default {
|
||||||
import_format: "导入格式",
|
import_format: "导入格式",
|
||||||
select_import_field: "选择导出字段",
|
select_import_field: "选择导出字段",
|
||||||
select_import_all_field: "选择所有字段",
|
select_import_all_field: "选择所有字段",
|
||||||
|
import_refresh_tips: "内容已更新,请重新打开编辑页!",
|
||||||
base_field: "基础字段",
|
base_field: "基础字段",
|
||||||
custom_field: "自定义字段",
|
custom_field: "自定义字段",
|
||||||
other_field: "其他字段",
|
other_field: "其他字段",
|
||||||
|
|
|
@ -164,6 +164,7 @@ export default {
|
||||||
import_format: "導入格式",
|
import_format: "導入格式",
|
||||||
select_import_field: "選擇導出字段",
|
select_import_field: "選擇導出字段",
|
||||||
select_import_all_field: "選擇所有字段",
|
select_import_all_field: "選擇所有字段",
|
||||||
|
import_refresh_tips: "內容已更新,請重新打開編輯頁!",
|
||||||
base_field: "基礎字段",
|
base_field: "基礎字段",
|
||||||
custom_field: "自定義字段",
|
custom_field: "自定義字段",
|
||||||
other_field: "其他字段",
|
other_field: "其他字段",
|
||||||
|
|
Loading…
Reference in New Issue