lsc 4 месяцев назад
Родитель
Сommit
3c014c1451
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/views/Student/index.vue

+ 2 - 1
src/views/Student/index.vue

@@ -2164,7 +2164,8 @@ const getWork = async (isUpdate = false) => {
     const toolType = frame?.toolType ?? ''
     const newWorkArray = props.cid
       ? res[0].filter((work: any) => {
-        return props.type == '1' || (props.type == '2' && work.classid.includes(props.cid)) && (work.atool === toolType || !toolType)
+        // console.log(work.ttype == '1' || (work.ttype == '2' && work.classid.includes(props.cid)) && (work.atool === toolType.value || !toolType.value))
+        return work.ttype == '1' || (work.ttype == '2' && work.classid.includes(props.cid)) && (work.atool == toolType.value || !toolType.value)
       })
       : res[0]