lsc 4 mesiacov pred
rodič
commit
3c014c1451
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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 toolType = frame?.toolType ?? ''
     const newWorkArray = props.cid
     const newWorkArray = props.cid
       ? res[0].filter((work: any) => {
       ? 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]
       : res[0]