Selaa lähdekoodia

feat: 对接培训资料管理基础接口

wuzh 1 viikko sitten
vanhempi
commit
fd1f28e14e

+ 1 - 2
src/enum/dict.js

@@ -59,8 +59,7 @@ export const numberList = [
   'emergency_plan_type',
   'drill_type',
   'drill_level',
-  'esh_professional_type',
-  'esh_material_professional_type'
+  'esh_professional_type'
 ];
 
 //审核枚举

+ 1 - 1
src/views/safetyTraining/trainingMaterials/add.vue

@@ -320,7 +320,7 @@
           id: this.form.id || undefined,
           materialName: this.form.name,
           professionalType:
-            this.form.category === '' ? undefined : Number(this.form.category),
+            this.form.category === '' ? undefined : String(this.form.category),
           departmentId: this.form.deptId,
           departmentName: this.form.deptName,
           applicablePositions: this.form.position,

+ 1 - 1
src/views/safetyTraining/trainingMaterials/index.vue

@@ -163,7 +163,7 @@
             planList: (this.dict[this.dictEnum['培训资料专业类别']] || []).map(
               (item) => ({
                 label: item.dictValue,
-                value: item.dictCode
+                value: String(item.dictCode)
               })
             )
           },