fix(缺陷管理): 缺陷详情关联用例展示下拉菜单问题
--bug=1036499 --user=宋昌昌 【缺陷管理】缺陷详情-用例-点击关联用例-显示下拉选项 https://www.tapd.cn/55049933/s/1468300
This commit is contained in:
parent
bc9678eb90
commit
90c3fa1977
|
@ -1,14 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<a-dropdown @select="handleSelect">
|
<a-button type="primary" @click="handleSelect">{{ t('caseManagement.featureCase.linkCase') }}</a-button>
|
||||||
<a-button type="primary"> {{ t('caseManagement.featureCase.linkCase') }} </a-button>
|
|
||||||
<template #content>
|
|
||||||
<a-doption v-for="item of caseTypeOptions" :key="item.value" :value="item.value">{{
|
|
||||||
t(item.label)
|
|
||||||
}}</a-doption>
|
|
||||||
</template>
|
|
||||||
</a-dropdown>
|
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
||||||
|
@ -29,16 +22,9 @@
|
||||||
<template v-if="(keyword || '').trim() === ''" #empty>
|
<template v-if="(keyword || '').trim() === ''" #empty>
|
||||||
<div class="flex w-full items-center justify-center">
|
<div class="flex w-full items-center justify-center">
|
||||||
{{ t('caseManagement.caseReview.tableNoData') }}
|
{{ t('caseManagement.caseReview.tableNoData') }}
|
||||||
<a-dropdown @select="handleSelect">
|
<MsButton class="ml-[8px]" @click="handleSelect">
|
||||||
<MsButton class="ml-[8px]">
|
{{ t('caseManagement.featureCase.linkCase') }}
|
||||||
{{ t('caseManagement.featureCase.linkCase') }}
|
</MsButton>
|
||||||
</MsButton>
|
|
||||||
<template #content>
|
|
||||||
<a-doption v-for="item of caseTypeOptions" :key="item.value" :value="item.value">{{
|
|
||||||
t(item.label)
|
|
||||||
}}</a-doption>
|
|
||||||
</template>
|
|
||||||
</a-dropdown>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ms-base-table>
|
</ms-base-table>
|
||||||
|
@ -65,32 +51,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();
|
||||||
|
@ -193,7 +179,6 @@
|
||||||
const getTableParams = ref<TableQueryParams>({});
|
const getTableParams = ref<TableQueryParams>({});
|
||||||
|
|
||||||
function handleSelect(value: string | number | Record<string, any> | undefined) {
|
function handleSelect(value: string | number | Record<string, any> | undefined) {
|
||||||
currentSelectCase.value = value as string;
|
|
||||||
innerVisible.value = true;
|
innerVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue