From 8527d83c19bf5047a0e6dfd1363d74b51acb0e8e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 18 二月 2024 16:29:27 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/system/role/components/edit.jsx |   27 +++++----------------------
 1 files changed, 5 insertions(+), 22 deletions(-)

diff --git a/zy-asrs-flow/src/pages/system/role/components/edit.jsx b/zy-asrs-flow/src/pages/system/role/components/edit.jsx
index e0491ae..7dca9b1 100644
--- a/zy-asrs-flow/src/pages/system/role/components/edit.jsx
+++ b/zy-asrs-flow/src/pages/system/role/components/edit.jsx
@@ -1,4 +1,4 @@
-import React, { useEffect, useState } from 'react';
+import React, { useState, useRef, useEffect } from 'react';
 import {
     ProForm,
     ProFormDigit,
@@ -7,14 +7,12 @@
     ProFormDateTimePicker
 } from '@ant-design/pro-components';
 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();
     const { } = props;
-    const intl = useIntl();
 
     useEffect(() => {
         form.resetFields();
@@ -96,29 +94,14 @@
                     </ProForm.Group>
                     <ProFormSelect
                         name="hostId"
-                        label="鎼滅储鏌ヨ"
+                        label="鏈烘瀯"
                         colProps={{ md: 12, xl: 12 }}
                         showSearch
-                        debounceTime={300}  // 闃叉姈
+                        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' },
-                            // ]
+                            const resp = await Http.doPostForm('api/host/query', { condition: keyWords });
+                            return resp.data;
                         }}
-                        placeholder="Please select a country"
                     />
                 </ProForm>
             </Modal>

--
Gitblit v1.9.1