Эх сурвалжийг харах

考试特殊设置按钮控制

WANG 5 жил өмнө
parent
commit
df49449083

+ 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"