mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
讲师管理bug
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="box">
|
||||
<div style="margin-bottom: 20px;font-size: 18px;font-weight: 700;">选择讲师费汇总:<span style="color:red;margin-left:20px;">{{levelPay||0}}元</span></div>
|
||||
<div style="margin-bottom: 20px;font-size: 18px;font-weight: 700;">选择讲师费汇总:<span style="color:red;margin-left:20px;">{{payableExpense||0}}元</span></div>
|
||||
<div class="table">
|
||||
<a-table
|
||||
:columns="columns"
|
||||
@@ -86,14 +86,14 @@ const addList = (item) => {
|
||||
selectedRowKeys.value.push(item.id)
|
||||
selectsData.value.push(item)
|
||||
}
|
||||
const levelPay = ref(0)
|
||||
const payableExpense = ref(0)
|
||||
watch(()=>selectsData.value.length,(val)=>{
|
||||
if(val){
|
||||
levelPay.value = selectsData.value.reduce((a,b)=>{
|
||||
return a + b.levelPay
|
||||
payableExpense.value = selectsData.value.reduce((a,b)=>{
|
||||
return a + b.payableExpense
|
||||
},0)
|
||||
}else{
|
||||
levelPay.value = 0
|
||||
payableExpense.value = 0
|
||||
}
|
||||
})
|
||||
const removeList = (item) => {
|
||||
@@ -115,35 +115,51 @@ const columns = [
|
||||
},
|
||||
{
|
||||
title: '所属组织',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'orgName',
|
||||
key: 'orgName',
|
||||
align: 'center',
|
||||
},
|
||||
|
||||
{
|
||||
title: '讲师体系',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'tsystemName',
|
||||
key: 'tsystemName',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '讲师等级',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'tlevelName',
|
||||
key: 'tlevelName',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '发薪地',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'payrollPlace',
|
||||
key: 'payrollPlace',
|
||||
align: 'center',
|
||||
},
|
||||
|
||||
{
|
||||
title: '课程类型',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'courseType',
|
||||
key: 'courseType',
|
||||
align: 'center',
|
||||
customRender: ({ text,record })=>{
|
||||
switch (text) {
|
||||
case 0:
|
||||
return "在线课"
|
||||
case 1:
|
||||
return "面授课"
|
||||
case 2:
|
||||
return "课程开发"
|
||||
case 3:
|
||||
return "作业员入模培训"
|
||||
case 4:
|
||||
return "其他"
|
||||
default:
|
||||
return "-"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '课程名称',
|
||||
@@ -153,44 +169,47 @@ const columns = [
|
||||
},
|
||||
{
|
||||
title: '授课/开发课程日期',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'teachingDate',
|
||||
key: 'teachingDate',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '授课/开发课程时长',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'teachingTime',
|
||||
key: 'teachingTime',
|
||||
align: 'center',
|
||||
customRender: ({ text,record })=>{
|
||||
return (text/60).toFixed(2)+'小时'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '参训人数',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'studys',
|
||||
key: 'studys',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '评分',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'score',
|
||||
key: 'score',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '课酬基准',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'levelPay',
|
||||
key: 'levelPay',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '计划费用',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'expense',
|
||||
key: 'expense',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '应发费用',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'payableExpense',
|
||||
key: 'payableExpense',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user