mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 15:56:47 +08:00
讲师管理bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user