刘洋 1 year ago
parent
commit
ed5971f22d
1 changed files with 12 additions and 6 deletions
  1. 12 6
      src/modules/admin-user/edit-user/index.vue

+ 12 - 6
src/modules/admin-user/edit-user/index.vue

@@ -234,12 +234,18 @@ const items = computed<EpFormItem[]>(() => {
           slot: {
             placeholder: '选择阶段',
             disabled: isEdit,
-            options: [
-              { label: 'SAMPLE_A', value: 'SAMPLE_A' },
-              { label: 'SAMPLE_B', value: 'SAMPLE_B' },
-              // { label: '强制考核卷', value: 'FORCE' },
-              { label: '正评', value: 'FORMAL' },
-            ],
+            options: isEdit
+              ? [
+                  { label: 'SAMPLE_A', value: 'SAMPLE_A' },
+                  { label: 'SAMPLE_B', value: 'SAMPLE_B' },
+                  { label: '强制考核卷', value: 'FORCE' },
+                  { label: '正评', value: 'FORMAL' },
+                ]
+              : [
+                  { label: 'SAMPLE_A', value: 'SAMPLE_A' },
+                  { label: 'SAMPLE_B', value: 'SAMPLE_B' },
+                  { label: '正评', value: 'FORMAL' },
+                ],
           },
         }
       : null,