fix(功能用例): 修复评审关联用例不立即刷新列表以及接口场景回收站按钮文字显示问题

--bug=1038414 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038414
This commit is contained in:
guoyuqi 2024-04-07 09:59:00 +08:00 committed by 刘瑞斌
parent d6cc864783
commit 06fe3f5204
3 changed files with 3 additions and 5 deletions

View File

@ -155,7 +155,7 @@
class="!mr-0" class="!mr-0"
@click="deleteOperation(record)" @click="deleteOperation(record)"
> >
{{ t('common.delete') }} {{ t('api_scenario.recycle.batchCleanOut') }}
</MsButton> </MsButton>
</template> </template>
</ms-base-table> </ms-base-table>

View File

@ -648,7 +648,6 @@
async function getCaseLevelFields() { async function getCaseLevelFields() {
const result = await getCaseDefaultFields(appStore.currentProjectId); const result = await getCaseDefaultFields(appStore.currentProjectId);
caseLevelFields.value = result.customFields.find((item: any) => item.internal && item.fieldName === '用例等级'); caseLevelFields.value = result.customFields.find((item: any) => item.internal && item.fieldName === '用例等级');
caseFilters.value = caseLevelFields.value?.options.map((item: any) => item.text);
} }
// //

View File

@ -191,8 +191,7 @@
async function initDetail() { async function initDetail() {
try { try {
loading.value = true; loading.value = true;
const res = await getReviewDetail(reviewId.value); reviewDetail.value = await getReviewDetail(reviewId.value);
reviewDetail.value = res;
} catch (error) { } catch (error) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(error); console.log(error);
@ -259,7 +258,7 @@
baseAssociateCaseRequest: params, baseAssociateCaseRequest: params,
}); });
Message.success(t('caseManagement.caseReview.associateSuccess')); Message.success(t('caseManagement.caseReview.associateSuccess'));
initDetail(); await initDetail();
folderTreeRef.value?.initModules(); folderTreeRef.value?.initModules();
caseTableRef.value?.searchCase(); caseTableRef.value?.searchCase();
} catch (error) { } catch (error) {