修正了一些样式
parent
a39d3ce14a
commit
11a1889ae4
|
@ -36,7 +36,7 @@ class ReimbursementTab extends React.Component<any, any> {
|
|||
columns: ProColumns<TableListItem>[] = [
|
||||
{
|
||||
title: '报销单号',
|
||||
width: 60,
|
||||
width: 80,
|
||||
dataIndex: 'id',
|
||||
search: false,
|
||||
sorter: true,
|
||||
|
@ -54,7 +54,7 @@ class ReimbursementTab extends React.Component<any, any> {
|
|||
},
|
||||
{
|
||||
title: '行程',
|
||||
width: 100,
|
||||
width: 120,
|
||||
dataIndex: 'OD',
|
||||
search: false,
|
||||
render: (_, row) => <>{row.OD[0] + (row.back ? " ⇌ " : " → ") + row.OD[1]}</>,
|
||||
|
@ -105,7 +105,7 @@ class ReimbursementTab extends React.Component<any, any> {
|
|||
},
|
||||
{
|
||||
title: '申请时间',
|
||||
width: 120,
|
||||
width: 130,
|
||||
dataIndex: 'submitDateTime',
|
||||
valueType: 'dateTime',
|
||||
search: false,
|
||||
|
|
|
@ -49,6 +49,7 @@ const statusEnum2 = {
|
|||
// }
|
||||
|
||||
function displayRawInfo(reimbursement: ReimbursementDetailModal | undefined | null) {
|
||||
console.log(reimbursement)
|
||||
if (reimbursement == undefined)
|
||||
return null;
|
||||
return (
|
||||
|
@ -216,6 +217,7 @@ class ReimbursementDetail extends React.Component<any, any> {
|
|||
}
|
||||
|
||||
static getDerivedStateFromProps(nextProps: any, prevState: any) {
|
||||
console.log(nextProps.reimbursement)
|
||||
if (nextProps.reimbursement !== prevState.reimbursement) {
|
||||
return {
|
||||
open: nextProps.reimbursement !== undefined,
|
||||
|
|
Loading…
Reference in New Issue