Browse Source

样式调整,排序修改

master
xingyongchun 2 years ago
parent
commit
8484365e53
  1. 27
      web/client/src/sections/homePage/containers/index.js
  2. 14
      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',
align: 'center',
defaultSortOrder: 'descend',
sortOrder:'descend' ,
sorter: {
compare: (a, b) => {
const one = moment(a.build_time).format('YYYYMMDD')
@ -109,17 +110,12 @@ function Management(props) {
dataIndex: 'name_people',
key: 'name_people',
ellipsis: true,
width: 300,
hideInSearch: true,
width: 100,
render: (dom, record) => {
return record.name_people;
},
fieldProps: {
onChange: (value, cs) => {
setName(value.target.value);
},
placeholder: '请输入人员名称进行搜索',
getPopupContainer: (triggerNode) => triggerNode.parentNode,
},
}, {
title: '岗位',
key: 'post_people',
@ -222,6 +218,21 @@ function Management(props) {
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 = [

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

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