agilebuilder-ui 1.1.36-sit4 → 1.1.36-tmp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{401-d4decb58.js → 401-c55bdcf2.js} +1 -1
- package/lib/{404-74cc4843.js → 404-c1dbd5e1.js} +1 -1
- package/lib/{iframe-page-c7973b9d.js → iframe-page-917912ae.js} +1 -1
- package/lib/{index-c739d5d5.js → index-6ec53ef7.js} +8463 -8490
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +99 -99
- package/lib/{tab-content-iframe-index-18ef0e35.js → tab-content-iframe-index-46a76242.js} +1 -1
- package/lib/{tab-content-index-72db2984.js → tab-content-index-132379e6.js} +1 -1
- package/lib/{tache-subprocess-history-4d3623ca.js → tache-subprocess-history-384455d6.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree/src/department-tree.vue +123 -130
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
- package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
- package/packages/department-tree-inline/src/department-tree-service.js +11 -10
- package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
- package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
- package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
- package/packages/department-user-tree/src/department-user-tree.vue +119 -127
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
- package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
- package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
- package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
- package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
- package/packages/fs-preview/src/fs-preview.vue +2 -20
- package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
- package/packages/fs-upload-new/src/fs-preview-new.vue +15 -27
- package/packages/index.js +4 -4
- package/packages/organization-input/src/organization-input.vue +12 -34
- package/packages/super-grid/src/apis.js +4 -21
- package/packages/super-grid/src/dynamic-input.vue +12 -1
- package/packages/super-grid/src/normal-column-content.vue +1 -2
- package/packages/super-grid/src/row-operation.vue +13 -23
- package/packages/super-grid/src/super-grid.vue +42 -51
- package/packages/super-grid/src/utils.js +8 -13
- package/packages/super-icon/src/index.vue +1 -4
- package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
- package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
- package/src/api/sso-service.js +5 -6
- package/src/directives/permission/index.js +4 -4
- package/src/index.js +3 -38
- package/src/store/modules/table.js +1 -0
- package/src/styles/theme/dark-blue/sidebar.scss +0 -9
- package/src/styles/theme/gray/sidebar.scss +8 -9
- package/src/styles/theme/green/sidebar.scss +0 -10
- package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
- package/src/utils/insert_css.js +1 -1
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
- package/src/views/dsc-component/Sidebar/index.vue +18 -36
- package/src/views/layout/components/Menubar/Item.vue +9 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
- package/src/views/layout/components/Sidebar/Item.vue +1 -4
- package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
- package/vite.config.js +1 -1
|
@@ -1,138 +1,130 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@close="closeDialog"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
2
|
+
<div>
|
|
3
|
+
<department-user-multi-tree
|
|
4
|
+
v-if="!isMobile && multiple"
|
|
5
|
+
:department-info="departmentInfo"
|
|
6
|
+
:height="height"
|
|
7
|
+
:is-need-virtual-user="isNeedVirtualUser"
|
|
8
|
+
:search-field="searchField"
|
|
9
|
+
:select-user-info="selectUserInfo"
|
|
10
|
+
:separator="separator"
|
|
11
|
+
:title="title"
|
|
12
|
+
:width="width ? width : '920px'"
|
|
13
|
+
@closeDialog="closeDialog"
|
|
14
|
+
@closedDialog="closedDialog"
|
|
15
|
+
@openDialog="openDialog"
|
|
16
|
+
@opendDialog="opendDialog"
|
|
17
|
+
/>
|
|
18
|
+
<department-user-single-tree
|
|
19
|
+
v-if="!isMobile && !multiple"
|
|
20
|
+
:department-info="departmentInfo"
|
|
21
|
+
:is-need-virtual-user="isNeedVirtualUser"
|
|
22
|
+
:title="title"
|
|
23
|
+
:width="width ? width : '509px'"
|
|
24
|
+
@closeDialog="closeDialog"
|
|
25
|
+
@closedDialog="closedDialog"
|
|
26
|
+
@openDialog="openDialog"
|
|
27
|
+
@opendDialog="opendDialog"
|
|
28
|
+
/>
|
|
29
|
+
<DepartmentUserMobileTree
|
|
30
|
+
v-if="isMobile"
|
|
31
|
+
:multiple="multiple"
|
|
32
|
+
:department-info="departmentInfo"
|
|
33
|
+
:search-field="searchField"
|
|
34
|
+
:select-user-info="selectUserInfo"
|
|
35
|
+
:separator="separator"
|
|
36
|
+
@close="closeDialog"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
42
39
|
</template>
|
|
43
40
|
|
|
44
41
|
<script>
|
|
45
|
-
import {
|
|
42
|
+
import {$emit} from '../../utils/gogocodeTransfer'
|
|
46
43
|
import DepartmentUserSingleTree from './department-user-single-tree.vue'
|
|
47
44
|
import DepartmentUserMultiTree from './department-user-multiple-tree.vue'
|
|
48
45
|
import DepartmentUserMobileTree from '../../department-user-tree-mobile/src/department-user-tree-app.vue'
|
|
49
|
-
import {
|
|
46
|
+
import {isMobileBrowser} from '../../../src/utils/common-util'
|
|
50
47
|
|
|
51
48
|
export default {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
opendDialog() {
|
|
133
|
-
$emit(this, 'opend')
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
emits: ['close', 'closed', 'open', 'opend']
|
|
49
|
+
name: 'DepartmentUserTree',
|
|
50
|
+
components: {
|
|
51
|
+
DepartmentUserSingleTree,
|
|
52
|
+
DepartmentUserMultiTree,
|
|
53
|
+
DepartmentUserMobileTree
|
|
54
|
+
},
|
|
55
|
+
props: {
|
|
56
|
+
// 是否是多选树,默认是true
|
|
57
|
+
multiple: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: true,
|
|
60
|
+
},
|
|
61
|
+
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
62
|
+
departmentInfo: {
|
|
63
|
+
type: Array,
|
|
64
|
+
default: null,
|
|
65
|
+
},
|
|
66
|
+
// 弹框的标题
|
|
67
|
+
title: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: null,
|
|
70
|
+
},
|
|
71
|
+
// 弹框的宽度
|
|
72
|
+
width: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: null,
|
|
75
|
+
},
|
|
76
|
+
// 弹框的高度
|
|
77
|
+
height: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: '300px',
|
|
80
|
+
},
|
|
81
|
+
// 是否需要显示虚拟用户
|
|
82
|
+
isNeedVirtualUser: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: false,
|
|
85
|
+
},
|
|
86
|
+
// 多选用户树时,已选择用户id或登录名集合,多个之间以逗号隔开
|
|
87
|
+
selectUserInfo: {
|
|
88
|
+
type: [String, Number],
|
|
89
|
+
default: null,
|
|
90
|
+
},
|
|
91
|
+
// 移除用户时,用户属性名称:id、loginName、email、telephone,默认是loginName
|
|
92
|
+
searchField: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: 'loginName',
|
|
95
|
+
},
|
|
96
|
+
// 多选树时结果之间的分隔符,默认是逗号分隔
|
|
97
|
+
separator: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: ',',
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
data() {
|
|
103
|
+
const isMobile = isMobileBrowser()
|
|
104
|
+
console.log('部门人员树---isMobile=', isMobile)
|
|
105
|
+
let myTitle = this.$t('imatrixUIMessage.pleaseSelectPersonnel')
|
|
106
|
+
if (this.title) {
|
|
107
|
+
myTitle = this.title
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
myTitle,
|
|
111
|
+
isMobile
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
methods: {
|
|
115
|
+
closeDialog(selectNodeInfo) {
|
|
116
|
+
$emit(this, 'close', selectNodeInfo)
|
|
117
|
+
},
|
|
118
|
+
closedDialog() {
|
|
119
|
+
$emit(this, 'closed')
|
|
120
|
+
},
|
|
121
|
+
openDialog() {
|
|
122
|
+
$emit(this, 'open')
|
|
123
|
+
},
|
|
124
|
+
opendDialog() {
|
|
125
|
+
$emit(this, 'opend')
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
emits: ['close', 'closed', 'open', 'opend'],
|
|
137
129
|
}
|
|
138
130
|
</script>
|
|
@@ -118,7 +118,7 @@ import UserResult from './search-result.vue'
|
|
|
118
118
|
import utils from '../../utils/utils'
|
|
119
119
|
import departmentUserTreeMultiService from './department-user-tree-multi-service'
|
|
120
120
|
import memoryCacheUtils from '../../utils/memory-cache-utils'
|
|
121
|
-
import GroupUserMultipleTree from './group-user-multiple-tree
|
|
121
|
+
import GroupUserMultipleTree from './group-user-multiple-tree'
|
|
122
122
|
import GroupUser from './group-user/group-user.vue'
|
|
123
123
|
|
|
124
124
|
export default {
|
|
@@ -207,11 +207,6 @@ export default {
|
|
|
207
207
|
separator: {
|
|
208
208
|
type: String,
|
|
209
209
|
default: ','
|
|
210
|
-
},
|
|
211
|
-
// 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
|
|
212
|
-
limitFilterColumn: {
|
|
213
|
-
type: String,
|
|
214
|
-
default: 'code'
|
|
215
210
|
}
|
|
216
211
|
},
|
|
217
212
|
computed: {},
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
ref="userTree"
|
|
6
6
|
:height="height"
|
|
7
7
|
:department-info="departmentInfo"
|
|
8
|
-
:limit-filter-column="limitFilterColumn"
|
|
9
8
|
:select-user-info="selectUserInfo"
|
|
10
9
|
:search-field="searchField"
|
|
11
10
|
:separator="separator"
|
|
@@ -15,7 +14,6 @@
|
|
|
15
14
|
v-if="!multiple"
|
|
16
15
|
ref="userTree"
|
|
17
16
|
:height="height"
|
|
18
|
-
:limit-filter-column="limitFilterColumn"
|
|
19
17
|
:department-info="departmentInfo"
|
|
20
18
|
@result="result"
|
|
21
19
|
/>
|
|
@@ -30,53 +28,48 @@ export default {
|
|
|
30
28
|
name: 'InlineDepartmentUserTree',
|
|
31
29
|
components: {
|
|
32
30
|
InlineDepartmentUserSingleTree,
|
|
33
|
-
InlineDepartmentUserMultiTree
|
|
31
|
+
InlineDepartmentUserMultiTree,
|
|
34
32
|
},
|
|
35
33
|
props: {
|
|
36
34
|
// 是否是多选树,默认是true
|
|
37
35
|
multiple: {
|
|
38
36
|
type: Boolean,
|
|
39
|
-
default: true
|
|
37
|
+
default: true,
|
|
40
38
|
},
|
|
41
39
|
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
42
40
|
departmentInfo: {
|
|
43
41
|
type: Array,
|
|
44
|
-
default: null
|
|
42
|
+
default: null,
|
|
45
43
|
},
|
|
46
44
|
// 弹框的高度
|
|
47
45
|
height: {
|
|
48
46
|
type: String,
|
|
49
|
-
default: '300px'
|
|
47
|
+
default: '300px',
|
|
50
48
|
},
|
|
51
49
|
// 是否需要显示虚拟用户
|
|
52
50
|
isNeedVirtualUser: {
|
|
53
51
|
type: Boolean,
|
|
54
|
-
default: false
|
|
52
|
+
default: false,
|
|
55
53
|
},
|
|
56
54
|
// 多选用户树时,已选择用户id或登录名集合,多个之间以逗号隔开
|
|
57
55
|
selectUserInfo: {
|
|
58
56
|
type: [String, Number],
|
|
59
|
-
default: null
|
|
57
|
+
default: null,
|
|
60
58
|
},
|
|
61
59
|
// 移除用户时,用户属性名称:id、loginName、email、telephone,默认是loginName
|
|
62
60
|
searchField: {
|
|
63
61
|
type: String,
|
|
64
|
-
default: 'loginName'
|
|
62
|
+
default: 'loginName',
|
|
65
63
|
},
|
|
66
64
|
// 多选树时结果之间的分隔符,默认是逗号分隔
|
|
67
65
|
separator: {
|
|
68
66
|
type: String,
|
|
69
|
-
default: ','
|
|
67
|
+
default: ',',
|
|
70
68
|
},
|
|
71
|
-
// 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
|
|
72
|
-
limitFilterColumn: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: 'code'
|
|
75
|
-
}
|
|
76
69
|
},
|
|
77
70
|
data() {
|
|
78
71
|
return {
|
|
79
|
-
selectNodeInfo: null // 单选时,选择的用户信息
|
|
72
|
+
selectNodeInfo: null, // 单选时,选择的用户信息
|
|
80
73
|
}
|
|
81
74
|
},
|
|
82
75
|
methods: {
|
|
@@ -87,8 +80,8 @@ export default {
|
|
|
87
80
|
// 嵌入树,多选时,点击确定时调用的方法
|
|
88
81
|
confirmSelectUser() {
|
|
89
82
|
this.$refs.userTree.confirmSelectUser()
|
|
90
|
-
}
|
|
83
|
+
},
|
|
91
84
|
},
|
|
92
|
-
emits: ['result']
|
|
85
|
+
emits: ['result'],
|
|
93
86
|
}
|
|
94
87
|
</script>
|
|
@@ -6,7 +6,8 @@ const departmentUserTreeMultiService = {
|
|
|
6
6
|
filterAppendNodes(value) {
|
|
7
7
|
this.$http
|
|
8
8
|
.post(
|
|
9
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
9
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
10
|
+
'/component/organization-trees/search-users',
|
|
10
11
|
this.searchParam
|
|
11
12
|
)
|
|
12
13
|
.then((result) => {
|
|
@@ -16,7 +17,7 @@ const departmentUserTreeMultiService = {
|
|
|
16
17
|
this.$message({
|
|
17
18
|
showClose: true,
|
|
18
19
|
type: 'error',
|
|
19
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
20
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
20
21
|
})
|
|
21
22
|
return
|
|
22
23
|
}
|
|
@@ -26,7 +27,7 @@ const departmentUserTreeMultiService = {
|
|
|
26
27
|
this.$message({
|
|
27
28
|
showClose: true,
|
|
28
29
|
type: 'error',
|
|
29
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
30
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
30
31
|
})
|
|
31
32
|
return
|
|
32
33
|
}
|
|
@@ -45,7 +46,11 @@ const departmentUserTreeMultiService = {
|
|
|
45
46
|
// this.handleSelectUtil(item, localStorage)
|
|
46
47
|
// 查询最新用户信息替换,缓存为历史数据 数据库可能发生变化
|
|
47
48
|
this.$http
|
|
48
|
-
.get(
|
|
49
|
+
.get(
|
|
50
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
51
|
+
'/api/users?loginName=' +
|
|
52
|
+
item.loginName
|
|
53
|
+
)
|
|
49
54
|
.then((userDTO) => {
|
|
50
55
|
if (userDTO !== null) {
|
|
51
56
|
for (const dtoKey in userDTO) {
|
|
@@ -83,10 +88,14 @@ const departmentUserTreeMultiService = {
|
|
|
83
88
|
var param = {
|
|
84
89
|
parentId: data.id,
|
|
85
90
|
branchId: data.branchId,
|
|
86
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
91
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
87
92
|
}
|
|
88
93
|
this.$http
|
|
89
|
-
.post(
|
|
94
|
+
.post(
|
|
95
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
96
|
+
'/component/organization-trees/department-users',
|
|
97
|
+
param
|
|
98
|
+
)
|
|
90
99
|
.then((result) => {
|
|
91
100
|
// 更新当前点击的节点的子节点
|
|
92
101
|
this.$refs.deparmentUserTree.updateKeyChildren(data.nodeId, result)
|
|
@@ -113,13 +122,17 @@ const departmentUserTreeMultiService = {
|
|
|
113
122
|
// 表示没有加载过该父节点的子节点集合时
|
|
114
123
|
const param = {
|
|
115
124
|
parentId: parentId,
|
|
116
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
125
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
117
126
|
}
|
|
118
127
|
if (node.data) {
|
|
119
128
|
param.branchId = node.data.branchId
|
|
120
129
|
}
|
|
121
130
|
this.$http
|
|
122
|
-
.post(
|
|
131
|
+
.post(
|
|
132
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
133
|
+
'/component/organization-trees/department-users',
|
|
134
|
+
param
|
|
135
|
+
)
|
|
123
136
|
.then((data) => {
|
|
124
137
|
resolve(data)
|
|
125
138
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
@@ -157,14 +170,19 @@ const departmentUserTreeMultiService = {
|
|
|
157
170
|
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
158
171
|
const param = {
|
|
159
172
|
parentId: parentId,
|
|
160
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
173
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
161
174
|
}
|
|
162
175
|
this.$http
|
|
163
|
-
.post(
|
|
176
|
+
.post(
|
|
177
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
178
|
+
'/component/organization-trees/department-users',
|
|
179
|
+
param
|
|
180
|
+
)
|
|
164
181
|
.then((children) => {
|
|
165
182
|
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
166
183
|
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
167
|
-
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded =
|
|
184
|
+
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded =
|
|
185
|
+
true
|
|
168
186
|
}
|
|
169
187
|
if (isSearch) {
|
|
170
188
|
// 查询时处理
|
|
@@ -183,23 +201,30 @@ const departmentUserTreeMultiService = {
|
|
|
183
201
|
},
|
|
184
202
|
// 加载指定部门节点
|
|
185
203
|
loadPointDepartments() {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
204
|
+
this.$http
|
|
205
|
+
.post(
|
|
206
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
207
|
+
'/component/organization-trees/point-department-users',
|
|
208
|
+
this.departmentInfo
|
|
209
|
+
)
|
|
210
|
+
.then((children) => {
|
|
211
|
+
this.$refs.deparmentUserTree.updateKeyChildren(
|
|
212
|
+
this.tenantNodeId,
|
|
213
|
+
children
|
|
214
|
+
)
|
|
215
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
216
|
+
this.$refs.deparmentUserTree.store.nodesMap[
|
|
217
|
+
this.tenantNodeId
|
|
218
|
+
].expanded = true
|
|
219
|
+
}
|
|
220
|
+
})
|
|
197
221
|
},
|
|
198
222
|
getChildrenDepartmentUsers(childrenDepartmentIds) {
|
|
199
223
|
return new Promise((resolve, reject) => {
|
|
200
224
|
this.$http
|
|
201
225
|
.post(
|
|
202
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
226
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
227
|
+
'/component/organization-trees/user-in-departments',
|
|
203
228
|
childrenDepartmentIds
|
|
204
229
|
)
|
|
205
230
|
.then((users) => {
|
|
@@ -240,7 +265,7 @@ const departmentUserTreeMultiService = {
|
|
|
240
265
|
const tenantNodeId = -1
|
|
241
266
|
var allUser = {
|
|
242
267
|
id: tenantNodeId,
|
|
243
|
-
name: '所有用户'
|
|
268
|
+
name: '所有用户',
|
|
244
269
|
}
|
|
245
270
|
return allUser
|
|
246
271
|
},
|
|
@@ -250,7 +275,7 @@ const departmentUserTreeMultiService = {
|
|
|
250
275
|
const tenantNodeId = -1
|
|
251
276
|
var allUser = {
|
|
252
277
|
id: tenantNodeId,
|
|
253
|
-
name: '所有工作组人员'
|
|
278
|
+
name: '所有工作组人员',
|
|
254
279
|
}
|
|
255
280
|
return allUser
|
|
256
281
|
},
|
|
@@ -279,6 +304,6 @@ const departmentUserTreeMultiService = {
|
|
|
279
304
|
resolve(selectDepts)
|
|
280
305
|
}
|
|
281
306
|
})
|
|
282
|
-
}
|
|
307
|
+
},
|
|
283
308
|
}
|
|
284
309
|
export default departmentUserTreeMultiService
|
|
@@ -7,7 +7,8 @@ const departmentUserTreeSingleService = {
|
|
|
7
7
|
filterAppendNodes(value) {
|
|
8
8
|
this.$http
|
|
9
9
|
.post(
|
|
10
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
10
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
11
|
+
'/component/organization-trees/search-users',
|
|
11
12
|
this.searchParam
|
|
12
13
|
)
|
|
13
14
|
.then((result) => {
|
|
@@ -18,7 +19,7 @@ const departmentUserTreeSingleService = {
|
|
|
18
19
|
this.$message({
|
|
19
20
|
showClose: true,
|
|
20
21
|
type: 'error',
|
|
21
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
22
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
22
23
|
})
|
|
23
24
|
return
|
|
24
25
|
}
|
|
@@ -28,7 +29,7 @@ const departmentUserTreeSingleService = {
|
|
|
28
29
|
this.$message({
|
|
29
30
|
showClose: true,
|
|
30
31
|
type: 'error',
|
|
31
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
32
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
32
33
|
})
|
|
33
34
|
return
|
|
34
35
|
}
|
|
@@ -47,7 +48,11 @@ const departmentUserTreeSingleService = {
|
|
|
47
48
|
// this.handleSelectUtil(item, localStorage)
|
|
48
49
|
// 查询最新用户信息替换,缓存为历史数据 数据库可能发生变化
|
|
49
50
|
this.$http
|
|
50
|
-
.get(
|
|
51
|
+
.get(
|
|
52
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
53
|
+
'/api/users?loginName=' +
|
|
54
|
+
item.loginName
|
|
55
|
+
)
|
|
51
56
|
.then((userDTO) => {
|
|
52
57
|
if (userDTO !== null) {
|
|
53
58
|
for (const dtoKey in userDTO) {
|
|
@@ -95,13 +100,17 @@ const departmentUserTreeSingleService = {
|
|
|
95
100
|
// 表示没有加载过该父节点的子节点集合时
|
|
96
101
|
const param = {
|
|
97
102
|
parentId: parentId,
|
|
98
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
103
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
99
104
|
}
|
|
100
105
|
if (node.data) {
|
|
101
106
|
param.branchId = node.data.branchId
|
|
102
107
|
}
|
|
103
108
|
this.$http
|
|
104
|
-
.post(
|
|
109
|
+
.post(
|
|
110
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
111
|
+
'/component/organization-trees/department-users',
|
|
112
|
+
param
|
|
113
|
+
)
|
|
105
114
|
.then((data) => {
|
|
106
115
|
resolve(data)
|
|
107
116
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
@@ -125,30 +134,41 @@ const departmentUserTreeSingleService = {
|
|
|
125
134
|
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
126
135
|
const param = {
|
|
127
136
|
parentId: parentId,
|
|
128
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
137
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
129
138
|
}
|
|
130
139
|
this.$http
|
|
131
|
-
.post(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
140
|
+
.post(
|
|
141
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
142
|
+
'/component/organization-trees/department-users',
|
|
143
|
+
param
|
|
144
|
+
)
|
|
145
|
+
.then((children) => {
|
|
146
|
+
if (this.$refs.deparmentUserTree) {
|
|
147
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
148
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
136
149
|
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
137
|
-
|
|
138
|
-
|
|
150
|
+
}
|
|
151
|
+
}
|
|
139
152
|
})
|
|
140
153
|
},
|
|
141
154
|
loadPointDepartments() {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.$refs.deparmentUserTree.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
155
|
+
this.$http
|
|
156
|
+
.post(
|
|
157
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
158
|
+
'/component/organization-trees/point-department-users',
|
|
159
|
+
this.departmentInfo
|
|
160
|
+
)
|
|
161
|
+
.then((children) => {
|
|
162
|
+
this.$refs.deparmentUserTree.updateKeyChildren(
|
|
163
|
+
this.tenantNodeId,
|
|
164
|
+
children
|
|
165
|
+
)
|
|
166
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
167
|
+
this.$refs.deparmentUserTree.store.nodesMap[
|
|
168
|
+
this.tenantNodeId
|
|
169
|
+
].expanded = true
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
},
|
|
153
173
|
}
|
|
154
174
|
export default departmentUserTreeSingleService
|