讲师管理bug

This commit is contained in:
zhangsir
2024-12-27 16:46:49 +08:00
parent 914e2d7e98
commit fb737c7334
14 changed files with 132 additions and 38 deletions

View File

@@ -279,7 +279,7 @@ const columns = [
align: 'center',
width:100,
customRender: ({ text })=>{
return text||'0'
return text?text+'人':'0'
}
},
{
@@ -291,7 +291,7 @@ const columns = [
customRender: (value) => {
return (
<div>
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0) : '-'}
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0)+'分' : '-'}
</div>
)
}
@@ -301,14 +301,20 @@ const columns = [
dataIndex: 'levelPay',
key: 'levelPay',
align: 'center',
width:100
width:100,
customRender: ({ text })=>{
return text||text==0?text+'元':'-'
}
},
{
title: '计划费用',
dataIndex: 'expense',
key: 'expense',
align: 'center',
width:100
width:100,
customRender: ({ text })=>{
return text?text+'元':'-'
}
},
// {
// title: '应发费用',

View File

@@ -25,7 +25,7 @@
</div>
<div class="right">
<div class="org" :title="item?.trainOrgName">{{item?.trainOrgName||'-'}}</div>
<div class="text org" :title="item?.summaryTotal">{{item?.summaryTotal||'-'}}</div>
<div class="text org" :title="item?.summaryTotal">{{item?.summaryTotal?item?.summaryTotal+'元':'-'}}</div>
</div>
</div>
</div>
@@ -388,8 +388,8 @@ const columns = [
key: 'studys',
align: 'center',
width:100,
customRender: ({ text })=>{
return text||'0'
customRender: ({text})=>{
return text ? text+'人' : '0'
}
},
{
@@ -401,7 +401,7 @@ const columns = [
customRender: (value) => {
return (
<div>
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0) : '-'}
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0)+'分' : '-'}
</div>
)
}
@@ -412,6 +412,9 @@ const columns = [
key: 'levelPay',
align: 'center',
width:100,
customRender: ({text})=>{
return text||text==0 ? text+'元' : '-'
}
},
{
title: '计划费用',
@@ -419,6 +422,9 @@ const columns = [
key: 'expense',
align: 'center',
width:100,
customRender: ({text})=>{
return text ? text+'元' : '-'
}
},
// {
// title: '应发费用',

View File

@@ -213,6 +213,9 @@ export default{
key: 'studys',
ellipsis: true, align: "center",
width: 120,
customRender: ({text})=>{
return text ? text+'人' : '-'
}
},
{
title: '授课时长(分钟)',
@@ -220,6 +223,9 @@ export default{
key: 'teaching',
ellipsis: true, align: "center",
width: 120,
customRender: ({text})=>{
return text ? text+'分钟' : '-'
}
},
{
title: '评分',
@@ -230,7 +236,7 @@ export default{
customRender: (value) => {
return (
<div>
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0) : '-'}
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0)+'分' : '-'}
</div>
)
}

View File

@@ -276,6 +276,9 @@ export default{
key: 'studys',
ellipsis: true, align: "center",
width: 120,
customRender: ({text})=>{
return text ? text+'人' : '-'
}
},
{
title: '授课时长(分钟)',
@@ -283,6 +286,9 @@ export default{
key: 'teaching',
ellipsis: true, align: "center",
width: 120,
customRender: ({text})=>{
return text ? text+'分钟' : '-'
}
},
{
title: '评分',
@@ -293,7 +299,7 @@ export default{
customRender: (value) => {
return (
<div>
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0) : '-'}
{value.record.score?Number(value.record.score).toFixed(0)==0?'-':Number(value.record.score).toFixed(0)+'分' : '-'}
</div>
)
}

View File

@@ -28,8 +28,8 @@
<a-descriptions-item :labelStyle="{ width: '165px' }" label="培训发生组织编号">{{formData?.affiliationCode||'-'}}</a-descriptions-item>
<a-descriptions-item :labelStyle="{ width: '165px' }" label="培训发生组名称">{{formData?.affiliationName||'-'}}</a-descriptions-item>
<a-descriptions-item label="是否为根节点">
<span v-if="formData?.parentName">({{ formData?.parentName }})</span>
<span v-else>({{ {1:'',2:'',3:''}[formData?.code] }}级审批)</span>
<span v-if="formData?.parentName"><span style="margin-right:10px"></span>({{ formData?.parentName }})</span>
<span v-else><span style="margin-right:10px"></span>({{ {1:'一',2:'二',3:'三'}[formData?.code] }}级审批)</span>
</a-descriptions-item>
<a-descriptions-item label="组织担当">{{formData?.act||'-'}}</a-descriptions-item>
<a-descriptions-item v-if="formData?.isParent==1" label="一级审批人">{{formData?.one||'-'}}</a-descriptions-item>