讲师管理bug

This commit is contained in:
zhangsir
2024-12-18 17:53:14 +08:00
parent a98b5075a7
commit a5dd60f768
13 changed files with 135 additions and 85 deletions

View File

@@ -31,7 +31,7 @@
</div>
</div>
<a-table style="border: 1px solid #f2f6fe" :columns="columns" :data-source="tableData" :loading="tableLoading"
@expand="expandTable" :pagination="false">
@expand="expandTable" :pagination="false">
<template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'">
<a-space >
@@ -391,41 +391,21 @@ export default{
key: 'affiliationCode',
ellipsis: true,
align: "center",
width: 200,
width: '100px',
},
{
title: '培训发生组织名称 ',
dataIndex: 'affiliationName',
key: 'affiliationName',
ellipsis: true, align: "center",
width: 200,
},
{
title: '是否为根节点名称',
dataIndex: 'parentName',
key: 'parentName',
align: "center",
width: 200,
customRender: ({text,record})=>{
return (
text ? <div>({text})</div> : <div>({{1:'一',2:'二',3:'三'}[record.code]}级审批)</div>
)
},
},
{
title: '担当',
dataIndex: 'leaderName',
key: 'leaderName',
ellipsis: true,
align: "center",
width: 200,
width: '200px',
},
{
title: '状态',
dataIndex: 'status',
key: 'status',
ellipsis: true, align: "center",
width: 160,
width: '100px',
customRender: ({text})=>{
switch (text) {
case '1':
@@ -443,6 +423,27 @@ export default{
}
},
},
{
title: '是否为根节点名称',
dataIndex: 'parentName',
key: 'parentName',
align: "center",
width: '200px',
customRender: ({text,record})=>{
return (
text ? <div>({text})</div> : <div>({{1:'一',2:'二',3:'三'}[record.code]}级审批)</div>
)
},
},
{
title: '担当',
dataIndex: 'leaderName',
key: 'leaderName',
ellipsis: true,
align: "center",
width: '200px',
},
// {
// title: '备注 ',
// dataIndex: 'remark',
@@ -454,7 +455,7 @@ export default{
title: '操作 ',
dataIndex: 'operation',
key: 'operation',
width: 200,
width: '120px',
align: "center",
fixed: 'right',
scopedSlots: { customRender: "action" },