Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
9b753402
Commit
9b753402
authored
Feb 01, 2024
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 增加分页配置
parent
a747718d
Pipeline
#84926
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
46 deletions
+28
-46
BookConfigNew.jsx
src/pages/bsmanager/base/standingBook/BookConfigNew.jsx
+28
-46
No files found.
src/pages/bsmanager/base/standingBook/BookConfigNew.jsx
View file @
9b753402
...
@@ -33,6 +33,14 @@ import ChangeAdd from './changeAdd';
...
@@ -33,6 +33,14 @@ import ChangeAdd from './changeAdd';
import
EditTable
from
'./EditTable'
;
import
EditTable
from
'./EditTable'
;
import
styles
from
'./BookConfigNew.less'
;
import
styles
from
'./BookConfigNew.less'
;
const
pagingOptions
=
[
{
label
:
'20条/页'
,
value
:
20
},
{
label
:
'50条/页'
,
value
:
50
},
{
label
:
'100条/页'
,
value
:
100
},
{
label
:
'200条/页'
,
value
:
200
},
{
label
:
'500条/页'
,
value
:
500
},
]
const
{
Option
}
=
Select
;
const
{
Option
}
=
Select
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
const
BookConfigNew
=
props
=>
{
const
BookConfigNew
=
props
=>
{
...
@@ -234,32 +242,27 @@ const BookConfigNew = props => {
...
@@ -234,32 +242,27 @@ const BookConfigNew = props => {
});
});
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
pickItem1
);
console
.
log
(
data
[
0
]);
if
(
visible
)
{
if
(
visible
)
{
// 获取台账表
// 获取台账表
getTableData
();
getTableData
();
if
(
type
===
'edit'
)
{
if
(
type
===
'edit'
)
{
Ledger_QueryLedger
({
ledgerId
:
formObj
.
ID
}).
then
(
res
=>
{
Ledger_QueryLedger
({
ledgerId
:
formObj
.
ID
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
// setTableShow(true)
form
.
setFieldsValue
({
...
res
.
data
});
form
.
setFieldsValue
(
res
.
data
);
setOrder
(
res
.
data
.
Order
);
setOrder
(
res
.
data
.
Order
);
let
editArr
=
res
.
data
.
LedgerFieids
;
let
editArr
=
res
.
data
.
LedgerFieids
;
changTable
(
res
.
data
.
TableName
,
editArr
);
changTable
(
res
.
data
.
TableName
,
editArr
);
// tableRef.current.setTableData(false, res.data.LedgerFieids);
}
}
});
});
}
else
{
}
else
{
if
(
!
pickItem1
||
pickItem1
==
'全部'
)
{
form
.
setFieldsValue
({
form
.
setFieldsValue
({
Type
:
data
[
0
]
});
EnableTimeFilter
:
true
,
}
else
{
EnableQuickSearch
:
true
,
form
.
setFieldsValue
({
Type
:
pickItem1
});
EnableBatchOperation
:
true
,
}
EnableImportExport
:
true
,
form
.
setFieldsValue
({
EnableTimeFilter
:
true
});
Type
:
(
!
pickItem1
||
pickItem1
==
'全部'
)
?
data
[
0
]
:
pickItem1
,
form
.
setFieldsValue
({
EnableQuickSearch
:
true
});
PageSize
:
20
form
.
setFieldsValue
({
EnableBatchOperation
:
true
});
})
form
.
setFieldsValue
({
EnableImportExport
:
true
});
}
}
getParentData
({
ledgerId
:
type
===
'edit'
?
formObj
.
ID
:
'0'
});
getParentData
({
ledgerId
:
type
===
'edit'
?
formObj
.
ID
:
'0'
});
}
else
{
}
else
{
...
@@ -615,17 +618,6 @@ const BookConfigNew = props => {
...
@@ -615,17 +618,6 @@ const BookConfigNew = props => {
title=
{
title=
{
<
div
className=
{
styles
.
modalTitle
}
>
<
div
className=
{
styles
.
modalTitle
}
>
<
div
>
{
type
===
'add'
?
'台账配置'
:
'台账编辑'
}
</
div
>
<
div
>
{
type
===
'add'
?
'台账配置'
:
'台账编辑'
}
</
div
>
{
/* <div>
<Button
type="primary"
ghost
icon={<EyeOutlined />}
onClick={() => setAccountVisile(true)}
style={{ marginLeft: '10px' }}
>
预览
</Button>
</div> */
}
</
div
>
</
div
>
}
}
visible=
{
visible
}
visible=
{
visible
}
...
@@ -635,18 +627,7 @@ const BookConfigNew = props => {
...
@@ -635,18 +627,7 @@ const BookConfigNew = props => {
centered
centered
bodyStyle=
{
{
width
:
'100%'
,
height
:
'800px'
,
overflowY
:
'scorll'
}
}
bodyStyle=
{
{
width
:
'100%'
,
height
:
'800px'
,
overflowY
:
'scorll'
}
}
width=
"1600px"
width=
"1600px"
// style={{ top: '-20px' }}
getContainer=
{
false
}
getContainer=
{
false
}
// style={{
// maxWidth: '100vw',
// top: 0,
// paddingBottom: 0,
// }}
// bodyStyle={{
// height: 'calc(100vh - 55px - 53px)',
// overflowY: 'auto',
// }}
// width="100vw"
confirmLoading=
{
modalLoading
}
confirmLoading=
{
modalLoading
}
okText=
"保存并查看"
okText=
"保存并查看"
>
>
...
@@ -681,7 +662,6 @@ const BookConfigNew = props => {
...
@@ -681,7 +662,6 @@ const BookConfigNew = props => {
<
Item
<
Item
label=
"父级台账"
label=
"父级台账"
name=
"PreName"
name=
"PreName"
// rules={[{ required: true, message: '请选择分组' }]}
>
>
<
Select
showSearch
placeholder=
"请选择父级台账"
allowClear
>
<
Select
showSearch
placeholder=
"请选择父级台账"
allowClear
>
{
parentData
.
map
((
item
,
index
)
=>
(
{
parentData
.
map
((
item
,
index
)
=>
(
...
@@ -789,29 +769,26 @@ const BookConfigNew = props => {
...
@@ -789,29 +769,26 @@ const BookConfigNew = props => {
<
Form
.
Item
<
Form
.
Item
{
...
switchLayout
}
{
...
switchLayout
}
valuePropName=
"checked"
valuePropName=
"checked"
// style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
label=
"时间筛选"
label=
"时间筛选"
name=
"EnableTimeFilter"
name=
"EnableTimeFilter"
>
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
/>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
/>
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
<
Col
span=
{
4
}
>
{
/*
<Col span={4}>
<Form.Item
<Form.Item
{...switchLayout}
{...switchLayout}
valuePropName="checked"
valuePropName="checked"
// style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
label="快速检索"
label="快速检索"
name="EnableQuickSearch"
name="EnableQuickSearch"
>
>
<Switch checkedChildren="是" unCheckedChildren="否" />
<Switch checkedChildren="是" unCheckedChildren="否" />
</Form.Item>
</Form.Item>
</
Col
>
</Col>
*/
}
<
Col
span=
{
4
}
>
<
Col
span=
{
4
}
>
<
Form
.
Item
<
Form
.
Item
{
...
switchLayout
}
{
...
switchLayout
}
valuePropName=
"checked"
valuePropName=
"checked"
// style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
label=
"站点过滤"
label=
"站点过滤"
name=
"EnableSiteFilter"
name=
"EnableSiteFilter"
>
>
...
@@ -822,7 +799,6 @@ const BookConfigNew = props => {
...
@@ -822,7 +799,6 @@ const BookConfigNew = props => {
<
Form
.
Item
<
Form
.
Item
{
...
switchLayout
}
{
...
switchLayout
}
valuePropName=
"checked"
valuePropName=
"checked"
// style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
label=
"导入导出"
label=
"导入导出"
name=
"EnableImportExport"
name=
"EnableImportExport"
>
>
...
@@ -833,7 +809,6 @@ const BookConfigNew = props => {
...
@@ -833,7 +809,6 @@ const BookConfigNew = props => {
<
Form
.
Item
<
Form
.
Item
{
...
switchLayout
}
{
...
switchLayout
}
valuePropName=
"checked"
valuePropName=
"checked"
// style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
label=
"批量操作"
label=
"批量操作"
name=
"EnableBatchOperation"
name=
"EnableBatchOperation"
>
>
...
@@ -844,13 +819,21 @@ const BookConfigNew = props => {
...
@@ -844,13 +819,21 @@ const BookConfigNew = props => {
<
Form
.
Item
<
Form
.
Item
{
...
switchLayout
}
{
...
switchLayout
}
valuePropName=
"checked"
valuePropName=
"checked"
// style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
label=
"打印功能"
label=
"打印功能"
name=
"EnablePrint"
name=
"EnablePrint"
>
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
/>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
/>
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
<
Col
span=
{
4
}
>
<
Form
.
Item
{
...
switchLayout
}
label=
"分页默认数量"
name=
"PageSize"
>
<
Select
options=
{
pagingOptions
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
</
Row
>
</
Form
>
</
Form
>
<
ChangeAdd
<
ChangeAdd
...
@@ -882,7 +865,6 @@ const BookConfigNew = props => {
...
@@ -882,7 +865,6 @@ const BookConfigNew = props => {
bodyStyle=
{
{
width
:
'100%'
,
height
:
'800px'
,
overflowY
:
'scorll'
}
}
bodyStyle=
{
{
width
:
'100%'
,
height
:
'800px'
,
overflowY
:
'scorll'
}
}
width=
"1600px"
width=
"1600px"
confirmLoading=
{
viewModalLoading
}
confirmLoading=
{
viewModalLoading
}
// okText=
>
>
<
Account
<
Account
ref=
{
accountRef
}
ref=
{
accountRef
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment