From 101098593cd1d998979cb8c603276b8f6687942e Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 08 Apr 2020 14:45:02 +0800
Subject: [PATCH] 修复问卷编辑问题
---
SunshineIns/src/page/Examine.jsx | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/SunshineIns/src/page/Examine.jsx b/SunshineIns/src/page/Examine.jsx
index e380587..6404369 100644
--- a/SunshineIns/src/page/Examine.jsx
+++ b/SunshineIns/src/page/Examine.jsx
@@ -136,9 +136,13 @@
title: '操作',
key: 'action',
render: (text, record) => (
- <span>
- <a onClick={() => this.showModal(record.id)}>审核</a>
- </span>
+ record.status == 1 ?
+ <span>
+ <a onClick={() => this.showModal(record.id)}>审核</a>
+ </span>
+ : <span>
+ <a onClick={() => this.showModal(record.id)}>详情</a>
+ </span>
),
}];
const { data, loading, resetKey, formData } = this.state;
--
Gitblit v1.8.0