浏览代码

投票调研回显 判断修改

sunlupeng 1 年之前
父节点
当前提交
52564667fc
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/HomeView/postInteract/detail.vue

+ 5 - 4
src/views/HomeView/postInteract/detail.vue

@@ -21,7 +21,7 @@
                             <div v-if="item.type == 'SCQ'">
                                 <div class="itemTitle">{{ index + 1 }}. {{ item.description }}<el-tag class="elTag" size="small" type="danger">单选</el-tag></div>
                                 <el-radio-group v-model="item.comment" class="flex-column">
-                                    <el-radio class="myRadio" :disabled="data.interactUserStatus == 0?false:true" v-for="(childItem, childIndex) in item.options" :key="childIndex"
+                                    <el-radio class="myRadio" :disabled="data.interactUserStatus == 0 && data.status !=2?false:true" v-for="(childItem, childIndex) in item.options" :key="childIndex"
                                         :label="childItem.id">{{ childItem.name }}</el-radio>
                                 </el-radio-group>
                             </div>
@@ -29,16 +29,17 @@
                             <div v-if="item.type == 'MCQ'">
                                 <div class="itemTitle">{{ index + 1 }}. {{ item.description }}<el-tag class="elTag" size="small" type="danger">多选</el-tag></div>
                                 <el-checkbox-group v-model="item.comment" class="flex-column">
-                                    <el-checkbox class="myRadio" :disabled="data.interactUserStatus == 0?false:true" v-for="(childItem, childIndex) in item.options" :key="childIndex"
+                                    <el-checkbox class="myRadio" :disabled="data.interactUserStatus == 0 && data.status !=2?false:true" v-for="(childItem, childIndex) in item.options" :key="childIndex"
                                         :label="childItem.id">{{ childItem.name }}</el-checkbox>
                                 </el-checkbox-group>
                             </div>
                             <div v-if="item.type == 'SAQ'">
                                 <div class="itemTitle">{{ index + 1 }}. {{ item.description }}<el-tag class="elTag" size="small" type="danger">问答</el-tag></div>
-                                <div v-if="data.interactUserStatus != 0" class="myText">
+                                <el-input v-if="data.interactUserStatus == 0 && data.status !=2" type="textarea" :rows="6" maxlength="200" show-word-limit placeholder="请输入内容" v-model="item.comment"></el-input>
+                                <div v-else class="myText">
                                     {{ item.comment }}
                                 </div>
-                                <el-input v-else type="textarea" :rows="6" maxlength="200" show-word-limit placeholder="请输入内容" v-model="item.comment"></el-input>
+                                
                             </div>
                         </div>
                         <div v-if="data.interactUserStatus == 0" class="footBut">