讲师管理bug

This commit is contained in:
zhangsir
2024-11-12 18:53:19 +08:00
parent fd1f306510
commit fd3563858c
9 changed files with 47 additions and 20 deletions

View File

@@ -41,7 +41,7 @@
<a-tabs @change="change" v-model:activeKey="activeKey">
<a-tab-pane key="1" tab="管理组织列表">
<div style="margin-bottom: 30px">
<a-table :columns="columns" :data-source="formData?.tableData" />
<a-table :columns="columns" :data-source="formData?.tableData" :pagination="false"/>
</div>
<div style="margin-bottom: 100px">
<!-- <a-descriptions :column="2" bordered>
@@ -60,7 +60,7 @@
</a-tab-pane>
<a-tab-pane key="2" tab="审批记录" force-render>
<div style="margin-bottom: 20px">
<a-table :columns="columnsThree" :data-source="formData?.tableDataTwo" >
<a-table :columns="columnsThree" :data-source="formData?.tableDataTwo" :pagination="false">
<template #action="{ record }">
<div class="action">
<div style="color: #1890ff;cursor: pointer;" class="btn" @click="lookList(record)">查看</div>
@@ -69,7 +69,7 @@
</a-table>
</div>
<div style="margin-bottom: 100px">
<a-table v-if="threeList" :columns="columnsTwo" :data-source="formData?.tableDataTwo" />
<a-table v-if="threeList" :columns="columnsTwo" :data-source="formData?.tableDataTwo" :pagination="false"/>
</div>
</a-tab-pane>
</a-tabs>
@@ -102,16 +102,19 @@ const columns = [
title: '组织的名称',
dataIndex: 'orgName',
key: 'orgName',
align: 'center',
},
{
title: '类型',
dataIndex: 'age',
key: 'age',
align: 'center',
},
{
title: '状态',
dataIndex: 'address',
key: 'address',
align: 'center',
},
];
const formData = ref({})
@@ -120,26 +123,31 @@ const columnsTwo = [
title: '层级审批人',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '操作',
dataIndex: 'age',
key: 'age',
align: 'center',
},
{
title: '审批人',
dataIndex: 'address',
key: 'age',
align: 'center',
},
{
title: '审批时间',
dataIndex: 'updateTime',
key: 'updateTime',
align: 'center',
},
{
title: '审批建议',
dataIndex: 'address',
key: 'age',
align: 'center',
},
]
const columnsThree = ref([
@@ -147,21 +155,25 @@ const columnsThree = ref([
title: '审批提交时间',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '审批状态',
dataIndex: 'age',
key: 'age',
align: 'center',
},
{
title: '审批人',
dataIndex: 'address',
key: 'age',
align: 'center',
},
{
title: '操作',
dataIndex: 'address',
key:'age',
align: 'center',
slots: { customRender: "action" },
}
])