Quellcode durchsuchen

全零分确认

Michael Wang vor 4 Jahren
Ursprung
Commit
cb2b68bdb6

+ 7 - 7
src/features/mark/MarkBoardKeyBoard.vue

@@ -46,15 +46,15 @@
     </div>
 
     <div class="tw-mb-2 tw-flex tw-place-content-center">
-      <qm-button
-        type="primary"
-        shape="round"
-        size="large"
-        @click="$emit('allZeroSubmit')"
+      <a-popconfirm
         v-if="store.setting.enableAllZero"
+        title="确定给全零分?"
+        ok-text="确定"
+        cancel-text="取消"
+        @confirm="$emit('allZeroSubmit')"
       >
-        全零分
-      </qm-button>
+        <a-button type="primary" shape="round" size="large"> 全零分 </a-button>
+      </a-popconfirm>
     </div>
 
     <div v-if="store.currentTask && store.currentTask.questionList">

+ 15 - 9
src/features/mark/MarkBoardMouse.vue

@@ -45,16 +45,22 @@
       </h1>
     </div>
     <div class="tw-flex tw-place-content-center tw-mb-2">
-      <qm-button
-        type="primary"
-        shape="round"
-        size="large"
-        @click="$emit('allZeroSubmit')"
-        style="margin-right: 20px !important"
-        v-if="store.setting.enableAllZero"
+      <a-popconfirm
+        v-if="!store.setting.enableAllZero"
+        title="确定给全零分?"
+        ok-text="确定"
+        cancel-text="取消"
+        @confirm="$emit('allZeroSubmit')"
       >
-        全零分
-      </qm-button>
+        <a-button
+          type="primary"
+          shape="round"
+          size="large"
+          style="margin-right: 20px !important"
+        >
+          全零分
+        </a-button>
+      </a-popconfirm>
 
       <qm-button type="primary" shape="round" size="large" @click="submit">
         提交

+ 15 - 9
src/features/mark/MarkBoardTrack.vue

@@ -34,16 +34,22 @@
       </h1>
     </div>
     <div class="tw-mb-2 tw-flex tw-place-content-center">
-      <qm-button
-        type="primary"
-        shape="round"
-        size="large"
-        @click="$emit('allZeroSubmit')"
-        style="margin-right: 20px !important"
-        v-if="store.setting.enableAllZero"
+      <a-popconfirm
+        v-if="!store.setting.enableAllZero"
+        title="确定给全零分?"
+        ok-text="确定"
+        cancel-text="取消"
+        @confirm="$emit('allZeroSubmit')"
       >
-        全零分
-      </qm-button>
+        <a-button
+          type="primary"
+          shape="round"
+          size="large"
+          style="margin-right: 20px !important"
+        >
+          全零分
+        </a-button>
+      </a-popconfirm>
 
       <qm-button type="primary" shape="round" size="large" @click="submit">
         提交