⚡ 优化模板配置
This commit is contained in:
parent
d13a123b49
commit
3e914ccc47
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user