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
2b70cd9c
Commit
2b70cd9c
authored
Apr 22, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修改台账管理搜索功能'
parent
9f0738a3
Pipeline
#48443
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
standingBook.jsx
src/pages/bsmanager/base/standingBook/standingBook.jsx
+11
-6
projectMessage.jsx
...Center/gis/schemeConfig/projectMessage/projectMessage.jsx
+2
-2
No files found.
src/pages/bsmanager/base/standingBook/standingBook.jsx
View file @
2b70cd9c
...
...
@@ -180,7 +180,7 @@ const StandingBook = props => {
setShowSearchStyle
(
false
);
// 第一次进入展示第一页 不是第一次进入根据当前选择的来进行展示
flag
===
0
?
setPickItem
(
newArr
[
0
])
:
setPickItem
(
pickItem
);
pickItem
?
setPickItem
(
pickItem
)
:
setPickItem
(
newArr
[
0
]);
//
pickItem ? setPickItem(pickItem) : setPickItem(newArr[0]);
console
.
log
(
newArr
,
'newArr'
);
setTableData
(
newArr
);
}
...
...
@@ -271,8 +271,8 @@ const StandingBook = props => {
console
.
log
(
arr
);
setShowSearchStyle
(
true
);
setAllData
(
arr
);
setSearchData
(
res
.
data
.
root
);
setPickItem
(
''
);
setSearchData
(
res
.
data
.
root
[
pickItem
]
);
//
setPickItem('');
// 第一次进入展示第一页 不是第一次进入根据当前选择的来进行展示
// flag === 0 ? setPickItem(newArr[0]) : setPickItem(pickItem);
console
.
log
(
newArr
,
'newArr'
);
...
...
@@ -282,7 +282,11 @@ const StandingBook = props => {
};
const
handleSearch
=
e
=>
{
console
.
log
(
e
.
target
.
value
);
setSearchWord
(
e
.
target
.
value
);
if
(
e
.
target
.
value
==
''
)
{
handleReset
();
}
};
// 模糊查询匹配的样式
...
...
@@ -359,7 +363,7 @@ const StandingBook = props => {
}
}
key=
{
index
}
>
{
item
}
(
{
allData
[
item
]
?
allData
[
item
].
length
:
''
}
)
{
item
}
(
{
allData
[
item
]
?
allData
[
item
].
length
:
0
}
)
</
div
>
);
})
}
...
...
@@ -398,10 +402,11 @@ const StandingBook = props => {
onSearch=
{
onSearch
}
onChange=
{
e
=>
handleSearch
(
e
)
}
value=
{
searchWord
}
allowClear
/>
<
Button
icon=
{
<
SyncOutlined
/>
}
onClick=
{
handleReset
}
>
{
/*
<Button icon={<SyncOutlined />} onClick={handleReset}>
重置
</
Button
>
</Button>
*/
}
</
div
>
<
div
style=
{
{
marginTop
:
'10px'
}
}
>
<
Table
...
...
src/pages/platformCenter/gis/schemeConfig/projectMessage/projectMessage.jsx
View file @
2b70cd9c
...
...
@@ -2,7 +2,7 @@
* @Description:
* @Author: leizhe
* @Date: 2022-01-13 10:47:32
* @LastEditTime: 2022-0
3-25 10:28:02
* @LastEditTime: 2022-0
4-22 11:45:53
* @LastEditors: leizhe
*/
/* eslint-disable indent */
...
...
@@ -63,7 +63,7 @@ const VectorData = props => {
</
Button
>
</
div
>
<
Spin
tip=
"loading..."
spinning=
{
treeLoading
}
>
<
div
style=
{
{
height
:
'calc(100vh - 230px)'
,
overflow
:
'scroll'
,
width
:
'100%'
}
}
>
<
div
style=
{
{
height
:
'calc(100vh - 230px)'
,
width
:
'100%'
}
}
>
<
div
className=
{
styles
.
cardsList
}
>
{
tileData
&&
tileData
.
length
?
tileData
.
map
((
item
,
index
)
=>
{
...
...
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