From b8fa0fa65e994fb0a7067e3348ee8604db815a9b Mon Sep 17 00:00:00 2001
From: xuxj <hugeinfo123>
Date: Sun, 26 Apr 2020 09:43:14 +0800
Subject: [PATCH] Merge branch 'master' of http://git.hugeinfo.com.cn/r/nsjcy/frontEnd/nsjcy

---
 SunshineIns/src/view/QuestionnairEditor/index.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/SunshineIns/src/view/QuestionnairEditor/index.js b/SunshineIns/src/view/QuestionnairEditor/index.js
index b535f71..12005a3 100644
--- a/SunshineIns/src/view/QuestionnairEditor/index.js
+++ b/SunshineIns/src/view/QuestionnairEditor/index.js
@@ -386,7 +386,7 @@
     }
   };
   render() {
-    const { index, curMoveItem, drag, acitveAnswer } = this.props;
+    const { index, curMoveItem, drag, acitveAnswer, disabled } = this.props;
     const {
       toggleMutiOption,
       editor,
@@ -660,6 +660,7 @@
               <input
                 type="radio"
                 name="radio"
+                disabled={disabled || false}
                 data-index={index}
                 value={data}
                 defaultChecked={
@@ -710,11 +711,12 @@
               <input
                 type="checkbox"
                 name="checkbox"
+                disabled={disabled || false}
                 value={data}
                 data-index={index}
                 defaultChecked={
                   answer &&
-                  this.answer.checkbox !== '' &&
+                  this.answer.checkbox &&
                   this.answer.checkbox.optionIndex.includes(index + '')
                 }
                 onChange={this.handleAnswerChange}

--
Gitblit v1.8.0