From 9b5764effcd9ff278d641ab546eb66c1cdea732b Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Wed, 28 Aug 2024 16:32:47 +0800
Subject: [PATCH] feat:民族选项

---
 gz-customerSystem/src/views/register/visit/component/applyDialog.jsx |   16 ++++++++++------
 gz-customerSystem/src/views/register/index.less                      |    2 +-
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/gz-customerSystem/src/views/register/index.less b/gz-customerSystem/src/views/register/index.less
index a8eb467..56eeac6 100644
--- a/gz-customerSystem/src/views/register/index.less
+++ b/gz-customerSystem/src/views/register/index.less
@@ -95,7 +95,7 @@
 		background-color: #fff;
 		margin: 8px 8px 0px 16px;
 		padding: 12px 16px 16px 16px;
-		height: calc(100vh - 211px);
+		height: calc(100vh - 228px);
 		overflow-y: scroll;
 	}
 
diff --git a/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx b/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx
index 3d31adb..95eca5e 100644
--- a/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx
@@ -146,12 +146,16 @@
               label='民族'
               field='nation'
             >
-              <Select placeholder='请选择' allowClear>
-                {['汉族',].map((option, index) => (
-                  <Option key={option} value={option}>
-                    {option}
-                  </Option>
-                ))}
+              <Select
+                placeholder='请选择'
+                allowClear
+                showSearch
+                options={$$.options.nation}
+                filterOption={(inputValue, option) =>
+                  option.props.value.toLowerCase().indexOf(inputValue.toLowerCase()) >= 0 ||
+                  option.props.children.toLowerCase().indexOf(inputValue.toLowerCase()) >= 0
+                }
+              >
               </Select>
             </FormItem>
           </Col>

--
Gitblit v1.8.0