fix(用例管理): 修复用例详情关联需求列表点击跳转问题
--bug=1036086 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036086
This commit is contained in:
parent
054c890a19
commit
f14c2d1f35
|
@ -65,10 +65,9 @@
|
||||||
</div>
|
</div>
|
||||||
<ms-base-table ref="tableRef" v-bind="propsRes" v-on="propsEvent">
|
<ms-base-table ref="tableRef" v-bind="propsRes" v-on="propsEvent">
|
||||||
<template #demandName="{ record }">
|
<template #demandName="{ record }">
|
||||||
<span class="ml-1 text-[rgb(var(--primary-5))]">
|
<a-button type="text" class="flex w-full" @click="openDemandUrl(record.demandUrl)">{{
|
||||||
{{ record.demandName }}
|
record.demandName
|
||||||
<span>({{ (record.children || []).length || 0 }})</span></span
|
}}<span>({{ (record.children || []).length || 0 }})</span></a-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-for="item in customFields" :key="item.slotName" #[item.dataIndex]="{ record }">
|
<template v-for="item in customFields" :key="item.slotName" #[item.dataIndex]="{ record }">
|
||||||
<span> {{ getSlotName(record, item) }} </span>
|
<span> {{ getSlotName(record, item) }} </span>
|
||||||
|
@ -267,6 +266,10 @@
|
||||||
return record.customFields[item.dataIndex as string] || '-';
|
return record.customFields[item.dataIndex as string] || '-';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openDemandUrl(url: string) {
|
||||||
|
window.open(url);
|
||||||
|
}
|
||||||
|
|
||||||
const platformInfo = ref<Record<string, any>>({});
|
const platformInfo = ref<Record<string, any>>({});
|
||||||
async function handleDrawerConfirm() {
|
async function handleDrawerConfirm() {
|
||||||
const demandList = tableSelected.value.map((item) => {
|
const demandList = tableSelected.value.map((item) => {
|
||||||
|
|
Loading…
Reference in New Issue