From 42ad61a075d8a3c32949d83bf40acc53b2da25b1 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 13 Sep 2024 20:53:35 +0800
Subject: [PATCH] fix: 修改预览的文件回显bug
---
gz-customerSystem/src/components/basicInformation/personnel/PersonnelPage.jsx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gz-customerSystem/src/components/basicInformation/personnel/PersonnelPage.jsx b/gz-customerSystem/src/components/basicInformation/personnel/PersonnelPage.jsx
index b5e18d1..ffe6ba8 100644
--- a/gz-customerSystem/src/components/basicInformation/personnel/PersonnelPage.jsx
+++ b/gz-customerSystem/src/components/basicInformation/personnel/PersonnelPage.jsx
@@ -2,8 +2,8 @@
* @Company: hugeInfo
* @Author: ldh
* @Date: 2022-02-25 14:40:57
- * @LastEditTime: 2022-11-03 11:35:05
- * @LastEditors: ldh
+ * @LastEditTime: 2024-08-26 10:56:05
+ * @LastEditors: dminyi 1301963064@qq.com
* @Version: 1.0.0
* @Description: 人员信息列表页面
*/
@@ -121,7 +121,7 @@
title: '状态',
dataIndex: 'status',
width: 50,
- render: (text) => <span style={{ color: text === '1' ? '#52C41A' : '#BFBFBF' }}>{text === '1' ? '正常' : '停用'}</span>,
+ render: (text) => <span style={{ color: text === 1 ? '#52C41A' : '#BFBFBF' }}>{text === 1 ? '正常' : '停用'}</span>,
},
{
title: '操作',
@@ -138,7 +138,7 @@
{/* 22_00024-2超级管理员不可操作 */}
{!record.ctUseroleList?.filter((item) => item.roleCode === '22_00024-2').length && (
<>
- {record.status === '1' ? (
+ {record.status === 1 ? (
<Popconfirm title="是否确认停用该账号?" onConfirm={() => handleEditPerson('stop', record)}>
<Link disabled={userId === record.id}>停用</Link>
</Popconfirm>
--
Gitblit v1.8.0