讲师管理bug

This commit is contained in:
zhangsir
2024-12-27 17:03:20 +08:00
parent fb737c7334
commit ff6618e56f
2 changed files with 12 additions and 8 deletions

View File

@@ -176,7 +176,7 @@ const columns = [
dataIndex: 'name',
key: 'name',
align: 'center',
width:100,
width:120,
},
{
title: '讲师工号',
@@ -227,6 +227,7 @@ const columns = [
key: 'payrollPlace',
align: 'center',
width:120,
customCell :() => {return {style: {maxWidth: '160px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}},
customRender: ({ text })=>{
return text||'-'
}
@@ -237,7 +238,7 @@ const columns = [
dataIndex: 'courseType',
key: 'courseType',
align: 'center',
width:120,
width:140,
customRender: ({ text,record })=>{
switch (text) {
case 0:
@@ -301,7 +302,7 @@ const columns = [
dataIndex: 'levelPay',
key: 'levelPay',
align: 'center',
width:100,
width:120,
customRender: ({ text })=>{
return text||text==0?text+'元':'-'
}
@@ -311,7 +312,8 @@ const columns = [
dataIndex: 'expense',
key: 'expense',
align: 'center',
width:100,
width:120,
customCell :() => {return {style: {maxWidth: '160px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}},
customRender: ({ text })=>{
return text?text+'元':'-'
}

View File

@@ -286,7 +286,7 @@ const columns = [
dataIndex: 'name',
key: 'name',
align: 'center',
width:100,
width:120,
},
{
title: '讲师工号',
@@ -337,6 +337,7 @@ const columns = [
key: 'payrollPlace',
align: 'center',
width:120,
customCell :() => {return {style: {maxWidth: '160px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}},
customRender: ({ text })=>{
return text||'-'
}
@@ -347,7 +348,7 @@ const columns = [
dataIndex: 'courseType',
key: 'courseType',
align: 'center',
width:120,
width:140,
customRender: ({ text,record })=>{
switch (text) {
case 0:
@@ -411,7 +412,7 @@ const columns = [
dataIndex: 'levelPay',
key: 'levelPay',
align: 'center',
width:100,
width:120,
customRender: ({text})=>{
return text||text==0 ? text+'元' : '-'
}
@@ -421,7 +422,8 @@ const columns = [
dataIndex: 'expense',
key: 'expense',
align: 'center',
width:100,
width:120,
customCell :() => {return {style: {maxWidth: '160px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}},
customRender: ({text})=>{
return text ? text+'元' : '-'
}