Explorar o código

考试特殊设置按钮控制

WANG %!s(int64=5) %!d(string=hai) anos
pai
achega
df49449083
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/modules/examwork/view/examInfo.vue

+ 6 - 2
src/modules/examwork/view/examInfo.vue

@@ -195,7 +195,9 @@
                           !(
                             rolePrivileges.update_exam &&
                             (scope.row.examType == 'OFFLINE' ||
-                              scope.row.examType == 'ONLINE')
+                              scope.row.examType == 'ONLINE') &&
+                            scope.row.specialSettingsEnabled &&
+                            scope.row.specialSettingsType == 'ORG_BASED'
                           )
                         "
                         size="mini"
@@ -212,7 +214,9 @@
                           !(
                             rolePrivileges.update_exam &&
                             (scope.row.examType == 'OFFLINE' ||
-                              scope.row.examType == 'ONLINE')
+                              scope.row.examType == 'ONLINE') &&
+                            scope.row.specialSettingsEnabled &&
+                            scope.row.specialSettingsType == 'STUDENT_BASED'
                           )
                         "
                         size="mini"