Browse Source

修复bug

xiaohaizhao 1 year ago
parent
commit
dd053148b7
1 changed files with 1 additions and 1 deletions
  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);