开发: 添加客户列表
This commit is contained in:
@@ -78,11 +78,13 @@ const DepartmentsList: React.FC = () => {
|
||||
post({ url: '/Departments/List' }).then((res) => {
|
||||
setLoadingL(false);
|
||||
if (res.err_code == 0) {
|
||||
if (Array.isArray(res.data) && res.data.length) {
|
||||
param.dep_id = res.data[0].id;
|
||||
setDepartmentsID(param.dep_id);
|
||||
if (Array.isArray(res.data)) {
|
||||
setDepartmentsList(res.data);
|
||||
getStaffsList();
|
||||
if (res.data.length) {
|
||||
param.dep_id = res.data[0].id;
|
||||
setDepartmentsID(param.dep_id);
|
||||
getStaffsList();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -246,7 +248,7 @@ const DepartmentsList: React.FC = () => {
|
||||
<SearchBarPlugin>
|
||||
<Form autoComplete="off">
|
||||
<Row gutter={{ xs: 0, sm: 16 }}>
|
||||
<Col xs={24} sm={12} md={8}>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label={<span style={{ textIndent: '1em' }}>姓名</span>}>
|
||||
<Input
|
||||
autoComplete="off"
|
||||
@@ -258,7 +260,7 @@ const DepartmentsList: React.FC = () => {
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} sm={12} md={8}>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label={<span style={{ textIndent: '1em' }}>职务</span>}>
|
||||
<Input
|
||||
autoComplete="off"
|
||||
@@ -270,7 +272,7 @@ const DepartmentsList: React.FC = () => {
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} sm={12} md={8}>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label="手机号">
|
||||
<Input
|
||||
autoComplete="off"
|
||||
@@ -282,20 +284,6 @@ const DepartmentsList: React.FC = () => {
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
{/* <Col xs={24} sm={12} md={6}>
|
||||
<Form.Item label="用户名">
|
||||
<Select
|
||||
defaultValue="lucy"
|
||||
style={{ width: '100%' }}
|
||||
onChange={() => {}}
|
||||
options={[
|
||||
{ value: 'jack', label: 'Jack' },
|
||||
{ value: 'lucy', label: 'Lucy' },
|
||||
{ value: 'Yiminghe', label: 'yiminghe' },
|
||||
]}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col> */}
|
||||
</Row>
|
||||
</Form>
|
||||
</SearchBarPlugin>
|
||||
|
Reference in New Issue
Block a user