分页调整

main
jn517618 2 years ago
parent bb6e607a91
commit 0def8eee95
  1. 3
      src/views/energySources/component/dmodal.vue
  2. 3
      src/views/energySources/component/emodal.vue

@ -29,7 +29,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background layout="prev, pager, next" small :total="total" style="text-align: right;" <el-pagination background layout="prev, pager, next" small :current-page="current" :total="total" style="text-align: right;"
@current-change="currentChange"> @current-change="currentChange">
</el-pagination> </el-pagination>
</div> </div>
@ -117,6 +117,7 @@ export default {
this.getData() this.getData()
}, },
change() { change() {
this.current = 1
this.getData() this.getData()
}, },
onClose() { onClose() {

@ -29,7 +29,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background layout="prev, pager, next" small :total="total" style="text-align: right;" <el-pagination background layout="prev, pager, next" small :current-page="current" :total="total" style="text-align: right;"
@current-change="currentChange"> @current-change="currentChange">
</el-pagination> </el-pagination>
</div> </div>
@ -109,6 +109,7 @@ export default {
this.getData() this.getData()
}, },
change() { change() {
this.current = 1
this.getData() this.getData()
}, },
onClose() { onClose() {

Loading…
Cancel
Save