修正了一些样式

main
白封羽 2023-01-07 13:02:24 +08:00
parent a39d3ce14a
commit 11a1889ae4
2 changed files with 5 additions and 3 deletions

View File

@ -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,

View File

@ -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,