fix(缺陷管理): 详情切换上一条下一条未刷新TAB页数据
--bug=1036421 --user=宋昌昌 【缺陷管理】查看缺陷详情-查看评论tab页后切换下一条或上一条,评论内容不更新 https://www.tapd.cn/55049933/s/1469234
This commit is contained in:
parent
1665206b38
commit
3a30eec2a9
|
@ -39,16 +39,16 @@
|
||||||
/>
|
/>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="w-[300px]"> {{ t('bugManagement.detail.isPlanRelateCaseTip1') }} </div>
|
<div class="w-[300px]"> {{ t('bugManagement.detail.isPlanRelateCaseTip1') }} </div>
|
||||||
<br>
|
<br />
|
||||||
<div class="w-[300px]"> {{ t('bugManagement.detail.isPlanRelateCaseTip2') }} </div>
|
<div class="w-[300px]"> {{ t('bugManagement.detail.isPlanRelateCaseTip2') }} </div>
|
||||||
<br>
|
<br />
|
||||||
<div class="w-[300px]"> {{ t('bugManagement.detail.isPlanRelateCaseTip3') }} </div>
|
<div class="w-[300px]"> {{ t('bugManagement.detail.isPlanRelateCaseTip3') }} </div>
|
||||||
</template>
|
</template>
|
||||||
</a-popover>
|
</a-popover>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #isRelatePlanCase = "{ record }">
|
<template #isRelatePlanCase="{ record }">
|
||||||
<span class="text-[var(--color-text-1)]">{{record.isRelatePlanCase ? t('common.yes') : t('common.no') }}</span>
|
<span class="text-[var(--color-text-1)]">{{ record.isRelatePlanCase ? t('common.yes') : t('common.no') }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ms-base-table>
|
</ms-base-table>
|
||||||
<MsCaseAssociate
|
<MsCaseAssociate
|
||||||
|
@ -74,32 +74,32 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {ref} from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import MsButton from '@/components/pure/ms-button/index.vue';
|
import MsButton from '@/components/pure/ms-button/index.vue';
|
||||||
import MsBaseTable from '@/components/pure/ms-table/base-table.vue';
|
import MsBaseTable from '@/components/pure/ms-table/base-table.vue';
|
||||||
import type {MsTableColumn} from '@/components/pure/ms-table/type';
|
import type { MsTableColumn } from '@/components/pure/ms-table/type';
|
||||||
import useTable from '@/components/pure/ms-table/useTable';
|
import useTable from '@/components/pure/ms-table/useTable';
|
||||||
import MsCaseAssociate from '@/components/business/ms-case-associate/index.vue';
|
import MsCaseAssociate from '@/components/business/ms-case-associate/index.vue';
|
||||||
import {RequestModuleEnum} from '@/components/business/ms-case-associate/utils';
|
import { RequestModuleEnum } from '@/components/business/ms-case-associate/utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
batchAssociation,
|
batchAssociation,
|
||||||
cancelAssociation,
|
cancelAssociation,
|
||||||
getAssociatedList,
|
getAssociatedList,
|
||||||
getModuleTree,
|
getModuleTree,
|
||||||
getUnAssociatedList,
|
getUnAssociatedList,
|
||||||
} from '@/api/modules/bug-management';
|
} from '@/api/modules/bug-management';
|
||||||
import {postTabletList} from '@/api/modules/project-management/menuManagement';
|
import { postTabletList } from '@/api/modules/project-management/menuManagement';
|
||||||
import {useI18n} from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import {useAppStore} from '@/store';
|
import { useAppStore } from '@/store';
|
||||||
import useFeatureCaseStore from '@/store/modules/case/featureCase';
|
import useFeatureCaseStore from '@/store/modules/case/featureCase';
|
||||||
|
|
||||||
import type {TableQueryParams} from '@/models/common';
|
import type { TableQueryParams } from '@/models/common';
|
||||||
|
|
||||||
import Message from '@arco-design/web-vue/es/message';
|
import Message from '@arco-design/web-vue/es/message';
|
||||||
|
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const featureCaseStore = useFeatureCaseStore();
|
const featureCaseStore = useFeatureCaseStore();
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -282,6 +282,10 @@ const appStore = useAppStore();
|
||||||
getEnabledModules();
|
getEnabledModules();
|
||||||
getFetch();
|
getFetch();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watchEffect(() => {
|
||||||
|
getFetch();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
@ -78,6 +78,10 @@
|
||||||
defineExpose({
|
defineExpose({
|
||||||
initData,
|
initData,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watchEffect(() => {
|
||||||
|
initData(props.bugId);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
Loading…
Reference in New Issue