Bläddra i källkod

图像识别主管反馈新旧反馈问题修改

zhujindu 6 månader sedan
förälder
incheckning
38b46a1896
1 ändrade filer med 14 tillägg och 2 borttagningar
  1. 14 2
      src/views/week/VisitSummaryAdd.vue

+ 14 - 2
src/views/week/VisitSummaryAdd.vue

@@ -298,9 +298,11 @@ export default {
       collectionAnswerlisd: [],
       flagclick: true,
       index: '',
+      activaFlag: true,
     };
   },
   created() {
+    this.activaFlag = true;
     // this.formData.startTime = this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2)
     this.formData.startTime = this.getThreeDaysAgo();
     // this.strtcurrentDate=new Date(this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2))
@@ -451,8 +453,18 @@ export default {
           for (var q = 0; q < collectionItemLists.length; q++) {
             collectionItemLists[q].answerName = undefined;
             // 公司
-            if (collectionItemLists[q].answerType == 'gs') {
-              this.getDeptInfo('dept', 'gs', collectionItemLists[q].answerValue);
+            if (
+              (collectionItemLists[q].answerType == 'gs' ||
+                collectionItemLists[q].answerType == 'dq' ||
+                collectionItemLists[q].answerType == 'xsb') &&
+              this.activaFlag
+            ) {
+              this.activaFlag = false;
+              this.getDeptInfo(
+                'dept',
+                collectionItemLists[q].answerType,
+                collectionItemLists[q].answerValue
+              );
             }
             // 单选
             if (