From 38106e7b401cb61ac02cc9485aab32df15cce7c2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 14 三月 2024 16:37:15 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/header/search.jsx |   29 ++++++++---------------------
 1 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/header/search.jsx b/zy-asrs-flow/src/pages/map/header/search.jsx
index 6ad51bf..4f7143c 100644
--- a/zy-asrs-flow/src/pages/map/header/search.jsx
+++ b/zy-asrs-flow/src/pages/map/header/search.jsx
@@ -1,28 +1,13 @@
 import React, { useState, useRef, useEffect } from 'react';
-import { Layout, Button, Flex, Row, Col, FloatButton, Select, Spin, AutoComplete } from 'antd';
-import { FormattedMessage, useIntl, useModel } from '@umijs/max';
-import {
-    CloseOutlined
-} from '@ant-design/icons';
+import { Select, AutoComplete } from 'antd';
+import { FormattedMessage, useIntl } from '@umijs/max';
+import { CloseOutlined } from '@ant-design/icons';
 import * as Utils from '../utils'
 
 const renderTitle = (title, uuid) => (
     <>
-        <span
-            style={{
-                fontWeight: 'bold'
-            }}
-        >
-            {title}
-        </span>
-        <span
-            style={{
-                float: 'right',
-                opacity: .3
-            }}
-        >
-            {uuid}
-        </span>
+        <span style={{ fontWeight: 'bold' }} >{title}</span>
+        <span style={{ float: 'right', opacity: .3 }} >{uuid}</span>
     </>
 );
 
@@ -90,7 +75,9 @@
                     const uuid = option.label?.props?.children?.[1].props.children
                     setCurSensor(Utils.findSpriteByUuid(uuid));
                 }}
-                onChange={setCurSensorLabel}
+                onChange={(value) => {
+                    setCurSensorLabel(value)
+                }}
             />
         </>
     )

--
Gitblit v1.9.1