From 0b164196058c4386db24f7dfe78aede39e47dc1d Mon Sep 17 00:00:00 2001 From: zjlnb666 <14659021+zhangjianlong666@user.noreply.gitee.com> Date: Fri, 17 Oct 2025 11:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E4=BB=BB=E5=8A=A1=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inspectiontasks/InspectionTasks.js | 9 +++ .../Inspectiontaskplan/InspectionTaskPlan.js | 79 ++++++++++++++++--- .../InspectionTaskPlan.less | 9 ++- 3 files changed, 83 insertions(+), 14 deletions(-) diff --git a/src/pages/inspectiontasks/InspectionTasks.js b/src/pages/inspectiontasks/InspectionTasks.js index 78676e5..e8a6dd1 100644 --- a/src/pages/inspectiontasks/InspectionTasks.js +++ b/src/pages/inspectiontasks/InspectionTasks.js @@ -35,6 +35,15 @@ const InspectionTasks = () => { colorPrimaryHover: '#39c574', // hover 时的颜色 colorPrimaryActive: '#008743', // 点击时的颜色 }, + components: { + Switch: { + colorPrimary: '#008743', // 开启状态颜色 + colorBg: '#333', // 关闭状态颜色(默认灰色) + }, + Pagination:{ + colorPrimary:'#39c574', + } + }, }; const onChange=()=>{ diff --git a/src/pages/inspectiontasks/components/Inspectiontaskplan/InspectionTaskPlan.js b/src/pages/inspectiontasks/components/Inspectiontaskplan/InspectionTaskPlan.js index 26a4df9..b954d49 100644 --- a/src/pages/inspectiontasks/components/Inspectiontaskplan/InspectionTaskPlan.js +++ b/src/pages/inspectiontasks/components/Inspectiontaskplan/InspectionTaskPlan.js @@ -1,4 +1,4 @@ -import {Button, Col, Form, Input, Menu, Pagination, Row, Select, Space, Switch, Table} from "antd"; +import {Button, Col, Form, Input, Menu, Pagination, Row, Select, Space, Switch, Table, Tree} from "antd"; import {useEffect, useRef, useState} from "react"; import styles from './InspectionTaskPlan.less' import {Title} from "@/pages/inspectiontasks/InspectionTasks"; @@ -101,10 +101,10 @@ const EmployeeTable = () => { align:'center', render: (_, record) => ( - handleView(record)} style={{ color: '#1890ff' }}> + handleView(record)} style={{ color: '#2C9E9D' }}> 查看详情 - handleEdit(record)} style={{ color: '#1890ff' }}> + handleEdit(record)} style={{ color: '#2C9E9D' }}> 编辑 handleDelete(record)} style={{ color: '#ff4d4f' }}> @@ -335,10 +335,10 @@ const GroupTable=()=>{ align:'center', render: (_, record) => ( - handleView(record)} style={{ color: '#1890ff' }}> + handleView(record)} style={{ color: '#2C9E9D' }}> 查看详情 - handleEdit(record)} style={{ color: '#1890ff' }}> + handleEdit(record)} style={{ color: '#2C9E9D' }}> 编辑 handleDelete(record)} style={{ color: '#ff4d4f' }}> @@ -617,7 +617,7 @@ const TimeMange=()=>{ 2025-7-22 09:34 - + @@ -637,12 +637,12 @@ const TimeMange=()=>{ > 姓名} - name="type" + name="type1" > { 班组} - name="type" + name="type2" >