singin
This commit is contained in:
parent
654630f2ae
commit
09812c56f0
|
@ -10,8 +10,8 @@ import SimpleForm from "@/components/form/simple_form";
|
||||||
const Signin = (props: Store) => {
|
const Signin = (props: Store) => {
|
||||||
const { signinStore } = props;
|
const { signinStore } = props;
|
||||||
const serchFormRef = React.useRef<FormInstance>(null);
|
const serchFormRef = React.useRef<FormInstance>(null);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
signinStore.getSignList();
|
signinStore.getlist();
|
||||||
}, [signinStore]);
|
}, [signinStore]);
|
||||||
|
|
||||||
const onSerchFinish = (values: any) => {
|
const onSerchFinish = (values: any) => {
|
||||||
|
@ -22,7 +22,7 @@ const Signin = (props: Store) => {
|
||||||
page: 1,
|
page: 1,
|
||||||
page_size: 10,
|
page_size: 10,
|
||||||
};
|
};
|
||||||
signinStore.getSignList(query);
|
signinStore.getlist(query);
|
||||||
};
|
};
|
||||||
const onFinishFailed = () => {};
|
const onFinishFailed = () => {};
|
||||||
return (
|
return (
|
||||||
|
@ -72,7 +72,7 @@ const Signin = (props: Store) => {
|
||||||
<BTable
|
<BTable
|
||||||
store={signinStore}
|
store={signinStore}
|
||||||
columns={studyColumns}
|
columns={studyColumns}
|
||||||
dataSource={signinStore.signList}
|
dataSource={signinStore.list}
|
||||||
/>
|
/>
|
||||||
</Space>
|
</Space>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { TagDataType } from "@/model/userModel";
|
||||||
import baseHttp from '@/service/base';
|
import baseHttp from '@/service/base';
|
||||||
|
|
||||||
class SigninConfig {
|
class SigninConfig {
|
||||||
static LISTs: string = "/v1/user/signin"
|
static LIST: string = "/v1/user/signin"
|
||||||
static Export: string = "/v1/user/signin/export"
|
static Export: string = "/v1/user/signin/export"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,9 @@ class SigninStore extends BaseStore<TagDataType> {
|
||||||
signList: observable,
|
signList: observable,
|
||||||
getSignList: action,
|
getSignList: action,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
async getSignList(query) {
|
async getSignList(query) {
|
||||||
let list = await baseHttp.get(SigninConfig.LISTs, {
|
let list = await baseHttp.get(SigninConfig.LIST, {
|
||||||
size: query?.Size ?? 20,
|
size: query?.Size ?? 20,
|
||||||
offset: query?.Offset ?? 1,
|
offset: query?.Offset ?? 1,
|
||||||
user_name: query?.user_name,
|
user_name: query?.user_name,
|
||||||
|
|
Loading…
Reference in New Issue