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.
Files changed (68) hide show
  1. package/lib/{401-b8934d65.js → 401-c46a3b20.js} +1 -1
  2. package/lib/{404-743a4631.js → 404-c35a937a.js} +1 -1
  3. package/lib/{iframe-page-5e102433.js → iframe-page-10e94ddd.js} +1 -1
  4. package/lib/{index-a0c08bb5.js → index-f92e8ddb.js} +8140 -8005
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +97 -97
  8. package/lib/{tab-content-iframe-index-e9b465bf.js → tab-content-iframe-index-8113610a.js} +1 -1
  9. package/lib/{tab-content-index-313404d0.js → tab-content-index-3b7f4fa8.js} +1 -1
  10. package/lib/{tache-subprocess-history-7d87cd77.js → tache-subprocess-history-75f40d2a.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree/src/department-tree.vue +130 -123
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +435 -466
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +335 -342
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +18 -11
  16. package/packages/department-tree-inline/src/department-tree-service.js +10 -11
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +103 -75
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +256 -225
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +98 -75
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +112 -115
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +85 -88
  22. package/packages/department-user-tree/src/department-user-tree.vue +127 -119
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +6 -1
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +5 -0
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +18 -11
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +26 -51
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +25 -45
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +97 -90
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +28 -32
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +103 -75
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +282 -224
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +58 -51
  33. package/packages/fs-preview/src/fs-preview.vue +20 -2
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +30 -7
  35. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
  36. package/packages/fs-upload-new/src/fs-preview-new.vue +27 -15
  37. package/packages/organization-input/src/organization-input.vue +34 -12
  38. package/packages/super-grid/src/apis.js +25 -4
  39. package/packages/super-grid/src/components/grid-radio-input.vue +104 -0
  40. package/packages/super-grid/src/dynamic-input.vue +94 -16
  41. package/packages/super-grid/src/formValidatorUtil.js +7 -2
  42. package/packages/super-grid/src/normal-column-content.vue +2 -1
  43. package/packages/super-grid/src/row-operation.vue +23 -13
  44. package/packages/super-grid/src/search-form-item.vue +444 -460
  45. package/packages/super-grid/src/super-grid.vue +73 -45
  46. package/packages/super-grid/src/utils.js +28 -9
  47. package/packages/super-icon/src/index.vue +4 -1
  48. package/packages/utils/value-set.js +25 -33
  49. package/packages/workgroup-tree/src/workgroup-tree.vue +117 -110
  50. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +6 -1
  51. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +103 -75
  52. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +229 -208
  53. package/src/api/sso-service.js +6 -5
  54. package/src/store/modules/table.js +0 -1
  55. package/src/styles/theme/dark-blue/sidebar.scss +9 -0
  56. package/src/styles/theme/gray/sidebar.scss +9 -8
  57. package/src/styles/theme/green/sidebar.scss +10 -0
  58. package/src/styles/theme/ocean-blue/sidebar.scss +9 -0
  59. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +9 -0
  60. package/src/utils/common-util.js +2 -1
  61. package/src/utils/insert_css.js +1 -1
  62. package/src/utils/util.js +19 -0
  63. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  64. package/src/views/dsc-component/Sidebar/index.vue +36 -18
  65. package/src/views/layout/components/Menubar/Item.vue +0 -9
  66. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  67. package/src/views/layout/components/Sidebar/Item.vue +4 -1
  68. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
@@ -1,130 +1,138 @@
1
1
  <template>
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>
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
- 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'],
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: {},
@@ -160,6 +160,11 @@ export default {
160
160
  isNeedVirtualUser: {
161
161
  type: Boolean,
162
162
  default: false
163
+ },
164
+ // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
165
+ limitFilterColumn: {
166
+ type: String,
167
+ default: 'code'
163
168
  }
164
169
  },
165
170
  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
- 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
- })
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.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
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