f4e319a5 by 任超

style:分页修改

1 parent 58c584f4
......@@ -120,8 +120,8 @@ export default {
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
queryClick () {
getRecordLogPage({ ...this.form, ...this.pageData }).then(res => {
featchData () {
getRecordLogPage({ ...this.form }).then(res => {
if (res.code === 200) {
let { records, total, current } = res.result
this.tableData.data = records ? records : []
......@@ -134,11 +134,8 @@ export default {
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.queryClick();
},
featchData () {
this.queryClick();
},
this.featchData();
}
}
}
</script>
......
......@@ -185,8 +185,8 @@ export default {
this.form.exchangeEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
queryClick () {
getDataReportPage({ ...this.form, ...this.pageData }).then((res) => {
featchData () {
getDataReportPage({ ...this.form }).then((res) => {
if (res.code === 200) {
let { total, records, current } = res.result;
this.tableData.total = total;
......@@ -195,11 +195,6 @@ export default {
}
});
},
featchData () {
this.queryClick();
},
// 多选
handleSelectionChange (val) { },
// 上报
handleEscalation () { },
// 详情
......@@ -212,7 +207,7 @@ export default {
this.$refs.ruleForm.resetFields();
this.form.exchangeEndTime = ""
this.form.currentPage = 1
this.queryClick();
this.featchData();
},
},
};
......