fix(项目管理): 关联需求缺陷配置交互问题
--bug=1037267 --user=宋昌昌 【项目管理】关联需求/缺陷 需要优化 https://www.tapd.cn/55049933/s/1481068
This commit is contained in:
parent
87978e66a6
commit
9610007002
|
@ -1,4 +1,5 @@
|
|||
<template>
|
||||
<a-spin :loading="selectLoading" class="block w-full">
|
||||
<a-select
|
||||
v-model:model-value="selectValue"
|
||||
:placeholder="t(props.placeholder || 'common.pleaseSelect')"
|
||||
|
@ -8,6 +9,7 @@
|
|||
>
|
||||
<a-option v-for="opt of optionsList" :key="opt.value" :value="opt.value">{{ opt.label }}</a-option>
|
||||
</a-select>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
@ -45,11 +47,13 @@
|
|||
const selectValue = ref<string[] | string>();
|
||||
|
||||
const optionsList = ref<{ label: string; value: string }[]>([]);
|
||||
const selectLoading = ref(false);
|
||||
|
||||
const params = ref<OptionsParams>();
|
||||
const pluginId = (sessionStorage.getItem('platformKey') as string) || 'jira';
|
||||
async function getLinksItem() {
|
||||
if (props.optionMethod) {
|
||||
selectLoading.value = true;
|
||||
params.value = {
|
||||
pluginId,
|
||||
organizationId: organizationId.value,
|
||||
|
@ -58,6 +62,7 @@
|
|||
};
|
||||
try {
|
||||
const res = await getPluginOptions(params.value);
|
||||
selectLoading.value = false;
|
||||
optionsList.value = res.map((item) => {
|
||||
return {
|
||||
label: item.text,
|
||||
|
@ -65,6 +70,7 @@
|
|||
};
|
||||
});
|
||||
} catch (error) {
|
||||
selectLoading.value = false;
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(error);
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ export default {
|
|||
'project.menu.organizationId': 'Organization ID',
|
||||
'project.menu.azureId': 'Azure Filter ID',
|
||||
'project.menu.defectType': 'Defect Type',
|
||||
'project.menu.demandType': 'Demand Type',
|
||||
'project.menu.howGetJiraKey': 'How to get JIRA project key',
|
||||
'project.menu.preview': 'Preview',
|
||||
'project.menu.pleaseInputJiraKey': 'Please enter JIRA project key',
|
||||
|
|
|
@ -58,6 +58,7 @@ export default {
|
|||
'project.menu.organizationId': '组织 ID',
|
||||
'project.menu.azureId': 'Azure 过滤 ID',
|
||||
'project.menu.defectType': '缺陷类型',
|
||||
'project.menu.demandType': '需求类型',
|
||||
'project.menu.howGetJiraKey': '如何获取JIRA 项目 key ',
|
||||
'project.menu.preview': '预览',
|
||||
'project.menu.pleaseInputJiraKey': '请输入 JIRA 项目 key',
|
||||
|
|
Loading…
Reference in New Issue