提交 3e914ccc 编写于 作者: S smallchill

优化模板配置

上级 d13a123b
......@@ -10,7 +10,7 @@ const FormItem = Form.Item;
@connect(({ $!{table.entityPath}, loading }) => ({
$!{table.entityPath},
loading: loading.models.param,
loading: loading.models.$!{table.entityPath},
}))
@Form.create()
class $!{entity} extends PureComponent {
......
......@@ -20,8 +20,12 @@ export default {
yield put({
type: 'saveList',
payload: {
list: response.data,
pagination: false,
list: response.data.records,
pagination: {
total: response.data.total,
current: response.data.current,
pageSize: response.data.size,
},
},
});
}
......
......@@ -10,7 +10,7 @@ const FormItem = Form.Item;
@connect(({ $!{table.entityPath}, loading }) => ({
$!{table.entityPath},
loading: loading.models.param,
loading: loading.models.$!{table.entityPath},
}))
@Form.create()
class $!{entity} extends PureComponent {
......
......@@ -20,8 +20,12 @@ export default {
yield put({
type: 'saveList',
payload: {
list: response.data,
pagination: false,
list: response.data.records,
pagination: {
total: response.data.total,
current: response.data.current,
pageSize: response.data.size,
},
},
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册