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.
Files changed (66) hide show
  1. package/lib/{401-d4decb58.js → 401-c55bdcf2.js} +1 -1
  2. package/lib/{404-74cc4843.js → 404-c1dbd5e1.js} +1 -1
  3. package/lib/{iframe-page-c7973b9d.js → iframe-page-917912ae.js} +1 -1
  4. package/lib/{index-c739d5d5.js → index-6ec53ef7.js} +8463 -8490
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +99 -99
  8. package/lib/{tab-content-iframe-index-18ef0e35.js → tab-content-iframe-index-46a76242.js} +1 -1
  9. package/lib/{tab-content-index-72db2984.js → tab-content-index-132379e6.js} +1 -1
  10. package/lib/{tache-subprocess-history-4d3623ca.js → tache-subprocess-history-384455d6.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree/src/department-tree.vue +123 -130
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
  16. package/packages/department-tree-inline/src/department-tree-service.js +11 -10
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
  22. package/packages/department-user-tree/src/department-user-tree.vue +119 -127
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
  33. package/packages/fs-preview/src/fs-preview.vue +2 -20
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
  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 +15 -27
  37. package/packages/index.js +4 -4
  38. package/packages/organization-input/src/organization-input.vue +12 -34
  39. package/packages/super-grid/src/apis.js +4 -21
  40. package/packages/super-grid/src/dynamic-input.vue +12 -1
  41. package/packages/super-grid/src/normal-column-content.vue +1 -2
  42. package/packages/super-grid/src/row-operation.vue +13 -23
  43. package/packages/super-grid/src/super-grid.vue +42 -51
  44. package/packages/super-grid/src/utils.js +8 -13
  45. package/packages/super-icon/src/index.vue +1 -4
  46. package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
  47. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
  49. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
  50. package/src/api/sso-service.js +5 -6
  51. package/src/directives/permission/index.js +4 -4
  52. package/src/index.js +3 -38
  53. package/src/store/modules/table.js +1 -0
  54. package/src/styles/theme/dark-blue/sidebar.scss +0 -9
  55. package/src/styles/theme/gray/sidebar.scss +8 -9
  56. package/src/styles/theme/green/sidebar.scss +0 -10
  57. package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
  58. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
  59. package/src/utils/insert_css.js +1 -1
  60. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  61. package/src/views/dsc-component/Sidebar/index.vue +18 -36
  62. package/src/views/layout/components/Menubar/Item.vue +9 -0
  63. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  64. package/src/views/layout/components/Sidebar/Item.vue +1 -4
  65. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  66. package/vite.config.js +1 -1
@@ -1,138 +1,130 @@
1
1
  <template>
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>
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 { $emit } from '../../utils/gogocodeTransfer'
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 { isMobileBrowser } from '../../../src/utils/common-util'
46
+ import {isMobileBrowser} from '../../../src/utils/common-util'
50
47
 
51
48
  export default {
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']
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.vue'
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: {},
@@ -160,11 +160,6 @@ export default {
160
160
  isNeedVirtualUser: {
161
161
  type: Boolean,
162
162
  default: false
163
- },
164
- // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
165
- limitFilterColumn: {
166
- type: String,
167
- default: 'code'
168
163
  }
169
164
  },
170
165
  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 + '/component/organization-trees/search-users',
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(window.$vueApp.config.globalProperties.baseAPI + '/api/users?loginName=' + item.loginName)
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(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
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(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
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(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
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 = true
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
- 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
- })
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 + '/component/organization-trees/user-in-departments',
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 + '/component/organization-trees/search-users',
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(window.$vueApp.config.globalProperties.baseAPI + '/api/users?loginName=' + item.loginName)
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(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
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(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
132
- .then((children) => {
133
- if (this.$refs.deparmentUserTree) {
134
- this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
135
- if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
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
- 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
- }
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