From 8cff642de9bc19459ca2c27e986df97f29bcf90f Mon Sep 17 00:00:00 2001 From: xingyongchun Date: Fri, 16 Dec 2022 16:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/article/containers/index.js | 2 +- .../src/sections/homePage/containers/index.js | 5 ++--- .../sections/homePage/containers/index.less | 21 ++++++++++++------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/web/client/src/sections/article/containers/index.js b/web/client/src/sections/article/containers/index.js index 23eceac..9180305 100644 --- a/web/client/src/sections/article/containers/index.js +++ b/web/client/src/sections/article/containers/index.js @@ -58,7 +58,7 @@ export const Default = (props) => { dataIndex: "build_time", hideInSearch: true, render: (dom, record) => { - return moment(record.build_time).format("YYYY-MM-DD"); + return <>{moment(record.build_time).format('YYYY-MM-DD')=='1999-01-01'?'待定':moment(record.build_time).format('YYYY-MM-DD')} }, }, { diff --git a/web/client/src/sections/homePage/containers/index.js b/web/client/src/sections/homePage/containers/index.js index fa01791..36494f2 100644 --- a/web/client/src/sections/homePage/containers/index.js +++ b/web/client/src/sections/homePage/containers/index.js @@ -58,8 +58,8 @@ function Management(props) { dataIndex: 'build_time', key: 'build_time', align: 'center', - defaultSortOrder: 'descend', - sortOrder:'descend' , + defaultSortOrder: 'ascend', + // sortOrder:'descend' , sorter: { compare: (a, b) => { const one = moment(a.build_time).format('YYYYMMDD') @@ -124,7 +124,6 @@ function Management(props) { initialValue: null, fieldProps: { onChange: (value, cs) => { - console.log(value) setAjob(value); }, options: [ diff --git a/web/client/src/sections/homePage/containers/index.less b/web/client/src/sections/homePage/containers/index.less index 221efe9..e2b1cb6 100644 --- a/web/client/src/sections/homePage/containers/index.less +++ b/web/client/src/sections/homePage/containers/index.less @@ -131,16 +131,23 @@ justify-content: space-between; padding: 5px; .ant-table-tbody > tr > td{ background-color: #ffffff !important; - } + } + .ant-col-offset-6{ + text-align: left !important; + margin-left: 0% !important; + } .ant-col-offset-6{ margin-left: -12%; } + .ant-col ant-form-item-control{ + flex-grow:0 !important; + } .ant-pro-card-body{ padding: 0px 24px 0 24px !important; } -.ant-table-column-sorter-inner{ - display: none !important; -} +// .ant-table-column-sorter-inner{ +// display: none !important; +// } &-point { width: 14px; @@ -174,6 +181,6 @@ justify-content: space-between; .cell-class { background-color: skyblue; } -.ant-tooltip-content{ - display: none !important; -} \ No newline at end of file +// .ant-tooltip-content{ +// display: none !important; +// }