刘洋 преди 8 месеца
родител
ревизия
7e83172971

+ 1 - 0
src/render/views/AbsentCheck/index.vue

@@ -56,6 +56,7 @@ defineOptions({
 });
 
 const dataCheckStore = useDataCheckStore();
+dataCheckStore.resetInfo();
 const userStore = useUserStore();
 
 let searchModel = {} as AbsentCheckListFilter;

+ 7 - 0
src/render/views/DataCheck/QuestionPanel.vue

@@ -136,6 +136,13 @@ const curQuestion = ref("");
 const curQuestionIndex = ref(-1);
 
 const toUpperCase = () => {
+  if ((curQuestion.value || "").includes("#")) {
+    if (curQuestion.value.length > 1) {
+      curQuestion.value = "#";
+    }
+  } else {
+    curQuestion.value = curQuestion.value.replace(/[^a-zA-Z]/g, "");
+  }
   curQuestion.value = curQuestion.value.toUpperCase();
 };
 

+ 1 - 1
src/render/views/DataCheck/ScanImage/RecogEditDialog.vue

@@ -60,7 +60,7 @@
               :key="option"
               :type="selectResult.includes(option) ? 'primary' : 'default'"
               @click="selectOption(option)"
-              >{{ option }}</a-button
+              >{{ option === "#" ? "" : option }}</a-button
             >
           </div>
         </div>