⚡ 优化模板配置
This commit is contained in:
parent
d13a123b49
commit
3e914ccc47
|
|
@ -10,7 +10,7 @@ const FormItem = Form.Item;
|
||||||
|
|
||||||
@connect(({ $!{table.entityPath}, loading }) => ({
|
@connect(({ $!{table.entityPath}, loading }) => ({
|
||||||
$!{table.entityPath},
|
$!{table.entityPath},
|
||||||
loading: loading.models.param,
|
loading: loading.models.$!{table.entityPath},
|
||||||
}))
|
}))
|
||||||
@Form.create()
|
@Form.create()
|
||||||
class $!{entity} extends PureComponent {
|
class $!{entity} extends PureComponent {
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,12 @@ export default {
|
||||||
yield put({
|
yield put({
|
||||||
type: 'saveList',
|
type: 'saveList',
|
||||||
payload: {
|
payload: {
|
||||||
list: response.data,
|
list: response.data.records,
|
||||||
pagination: false,
|
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 }) => ({
|
@connect(({ $!{table.entityPath}, loading }) => ({
|
||||||
$!{table.entityPath},
|
$!{table.entityPath},
|
||||||
loading: loading.models.param,
|
loading: loading.models.$!{table.entityPath},
|
||||||
}))
|
}))
|
||||||
@Form.create()
|
@Form.create()
|
||||||
class $!{entity} extends PureComponent {
|
class $!{entity} extends PureComponent {
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,12 @@ export default {
|
||||||
yield put({
|
yield put({
|
||||||
type: 'saveList',
|
type: 'saveList',
|
||||||
payload: {
|
payload: {
|
||||||
list: response.data,
|
list: response.data.records,
|
||||||
pagination: false,
|
pagination: {
|
||||||
|
total: response.data.total,
|
||||||
|
current: response.data.current,
|
||||||
|
pageSize: response.data.size,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user