讲师管理bug

This commit is contained in:
zhangsir
2024-11-18 12:18:35 +08:00
parent 35ea32332e
commit 5e56362539
4 changed files with 64 additions and 22 deletions

View File

@@ -83,7 +83,7 @@
</a-drawer>
</template>
<script setup>
<script setup lang="jsx">
import {defineEmits, defineProps, ref,watch} from "vue";
import * as api from '@/api/Lecturer'
const props = defineProps({
@@ -112,9 +112,25 @@ const columns = [
},
{
title: '状态',
dataIndex: 'address',
key: 'address',
dataIndex: 'status',
key: 'status',
align: 'center',
customRender: ({text})=>{
switch (text) {
case 1:
return <span>待审核</span>;
case 2:
return <span>审核中</span>;
case 3:
return <span>已完成</span>;
case 4:
return <span>审核失败</span>;
case 5:
return <span>待审核</span>;
default:
return <span>-</span>;
}
},
},
];
const formData = ref({})