讲师管理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

@@ -36,10 +36,10 @@
<template v-if="column.key === 'operation'">
<a-space >
<lockLecturer :id="record.id" :title="'培训发生组织详情'">
<div style="color: #1890ff;">查看</div>
<div style="color: #1890ff;cursor: pointer;">查看</div>
</lockLecturer>
<a-button type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
<a-button type="link" @click="() => updateModal(record)">撤回</a-button>
<a-button v-if="record.status!=2" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
<a-button v-if="record.status==2" type="link" @click="() => updateModal(record)">撤回</a-button>
<a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
</a-space>
</template>
@@ -349,8 +349,8 @@ export default{
},
{
title: '状态',
dataIndex: 'type',
key: 'type',
dataIndex: 'status',
key: 'status',
ellipsis: true, align: "center",
width: 160,
customRender: ({text})=>{
@@ -360,9 +360,11 @@ export default{
case '2':
return <span>审核中</span>;
case '3':
return <span>已完成</span>;
return <span>审核通过</span>;
case '4':
return <span style={{ color: "red" }}>审核失败</span>;
return <span>拒绝</span>;
case '5':
return <span>撤回</span>;
default:
return <span>-</span>;
}