修复通道列表修改分页大小无效
This commit is contained in:
parent
5fae9a7b34
commit
a9c4638c94
@ -93,9 +93,15 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination style="float: right" @size-change="handleSizeChange" @current-change="currentChange"
|
<el-pagination
|
||||||
:current-page="currentPage" :page-size="count" :page-sizes="[15, 20, 30, 50]"
|
style="float: right"
|
||||||
layout="total, sizes, prev, pager, next" :total="total">
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="currentChange"
|
||||||
|
:current-page="currentPage"
|
||||||
|
:page-size="count"
|
||||||
|
:page-sizes="[15, 25, 35, 50]"
|
||||||
|
layout="total, sizes, prev, pager, next"
|
||||||
|
:total="total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -165,12 +171,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSizeChange: function (val) {
|
handleSizeChange: function (val) {
|
||||||
var url = `/${this.$router.currentRoute.name}/${this.$router.params.deviceId}/${this.$router.params.parentChannelId}/${val}/1`
|
this.count = val;
|
||||||
this.$router.push(url).then(() => {
|
this.getDeviceChannelList();
|
||||||
this.initParam();
|
|
||||||
this.initData();
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
getDeviceChannelList: function () {
|
getDeviceChannelList: function () {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user