瀏覽代碼

修改样式

Renxy 1 年之前
父節點
當前提交
0769fefbfd
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 2 1
      src/pages/DeviceManager/index.js
  2. 7 0
      src/pages/DeviceManager/index.less

+ 2 - 1
src/pages/DeviceManager/index.js

@@ -6,6 +6,7 @@ import {
   queryMaintainRecord,
   queryRepairRecord,
 } from '@/services/device';
+import { UnityAction } from '@/utils/utils';
 import { RightOutlined } from '@ant-design/icons';
 import { useNavigate, useParams, useRequest } from '@umijs/max';
 import { Collapse, List, Space, Table } from 'antd';
@@ -145,7 +146,6 @@ const Device = ({ projectId }) => {
   });
 
   const allData = useMemo(() => {
-    console.log(activeCode);
     const total = data?.reduce((total, item) => item.Count, 0);
     const items = data?.map((item, idx) => {
       const itemLen = item?.List?.length;
@@ -216,6 +216,7 @@ const Device = ({ projectId }) => {
   );
 
   const handleItemClick = (code) => {
+    UnityAction.sendMsg('deviceCode', code);
     console.log(code);
     setActiveCode(code);
   };

+ 7 - 0
src/pages/DeviceManager/index.less

@@ -104,6 +104,13 @@
       padding: 36px;
       align-items: center;
     }
+    .ant-collapse-item {
+      margin-bottom: 16px;
+      border-radius: 8px;
+      box-shadow: 0px 0px 8px 2px rgba(191, 191, 191, 0.2);
+      border: 1px solid #eee;
+      background: rgba(255, 255, 255);
+    }
     .ant-collapse
       > .ant-collapse-item
       > .ant-collapse-header