Browse Source

feat:修改班级考核

DESKTOP-USV654P\pc 5 months ago
parent
commit
e450a5f5f4

+ 10 - 1
src/views/examineManager/classExamine/components/data.config.ts

@@ -279,7 +279,16 @@ export const formSchema: FormSchema[] = [
       return {
       return {
         getPopupContainer: () => document.body,
         getPopupContainer: () => document.body,
         api: requestMagicApi,
         api: requestMagicApi,
-        params: { url: 'student/class/list', query: { classId: formModel.classIds } },
+        params: { url: 'student/class/list', query: { class_id: formModel.classIds } },
+        labelField: 'name',
+        valueField: 'userId',
+        showSearch: true,
+        filterOption: (input: string, option: any) => {
+          return (
+            option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
+            option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
+          );
+        },
       };
       };
     },
     },
     ifShow: ({ values }) => {
     ifShow: ({ values }) => {

+ 1 - 0
src/views/examineManager/classExamine/index.vue

@@ -73,6 +73,7 @@
             },
             },
             {
             {
               label: '作废',
               label: '作废',
+              disabled: record.enabledMark === 0,
               onClick: handleCancel.bind(null, record),
               onClick: handleCancel.bind(null, record),
             },
             },
           ]"
           ]"