Browse Source

样式调整,排序修改

master
xingyongchun 2 years ago
parent
commit
8484365e53
  1. 27
      web/client/src/sections/homePage/containers/index.js
  2. 12
      web/client/src/sections/homePage/containers/index.less

27
web/client/src/sections/homePage/containers/index.js

@ -59,6 +59,7 @@ function Management(props) {
key: 'build_time', key: 'build_time',
align: 'center', align: 'center',
defaultSortOrder: 'descend', defaultSortOrder: 'descend',
sortOrder:'descend' ,
sorter: { sorter: {
compare: (a, b) => { compare: (a, b) => {
const one = moment(a.build_time).format('YYYYMMDD') const one = moment(a.build_time).format('YYYYMMDD')
@ -109,17 +110,12 @@ function Management(props) {
dataIndex: 'name_people', dataIndex: 'name_people',
key: 'name_people', key: 'name_people',
ellipsis: true, ellipsis: true,
width: 300, hideInSearch: true,
width: 100,
render: (dom, record) => { render: (dom, record) => {
return record.name_people; return record.name_people;
}, },
fieldProps: {
onChange: (value, cs) => {
setName(value.target.value);
},
placeholder: '请输入人员名称进行搜索',
getPopupContainer: (triggerNode) => triggerNode.parentNode,
},
}, { }, {
title: '岗位', title: '岗位',
key: 'post_people', key: 'post_people',
@ -222,6 +218,21 @@ function Management(props) {
return <div>{record.ssd=='undefined'?'--' :record.ssd}</div>; return <div>{record.ssd=='undefined'?'--' :record.ssd}</div>;
}, },
}, },
{title: "关键字搜索",
key: "direction",
hideInTable: true,
dataIndex: "direction",
order: 6,
fieldProps: {
onChange: (value, cs) => {
setName(value.target.value);
},
placeholder: '请输入关键字进行搜索',
getPopupContainer: (triggerNode) => triggerNode.parentNode,
},
}
]; ];
const waitCol = [ const waitCol = [

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

@ -130,13 +130,18 @@ justify-content: space-between;
text-align: left; text-align: left;
padding: 5px; padding: 5px;
.ant-table-tbody > tr > td{ .ant-table-tbody > tr > td{
background-color: #ffffff !important; background-color: #ffffff !important;
}
.ant-col-offset-6{
margin-left: -12%;
} }
.ant-pro-card-body{ .ant-pro-card-body{
padding: 0px 24px 0 24px !important; padding: 0px 24px 0 24px !important;
} }
.ant-table-column-sorter-inner{
display: none !important;
}
&-point { &-point {
width: 14px; width: 14px;
height: 14px; height: 14px;
@ -169,3 +174,6 @@ justify-content: space-between;
.cell-class { .cell-class {
background-color: skyblue; background-color: skyblue;
} }
.ant-tooltip-content{
display: none !important;
}
Loading…
Cancel
Save