liushengqiang 1 gadu atpakaļ
vecāks
revīzija
390a1f634c
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      src/views/courseList/index.tsx

+ 4 - 3
src/views/courseList/index.tsx

@@ -323,11 +323,12 @@ export default defineComponent({
               <div key="list" class={styles.periodList}>
                 <CellGroup inset>
                   {data.list.map((item: any) => {
-                    const isLock = String(item.accessScope) === '0' ||
-                      item.lockFlag ||
+                    let isLock = item.lockFlag ||
                       ((route.query.code == 'select' || state.platformType == 'STUDENT') &&
                         !item.unlock)
-
+                    if (String(item.accessScope) === '0'){
+                      isLock = false
+                    }
                     const isSelect = route.query.code === 'select'
                     return (
                       <Cell