outaozhen 5 vuotta sitten
vanhempi
commit
2c37d683c8

+ 2 - 2
src/pages/Customer/Client/index.jsx

@@ -192,8 +192,8 @@ const Client = props => {
       title: '电话',
       dataIndex: 'phone',
       key: 'phone',
-      width: 65,
-      sorter: (a, b) => a.phone.localeCompare(b.phone)
+      width: 65
+      // sorter: (a, b) => a.phone.localeCompare(b.phone)
     },
     {
       title: '手机',

+ 0 - 1
src/pages/Product/Lock/Lockstore/components/LocksDetail/Form.jsx

@@ -6,7 +6,6 @@ import ChangeClient from '@/pages/Product/Lock/LockStore/components/ChangeClient
 import CopyauthorizeStr from '../CopyauthorizeStr'
 import DownUpdateFile from '../DownUpdateFile'
 import CompanyDetail from '@/pages/Customer/Company/components/CompanyDetail'
-import styles from '@/pages/Product/Lock/LockStore/components/ChangeClient/index.less'
 
 export const ChangeCompMap = {
   LONGLE: {

+ 5 - 5
src/pages/Product/Lock/Lockstore/index.jsx

@@ -64,6 +64,11 @@ const longleStatusNum = {
   }
 }
 
+// 刷新
+const refreshData = () => {
+  tRef.current.reload()
+}
+
 const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
   const tRef = useRef()
   const [selectKeys] = useState([])
@@ -105,11 +110,6 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
     setState({ ...state, params: { ...state.params, search: value } })
   }
 
-  // 刷新
-  const refreshData = () => {
-    tRef.current.reload()
-  }
-
   useEffect(() => {
     if (shouldUpdate) {
       tRef.current.reload()