|
|
@@ -33,6 +33,7 @@ Page({
|
|
|
active: {
|
|
|
name: wx.getStorageSync('userMsg').name,
|
|
|
userid: wx.getStorageSync('userMsg').userid,
|
|
|
+ isleave: 1
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -47,7 +48,12 @@ Page({
|
|
|
detail
|
|
|
}) {
|
|
|
if (detail.name == 'reset') {
|
|
|
+ this.selectComponent("#organization").setData({
|
|
|
+ isleave: 1
|
|
|
+ })
|
|
|
this.selectComponent("#organization").initDepAndUser().then(active => {
|
|
|
+ console.log("active", active)
|
|
|
+ active.isleave = 1;
|
|
|
this.setData({
|
|
|
active
|
|
|
})
|
|
|
@@ -99,7 +105,7 @@ Page({
|
|
|
let type = active.userid ? 0 : 1,
|
|
|
dataid = type == 0 ? active.userid : active.departmentid,
|
|
|
where = {
|
|
|
- isleave: active.isleave || 0
|
|
|
+ isleave: active.isleave
|
|
|
};
|
|
|
return _Http.basic({
|
|
|
"id": 20230616131404,
|
|
|
@@ -274,6 +280,9 @@ Page({
|
|
|
},
|
|
|
onReady() {
|
|
|
this.selectComponent("#ListBox").setHeight(".head", this);
|
|
|
+ this.selectComponent("#organization").setData({
|
|
|
+ isleave: 1
|
|
|
+ })
|
|
|
this.selectComponent("#organization").initDepAndUser().then(active => {
|
|
|
this.setData({
|
|
|
active
|