Browse Source

搜索框问题

master
xingyongchun 2 years ago
parent
commit
8cff642de9
  1. 2
      web/client/src/sections/article/containers/index.js
  2. 5
      web/client/src/sections/homePage/containers/index.js
  3. 19
      web/client/src/sections/homePage/containers/index.less

2
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')}</>
},
},
{

5
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: [

19
web/client/src/sections/homePage/containers/index.less

@ -132,15 +132,22 @@ justify-content: space-between;
.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;
}
// .ant-tooltip-content{
// display: none !important;
// }

Loading…
Cancel
Save