优化模板配置

This commit is contained in:
smallchill 2019-03-04 10:26:01 +08:00
parent d13a123b49
commit 3e914ccc47
4 changed files with 14 additions and 6 deletions

View File

@ -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 {

View File

@ -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,
},
},
});
}

View File

@ -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 {

View File

@ -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,
},
},
});
}