Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1365fc5f
authored
2020-10-22 16:56:28 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(jzd,jzx):界址点、线
1 parent
b2730cfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
src/views/panel/search/index.vue
src/views/panel/search/index.vue
View file @
1365fc5
<
template
>
<div
class=
"main"
>
<SearchHead
@
getSearchCondition=
"getData"
></SearchHead>
<SearchHead
@
getSearchCondition=
"ge
Query
tData"
></SearchHead>
<div
class=
"dataGrid"
ref=
"dataGrid"
>
<el-table
:data=
"tableData"
...
...
@@ -36,8 +36,7 @@
</el-table>
<div
class=
"pagination"
>
<el-pagination
background
layout=
"prev, pager, next"
:total=
"total"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
>
@
current-change=
"handleCurrentChange"
>
</el-pagination>
</div>
</div>
...
...
@@ -54,11 +53,12 @@
props
:
{},
data
()
{
return
{
total
:
0
,
total
:
0
,
pageNo
:
1
,
pageSize
:
10
,
tableData
:
[],
tableHeight
:
""
,
queryData
:
{}
};
},
created
()
{
...
...
@@ -80,19 +80,24 @@
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
this
.
pageNo
=
val
;
this
.
getData
({});
this
.
queryData
.
pageNo
=
val
;
this
.
getData
(
this
.
queryData
);
},
//获取子组件点击查询触发的事件
getData
(
obj
)
{
console
.
log
(
obj
);
//将obj作为参数调用接口查询表格数据
obj
[
'pageNo'
]
=
this
.
pageNo
obj
[
'pageSize'
]
=
this
.
pageSize
getSearchList
(
obj
).
then
(
res
=>
{
getData
(
data
)
{
getSearchList
(
data
).
then
(
res
=>
{
this
.
tableData
=
res
.
result
.
records
this
.
total
=
res
.
result
.
total
this
.
total
=
res
.
result
.
total
})
},
//获取子组件点击查询触发的事件
geQuerytData
(
obj
)
{
this
.
queryData
=
obj
//将obj作为参数调用接口查询表格数据
this
.
queryData
[
'pageSize'
]
=
this
.
pageSize
this
.
pageNo
=
1
this
.
queryData
[
'pageNo'
]
=
1
this
.
getData
(
this
.
queryData
)
},
//点击办理
handleClick
(
row
)
{
let
path
=
""
;
...
...
Please
register
or
sign in
to post a comment