|
|
@ -141,11 +141,15 @@ const ImportActivity = ({ params }) => { |
|
|
|
|
|
|
|
|
|
|
|
// convert excel's DATEVALUE
|
|
|
|
// convert excel's DATEVALUE
|
|
|
|
if(["start_date"].includes(prop)){ |
|
|
|
if(["start_date"].includes(prop)){ |
|
|
|
|
|
|
|
if (columnData) { |
|
|
|
columnData = ExcelDateToJSDate(columnData) |
|
|
|
columnData = ExcelDateToJSDate(columnData) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(["end_date"].includes(prop)){ |
|
|
|
if(["end_date"].includes(prop)){ |
|
|
|
|
|
|
|
if (columnData) { |
|
|
|
columnData = ExcelDateToJSDateEndDay(columnData) |
|
|
|
columnData = ExcelDateToJSDateEndDay(columnData) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(prop == 'weight'){ |
|
|
|
if(prop == 'weight'){ |
|
|
@ -253,7 +257,11 @@ const ImportActivity = ({ params }) => { |
|
|
|
dataIndex: 'end_date', |
|
|
|
dataIndex: 'end_date', |
|
|
|
key: 'end_date', |
|
|
|
key: 'end_date', |
|
|
|
render: (text, record) => { |
|
|
|
render: (text, record) => { |
|
|
|
|
|
|
|
if(text){ |
|
|
|
return <span>{text.substring(0,8)}</span> |
|
|
|
return <span>{text.substring(0,8)}</span> |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return <span></span> |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|