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