闫增涛
2024-07-01 d0940596d5f35ef96a5818ee315f86454c3d0ab1
src/views/examination/components/sheet.vue
@@ -56,7 +56,7 @@
          <p>未答</p>
        </li>
        <li v-if="submitStatus">
          <p class="sheetingBox" style="background-color: #ee1818"></p>
          <p class="sheetingBox" style="background-color: #FF5E5E"></p>
          <p>错误</p>
        </li>
        <li v-if="submitStatus">
@@ -65,7 +65,7 @@
        </li>
      </ul>
      <div class="sheet-btn">
      <el-button @click="saveData">
      <el-button @click="saveData" v-if="!submitStatus">
        提交
      </el-button>
    </div>
@@ -81,7 +81,7 @@
          <p>未答</p>
        </li>
        <li>
          <p class="sheetingBox" style="background-color: #ee1818"></p>
          <p class="sheetingBox" style="background-color: #FF5E5E"></p>
          <p>错误</p>
        </li>
        <li>
@@ -102,8 +102,8 @@
import { defineProps, watch, ref, computed, defineEmits, onMounted } from 'vue'
const props = defineProps<{
  cardList: any
  submitStatus: boolean
  answerType: string,
  submitStatus: Boolean
  answerType: String,
  
}>()
@@ -113,7 +113,7 @@
  document.getElementById(`listItem-${id}`)!.scrollIntoView()
}
// 判断是否输入答案
const isHaveAnswer = (data) => {
const isHaveAnswer = (data:any) => {
  if (typeof data == 'string') {
    data = data
      .replace(/<[^>]*>/g, '')
@@ -259,7 +259,7 @@
}
/** 错误样式 */
.error {
  background-color: #ee1818 !important;
  background-color: #FF5E5E !important;
}
/** 非默认字体颜色 */
.noDeafault {