mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 09:46:45 +08:00
讲师管理bug
This commit is contained in:
@@ -35,18 +35,9 @@
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div style="padding: 10px 0">
|
||||
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="columns"
|
||||
:data-source="tableData" :loading="tableLoading" @expand="expandTable" :pagination="false">
|
||||
<template #bodyCell="{ record, column }">
|
||||
<template v-if="column.key === 'teaching'">
|
||||
<a-space style="display:flex ;justify-content: space-around; ">
|
||||
<!-- <template #content>
|
||||
<p>{{ record.orgName}}</p>
|
||||
</template> -->
|
||||
<span>{{ record.teaching }} 分钟</span>
|
||||
</a-space>
|
||||
</template>
|
||||
<template v-if="column.key === 'operation'">
|
||||
<a-table :header-cell-style="{ 'text-align': 'center' }" :columns="columns"
|
||||
:data-source="tableData" :loading="tableLoading" :scroll="{ x: '900' }" :pagination="false">
|
||||
<template #action="{ record, column }">
|
||||
<a-space >
|
||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||
<a-button type="link" v-if="record.isPermission==='true'||record.isSuperPermission==='true'" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||
@@ -59,7 +50,6 @@
|
||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))"
|
||||
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button> -->
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
@@ -287,7 +277,7 @@ export default {
|
||||
setup() {
|
||||
onMounted(() => {
|
||||
const search = sessionStorage.getItem('searchExter')
|
||||
if(route.query.activeKey == 2){
|
||||
if(route.query.activeKey == 2&&search){
|
||||
state.searchParam = JSON.parse(search)
|
||||
}
|
||||
searchSubmit()
|
||||
@@ -335,8 +325,8 @@ export default {
|
||||
name: null,//姓名
|
||||
status: null,//状态
|
||||
tSystemName: null,
|
||||
pageNo: "1",
|
||||
pageSize: "10"
|
||||
pageNo: 1,
|
||||
pageSize: 10
|
||||
},
|
||||
activeName: 'first'
|
||||
})
|
||||
@@ -384,15 +374,15 @@ export default {
|
||||
title: '讲师姓名 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
elipsis: true, align: "center",
|
||||
ellipsis: true, align: "center",
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '手机号码',
|
||||
dataIndex: 'mobile',
|
||||
key: 'mobile',
|
||||
elipsis: true, align: "center",
|
||||
width: 400,
|
||||
ellipsis: true, align: "center",
|
||||
width: 200,
|
||||
// customRender: (value, record) => {
|
||||
// return (
|
||||
// <div>
|
||||
@@ -405,29 +395,28 @@ export default {
|
||||
title: '讲师邮箱 ',
|
||||
dataIndex: 'email',
|
||||
key: 'email',
|
||||
elipsis: true, align: "center",
|
||||
ellipsis: true, align: "center",
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '初始授课时长 ',
|
||||
title: '授课时长 ',
|
||||
dataIndex: 'teaching',
|
||||
key: 'teaching',
|
||||
elipsis: true, align: "center",
|
||||
scopedSlots: { customRender: "teaching" },
|
||||
width: 400,
|
||||
// customRender: (value, record) => {
|
||||
// return (
|
||||
// <div>
|
||||
// {value.record.orgName}
|
||||
// </div>
|
||||
// )
|
||||
// }
|
||||
ellipsis: true, align: "center",
|
||||
width: 200,
|
||||
customRender: (value, record) => {
|
||||
return (
|
||||
<div>
|
||||
{value.record.teaching}分钟
|
||||
</div>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '账号状态 ',
|
||||
dataIndex: 'status',
|
||||
key: 'status',
|
||||
elipsis: true, align: "center",
|
||||
ellipsis: true, align: "center",
|
||||
width: 200,
|
||||
customRender: (value) => {
|
||||
return (
|
||||
@@ -447,9 +436,10 @@ export default {
|
||||
title: '操作 ',
|
||||
dataIndex: 'operation',
|
||||
key: 'operation',
|
||||
elipsis: true, align: "right",
|
||||
align: "right",
|
||||
width: 200,
|
||||
scopedSlots: { customRender: "action" },
|
||||
fixed: "right",
|
||||
slots: { customRender: "action" },
|
||||
},
|
||||
])
|
||||
//列表数据
|
||||
|
||||
Reference in New Issue
Block a user