瀏覽代碼

feat: 小题阅分配任务数提示

zhangjie 3 天之前
父節點
當前提交
9ed9a1b6f2
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. 4 3
      src/features/mark/toolbar/MarkHeader.vue
  2. 2 0
      src/types/index.ts

+ 4 - 3
src/features/mark/toolbar/MarkHeader.vue

@@ -231,9 +231,10 @@ const logout = async () => {
 
 
 watchEffect(() => {
 watchEffect(() => {
   if (
   if (
-    isNumber(markStore.setting.topCount) &&
-    markStore.setting.topCount > 0 &&
-    markStore.setting.topCount === markStore.status.personCount
+    markStore.isSingelQuestionModel &&
+    isNumber(markStore.curStatus?.topCount) &&
+    markStore.curStatus?.topCount > 0 &&
+    markStore.curStatus?.topCount >= markStore.curStatus?.personCount
   ) {
   ) {
     Modal.confirm({
     Modal.confirm({
       centered: true,
       centered: true,

+ 2 - 0
src/types/index.ts

@@ -17,6 +17,8 @@ interface SplitConfig {
 interface MarkStatus {
 interface MarkStatus {
   /** 个人评卷数量 */
   /** 个人评卷数量 */
   personCount: number;
   personCount: number;
+  /** 推荐老师评卷的数量,到达这个数量提示老师 */
+  topCount: number;
   /** 总评卷数量 */
   /** 总评卷数量 */
   markedCount: number;
   markedCount: number;
   /** 总数量 */
   /** 总数量 */