let totalPage = Math.ceil((this.total - 1) / this.formInline.size)
this.formInline.page = this.formInline.page > totalPage ? totalPage : this.formInline.page
this.formInline.page = this.formInline.page < 1 ? 1 : this.formInline.page
this.getList()
// 限制input框 只能输入数字
handleInput2(value) {
const regex = /^\d*$/;
if (regex.test(value)) {
this.ruleForm.showTimes = value;
} else {
this.ruleForm.showTimes = this.ruleForm.showTimes.replace(/\D/g, '');
this.$nextTick(() => {
this.$refs.numberInput.focus();
});
}
},