Ver Fonte

工况样式修改

xujunjie há 1 ano atrás
pai
commit
37a409f8b9

+ 1 - 1
src/pages/SmartOps/Analysis.js

@@ -184,7 +184,7 @@ const Analysis = (props) => {
                   onClick: () => onSelectRow(record, index),
                 })}
                 pagination={false}
-                scroll={{ y: document.body.clientHeight - 542 }}
+                scroll={{ y: document.body.clientHeight - 730 }}
               />
             ),
           };

+ 3 - 1
src/pages/SmartOps/HistoryRecord.js

@@ -1,4 +1,5 @@
 import PageContent from '@/components/PageContent';
+import PageTitle from '@/components/PageTitle';
 import { getHistoryRecord } from '@/services/SmartOps';
 import { GetTokenFromUrl } from '@/utils/utils';
 import { useNavigate, useParams, useRequest } from '@umijs/max';
@@ -121,7 +122,7 @@ const HistoryRecord = (props) => {
     };
     switch (key) {
       case 'date':
-        if (value.length === 2) {
+        if (value?.length === 2) {
           tempParams.start_time = dayjs(value[0]).format('YYYY-MM-DD 00:00:00');
           tempParams.end_time = dayjs(value[1]).format('YYYY-MM-DD 23:59:59');
           console.log(
@@ -161,6 +162,7 @@ const HistoryRecord = (props) => {
 
   return (
     <PageContent>
+      <PageTitle returnable>历史记录</PageTitle>
       <Spin spinning={loading}>
         <div className={styles.searchContent}>
           {/* <Button

+ 3 - 1
src/pages/SmartOps/OperationRecord.js

@@ -5,6 +5,7 @@ import { Button, DatePicker, Select, Spin, Table } from 'antd';
 import dayjs from 'dayjs';
 import { useEffect, useState } from 'react';
 import styles from './index.less';
+import PageTitle from '@/components/PageTitle';
 
 const { RangePicker } = DatePicker;
 const { Option } = Select;
@@ -148,7 +149,7 @@ const OperationRecord = (props) => {
         tempParams[key] = value;
         break;
       case 'date':
-        if (value.length === 2) {
+        if (value?.length === 2) {
           tempParams.s_time = dayjs(value[0]).format('YYYY-MM-DD 00:00:00');
           tempParams.e_time = dayjs(value[1]).format('YYYY-MM-DD 23:59:59');
         } else {
@@ -181,6 +182,7 @@ const OperationRecord = (props) => {
 
   return (
     <PageContent>
+      <PageTitle returnable>操作记录</PageTitle>
       <Spin spinning={loading}>
         <div className={styles.searchContent}>
           {/* <Button

+ 1 - 1
src/pages/SmartOps/components/VideoAnalysis.js

@@ -41,7 +41,7 @@ function VideoAnalysis(props) {
       <div
         id="videoContent"
         className={styles.page}
-        style={{ height: 'calc(100vh - 422px)', overflow: 'auto' }}
+        style={{ height: 'calc(100vh - 580px)', overflow: 'auto' }}
       >
         {data?.list?.length > 0 ? (
           data?.list?.map((item) => (

+ 1 - 1
src/pages/SmartOps/components/WorkAnalysis.js

@@ -18,7 +18,7 @@ function WorkAnalysis(props) {
   };
   return (
     <Spin spinning={loading}>
-      <div style={{ height: 'calc(100vh - 422px)', overflow: 'auto' }}>
+      <div style={{ height: 'calc(100vh - 580px)', overflow: 'auto' }}>
         {project_categorys?.map((item) => (
           <div className={`${styles.box} card-box`} key={item.type}>
             <div className={styles.title}>{item.name}</div>

+ 4 - 3
src/pages/SmartOps/index.less

@@ -146,6 +146,7 @@
   color: #4a4a4a;
   font-size: 24px;
   white-space: nowrap;
+  margin-top: 40px;
   :global {
     .ant-select {
       margin: 0 40px 0 10px;
@@ -166,12 +167,12 @@
 }
 
 .tableSelect {
-  background-color: #2466a4;
+  background: rgba(145, 192, 238, 0.16) !important;
 }
 .tabContent {
   :global {
-    .ant-table-tbody > tr:nth-child(2n):not(.ant-table-expanded-row) {
-      background-image: url('~@/assets/tbodyBg1.png');
+    .ant-table-tbody > tr:nth-child(even) {
+      background: inherit;
     }
   }
 }