Selaa lähdekoodia

fix:修复教育培训计划管理(管理员)删除问题

sunqijun 2 viikkoa sitten
vanhempi
commit
bdac2de72a

+ 2 - 1
src/api/production-education-training-plan/index.ts

@@ -87,8 +87,9 @@ export function cancelEducationAndTrainingProgram(data: any) {
  */
 export function deleteEducationAndTrainingProgram(data) {
   return http.request({
-    url: `/educationTrainingPlan/delete?detid=${data.detid}&mid=${data.mid}`,
+    url: `/educationTrainingPlan/delete`, 
     method: 'delete',
+    data,
   });
 }
 

+ 1 - 1
src/views/production-safety/safetyTrainingAndEducation/educationTrainingPlanManagement/educationTrainingPlanManagement.vue

@@ -87,7 +87,7 @@
                     :popconfirm="{
                       title: '确定要删除?',
                     }"
-                    @confirm="handleDelete(scope.row.mid)"
+                    @confirm="handleDelete(scope.row)"
                   />
                   <ActionButton text="下发" @click="handleIssue(scope.row)" />
                 </template>

+ 2 - 2
src/views/production-safety/safetyTrainingAndEducation/educationTrainingPlanManagementDept/educationTrainingPlanManagementDept.vue

@@ -90,7 +90,7 @@
     />
     <el-dialog v-model="dialogVisible" title="填写培训小结">
       <el-form>
-        <el-form-item label="材料上传" required>
+        <el-form-item label="材料上传" required>
           <el-upload
             action=""
             ref="courseContentUpload"
@@ -110,7 +110,7 @@
             </template>
           </el-upload>
         </el-form-item>
-        <el-form-item label="培训小结" required>
+        <el-form-item label="培训小结" required>
           <el-input type="textarea" v-model="form.trainingSummary"></el-input>
         </el-form-item>
       </el-form>