|
@@ -32,18 +32,18 @@ Component({
|
|
didMount() {
|
|
didMount() {
|
|
that = this;
|
|
that = this;
|
|
this.setData({ isCreator: app.globalData.isCreator, creatorName: app.globalData.corpMessage.creators })
|
|
this.setData({ isCreator: app.globalData.isCreator, creatorName: app.globalData.corpMessage.creators })
|
|
- app.login(app.globalData.corpId, function (is) {
|
|
|
|
- if (is) {
|
|
|
|
|
|
+ // app.login(app.globalData.corpId, function (is) {
|
|
|
|
+ // if (is) {
|
|
that.setData({
|
|
that.setData({
|
|
selectUserId: that.props.selectUser[0] ? that.props.selectUser : [],
|
|
selectUserId: that.props.selectUser[0] ? that.props.selectUser : [],
|
|
isAll: that.props.isAllSelect,
|
|
isAll: that.props.isAllSelect,
|
|
userData:app.globalData.userData.employee_detail.manage_scope,
|
|
userData:app.globalData.userData.employee_detail.manage_scope,
|
|
terr: [{ name: '全部', id: 0 }]
|
|
terr: [{ name: '全部', id: 0 }]
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ // }
|
|
that.getData(0);
|
|
that.getData(0);
|
|
that.getBmData();
|
|
that.getBmData();
|
|
- })
|
|
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
didUpdate() { },
|
|
didUpdate() { },
|
|
didUnmount() {
|
|
didUnmount() {
|
|
@@ -268,6 +268,8 @@ Component({
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+
|
|
that.data.userData.map((item) => {//列表数据是否是自己的管理范围
|
|
that.data.userData.map((item) => {//列表数据是否是自己的管理范围
|
|
userList.map((item2) => {
|
|
userList.map((item2) => {
|
|
if (item.id == item2.id) {
|
|
if (item.id == item2.id) {
|
|
@@ -275,6 +277,8 @@ Component({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+
|
|
this.setData({
|
|
this.setData({
|
|
userList: that.props.isLeadership ? arr : userList,
|
|
userList: that.props.isLeadership ? arr : userList,
|
|
all_user_list: that.props.isLeadership ? arr : userList,
|
|
all_user_list: that.props.isLeadership ? arr : userList,
|