From 8d68b6a1dcdf5008fba6bdac5858d1085a0e63e7 Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Mon, 30 Mar 2020 23:14:04 +0800 Subject: [PATCH] 提交 --- 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