From 9c7c21e8eacda173feb418bdfe739f7f97358233 Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Sun, 29 Mar 2020 17:28:46 +0800 Subject: [PATCH] bug修复 --- SunshineIns/src/page/QuestionDetail.jsx | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/SunshineIns/src/page/QuestionDetail.jsx b/SunshineIns/src/page/QuestionDetail.jsx index 85413ad..709e7e8 100644 --- a/SunshineIns/src/page/QuestionDetail.jsx +++ b/SunshineIns/src/page/QuestionDetail.jsx @@ -106,7 +106,7 @@ 问卷描述:{initData.content || '暂无'} </h4> <h4 style={{ marginBottom: 0 }}> - 业务类型:{initData.businessType || '暂无'} + 业务类型:{typeStatus(initData.businessType) || '暂无'} </h4> </div> </div> @@ -123,3 +123,16 @@ } } + +function typeStatus(type) { + switch (type) { + case 1: + return "企业体检"; + case 2: + return "培训活动"; + case 3: + return "未检调查"; + case 4: + return "刑执监督"; + } +} -- Gitblit v1.8.0