开发: 添加小屏幕css[少], 聊天记录投票. 客户中心修改, 工作台支持小屏

This commit is contained in:
zhengw
2023-04-21 14:53:54 +08:00
parent 2156976a8c
commit 5f4acf4317
20 changed files with 619 additions and 322 deletions

View File

@@ -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"