讲师管理bug

This commit is contained in:
zhangsir
2024-11-12 16:18:30 +08:00
parent 841369c4a2
commit fd1f306510
6 changed files with 148 additions and 37 deletions

View File

@@ -59,8 +59,17 @@
</div>
</a-tab-pane>
<a-tab-pane key="2" tab="审批记录" force-render>
<div style="margin-bottom: 20px">
<a-table :columns="columnsThree" :data-source="formData?.tableDataTwo" >
<template #action="{ record }">
<div class="action">
<div style="color: #1890ff;cursor: pointer;" class="btn" @click="lookList(record)">查看</div>
</div>
</template>
</a-table>
</div>
<div style="margin-bottom: 100px">
<a-table :columns="columnsTwo" :data-source="formData?.tableDataTwo" />
<a-table v-if="threeList" :columns="columnsTwo" :data-source="formData?.tableDataTwo" />
</div>
</a-tab-pane>
</a-tabs>
@@ -133,10 +142,39 @@ const columnsTwo = [
key: 'age',
},
]
const columnsThree = ref([
{
title: '审批提交时间',
dataIndex: 'name',
key: 'name',
},
{
title: '审批状态',
dataIndex: 'age',
key: 'age',
},
{
title: '审批人',
dataIndex: 'address',
key: 'age',
},
{
title: '操作',
dataIndex: 'address',
key:'age',
slots: { customRender: "action" },
}
])
const threeList = ref(false)
const lookList = (record) => {
console.log(record,'resssssss')
threeList.value = true
}
const visible = ref(false);
watch(visible, (val)=>{
console.log(val,'val',props.id)
if(val){
threeList.value = false
api.getAffiliationById(props.id).then(res=>{
console.log(res,'resssss')
formData.value = res.data.data