html
data() { return { activityId:'', scoreUserForm: { name: '', }, currentPage1: 1, pageSize1: 10, scorePageUser: [], } }, //分页隐藏显示。无数据隐藏 computed: { show1: function() { return this.scorePageUser.length == 0 ? false : true; } },methods: {this.getScoreData(); }getScoreData() { var name = this.scoreUserForm.name; this.getRequest("/publishActivity/getScoreInfo?id=" + this.activityId + "&name=" + name).then(resp => { this.currentPage1 = 1; this.scorePageUser = resp.data; }) },