agilebuilder-ui 1.1.36 → 1.1.37-sit2
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-b8934d65.js → 401-c46a3b20.js} +1 -1
- package/lib/{404-743a4631.js → 404-c35a937a.js} +1 -1
- package/lib/{iframe-page-5e102433.js → iframe-page-10e94ddd.js} +1 -1
- package/lib/{index-a0c08bb5.js → index-f92e8ddb.js} +8140 -8005
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +97 -97
- package/lib/{tab-content-iframe-index-e9b465bf.js → tab-content-iframe-index-8113610a.js} +1 -1
- package/lib/{tab-content-index-313404d0.js → tab-content-index-3b7f4fa8.js} +1 -1
- package/lib/{tache-subprocess-history-7d87cd77.js → tache-subprocess-history-75f40d2a.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 +112 -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 +26 -51
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +25 -45
- 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-preview/src/fs-preview.vue +20 -2
- package/packages/fs-upload-list/src/fs-upload-list.vue +30 -7
- 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 +27 -15
- package/packages/organization-input/src/organization-input.vue +34 -12
- package/packages/super-grid/src/apis.js +25 -4
- package/packages/super-grid/src/components/grid-radio-input.vue +104 -0
- package/packages/super-grid/src/dynamic-input.vue +94 -16
- package/packages/super-grid/src/formValidatorUtil.js +7 -2
- package/packages/super-grid/src/normal-column-content.vue +2 -1
- package/packages/super-grid/src/row-operation.vue +23 -13
- package/packages/super-grid/src/search-form-item.vue +444 -460
- package/packages/super-grid/src/super-grid.vue +73 -45
- package/packages/super-grid/src/utils.js +28 -9
- package/packages/super-icon/src/index.vue +4 -1
- package/packages/utils/value-set.js +25 -33
- 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/dark-blue/sidebar.scss +9 -0
- package/src/styles/theme/gray/sidebar.scss +9 -8
- package/src/styles/theme/green/sidebar.scss +10 -0
- package/src/styles/theme/ocean-blue/sidebar.scss +9 -0
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +9 -0
- package/src/utils/common-util.js +2 -1
- package/src/utils/insert_css.js +1 -1
- package/src/utils/util.js +19 -0
- 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,23 @@ const departmentUserTreeMultiService = {
|
|
|
201
183
|
},
|
|
202
184
|
// 加载指定部门节点
|
|
203
185
|
loadPointDepartments() {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
.
|
|
211
|
-
|
|
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
|
+
debugger
|
|
187
|
+
let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
|
|
188
|
+
if (this.limitFilterColumn) {
|
|
189
|
+
url += '/' + this.limitFilterColumn
|
|
190
|
+
}
|
|
191
|
+
this.$http.post(url, this.departmentInfo).then((children) => {
|
|
192
|
+
this.$refs.deparmentUserTree.updateKeyChildren(this.tenantNodeId, children)
|
|
193
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
194
|
+
this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId].expanded = true
|
|
195
|
+
}
|
|
196
|
+
})
|
|
221
197
|
},
|
|
222
198
|
getChildrenDepartmentUsers(childrenDepartmentIds) {
|
|
223
199
|
return new Promise((resolve, reject) => {
|
|
224
200
|
this.$http
|
|
225
201
|
.post(
|
|
226
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
227
|
-
'/component/organization-trees/user-in-departments',
|
|
202
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/user-in-departments',
|
|
228
203
|
childrenDepartmentIds
|
|
229
204
|
)
|
|
230
205
|
.then((users) => {
|
|
@@ -265,7 +240,7 @@ const departmentUserTreeMultiService = {
|
|
|
265
240
|
const tenantNodeId = -1
|
|
266
241
|
var allUser = {
|
|
267
242
|
id: tenantNodeId,
|
|
268
|
-
name: '所有用户'
|
|
243
|
+
name: '所有用户'
|
|
269
244
|
}
|
|
270
245
|
return allUser
|
|
271
246
|
},
|
|
@@ -275,7 +250,7 @@ const departmentUserTreeMultiService = {
|
|
|
275
250
|
const tenantNodeId = -1
|
|
276
251
|
var allUser = {
|
|
277
252
|
id: tenantNodeId,
|
|
278
|
-
name: '所有工作组人员'
|
|
253
|
+
name: '所有工作组人员'
|
|
279
254
|
}
|
|
280
255
|
return allUser
|
|
281
256
|
},
|
|
@@ -304,6 +279,6 @@ const departmentUserTreeMultiService = {
|
|
|
304
279
|
resolve(selectDepts)
|
|
305
280
|
}
|
|
306
281
|
})
|
|
307
|
-
}
|
|
282
|
+
}
|
|
308
283
|
}
|
|
309
284
|
export default departmentUserTreeMultiService
|
|
@@ -7,8 +7,7 @@ const departmentUserTreeSingleService = {
|
|
|
7
7
|
filterAppendNodes(value) {
|
|
8
8
|
this.$http
|
|
9
9
|
.post(
|
|
10
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
11
|
-
'/component/organization-trees/search-users',
|
|
10
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/search-users',
|
|
12
11
|
this.searchParam
|
|
13
12
|
)
|
|
14
13
|
.then((result) => {
|
|
@@ -19,7 +18,7 @@ const departmentUserTreeSingleService = {
|
|
|
19
18
|
this.$message({
|
|
20
19
|
showClose: true,
|
|
21
20
|
type: 'error',
|
|
22
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
21
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
23
22
|
})
|
|
24
23
|
return
|
|
25
24
|
}
|
|
@@ -29,7 +28,7 @@ const departmentUserTreeSingleService = {
|
|
|
29
28
|
this.$message({
|
|
30
29
|
showClose: true,
|
|
31
30
|
type: 'error',
|
|
32
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
31
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
33
32
|
})
|
|
34
33
|
return
|
|
35
34
|
}
|
|
@@ -48,11 +47,7 @@ const departmentUserTreeSingleService = {
|
|
|
48
47
|
// this.handleSelectUtil(item, localStorage)
|
|
49
48
|
// 查询最新用户信息替换,缓存为历史数据 数据库可能发生变化
|
|
50
49
|
this.$http
|
|
51
|
-
.get(
|
|
52
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
53
|
-
'/api/users?loginName=' +
|
|
54
|
-
item.loginName
|
|
55
|
-
)
|
|
50
|
+
.get(window.$vueApp.config.globalProperties.baseAPI + '/api/users?loginName=' + item.loginName)
|
|
56
51
|
.then((userDTO) => {
|
|
57
52
|
if (userDTO !== null) {
|
|
58
53
|
for (const dtoKey in userDTO) {
|
|
@@ -100,17 +95,13 @@ const departmentUserTreeSingleService = {
|
|
|
100
95
|
// 表示没有加载过该父节点的子节点集合时
|
|
101
96
|
const param = {
|
|
102
97
|
parentId: parentId,
|
|
103
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
98
|
+
needVirtualUser: this.isNeedVirtualUser
|
|
104
99
|
}
|
|
105
100
|
if (node.data) {
|
|
106
101
|
param.branchId = node.data.branchId
|
|
107
102
|
}
|
|
108
103
|
this.$http
|
|
109
|
-
.post(
|
|
110
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
111
|
-
'/component/organization-trees/department-users',
|
|
112
|
-
param
|
|
113
|
-
)
|
|
104
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
|
|
114
105
|
.then((data) => {
|
|
115
106
|
resolve(data)
|
|
116
107
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
@@ -134,41 +125,30 @@ const departmentUserTreeSingleService = {
|
|
|
134
125
|
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
135
126
|
const param = {
|
|
136
127
|
parentId: parentId,
|
|
137
|
-
needVirtualUser: this.isNeedVirtualUser
|
|
128
|
+
needVirtualUser: this.isNeedVirtualUser
|
|
138
129
|
}
|
|
139
130
|
this.$http
|
|
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]) {
|
|
149
|
-
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
})
|
|
153
|
-
},
|
|
154
|
-
loadPointDepartments() {
|
|
155
|
-
this.$http
|
|
156
|
-
.post(
|
|
157
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
158
|
-
'/component/organization-trees/point-department-users',
|
|
159
|
-
this.departmentInfo
|
|
160
|
-
)
|
|
131
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
|
|
161
132
|
.then((children) => {
|
|
162
|
-
this.$refs.deparmentUserTree
|
|
163
|
-
this.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
this.$refs.deparmentUserTree.store.nodesMap[
|
|
168
|
-
this.tenantNodeId
|
|
169
|
-
].expanded = true
|
|
133
|
+
if (this.$refs.deparmentUserTree) {
|
|
134
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
135
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
136
|
+
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
137
|
+
}
|
|
170
138
|
}
|
|
171
139
|
})
|
|
172
140
|
},
|
|
141
|
+
loadPointDepartments() {
|
|
142
|
+
let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
|
|
143
|
+
if (this.limitFilterColumn) {
|
|
144
|
+
url += '/' + this.limitFilterColumn
|
|
145
|
+
}
|
|
146
|
+
this.$http.post(url, this.departmentInfo).then((children) => {
|
|
147
|
+
this.$refs.deparmentUserTree.updateKeyChildren(this.tenantNodeId, children)
|
|
148
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
149
|
+
this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId].expanded = true
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
}
|
|
173
153
|
}
|
|
174
154
|
export default departmentUserTreeSingleService
|