From dfca64c71e4b06989e66f5d68fc5d89d98386b7b Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Wed, 11 Sep 2024 12:49:49 +0800
Subject: [PATCH] fix: 预览状态下的办理记录不显示编辑图标

---
 gz-customerSystem/src/views/register/index.less                    |    3 ++-
 gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx |   14 ++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/gz-customerSystem/src/views/register/index.less b/gz-customerSystem/src/views/register/index.less
index 1be6833..a2086b0 100644
--- a/gz-customerSystem/src/views/register/index.less
+++ b/gz-customerSystem/src/views/register/index.less
@@ -342,12 +342,13 @@
 					background-color: #FAFAFA;
 					border-radius: 8px;
 					position: relative;
-
+					
 
 					&-icon {
 						width: 12px;
 						height: 12px;
 						margin-right: 12px;
+						cursor: pointer;
 					}
 
 					&-edit {
diff --git a/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx b/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx
index 0fb4d50..efa06b7 100644
--- a/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx
+++ b/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx
@@ -6,13 +6,11 @@
  * @FilePath: \gzDyh\gz-customerSystem\src\views\register\matterDetail\HandleRecord.jsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
-import React, { useState, useRef, useEffect } from 'react';
-import * as $$ from '@/utils/utility';
-import { Form, Input, Tabs, Typography, Empty, Radio, Button, Modal } from '@arco-design/web-react';
-import { register, fold, down, empty, link, edit } from '@/assets/images';
+import React, { useState, useEffect } from 'react';
+import { Empty } from '@arco-design/web-react';
+import { fold, down, empty, edit } from '@/assets/images';
 
 export default function HandleRecord(props) {
-  const [formView, setFormView] = useState(false);
   const [list, setList] = useState([]);
 
   useEffect(() => {
@@ -39,19 +37,19 @@
     <div>
       {list?.length > 0 ?
         <div>
-          {list?.map((record,index) => (
+          {list?.map((record, index) => (
             <div key={record.id} className='container-bottom-left-record'>
               <div className='container-bottom-left-record-top'>
                 {
                   record.showView ? (
-                    <img src={down} alt='' style={{ width: '18px', marginRight: '6px' }} onClick={() => toggleView(record.id)} />
+                    <img src={down} alt='' style={{ width: '18px', marginRight: '6px', cursor: 'pointer' }} onClick={() => toggleView(record.id)} />
                   ) : (
                     <img src={fold} alt='' className='container-bottom-left-record-top-icon' onClick={() => toggleView(record.id)} />
                   )
                 }
                 <div>{`${record.createTime} ${record.handleUnitName}`}</div>
                 <div className={`container-bottom-left-record-top-${record.handleType === '2' ? 'remark' : 'hostOrg'}`}>{record.handleType === '2' ? '配合部门' : '承办部门'}</div>
-                <div><img src={edit} alt='' className='container-bottom-left-record-top-edit' onClick={() => handleEdit(record)} /></div>
+                {!props.isReview && <div><img src={edit} alt='' className='container-bottom-left-record-top-edit' onClick={() => handleEdit(record)} /></div>}
               </div>
               <div className='container-bottom-left-record-bottom' style={{ display: record.showView ? 'block' : 'none' }}>
                 <table border="1" cellpadding="8" className='container-bottom-left-record-bottom-table'>

--
Gitblit v1.8.0