fix(工作台): 用例描述预览loading关闭

--bug=1028390 --user=宋昌昌 【工作台】我的待办/我的关注/我创建的-功能用例-底部换页多切换几次页面-点击用例描述预览-一直加载中转圈 https://www.tapd.cn/55049933/s/1403786
This commit is contained in:
song-cc-rock 2023-08-15 14:20:45 +08:00 committed by 刘瑞斌
parent 7534a5c1ec
commit 2da3939157
1 changed files with 179 additions and 186 deletions

View File

@ -247,21 +247,13 @@ import {
parseCustomFilesForList,
} from "metersphere-frontend/src/utils/tableUtils";
import HeaderLabelOperate from "metersphere-frontend/src/components/head/HeaderLabelOperate";
import {
getCurrentProjectID,
getCurrentUserId,
} from "metersphere-frontend/src/utils/token";
import {getCurrentProjectID, getCurrentUserId,} from "metersphere-frontend/src/utils/token";
import {getProjectMember, getProjectMemberUserFilter} from "@/api/user";
import MsTable from "metersphere-frontend/src/components/table/MsTable";
import MsTableColumn from "metersphere-frontend/src/components/table/MsTableColumn";
import {SYSTEM_FIELD_NAME_MAP} from "metersphere-frontend/src/utils/table-constants";
import {
editTestCaseOrder,
getTestCaseListById,
getTestCaseStep,
testCaseList,
} from "@/api/test-case";
import {editTestCaseOrder, getTestCaseListById, getTestCaseStep, testCaseList,} from "@/api/test-case";
import MsTablePagination from "metersphere-frontend/src/components/pagination/TablePagination";
import {TEST_CASE_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
import PriorityTableItem from "@/business/module/track/PriorityTableItem";
@ -279,7 +271,7 @@ import TestCasePreview from "@/business/othermodule/track/TestCasePreview";
import {parseTag} from "metersphere-frontend/src/utils";
import {getCustomFieldValueForTrack} from "@/business/component/js/table-head-util";
import {getTestCaseNodes} from "@/api/test-case-node";
import {buildTree, buildNodePath} from "metersphere-frontend/src/model/NodeTree";
import {buildNodePath, buildTree} from "metersphere-frontend/src/model/NodeTree";
export default {
name: "TableList",
@ -763,6 +755,7 @@ export default {
this.rowCaseResult.loading = true;
getTestCaseStep(id).then((response) => {
this.rowCaseResult.loading = false;
this.rowCase = response.data;
this.rowCase.steps = JSON.parse(this.rowCase.steps);
if (!this.rowCase.steps || this.rowCase.length < 1) {