Commit 81c9a1e4 authored by 华国豪's avatar 华国豪 🙄

1

parent a5751113
...@@ -141,6 +141,8 @@ ...@@ -141,6 +141,8 @@
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p> <p>{{$t("active.ld_noData")}}</p>
</div> </div>
<el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
</el-pagination>
<el-dialog <el-dialog
custom-class="w400" custom-class="w400"
:title="dialogTitle" :title="dialogTitle"
...@@ -217,6 +219,7 @@ export default { ...@@ -217,6 +219,7 @@ export default {
} }
] ]
}, },
total:0,
rules: { rules: {
Title: [ Title: [
{ required: true, message: "请输入名称", trigger: "blur" } { required: true, message: "请输入名称", trigger: "blur" }
...@@ -318,6 +321,7 @@ export default { ...@@ -318,6 +321,7 @@ export default {
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total= res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -396,7 +400,11 @@ export default { ...@@ -396,7 +400,11 @@ export default {
}, },
resetForm(formName) { resetForm(formName) {
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
} },
handleCurrentChange(val){
this.msg.pageIndex=val;
this.getList();
},
} }
}; };
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment