lsc 3 months ago
parent
commit
3c014c1451
1 changed files with 2 additions and 1 deletions
  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]