feat(jzd,jzx):界址点、线
Showing
1 changed file
with
18 additions
and
13 deletions
| 1 | <template> | 1 | <template> | 
| 2 | <div class="main"> | 2 | <div class="main"> | 
| 3 | <SearchHead @getSearchCondition="getData"></SearchHead> | 3 | <SearchHead @getSearchCondition="geQuerytData"></SearchHead> | 
| 4 | <div class="dataGrid" ref="dataGrid"> | 4 | <div class="dataGrid" ref="dataGrid"> | 
| 5 | <el-table | 5 | <el-table | 
| 6 | :data="tableData" | 6 | :data="tableData" | 
| ... | @@ -36,8 +36,7 @@ | ... | @@ -36,8 +36,7 @@ | 
| 36 | </el-table> | 36 | </el-table> | 
| 37 | <div class="pagination"> | 37 | <div class="pagination"> | 
| 38 | <el-pagination background layout="prev, pager, next" :total="total" | 38 | <el-pagination background layout="prev, pager, next" :total="total" | 
| 39 | @current-change="handleCurrentChange" | 39 | @current-change="handleCurrentChange"> | 
| 40 | :current-page.sync="currentPage"> | ||
| 41 | </el-pagination> | 40 | </el-pagination> | 
| 42 | </div> | 41 | </div> | 
| 43 | </div> | 42 | </div> | 
| ... | @@ -54,11 +53,12 @@ | ... | @@ -54,11 +53,12 @@ | 
| 54 | props: {}, | 53 | props: {}, | 
| 55 | data() { | 54 | data() { | 
| 56 | return { | 55 | return { | 
| 57 | total:0, | 56 | total: 0, | 
| 58 | pageNo: 1, | 57 | pageNo: 1, | 
| 59 | pageSize: 10, | 58 | pageSize: 10, | 
| 60 | tableData: [], | 59 | tableData: [], | 
| 61 | tableHeight: "", | 60 | tableHeight: "", | 
| 61 | queryData: {} | ||
| 62 | }; | 62 | }; | 
| 63 | }, | 63 | }, | 
| 64 | created() { | 64 | created() { | 
| ... | @@ -80,19 +80,24 @@ | ... | @@ -80,19 +80,24 @@ | 
| 80 | handleCurrentChange(val) { | 80 | handleCurrentChange(val) { | 
| 81 | console.log(`当前页: ${val}`); | 81 | console.log(`当前页: ${val}`); | 
| 82 | this.pageNo = val; | 82 | this.pageNo = val; | 
| 83 | this.getData({}); | 83 | this.queryData.pageNo = val; | 
| 84 | this.getData(this.queryData); | ||
| 84 | }, | 85 | }, | 
| 85 | //获取子组件点击查询触发的事件 | 86 | getData(data) { | 
| 86 | getData(obj) { | 87 | getSearchList(data).then(res => { | 
| 87 | console.log(obj); | ||
| 88 | //将obj作为参数调用接口查询表格数据 | ||
| 89 | obj['pageNo'] = this.pageNo | ||
| 90 | obj['pageSize'] = this.pageSize | ||
| 91 | getSearchList(obj).then(res => { | ||
| 92 | this.tableData = res.result.records | 88 | this.tableData = res.result.records | 
| 93 | this.total=res.result.total | 89 | this.total = res.result.total | 
| 94 | }) | 90 | }) | 
| 95 | }, | 91 | }, | 
| 92 | //获取子组件点击查询触发的事件 | ||
| 93 | geQuerytData(obj) { | ||
| 94 | this.queryData = obj | ||
| 95 | //将obj作为参数调用接口查询表格数据 | ||
| 96 | this.queryData['pageSize'] = this.pageSize | ||
| 97 | this.pageNo = 1 | ||
| 98 | this.queryData['pageNo'] = 1 | ||
| 99 | this.getData(this.queryData) | ||
| 100 | }, | ||
| 96 | //点击办理 | 101 | //点击办理 | 
| 97 | handleClick(row) { | 102 | handleClick(row) { | 
| 98 | let path = ""; | 103 | let path = ""; | ... | ... | 
- 
Please register or sign in to post a comment