#
luxiaotao1123
2024-02-15 e61711b73b08fc1a4731c5641487bf0c2802320a
#
1个文件已修改
27 ■■■■■ 已修改文件
zy-asrs-flow/src/pages/system/role/components/edit.jsx 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/system/role/components/edit.jsx
@@ -9,6 +9,7 @@
import { Form, Modal } from 'antd';
import { useIntl, FormattedMessage } from '@umijs/max';
import moment from 'moment';
import Http from '@/utils/http';
const Edit = (props) => {
    const [form] = Form.useForm();
@@ -93,6 +94,32 @@
                            }}
                        />
                    </ProForm.Group>
                    <ProFormSelect
                        name="hostId"
                        label="搜索查询"
                        colProps={{ md: 12, xl: 12 }}
                        showSearch
                        debounceTime={300}  // 防抖
                        request={async ({ keyWords }) => {
                            const resp = await Http.doPost('api/host/page', { ...keyWords });
                            console.log(resp);
                            // return [
                            //     {
                            //         value: keyWords,
                            //         label: '目标_target',
                            //     },
                            //     { value: '520000201604258831', label: 'Patricia Lopez' },
                            //     { value: '520000198509222123', label: 'Jose Martinez' },
                            //     { value: '210000200811194757', label: 'Elizabeth Thomas' },
                            //     { value: '530000198808222758', label: 'Scott Anderson' },
                            //     { value: '500000198703236285', label: 'George Jackson' },
                            //     { value: '610000199906148074', label: 'Linda Hernandez' },
                            //     { value: '150000197210168659', label: 'Sandra Hall' },
                            //     { label: '目标_target' },
                            // ]
                        }}
                        placeholder="Please select a country"
                    />
                </ProForm>
            </Modal>
        </>