修改热区

This commit is contained in:
sunhonglai
2025-05-09 11:28:46 +08:00
parent 67a61180b0
commit d927958f24
2 changed files with 13 additions and 11 deletions

View File

@@ -76,18 +76,18 @@
:pagination="false"> :pagination="false">
<template #bodyCell="{ record, column }"> <template #bodyCell="{ record, column }">
<template v-if="column.key === 'orgName'"> <!-- <template v-if="column.key === 'orgName'">
<a-space style="display:flex ;justify-content: left;"> <a-space style="display:flex ;justify-content: left;">
<!-- <a-popover> &lt;!&ndash; <a-popover>
<template #content> <template #content>
<p>{{ record.orgName}}</p> <p>{{ record.orgName}}</p>
</template> --> </template> &ndash;&gt;
<div <div
style="max-width: 180px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;user-select:text" style="max-width: 180px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;user-select:text"
>{{ record.orgName }}</div> >{{ record.orgName }}</div>
<!-- </a-popover> --> &lt;!&ndash; </a-popover> &ndash;&gt;
</a-space> </a-space>
</template> </template>-->
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">
<a-space> <a-space>
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button> <a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
@@ -814,8 +814,9 @@ export default {
title: '所属组织 ', title: '所属组织 ',
dataIndex: 'orgName', dataIndex: 'orgName',
key: 'orgName', key: 'orgName',
ellipsis: true, align: "left", ellipsis: true,
scopedSlots: { customRender: "orgName" }, align: "left",
// scopedSlots: { customRender: "orgName" },
width: 200, width: 200,
// customRender: (value, record) => { // customRender: (value, record) => {
// return ( // return (

View File

@@ -143,12 +143,12 @@
</a-space> </a-space>
</template> </template>
</template> </template>
<template #trainOrg="{ record }"> <!-- <template #trainOrg="{ record }">
<a-space style="display:flex ;justify-content: space-around;"> <a-space style="display:flex ;justify-content: space-around;">
<div style="max-width: 180px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" <div style="max-width: 180px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
>{{ record.orgName }}</div> >{{ record.orgName }}</div>
</a-space> </a-space>
</template> </template>-->
</a-table> </a-table>
</div> </div>
@@ -1134,9 +1134,10 @@ export default {
title: '讲师组织', title: '讲师组织',
dataIndex: 'orgName', dataIndex: 'orgName',
key: 'orgName', key: 'orgName',
ellipsis: true, align: "center", ellipsis: true,
align: "center",
width: 200, width: 200,
slots: { customRender: "trainOrg" }, // slots: { customRender: "trainOrg" },
}, },
{ {
title: '操作 ', title: '操作 ',