agilebuilder-ui 1.1.48 → 1.1.49

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 (55) hide show
  1. package/lib/{401-64e37702.js → 401-a94cd05b.js} +1 -1
  2. package/lib/{404-7d89180e.js → 404-eb21244b.js} +1 -1
  3. package/lib/{iframe-page-4c8bc1d5.js → iframe-page-7add4333.js} +1 -1
  4. package/lib/{index-5c1112e8.js → index-7a601895.js} +19125 -19069
  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-0a36be80.js → tab-content-iframe-index-483b398c.js} +1 -1
  9. package/lib/{tab-content-index-9a271908.js → tab-content-index-0862686f.js} +1 -1
  10. package/lib/{tache-subprocess-history-93d013b2.js → tache-subprocess-history-c80e8ed2.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +42 -34
  13. package/packages/department-tree-inline/src/department-single-tree-inline.vue +53 -42
  14. package/packages/department-tree-inline/src/department-tree-service.js +17 -11
  15. package/packages/department-tree-inline/src/search-result.vue +187 -219
  16. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +17 -4
  17. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +52 -43
  18. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +52 -42
  19. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +23 -13
  20. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +9 -5
  21. package/packages/department-user-tree-inline/src/group-user-tree-service.js +17 -11
  22. package/packages/department-user-tree-inline/src/search-result.vue +207 -220
  23. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +14 -3
  24. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +7 -2
  25. package/packages/empty-state/index.vue +28 -0
  26. package/packages/fs-preview/src/fs-preview.vue +7 -2
  27. package/packages/fs-upload/src/fs-upload-multi.vue +6 -4
  28. package/packages/fs-upload/src/fs-upload-single.vue +7 -6
  29. package/packages/fs-upload/src/fs-upload.vue +3 -1
  30. package/packages/fs-upload/src/see-big-picture.vue +3 -0
  31. package/packages/fs-upload-list/src/fs-upload-list.vue +2 -1
  32. package/packages/fs-upload-new/src/fs-button-upload.vue +3 -3
  33. package/packages/fs-upload-new/src/fs-drag-upload.vue +3 -3
  34. package/packages/fs-upload-new/src/fs-preview-new.vue +8 -5
  35. package/packages/plugins/export-data-new.js +2 -0
  36. package/packages/super-grid/src/components/grid-icon.vue +6 -3
  37. package/packages/super-grid/src/normal-column-content.vue +1 -1
  38. package/packages/super-grid/src/super-grid.vue +4 -4
  39. package/packages/utils/utils.js +27 -9
  40. package/packages/workgroup-tree-inline/src/search-result.vue +2 -1
  41. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
  42. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +16 -5
  43. package/packages/workgroup-user-tree-inline/src/search-result.vue +2 -1
  44. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +30 -24
  45. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +49 -37
  46. package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +281 -222
  47. package/src/i18n/langs/cn.js +3 -3
  48. package/src/i18n/langs/en.js +3 -3
  49. package/src/styles/index.scss +26 -0
  50. package/src/utils/auth.js +10 -7
  51. package/src/utils/chat-ai-util.ts +3 -3
  52. package/src/utils/common-util.js +22 -0
  53. package/src/utils/global-prop.js +17 -0
  54. package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
  55. package/src/views/dsc-component/tabs/tab-content.vue +6 -0
@@ -1,238 +1,206 @@
1
1
  <template>
2
- <div style="height: 100%">
3
- <el-table
4
- ref="superGrid"
5
- :data="gridData"
6
- :max-height="myHeight"
7
- :row-class-name="tableRowClassName"
8
- border
9
- fit
10
- row-key="id"
11
- @row-click="rowClick"
12
- @row-dblclick="rowDblclick"
13
- >
14
- <el-table-column v-if="multiple === false" width="60">
15
- <template v-slot="scope">
16
- <el-radio
17
- v-model="singleUserIndex"
18
- :label="scope.$index"
19
- @change="selectUser"
20
- >
21
- {{ scope.$index + 1 }}
22
- </el-radio>
23
- </template>
24
- </el-table-column>
25
- <el-table-column
26
- v-if="multiple && isSearchResult"
27
- :label="$t('imatrixUIPublicModel.edit')"
28
- align="center"
29
- fixed
30
- width="60px"
31
- >
32
- <template v-slot="scope">
33
- <div>
34
- <el-button
35
- :disabled="isDisable(scope.row)"
36
- :icon="ElIconPlus"
37
- circle
38
- size="default"
39
- type="primary"
40
- @click="addUser(scope.$index, scope.row)"
41
- />
42
- </div>
43
- </template>
44
- </el-table-column>
45
- <el-table-column
46
- v-if="multiple"
47
- :label="$t('superGrid.index')"
48
- align="center"
49
- width="60px"
50
- >
51
- <template v-slot="scope">
52
- {{ scope.$index + 1 }}
53
- </template>
54
- </el-table-column>
55
- <el-table-column
56
- v-if="multiple && !isSearchResult"
57
- :label="$t('imatrixUIPublicModel.edit')"
58
- align="center"
59
- fixed="right"
60
- width="60px"
61
- >
62
- <template v-slot="scope">
63
- <div>
64
- <el-button
65
- :icon="ElIconDelete"
66
- circle
67
- size="default"
68
- type="danger"
69
- @click="removeUser(scope.$index, scope.row)"
70
- />
71
- </div>
72
- </template>
73
- </el-table-column>
74
- <el-table-column
75
- :label="$t('departmentTreeInline.name')"
76
- :width="170"
77
- prop="name"
78
- >
79
- <template v-slot="scope">
80
- <span :title="scope.row.showName" class="ellipsis cell--span">{{
81
- scope.row.showName
82
- }}</span>
83
- </template>
84
- </el-table-column>
85
- <el-table-column
86
- :label="$t('departmentTreeInline.code')"
87
- :width="140"
88
- prop="code"
89
- >
90
- <template v-slot="scope">
91
- <span :title="scope.row.code" class="ellipsis cell--span">{{
92
- scope.row.code
93
- }}</span>
94
- </template>
95
- </el-table-column>
96
- <el-table-column
97
- :label="$t('departmentTreeInline.namePath')"
98
- :width="140"
99
- prop="namePath"
100
- >
101
- <template v-slot="scope">
102
- <span :title="scope.row.namePath" class="ellipsis cell--span">{{
103
- scope.row.namePath
104
- }}</span>
105
- </template>
106
- </el-table-column>
107
- <template v-slot:empty>
108
- <div class="roleQuery_center_area" style="height: 395px">
109
- <div
110
- class="roleQuery_notAvailable"
111
- style="width: 120px; height: 120px"
112
- >
113
- <span class="roleQuery_notAvailable_text">{{
114
- $t('imatrixUIPromptMessage.NoContent')
115
- }}</span>
116
- </div>
117
- </div>
118
- </template>
119
- </el-table>
120
- </div>
2
+ <div style="height: 100%">
3
+ <el-table
4
+ ref="superGrid"
5
+ :data="gridData"
6
+ :max-height="myHeight"
7
+ :row-class-name="tableRowClassName"
8
+ border
9
+ fit
10
+ row-key="id"
11
+ @row-click="rowClick"
12
+ @row-dblclick="rowDblclick"
13
+ >
14
+ <el-table-column v-if="multiple === false" width="60">
15
+ <template v-slot="scope">
16
+ <el-radio v-model="singleUserIndex" :label="scope.$index" @change="selectUser">
17
+ {{ scope.$index + 1 }}
18
+ </el-radio>
19
+ </template>
20
+ </el-table-column>
21
+ <el-table-column
22
+ v-if="multiple && isSearchResult"
23
+ :label="$t('imatrixUIPublicModel.edit')"
24
+ align="center"
25
+ fixed
26
+ width="60px"
27
+ >
28
+ <template v-slot="scope">
29
+ <div>
30
+ <el-button
31
+ :disabled="isDisable(scope.row)"
32
+ :icon="ElIconPlus"
33
+ circle
34
+ size="default"
35
+ type="primary"
36
+ @click="addUser(scope.$index, scope.row)"
37
+ />
38
+ </div>
39
+ </template>
40
+ </el-table-column>
41
+ <el-table-column v-if="multiple" :label="$t('superGrid.index')" align="center" width="60px">
42
+ <template v-slot="scope">
43
+ {{ scope.$index + 1 }}
44
+ </template>
45
+ </el-table-column>
46
+ <el-table-column
47
+ v-if="multiple && !isSearchResult"
48
+ :label="$t('imatrixUIPublicModel.edit')"
49
+ align="center"
50
+ fixed="right"
51
+ width="60px"
52
+ >
53
+ <template v-slot="scope">
54
+ <div>
55
+ <el-button
56
+ :icon="ElIconDelete"
57
+ circle
58
+ size="default"
59
+ type="danger"
60
+ @click="removeUser(scope.$index, scope.row)"
61
+ />
62
+ </div>
63
+ </template>
64
+ </el-table-column>
65
+ <el-table-column :label="$t('departmentTreeInline.name')" :width="170" prop="name">
66
+ <template v-slot="scope">
67
+ <span :title="scope.row.showName" class="ellipsis cell--span">{{ scope.row.showName }}</span>
68
+ </template>
69
+ </el-table-column>
70
+ <el-table-column :label="$t('departmentTreeInline.code')" :width="140" prop="code">
71
+ <template v-slot="scope">
72
+ <span :title="scope.row.code" class="ellipsis cell--span">{{ scope.row.code }}</span>
73
+ </template>
74
+ </el-table-column>
75
+ <el-table-column :label="$t('departmentTreeInline.namePath')" :width="140" prop="namePath">
76
+ <template v-slot="scope">
77
+ <span :title="scope.row.namePath" class="ellipsis cell--span">{{ scope.row.namePath }}</span>
78
+ </template>
79
+ </el-table-column>
80
+ <template v-slot:empty>
81
+ <div class="empty_center_area" style="height: 395px">
82
+ <div class="empty_notAvailable" style="width: 120px; height: 120px">
83
+ <span class="empty_notAvailable_text">{{ $t('imatrixUIPromptMessage.NoContent') }}</span>
84
+ </div>
85
+ </div>
86
+ </template>
87
+ </el-table>
88
+ </div>
121
89
  </template>
122
90
 
123
91
  <script>
124
- import {Delete as ElIconDelete, Plus as ElIconPlus} from '@element-plus/icons-vue'
125
- import {$emit} from '../../utils/gogocodeTransfer'
92
+ import { Delete as ElIconDelete, Plus as ElIconPlus } from '@element-plus/icons-vue'
93
+ import { $emit } from '../../utils/gogocodeTransfer'
126
94
 
127
95
  export default {
128
- data() {
129
- let tableHeight = this.height
130
- tableHeight = tableHeight.substring(0, tableHeight.indexOf('px'))
131
- const myHeight = parseInt(tableHeight) + 30 + 'px'
132
- return {
133
- // 选中的用户序号
134
- singleUserIndex: null,
135
- selectedUser: null,
136
- myHeight,
137
- ElIconPlus,
138
- ElIconDelete,
139
- }
140
- },
141
- name: 'UserResult',
142
- props: {
143
- gridData: {
144
- type: Array,
145
- default: null,
146
- },
147
- containBranch: {
148
- type: Boolean,
149
- default: false,
150
- },
151
- multiple: {
152
- type: Boolean,
153
- default: false,
154
- },
155
- // 多选树时是否是查询结果列表,用于控制“操作”列按钮的显示
156
- isSearchResult: {
157
- type: Boolean,
158
- default: true,
159
- },
160
- height: {
161
- type: String,
162
- default: '300px',
163
- },
164
- selectResult: {
165
- type: Array,
166
- default: function () {
167
- return []
168
- },
169
- },
170
- },
171
- created() {
172
- console.log('search-result---', this.gridData)
173
- },
174
- methods: {
175
- // 单选树时,点击行事件
176
- // rowClick(row, column, event) {
177
- // this.selectedUser = row
178
- // // this.$emit('rowClick', row, column, event)
179
- // },
180
- // 移除用户
181
- removeUser(index, row) {
182
- $emit(this, 'removeUser', index, row)
183
- },
184
- // 添加用户
185
- addUser(index, row) {
186
- $emit(this, 'addUser', index, row)
187
- },
188
- selectUser(selectVal) {
189
- // console.log('selectUser', selectVal)
190
- $emit(this, 'selectResult', this.gridData[selectVal])
191
- },
192
- rowClick(row, column, event) {
193
- this.singleUserIndex = row.row_index
194
- $emit(this, 'selectResult', row)
195
- },
196
- tableRowClassName({row, rowIndex}) {
197
- row.row_index = rowIndex
198
- },
199
- rowDblclick(row, column, event) {
200
- if (this.multiple) {
201
- $emit(this, 'addUser', null, row)
202
- } else {
203
- $emit(this, 'resultRowDblclick', row)
204
- }
205
- },
206
- isDisable(row) {
207
- if (this.selectResult) {
208
- const containUsers = this.selectResult.filter(this.filterDept(row))
209
- if (containUsers && containUsers.length > 0) {
210
- return true
211
- }
212
- }
213
- return false
214
- },
215
- // 判断用户是否存在的过滤器
216
- filterDept(queryDept) {
217
- return (dept) => {
218
- return dept.id === queryDept.id
219
- }
220
- },
221
- },
222
- emits: ['removeUser', 'addUser', 'selectResult', 'resultRowDblclick'],
96
+ data() {
97
+ let tableHeight = this.height
98
+ tableHeight = tableHeight.substring(0, tableHeight.indexOf('px'))
99
+ const myHeight = parseInt(tableHeight) + 30 + 'px'
100
+ return {
101
+ // 选中的用户序号
102
+ singleUserIndex: null,
103
+ selectedUser: null,
104
+ myHeight,
105
+ ElIconPlus,
106
+ ElIconDelete
107
+ }
108
+ },
109
+ name: 'UserResult',
110
+ props: {
111
+ gridData: {
112
+ type: Array,
113
+ default: null
114
+ },
115
+ containBranch: {
116
+ type: Boolean,
117
+ default: false
118
+ },
119
+ multiple: {
120
+ type: Boolean,
121
+ default: false
122
+ },
123
+ // 多选树时是否是查询结果列表,用于控制“操作”列按钮的显示
124
+ isSearchResult: {
125
+ type: Boolean,
126
+ default: true
127
+ },
128
+ height: {
129
+ type: String,
130
+ default: '300px'
131
+ },
132
+ selectResult: {
133
+ type: Array,
134
+ default: function () {
135
+ return []
136
+ }
137
+ }
138
+ },
139
+ created() {
140
+ console.log('search-result---', this.gridData)
141
+ },
142
+ methods: {
143
+ // 单选树时,点击行事件
144
+ // rowClick(row, column, event) {
145
+ // this.selectedUser = row
146
+ // // this.$emit('rowClick', row, column, event)
147
+ // },
148
+ // 移除用户
149
+ removeUser(index, row) {
150
+ $emit(this, 'removeUser', index, row)
151
+ },
152
+ // 添加用户
153
+ addUser(index, row) {
154
+ $emit(this, 'addUser', index, JSON.parse(JSON.stringify(row)))
155
+ },
156
+ selectUser(selectVal) {
157
+ // console.log('selectUser', selectVal)
158
+ $emit(this, 'selectResult', this.gridData[selectVal])
159
+ },
160
+ rowClick(row, column, event) {
161
+ this.singleUserIndex = row.row_index
162
+ $emit(this, 'selectResult', row)
163
+ },
164
+ tableRowClassName({ row, rowIndex }) {
165
+ row.row_index = rowIndex
166
+ },
167
+ rowDblclick(row, column, event) {
168
+ if (this.multiple) {
169
+ $emit(this, 'addUser', null, row)
170
+ } else {
171
+ $emit(this, 'resultRowDblclick', row)
172
+ }
173
+ },
174
+ isDisable(row) {
175
+ if (this.selectResult) {
176
+ const containUsers = this.selectResult.filter(this.filterDept(row))
177
+ if (containUsers && containUsers.length > 0) {
178
+ return true
179
+ }
180
+ }
181
+ return false
182
+ },
183
+ // 判断用户是否存在的过滤器
184
+ filterDept(queryDept) {
185
+ return (dept) => {
186
+ return dept.id === queryDept.id
187
+ }
188
+ }
189
+ },
190
+ emits: ['removeUser', 'addUser', 'selectResult', 'resultRowDblclick']
223
191
  }
224
192
  </script>
225
193
 
226
194
  <style>
227
195
  .searchResult {
228
- color: red;
196
+ color: red;
229
197
  }
230
198
 
231
199
  .inline-select-custom {
232
- width: 100px;
200
+ width: 100px;
233
201
  }
234
202
 
235
203
  .inline-input-custom {
236
- width: 98%;
204
+ width: 98%;
237
205
  }
238
206
  </style>
@@ -39,7 +39,9 @@
39
39
  </el-row>
40
40
  </el-card>
41
41
  <el-card class="card-content org-tree" style="overflow: auto">
42
+ <el-empty v-if="!departments.length" :image="noMessageImage"> </el-empty>
42
43
  <el-tree
44
+ v-else
43
45
  ref="orgTreeRef"
44
46
  :data="departments"
45
47
  :show-checkbox="multiple"
@@ -103,6 +105,8 @@ import deptPath from './dept-path.vue'
103
105
  import deptResult from './dept-result.vue'
104
106
  import { ElMessage } from 'element-plus'
105
107
  import { useI18n } from 'vue-i18n'
108
+ import utils from '../../utils/utils'
109
+ import noMessageImage from '../../../src/assets/nonemessage.png'
106
110
  const props = defineProps<{
107
111
  // 是否是多选树,默认是true
108
112
  multiple: {
@@ -135,6 +139,9 @@ const props = defineProps<{
135
139
  default: 'code'
136
140
  }
137
141
  }>()
142
+
143
+ const { t } = useI18n()
144
+
138
145
  const emits = defineEmits(['close'])
139
146
  const orgTreeRef = ref(null)
140
147
  let tenantInfo = ref(null)
@@ -155,7 +162,7 @@ let searchParam = ref({
155
162
  treeType: 'DEPARTMENT_TREE',
156
163
  departmentInfo: null
157
164
  })
158
- const { t } = useI18n()
165
+
159
166
  onMounted(() => {
160
167
  initSelectDepts(props.selectDepartmentInfo, tenantNodeId, props.searchField, props.separator).then((departments) => {
161
168
  selectDepts.value = departments
@@ -174,9 +181,15 @@ function getTenantInfo() {
174
181
  }
175
182
 
176
183
  function getTenantChildrenDept() {
177
- getTenantChildren(props.departmentInfo, tenantNodeId, props.limitFilterColumn).then((children) => {
178
- departments.value = children
179
- checkedDeptDefault(selectDepts.value, defaultCheckedKeys.value)
184
+ utils.canShowOrgTree().then((showOrgTree) => {
185
+ if (showOrgTree) {
186
+ getTenantChildren(props.departmentInfo, tenantNodeId, props.limitFilterColumn).then((children) => {
187
+ departments.value = children
188
+ checkedDeptDefault(selectDepts.value, defaultCheckedKeys.value)
189
+ })
190
+ } else {
191
+ departments.value = []
192
+ }
180
193
  })
181
194
  }
182
195
 
@@ -19,49 +19,52 @@
19
19
  </el-autocomplete>
20
20
  </el-header>
21
21
  <el-main style="padding: 10px">
22
- <div
23
- v-if="!searchValue"
24
- style="padding-top: 5px; overflow: auto; width: auto; display: inline-block !important"
25
- >
26
- <el-tabs v-model="activeTab" class="boe">
27
- <el-tab-pane :label="$t('departmentUserTreeInline.orgTree')" name="orgTree">
28
- <el-tree
29
- ref="deparmentUserTree"
30
- :props="defaultProps"
31
- :load="loadNode"
32
- :check-on-click-node="true"
33
- lazy
34
- show-checkbox
35
- node-key="nodeId"
36
- @check="handleCheckNode"
37
- @check-change="handleCheckChange"
38
- >
39
- <template #default="{ node, data }">
40
- <span>
41
- <el-icon>
42
- <Menu v-if="node.data.id === -1 || node.data.branch" />
43
- <Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
44
- <User v-else-if="node.data.nodeType === 'USER'" />
45
- <Calendar v-else />
46
- </el-icon>
47
- <span :title="node.label">
48
- {{ node.label }}
22
+ <template v-if="!searchValue">
23
+ <div
24
+ v-if="canShowOrgTree"
25
+ style="padding-top: 5px; overflow: auto; width: auto; display: inline-block !important"
26
+ >
27
+ <el-tabs v-model="activeTab" class="boe">
28
+ <el-tab-pane :label="$t('departmentUserTreeInline.orgTree')" name="orgTree">
29
+ <el-tree
30
+ ref="deparmentUserTree"
31
+ :props="defaultProps"
32
+ :load="loadNode"
33
+ :check-on-click-node="true"
34
+ lazy
35
+ show-checkbox
36
+ node-key="nodeId"
37
+ @check="handleCheckNode"
38
+ @check-change="handleCheckChange"
39
+ >
40
+ <template #default="{ node, data }">
41
+ <span>
42
+ <el-icon>
43
+ <Menu v-if="node.data.id === -1 || node.data.branch" />
44
+ <Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
45
+ <User v-else-if="node.data.nodeType === 'USER'" />
46
+ <Calendar v-else />
47
+ </el-icon>
48
+ <span :title="node.label">
49
+ {{ node.label }}
50
+ </span>
49
51
  </span>
50
- </span>
52
+ </template>
53
+ </el-tree>
54
+ </el-tab-pane>
55
+ <el-tab-pane name="groupTree">
56
+ <template v-slot:label>
57
+ <span>{{ $t('departmentUserTreeInline.group') }}</span>
58
+ <span><GroupUser :active-tab="activeTab" @update-group-tree="updateGroupTree" /></span>
51
59
  </template>
52
- </el-tree>
53
- </el-tab-pane>
54
- <el-tab-pane name="groupTree">
55
- <template v-slot:label>
56
- <span>{{ $t('departmentUserTreeInline.group') }}</span>
57
- <span><GroupUser :active-tab="activeTab" @update-group-tree="updateGroupTree" /></span>
58
- </template>
59
- <GroupUserMultipleTree v-if="isShowGroupTree" @result="getGroupUserResult" />
60
- </el-tab-pane>
61
- </el-tabs>
62
- <!-- @node-click="handleNodeClick" 移除节点点击,不然会造成节点不可选择时,点击也会选择节点 -->
63
- </div>
64
-
60
+ <GroupUserMultipleTree v-if="isShowGroupTree" @result="getGroupUserResult" />
61
+ </el-tab-pane>
62
+ </el-tabs>
63
+ <!-- @node-click="handleNodeClick" 移除节点点击,不然会造成节点不可选择时,点击也会选择节点 -->
64
+ </div>
65
+ <!-- 暂无信息 -->
66
+ <EmptyState v-else style="width: 100%; height: 100%" />
67
+ </template>
65
68
  <div v-if="searchValue && searchValue.length > 0" style="height: 100%; overflow: hidden">
66
69
  <user-result
67
70
  :contain-branch="containBranch"
@@ -120,6 +123,7 @@ import departmentUserTreeMultiService from './department-user-tree-multi-service
120
123
  import memoryCacheUtils from '../../utils/memory-cache-utils'
121
124
  import GroupUserMultipleTree from './group-user-multiple-tree.vue'
122
125
  import GroupUser from './group-user/group-user.vue'
126
+ import EmptyState from '../../empty-state/index.vue'
123
127
 
124
128
  export default {
125
129
  data() {
@@ -164,7 +168,8 @@ export default {
164
168
  memoryCacheKey: 'DEPARTMENT_USER_MEMORY_KEY',
165
169
  // 记忆选择数据, 搜索框获得焦点后,下拉显示最近选中的10个人,倒序排列,最后选中的在最上面显示。
166
170
  memoryCacheData: [],
167
- ElIconSearch
171
+ ElIconSearch,
172
+ canShowOrgTree: false
168
173
  }
169
174
  },
170
175
  name: 'InlineDepartmentUserMultiTree',
@@ -175,7 +180,8 @@ export default {
175
180
  User,
176
181
  Calendar,
177
182
  GroupUserMultipleTree,
178
- GroupUser
183
+ GroupUser,
184
+ EmptyState
179
185
  },
180
186
  props: {
181
187
  // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
@@ -231,6 +237,9 @@ export default {
231
237
  }
232
238
  },
233
239
  created() {
240
+ utils.canShowOrgTree().then((showOrgTree) => {
241
+ this.canShowOrgTree = showOrgTree
242
+ })
234
243
  this.initSelectUsers(this.searchField, this.selectUserInfo, this.separator).then((selectUsers) => {
235
244
  if (selectUsers) {
236
245
  this.selectResult = selectUsers