agilebuilder-ui 1.1.48 → 1.1.50-rc1
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-64e37702.js → 401-aaa4054d.js} +1 -1
- package/lib/{404-7d89180e.js → 404-ef3b10e9.js} +1 -1
- package/lib/{iframe-page-4c8bc1d5.js → iframe-page-28c30283.js} +1 -1
- package/lib/{index-5c1112e8.js → index-bece2c1c.js} +19139 -19078
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +99 -99
- package/lib/{tab-content-iframe-index-0a36be80.js → tab-content-iframe-index-87ac3b2b.js} +1 -1
- package/lib/{tab-content-index-9a271908.js → tab-content-index-956a0533.js} +1 -1
- package/lib/{tache-subprocess-history-93d013b2.js → tache-subprocess-history-2c4f98f2.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +42 -34
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +53 -42
- package/packages/department-tree-inline/src/department-tree-service.js +17 -11
- package/packages/department-tree-inline/src/search-result.vue +187 -219
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +17 -4
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +52 -43
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +52 -42
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +23 -13
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +9 -5
- package/packages/department-user-tree-inline/src/group-user-tree-service.js +17 -11
- package/packages/department-user-tree-inline/src/search-result.vue +207 -220
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +14 -3
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +7 -2
- package/packages/empty-state/index.vue +28 -0
- package/packages/fs-preview/src/fs-preview.vue +10 -4
- package/packages/fs-upload/src/fs-upload-multi.vue +10 -6
- package/packages/fs-upload/src/fs-upload-single.vue +8 -7
- package/packages/fs-upload/src/fs-upload.vue +3 -1
- package/packages/fs-upload/src/see-big-picture.vue +3 -0
- package/packages/fs-upload-list/src/fs-upload-list.vue +2 -1
- package/packages/fs-upload-new/src/fs-button-upload.vue +3 -3
- package/packages/fs-upload-new/src/fs-drag-upload.vue +3 -3
- package/packages/fs-upload-new/src/fs-preview-new.vue +11 -7
- package/packages/multipart-upload/src/multipart-upload-form.vue +2 -1
- package/packages/multipart-upload/src/multipart-upload-list.vue +2 -1
- package/packages/plugins/export-data-new.js +2 -0
- package/packages/super-grid/src/components/grid-icon.vue +6 -3
- package/packages/super-grid/src/normal-column-content.vue +1 -1
- package/packages/super-grid/src/super-grid.vue +4 -4
- package/packages/super-grid/src/view-image-dialog.vue +2 -1
- package/packages/utils/utils.js +27 -9
- package/packages/workgroup-tree-inline/src/search-result.vue +2 -1
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +16 -5
- package/packages/workgroup-user-tree-inline/src/search-result.vue +2 -1
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +30 -24
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +49 -37
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +281 -222
- package/src/i18n/langs/cn.js +3 -3
- package/src/i18n/langs/en.js +3 -3
- package/src/styles/index.scss +26 -0
- package/src/utils/auth.js +10 -7
- package/src/utils/chat-ai-util.ts +3 -3
- package/src/utils/common-util.js +44 -0
- package/src/utils/global-prop.js +17 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
- package/src/views/dsc-component/tabs/tab-content.vue +6 -0
|
@@ -1,238 +1,206 @@
|
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
<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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
196
|
+
color: red;
|
|
229
197
|
}
|
|
230
198
|
|
|
231
199
|
.inline-select-custom {
|
|
232
|
-
|
|
200
|
+
width: 100px;
|
|
233
201
|
}
|
|
234
202
|
|
|
235
203
|
.inline-input-custom {
|
|
236
|
-
|
|
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
|
-
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<el-
|
|
28
|
-
<el-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
</
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|