Browse Source

全局表格样式

master
liujiangyong 2 years ago
parent
commit
5948e26f26
  1. 7
      web/client/src/sections/issueHandle/containers/patrolRecord.js
  2. 5
      web/client/src/sections/organization/components/resource.js
  3. 5
      web/client/src/sections/organization/containers/user.js
  4. 5
      web/client/src/sections/patrolManage/containers/checkItems.js
  5. 5
      web/client/src/sections/patrolManage/containers/patrolPlan.js
  6. 7
      web/client/src/sections/patrolManage/containers/patrolRecord.js
  7. 5
      web/client/src/sections/patrolManage/containers/patrolReport.js
  8. 5
      web/client/src/sections/patrolManage/containers/patrolTemplate.js

7
web/client/src/sections/issueHandle/containers/patrolRecord.js

@ -206,7 +206,7 @@ const PatrolRecord = (props) => {
]
return (
<div id='patrol-record'>
<div id='patrol-record' className='global-main'>
<div style={{ marginBottom: 20 }}>
<Input style={{ width: 240, marginRight: 20 }}
value={name} onChange={e => { setName(e.target.value) }}
@ -229,6 +229,11 @@ const PatrolRecord = (props) => {
showSizeChanger: true,
pageSizeOptions: [10, 20, 50],
}}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
</div>
)

5
web/client/src/sections/organization/components/resource.js

@ -54,6 +54,11 @@ const Resource = props => {
bordered
pagination={false}
dataSource={roleDatas}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
columns={[{
title: '功能',
key: 'name',

5
web/client/src/sections/organization/containers/user.js

@ -302,6 +302,11 @@ const UserManage = (props) => {
options={false}
search={false}
rowKey="id"
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
</div>
{

5
web/client/src/sections/patrolManage/containers/checkItems.js

@ -146,6 +146,11 @@ function CheckItems(props) {
disabled: record && record.patrolTemplates && record.patrolTemplates.length,
}),
}}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
{
visible ?

5
web/client/src/sections/patrolManage/containers/patrolPlan.js

@ -153,6 +153,11 @@ function PatrolPlan(props) {
return { ...res };
}}
onReset={() => { }}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
{
visible ?

7
web/client/src/sections/patrolManage/containers/patrolRecord.js

@ -126,7 +126,7 @@ const PatrolRecord = (props) => {
]
return (
<div id='patrol-record'>
<div id='patrol-record' className='global-main'>
<div style={{ display: 'flex', justifyContent: 'space-between', padding: '0 10px' }}>
<Form
style={{ display: 'flex', }}
@ -186,6 +186,11 @@ const PatrolRecord = (props) => {
record({ limit: pageSize, page: page - 1, ...search, companyId: search?.companyId })
}
}}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
<Modal
title='巡检记录详情'

5
web/client/src/sections/patrolManage/containers/patrolReport.js

@ -104,6 +104,11 @@ function patrolReport(props) {
};
}}
onReset={() => { setDate([moment().subtract(1, 'days'), moment()]) }}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
</>
)

5
web/client/src/sections/patrolManage/containers/patrolTemplate.js

@ -104,6 +104,11 @@ function PatrolTemplate(props) {
return { ...res };
}}
onReset={() => { }}
rowClassName={(record, index) => {
let className = 'global-light-row';
if (index % 2 === 1) className = 'global-dark-row';
return className;
}}
/>
{
visible ?

Loading…
Cancel
Save