Browse Source

fix: bug

Signed-off-by: Carlos <568187512@qq.com>
Carlos 6 days ago
parent
commit
4fa9040a67

+ 1 - 1
src/app/pages/manager/hazard/inspection-plan/detail/basic-info/basic-info.component.html

@@ -1,7 +1,7 @@
 <div class="p-5">
   <div class="grid grid-cols-2 px-2" style="border-bottom: 1px solid var(--border-gray)">
     <div class="field-wrapper pr-4 relative">
-      <div class="field">
+      <div class="field" style="padding-right: 188px">
         <label class="label">计划名称:</label>
         <span class="value">{{ data.title }}</span>
       </div>

+ 2 - 2
src/app/pages/manager/hazard/inspection-plan/detail/detail-info/round-edit-form/round-edit-form.component.ts

@@ -172,8 +172,8 @@ export class RoundEditFormComponent {
   async onSave(index: number) {
     const currentItem = this.existList.find(item => item.id === index)!;
     currentItem.submitting = true;
-    await this.taskForms
-      .get(index)
+    const form = this.taskForms.find(item => item.index === index);
+    await form
       ?.save()
       .then(res => {
         Object.assign(currentItem, res);

+ 1 - 1
src/app/pages/manager/hazard/inspection-plan/detail/detail-info/round-static-table/fill-form/fill-form.component.html

@@ -58,7 +58,7 @@ d)	治理意见(文本)
                 </div>
                 <div>
                   <span class="px-1">
-                    @if (item.hazard.finalStatus === '未审核') {
+                    @if (!item.hazard.finalStatus || item.hazard.finalStatus === '未审核') {
                       <span
                         nz-icon
                         nzType="edit"

+ 1 - 1
src/app/pages/manager/hazard/inspection-plan/detail/detail.component.html

@@ -8,7 +8,7 @@
         <span nz-icon nzType="icons:left" nzTheme="outline" class="text-2xl scale-y-150"></span>
       </div>
     </div>
-    <div class="title">
+    <div class="title line-clamp-1">
       <span class="title-text">排查计划详情 - </span>
       <span class="title-text">
         {{ data.title }}

+ 4 - 3
src/app/pages/manager/hazard/inspection-plan/inspection-plan.component.ts

@@ -72,17 +72,17 @@ export class InspectionPlanComponent {
     },
     {
       level: 'A级',
-      count: 3,
+      count: 0,
       color: hazardLevelColor['A'],
     },
     {
       level: 'B级',
-      count: 8,
+      count: 0,
       color: hazardLevelColor['B'],
     },
     {
       level: 'C级',
-      count: 112,
+      count: 0,
       color: hazardLevelColor['C'],
     },
   ];
@@ -240,6 +240,7 @@ export class InspectionPlanComponent {
       if (!this.rightArrowVisible) return;
     }
     this.semiAnnual = this.semiAnnualOptions[index + (direction === 'left' ? -1 : 1)];
+    this.handleRefreshList();
   }
 
   getNotificationTypeText(t: number) {

+ 8 - 2
src/app/pages/manager/hazard/inspection-plan/plan-form/plan-form.component.html

@@ -4,7 +4,13 @@
       <nz-form-item>
         <nz-form-label [nzSpan]="8" nzRequired>计划名称</nz-form-label>
         <nz-form-control [nzSpan]="14" nzErrorTip="请输入计划名称">
-          <input nz-input class="precaution-input" placeholder="请输入计划名称" formControlName="title" />
+          <input
+            nz-input
+            class="precaution-input"
+            placeholder="请输入计划名称"
+            maxlength="100"
+            formControlName="title"
+          />
         </nz-form-control>
       </nz-form-item>
     </div>
@@ -117,7 +123,7 @@
   <div class="pl-8">
     <nz-form-label>本次排查主要工作目标</nz-form-label>
     <nz-form-item>
-      <nz-form-control [nzSpan]="23" nzErrorTip="请选择主要工作目标">
+      <nz-form-control [nzSpan]="23" nzErrorTip="请输入主要工作目标">
         <textarea
           nz-input
           class="precaution-input"

+ 1 - 1
src/app/pages/manager/hazard/inspection-plan/plan-form/plan-form.component.ts

@@ -51,7 +51,7 @@ export class PlanFormComponent {
     frequencyTimes: this.fb.control<number | undefined>(undefined, [Validators.required]),
     time: this.fb.control<string[]>([], [this.timeValidator.bind(this)]),
     targets: this.fb.control<number[]>([], [Validators.required]),
-    content: this.fb.control<string>('', [Validators.required, Validators.maxLength(1000)]),
+    content: this.fb.control<string>('', [Validators.required, Validators.maxLength(2000)]),
     // isUnited: this.fb.control<boolean>(false),
   });
 

+ 0 - 1
src/app/shared/risk-item-picker/risk-items-visual-classify/risk-items-visual-classify.component.html

@@ -30,7 +30,6 @@
         </div>
       }
     </div>
-
     <!-- <span
       nz-icon
       nzType="close"