Browse Source

制造工具的分页 BUG 修尬

master
Rui_Li 9 months ago
parent
commit
ee6bd1ed48
  1. 21
      src/views/modules/tooling/manuf_tool.vue

21
src/views/modules/tooling/manuf_tool.vue

@ -77,9 +77,10 @@
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
:current-page="pageIndex"
@current-change="currentChangeHandle"
:current-page="searchData.pageIndex"
:page-sizes="[20, 50, 100, 1000]"
:page-size="pageSize"
:page-size="searchData.pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
@ -869,8 +870,6 @@ export default {
/*刷新工具信息*/
refreshTooInfoData() {
this.searchData.pageSize = this.pageSize
this.searchData.pageIndex = this.pageIndex
getToolInfoList(this.searchData).then(({data}) => {
if (data.code == 200) {
this.dataList = data.rows;
@ -1021,8 +1020,6 @@ export default {
//
search () {
this.searchData.pageSize = this.pageSize
this.searchData.pageIndex = this.pageIndex
getToolInfoList(this.searchData).then(({data}) => {
if (data.code == 200) {
this.dataList = data.rows;
@ -1098,9 +1095,15 @@ export default {
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.search()
this.searchData.pageSize = val;
this.searchData.pageIndex = 1;
this.search();
},
//
currentChangeHandle(val) {
this.searchData.pageIndex = val
this.search();
},
/*调整等待派工单的等待时间*/

Loading…
Cancel
Save