1365fc5f by weimo934

feat(jzd,jzx):界址点、线

1 parent b2730cfb
<template>
<div class="main">
<SearchHead @getSearchCondition="getData"></SearchHead>
<SearchHead @getSearchCondition="geQuerytData"></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 = "";
......