开发: 添加小屏幕css[少], 聊天记录投票. 客户中心修改, 工作台支持小屏
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { SearchBarPlugin, SearchBottonsCardPlugin } from '@/components/SearchBarPlugin';
|
||||
import { SearchBarPlugin } from '@/components/SearchBarPlugin';
|
||||
import { post } from '@/services/ajax';
|
||||
import { PageContainer } from '@ant-design/pro-components';
|
||||
import {
|
||||
@@ -247,78 +247,81 @@ const DepartmentsList: React.FC = () => {
|
||||
</Form>
|
||||
</Modal> */}
|
||||
<div style={{ flexGrow: 1, minWidth: 0 }}>
|
||||
<SearchBarPlugin>
|
||||
<Form autoComplete="off">
|
||||
<Row gutter={{ xs: 0, sm: 16 }}>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label={<span style={{ textIndent: '1em' }}>姓名</span>}>
|
||||
<Input
|
||||
autoComplete="off"
|
||||
onChange={(e) => {
|
||||
param.name = e.target.value.trim();
|
||||
}}
|
||||
allowClear
|
||||
onPressEnter={() => page(1)}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label={<span style={{ textIndent: '1em' }}>职务</span>}>
|
||||
<Input
|
||||
autoComplete="off"
|
||||
onChange={(e) => {
|
||||
param.position = e.target.value.trim();
|
||||
}}
|
||||
allowClear
|
||||
onPressEnter={() => page(1)}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label="手机号">
|
||||
<Input
|
||||
autoComplete="off"
|
||||
onChange={(e) => {
|
||||
param.mobile = e.target.value.trim();
|
||||
}}
|
||||
allowClear
|
||||
onPressEnter={() => page(1)}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<SearchBarPlugin
|
||||
body={
|
||||
<Form autoComplete="off">
|
||||
<Row gutter={{ xs: 0, sm: 16 }}>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label={<span style={{ textIndent: '1em' }}>姓名</span>}>
|
||||
<Input
|
||||
autoComplete="off"
|
||||
onChange={(e) => {
|
||||
param.name = e.target.value.trim();
|
||||
}}
|
||||
allowClear
|
||||
onPressEnter={() => page(1)}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label={<span style={{ textIndent: '1em' }}>职务</span>}>
|
||||
<Input
|
||||
autoComplete="off"
|
||||
onChange={(e) => {
|
||||
param.position = e.target.value.trim();
|
||||
}}
|
||||
allowClear
|
||||
onPressEnter={() => page(1)}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col xs={24} lg={12} xl={8}>
|
||||
<Form.Item label="手机号">
|
||||
<Input
|
||||
autoComplete="off"
|
||||
onChange={(e) => {
|
||||
param.mobile = e.target.value.trim();
|
||||
}}
|
||||
allowClear
|
||||
onPressEnter={() => page(1)}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
}
|
||||
footer={
|
||||
<Row justify={'center'}>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
page(1);
|
||||
}}
|
||||
style={{ marginRight: 12 }}
|
||||
>
|
||||
搜索
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
syncDepartments();
|
||||
}}
|
||||
style={{ marginRight: 12 }}
|
||||
>
|
||||
同步部门
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
syncStaffs();
|
||||
}}
|
||||
>
|
||||
同步员工
|
||||
</Button>
|
||||
</Row>
|
||||
</Form>
|
||||
</SearchBarPlugin>
|
||||
<SearchBottonsCardPlugin>
|
||||
<Row justify={'center'}>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
page(1);
|
||||
}}
|
||||
style={{ marginRight: 12 }}
|
||||
>
|
||||
搜索
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
syncDepartments();
|
||||
}}
|
||||
style={{ marginRight: 12 }}
|
||||
>
|
||||
同步部门
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
syncStaffs();
|
||||
}}
|
||||
>
|
||||
同步员工
|
||||
</Button>
|
||||
</Row>
|
||||
</SearchBottonsCardPlugin>
|
||||
}
|
||||
></SearchBarPlugin>
|
||||
|
||||
<Table
|
||||
tableLayout="fixed"
|
||||
size="middle"
|
||||
|
Reference in New Issue
Block a user