agilebuilder-ui 1.1.45 → 1.1.46-sit2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{401-1bde8dc9.js → 401-75472dcd.js} +1 -1
- package/lib/{404-48d76996.js → 404-e5ce8455.js} +1 -1
- package/lib/{iframe-page-77e184a0.js → iframe-page-9d5ce6b0.js} +1 -1
- package/lib/index-789fbe10.js +92825 -0
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +33 -32
- package/lib/super-ui.umd.cjs +172 -133
- package/lib/{tab-content-iframe-index-39745d49.js → tab-content-iframe-index-47fae8cf.js} +1 -1
- package/lib/{tab-content-index-65696e56.js → tab-content-index-6e5f5717.js} +1 -1
- package/lib/{tache-subprocess-history-ef943f95.js → tache-subprocess-history-1ed95cee.js} +1 -1
- package/package.json +7 -2
- package/packages/chat-embed/index.ts +6 -0
- package/packages/chat-embed/src/chat-embed-message.ts +79 -0
- package/packages/chat-embed/src/chat-embed.css +117 -0
- package/packages/chat-embed/src/chat-sender.vue +240 -0
- package/packages/chat-embed/src/header.vue +50 -0
- package/packages/chat-embed/src/index.vue +425 -0
- package/packages/chat-embed/src/recommendation-message.vue +37 -0
- package/packages/chat-embed/src/util.ts +33 -0
- 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/search-result.vue +187 -219
- 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/search-result.vue +207 -220
- 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 +12 -3
- package/packages/fs-upload/src/fs-upload-multi.vue +6 -4
- package/packages/fs-upload/src/fs-upload-single.vue +7 -6
- 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 +8 -2
- package/packages/fs-upload-new/src/fs-button-upload.vue +11 -4
- package/packages/fs-upload-new/src/fs-drag-upload.vue +11 -4
- package/packages/fs-upload-new/src/fs-preview-new.vue +8 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +17 -0
- package/packages/index.js +16 -13
- package/packages/json-view/index.ts +3 -0
- package/packages/json-view/json-view-dialog.vue +53 -0
- package/packages/json-view/json-view.vue +126 -0
- package/packages/plugins/export-data-new.js +2 -0
- package/packages/super-grid/src/apis.js +11 -0
- package/packages/super-grid/src/components/grid-icon.vue +6 -3
- package/packages/super-grid/src/custom-formatter.js +15 -2
- package/packages/super-grid/src/dynamic-input.vue +46 -4
- package/packages/super-grid/src/formatter.js +5 -1
- package/packages/super-grid/src/normal-column-content.vue +31 -38
- package/packages/super-grid/src/normal-column.vue +8 -1
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/super-grid.vue +21 -8
- package/packages/utils/utils.js +26 -9
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +45 -36
- package/src/assets/chat-embed/avatar.png +0 -0
- package/src/i18n/langs/cn.js +20 -6
- package/src/i18n/langs/en.js +19 -5
- package/src/store/modules/chat-ai-store.ts +78 -0
- package/src/store/modules/tab-content.js +9 -3
- package/src/styles/element-ui.scss +8 -7
- package/src/styles/index.scss +45 -0
- package/src/utils/chat-ai-util.ts +31 -0
- package/src/utils/common-util.js +78 -8
- package/src/utils/insert_css.js +14 -1
- package/src/utils/jump-page-utils.js +8 -4
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
- package/src/views/dsc-component/tabs/tab-content.vue +6 -0
- package/lib/index-465b0d69.js +0 -73558
|
@@ -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
|
|
@@ -18,48 +18,52 @@
|
|
|
18
18
|
</el-autocomplete>
|
|
19
19
|
</el-header>
|
|
20
20
|
<el-main style="padding: 10px; width: 100%">
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<el-
|
|
27
|
-
<el-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
21
|
+
<template v-if="!searchValue || searchResult.length === 0">
|
|
22
|
+
<div
|
|
23
|
+
v-if="canShowOrgTree"
|
|
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
|
+
:load="loadNode"
|
|
31
|
+
:props="defaultProps"
|
|
32
|
+
lazy
|
|
33
|
+
node-key="nodeId"
|
|
34
|
+
@node-click="handleNodeClick"
|
|
35
|
+
>
|
|
36
|
+
<template #default="{ node, data }">
|
|
37
|
+
<span>
|
|
38
|
+
<el-icon>
|
|
39
|
+
<Menu v-if="node.data.id === -1 || node.data.branch" />
|
|
40
|
+
<Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
|
|
41
|
+
<User v-else-if="node.data.nodeType === 'USER'" />
|
|
42
|
+
<Calendar v-else />
|
|
43
|
+
</el-icon>
|
|
44
|
+
<span :title="node.label">
|
|
45
|
+
{{ node.label }}
|
|
46
|
+
</span>
|
|
45
47
|
</span>
|
|
46
|
-
</
|
|
48
|
+
</template>
|
|
49
|
+
</el-tree>
|
|
50
|
+
</el-tab-pane>
|
|
51
|
+
<el-tab-pane name="groupTree">
|
|
52
|
+
<template v-slot:label>
|
|
53
|
+
<span>{{ $t('departmentUserTreeInline.group') }}</span>
|
|
54
|
+
<span><GroupUser :active-tab="activeTab" @update-group-tree="updateGroupTree" /></span>
|
|
47
55
|
</template>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/>
|
|
60
|
-
</el-tab-pane>
|
|
61
|
-
</el-tabs>
|
|
62
|
-
</div>
|
|
56
|
+
<GroupUserSingleTree
|
|
57
|
+
v-if="isShowGroupTree"
|
|
58
|
+
@singleClick="getGroupUserResult"
|
|
59
|
+
@dblClick="dblClickGroupUserResult"
|
|
60
|
+
/>
|
|
61
|
+
</el-tab-pane>
|
|
62
|
+
</el-tabs>
|
|
63
|
+
</div>
|
|
64
|
+
<!-- 暂无信息 -->
|
|
65
|
+
<EmptyState v-else style="width: 100%; height: 100%" />
|
|
66
|
+
</template>
|
|
63
67
|
<div
|
|
64
68
|
v-if="searchValue && searchValue.length > 0 && searchResult.length > 0"
|
|
65
69
|
style="height: 100%; overflow: hidden"
|
|
@@ -89,6 +93,7 @@ import departmentUserTreeSingleService from './department-user-tree-single-servi
|
|
|
89
93
|
import memoryCacheUtils from '../../utils/memory-cache-utils'
|
|
90
94
|
import GroupUserSingleTree from './group-user-single-tree.vue'
|
|
91
95
|
import GroupUser from './group-user/group-user.vue'
|
|
96
|
+
import EmptyState from '../../empty-state/index.vue'
|
|
92
97
|
|
|
93
98
|
export default {
|
|
94
99
|
data() {
|
|
@@ -136,14 +141,16 @@ export default {
|
|
|
136
141
|
memoryCacheData: [],
|
|
137
142
|
ElIconSearch,
|
|
138
143
|
activeTab: 'orgTree', // 当前页签
|
|
139
|
-
isShowGroupTree: true
|
|
144
|
+
isShowGroupTree: true,
|
|
145
|
+
canShowOrgTree: false
|
|
140
146
|
}
|
|
141
147
|
},
|
|
142
148
|
name: 'InlineDepartmentUserSingleTree',
|
|
143
149
|
components: {
|
|
144
150
|
UserResult,
|
|
145
151
|
GroupUserSingleTree,
|
|
146
|
-
GroupUser
|
|
152
|
+
GroupUser,
|
|
153
|
+
EmptyState
|
|
147
154
|
},
|
|
148
155
|
props: {
|
|
149
156
|
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
@@ -184,6 +191,9 @@ export default {
|
|
|
184
191
|
}
|
|
185
192
|
},
|
|
186
193
|
created() {
|
|
194
|
+
utils.canShowOrgTree().then((showOrgTree) => {
|
|
195
|
+
this.canShowOrgTree = showOrgTree
|
|
196
|
+
})
|
|
187
197
|
this.searchFields = this.getSearchUserFields()
|
|
188
198
|
},
|
|
189
199
|
mounted() {
|