xiaohaizhao пре 1 година
родитељ
комит
dd053148b7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packageA/achievement/index.js

+ 1 - 1
packageA/achievement/index.js

@@ -273,7 +273,7 @@ Page({
     const model = this.selectComponent("#model" + dropdownItem);
     if (!model) return;
     const active = this.data.active;
-    model.init(active.type == '人员' ? '0' : '1', active.id);
+    model.init(active.departmentid ? '1' : '0', active.departmentid || active.userid);
   },
   onReady() {
     this.selectComponent("#ListBox").setHeight(".head", this);