Commit 0264c89c by 胡悦

修改字典分页

1 parent a148109c
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
:tableParams="dictDataTableParams" :tableParams="dictDataTableParams"
:searchForm="dictDataSearchForm" :searchForm="dictDataSearchForm"
:getListApi="getListApi" :getListApi="getListApi"
:pageConf="pageConf"
> >
<span <span
slot="status" slot="status"
...@@ -96,6 +97,11 @@ export default { ...@@ -96,6 +97,11 @@ export default {
dictDataSearchForm: { dictDataSearchForm: {
dictType: 'functional_attributes' dictType: 'functional_attributes'
}, },
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.count'
},
dictDataTableData: [ dictDataTableData: [
{ {
id: 1, id: 1,
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-button type="primary" :size="btn_size" @click="btnClick('create')">新增字典</el-button> <el-button type="primary" :size="btn_size" @click="btnClick('create')">新增字典</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<d2-table ref="dictTable" :hasNum="false" :tableParams="dictTableParams" :searchForm="dictSearchForm" :getListApi="getListApi"> <d2-table ref="dictTable" :hasNum="false" :tableParams="dictTableParams" :searchForm="dictSearchForm" :getListApi="getListApi" :pageConf="pageConf">
<span <span
slot="status" slot="status"
slot-scope="scope" slot-scope="scope"
...@@ -75,6 +75,11 @@ export default { ...@@ -75,6 +75,11 @@ export default {
return { return {
DICTSTATUS: this.$Constants.DICT_STATUS, DICTSTATUS: this.$Constants.DICT_STATUS,
dictSearchForm: {}, dictSearchForm: {},
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.count'
},
tableData: [{ tableData: [{
id: 1, id: 1,
dictName: 'dsfd' dictName: 'dsfd'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!