fix(用例管理): 修复用例详情关联需求列表点击跳转问题

--bug=1036086 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036086
This commit is contained in:
guoyuqi 2024-02-28 19:31:09 +08:00 committed by 刘瑞斌
parent 054c890a19
commit f14c2d1f35
1 changed files with 7 additions and 4 deletions

View File

@ -65,10 +65,9 @@
</div>
<ms-base-table ref="tableRef" v-bind="propsRes" v-on="propsEvent">
<template #demandName="{ record }">
<span class="ml-1 text-[rgb(var(--primary-5))]">
{{ record.demandName }}
<span>({{ (record.children || []).length || 0 }})</span></span
>
<a-button type="text" class="flex w-full" @click="openDemandUrl(record.demandUrl)">{{
record.demandName
}}<span>({{ (record.children || []).length || 0 }})</span></a-button>
</template>
<template v-for="item in customFields" :key="item.slotName" #[item.dataIndex]="{ record }">
<span> {{ getSlotName(record, item) }} </span>
@ -267,6 +266,10 @@
return record.customFields[item.dataIndex as string] || '-';
}
function openDemandUrl(url: string) {
window.open(url);
}
const platformInfo = ref<Record<string, any>>({});
async function handleDrawerConfirm() {
const demandList = tableSelected.value.map((item) => {