|
@@ -196,11 +196,11 @@
|
|
|
dataIndex: item.name,
|
|
|
align: 'left',
|
|
|
width: 80,
|
|
|
- customRender: ({ text, record }) => {
|
|
|
+ customRender: ({ record }) => {
|
|
|
try {
|
|
|
if (record.courseTimeTypeData) {
|
|
|
const courseTimeTypeData = JSON.parse(record.courseTimeTypeData);
|
|
|
- if (courseTimeTypeData[text]) return courseTimeTypeData[text];
|
|
|
+ if (courseTimeTypeData[item.name]) return courseTimeTypeData[item.name];
|
|
|
else return 0;
|
|
|
} else {
|
|
|
return 0;
|