xiaohaizhao 1 rok pred
rodič
commit
49b1ffa9cf
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      portrayal/list/contacts.js

+ 3 - 2
portrayal/list/contacts.js

@@ -126,17 +126,18 @@ Component({
                 content.where = {
                     "condition": content.where.condition || '',
                     "tag": [],
-                    "begindate": "",
+                    "begdate": "",
                     "enddate": "",
                     isleave: 1
                 }
             } else if (detail.name == "confirm") {
                 const res = organization.data.result
+                content.type = res.departmentid ? 1 : 0;
                 content.dataid = res.departmentid || res.userid;
                 content.where = {
                     "condition": content.where.condition || '',
                     "tag": detail.tag || [],
-                    "begindate": detail.startdate || '',
+                    "begdate": detail.startdate || '',
                     "enddate": detail.enddate || '',
                     isleave: detail.isleave
                 }