ソースを参照

fix: 修改参数信息

xiaweibo 1 ヶ月 前
コミット
3919031a84

+ 1 - 0
src/views/production-safety/implement-safety-duty/create-responsibility-agree.vue

@@ -32,6 +32,7 @@
             :maxCount="1"
             @uploadSuccess="handleUploadSuccess"
             :fileList="formValue.attachment"
+            :desc="'支持格式:.rar .zip .doc .docx .doc .pdf .png .jpg .jpeg .mp4 .xlsx .pptx,单个文件不能超过20MB'"
           />
         </el-form-item>
 

+ 0 - 1
src/views/production-safety/implement-safety-duty/responsibility-agree-manage-dept.vue

@@ -23,7 +23,6 @@
           </el-form-item>
           <el-form-item label="状态">
             <el-select v-model="queryParams.queryParam.status" clearable placeholder="状态" style="width: 170px">
-              <el-option :value="1" label="未下发" />
               <el-option :value="2" label="待签署" />
               <el-option :value="3" label="待反馈材料" />
               <el-option :value="4" label="待审核" />

+ 15 - 3
src/views/production-safety/implement-safety-duty/responsibility-notice-manage-admin/list.vue

@@ -70,9 +70,21 @@
           <el-table-column label="责任通知名称" prop="responsibilityName" width="180" />
           <el-table-column label="状态" prop="statusName" width="100" />
           <!-- <el-table-column label="类型" prop="safetyAreaName" width="180" /> -->
-          <el-table-column label="下发数" prop="issuedQuantity" width="120" />
-          <el-table-column label="反馈人数" prop="signedQuantity" width="120" />
-          <el-table-column label="反馈比例" prop="signedRatio" width="120" />
+          <el-table-column label="下发数" prop="issuedQuantity" width="120">
+            <template #default="scope">
+              {{ scope.row.status === 1 ? '-' : scope.row.issuedQuantity }}
+            </template>
+          </el-table-column>
+          <el-table-column label="反馈人数" prop="signedQuantity" width="120">
+            <template #default="scope">
+              {{ scope.row.status === 1 ? '-' : scope.row.signedQuantity }}
+            </template>
+          </el-table-column>
+          <el-table-column label="反馈比例" prop="signedRatio" width="120">
+            <template #default="scope">
+              {{ scope.row.status === 1 ? '-' : scope.row.signedRatio }}
+            </template>
+          </el-table-column>
           <el-table-column label="责任通知文档" prop="attachment" width="250">
             <template #default="scope">
               <!-- <div

+ 8 - 0
src/views/production-safety/safetyTrainingAndEducation/educationTrainingPlanManagementDept/educationTrainingPlanManagementDept.vue

@@ -276,6 +276,14 @@
 
   };
   const saveSummary = async()=>{
+    if(!fileList.value.length){
+      ElMessage.error('请先上传材料');
+      return;
+    }
+    if(!form.trainingSummary){
+      ElMessage.error('请输入小结内容');
+      return;
+    }
     try {
       await updateEducationTrainingPlanCourseSummary(form);
       ElMessage.success('更新小结成功');