秦子超 2024-10-15 14:46:59 +08:00
commit f8931a9518
5 changed files with 8 additions and 5 deletions

View File

@ -43,7 +43,7 @@ async function send(url, options) {
if (code === 401) { if (code === 401) {
//debugger; //debugger;
//window.location.href = '/mgr/home';// /mgr/home /login //window.location.href = '/mgr/home';// /mgr/home /login
window.location.href = '/xfflood/#/login'; window.location.href = '/tsg/#/login';
// window.location.hash = '#/login'; // window.location.hash = '#/login';
} }
return res.data; return res.data;

View File

@ -28,7 +28,7 @@ const ToolBar = ({ setSearchVal, onSave, storeData, role }) => {
<div style={{display:'flex',justifyContent:'space-between'}}> <div style={{display:'flex',justifyContent:'space-between'}}>
<Form form={form} className='toolbarBox' layout="inline" onFinish={onFinish}> <Form form={form} className='toolbarBox' layout="inline" onFinish={onFinish}>
{ {
(onSave && addBtn) ? (onSave) ?
<Form.Item> <Form.Item>
<Button onClick={onSave} type='primary'>新增</Button> <Button onClick={onSave} type='primary'>新增</Button>
</Form.Item> </Form.Item>

View File

@ -28,7 +28,7 @@ const ToolBar = ({ setSearchVal, onSave, storeData, role }) => {
<div style={{display:'flex',justifyContent:'space-between'}}> <div style={{display:'flex',justifyContent:'space-between'}}>
<Form form={form} className='toolbarBox' layout="inline" onFinish={onFinish}> <Form form={form} className='toolbarBox' layout="inline" onFinish={onFinish}>
{ {
(onSave && addBtn) ? (onSave) ?
<Form.Item> <Form.Item>
<Button onClick={onSave} type='primary'>新增</Button> <Button onClick={onSave} type='primary'>新增</Button>
</Form.Item> </Form.Item>

View File

@ -7,11 +7,11 @@ const ToolBar = ({ setSearchVal }) => {
const [form] = Form.useForm(); const [form] = Form.useForm();
const types = [ const types = [
{ {
label: '培训期数', label: '培训人次',
value: 1 value: 1
}, },
{ {
label: '培训人次', label: '培训期数',
value: 2 value: 2
}, },
] ]

View File

@ -91,6 +91,9 @@ const Page = () => {
} else { } else {
setStaData({...res.data,list:res.data.list2}) setStaData({...res.data,list:res.data.list2})
} }
}else{
message.error(res.description)
setStaData([])
} }
} catch (error) { } catch (error) {
console.log(error); console.log(error);