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