liushengqiang 1 год назад
Родитель
Сommit
390a1f634c
1 измененных файлов с 4 добавлено и 3 удалено
  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