|
@@ -479,9 +479,6 @@ export default {
|
|
|
*/
|
|
|
handleUserSearch(val) {
|
|
|
let _that = this;
|
|
|
- let b = JSON.parse(localStorage.getItem('userInfo'));
|
|
|
- if (_that.inputArgs.approveType !== '20') {
|
|
|
- // 非部门审批查询所有用户
|
|
|
_that.$api.getUserPageList({
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
@@ -500,27 +497,6 @@ export default {
|
|
|
_that.$notification.error({ message: res.message });
|
|
|
}
|
|
|
});
|
|
|
- } else {
|
|
|
- // 部门审批仅查询本部门用户
|
|
|
- _that.$api.getUserPageList({
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 10,
|
|
|
- departmentId: _that.inputArgs.departmentId
|
|
|
- }).then(res => {
|
|
|
- if (res.flag) {
|
|
|
- let resData = res.data.data;
|
|
|
- _that.userList = [];
|
|
|
- _that.userList = resData.map(item => {
|
|
|
- return {
|
|
|
- name: item.userName + '/' + item.account + '/' + item.departmentName,
|
|
|
- value: item.userId
|
|
|
- };
|
|
|
- });
|
|
|
- } else {
|
|
|
- _that.$notification.error({ message: res.message });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
},
|
|
|
/**
|
|
|
* 处理延期至 -- 时间选择变化
|