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.
- package/lib/{401-64e37702.js → 401-a94cd05b.js} +1 -1
- package/lib/{404-7d89180e.js → 404-eb21244b.js} +1 -1
- package/lib/{iframe-page-4c8bc1d5.js → iframe-page-7add4333.js} +1 -1
- package/lib/{index-5c1112e8.js → index-7a601895.js} +19125 -19069
- 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-483b398c.js} +1 -1
- package/lib/{tab-content-index-9a271908.js → tab-content-index-0862686f.js} +1 -1
- package/lib/{tache-subprocess-history-93d013b2.js → tache-subprocess-history-c80e8ed2.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 +7 -2
- 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 +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 +8 -5
- 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/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 +22 -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
|
@@ -132,27 +132,29 @@ const workgroupTreeInlineService = {
|
|
|
132
132
|
.then((data) => {
|
|
133
133
|
resolve(data)
|
|
134
134
|
// 更新当前点击的节点的子节点
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
135
|
+
if (this.$refs.workgroupUserTree) {
|
|
136
|
+
this.$refs.workgroupUserTree.updateKeyChildren(parentNodeId, data)
|
|
137
|
+
if (parentId === 0) {
|
|
138
|
+
// 初始化树时,展开公司节点
|
|
139
|
+
const tenantData = data[0].data
|
|
140
|
+
this.tenantInfo = JSON.parse(tenantData)
|
|
141
|
+
this.containBranch = data[0].containBranch
|
|
142
|
+
// 加载整个组织结构树时,展开公司节点
|
|
143
|
+
this.loadWorkgroup(this.tenantNodeId, this.tenantNodeId + '')
|
|
144
|
+
}
|
|
145
|
+
if (this.isClickNode) {
|
|
146
|
+
// 表示点击工作组节点选中时展开
|
|
147
|
+
this.isClickNode = false
|
|
148
|
+
this.checkedNode(node.data)
|
|
149
|
+
} else {
|
|
150
|
+
// 表示是点击三角展开节点时
|
|
151
|
+
if (checkedKeys && checkedKeys.indexOf(parentNodeId) > -1) {
|
|
152
|
+
// 点击公司名称前的三角标识展开节点时,保持当前节点的选中状态
|
|
153
|
+
// 表示当前展开的节点是选中状态,则应保持其选中状态,并选中其子节点
|
|
154
|
+
this.checkedNode(node.data)
|
|
155
|
+
}
|
|
156
|
+
}
|
|
154
157
|
}
|
|
155
|
-
}
|
|
156
158
|
})
|
|
157
159
|
},
|
|
158
160
|
// 加载当前节点的子节点
|
|
@@ -164,9 +166,11 @@ const workgroupTreeInlineService = {
|
|
|
164
166
|
this.$http
|
|
165
167
|
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/workgroup-users', param)
|
|
166
168
|
.then((children) => {
|
|
167
|
-
this.$refs.workgroupUserTree
|
|
168
|
-
|
|
169
|
-
this.$refs.workgroupUserTree.store.nodesMap[parentNodeId]
|
|
169
|
+
if(this.$refs.workgroupUserTree) {
|
|
170
|
+
this.$refs.workgroupUserTree.updateKeyChildren(parentNodeId, children)
|
|
171
|
+
if (this.$refs.workgroupUserTree.store.nodesMap[parentNodeId]) {
|
|
172
|
+
this.$refs.workgroupUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
173
|
+
}
|
|
170
174
|
}
|
|
171
175
|
if (isSearch) {
|
|
172
176
|
// 查询时处理
|
|
@@ -176,7 +180,9 @@ const workgroupTreeInlineService = {
|
|
|
176
180
|
}
|
|
177
181
|
if (this.allExpandNodeIds.length === this.allSearchNodeIds.length) {
|
|
178
182
|
// 表示所有节点已展开,执行树的过滤方法
|
|
179
|
-
this.$refs.workgroupUserTree
|
|
183
|
+
if(this.$refs.workgroupUserTree) {
|
|
184
|
+
this.$refs.workgroupUserTree.filter(searchValue)
|
|
185
|
+
}
|
|
180
186
|
this.allExpandNodeIds = []
|
|
181
187
|
this.allSearchNodeIds = []
|
|
182
188
|
}
|
|
@@ -21,41 +21,45 @@
|
|
|
21
21
|
</el-autocomplete>
|
|
22
22
|
</el-header>
|
|
23
23
|
<el-main style="padding: 10px">
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<el-tree
|
|
29
|
-
ref="workgroupUserTree"
|
|
30
|
-
:filter-node-method="filterNode"
|
|
31
|
-
:load="loadNode"
|
|
32
|
-
:props="defaultProps"
|
|
33
|
-
:show-checkbox="multiple"
|
|
34
|
-
lazy
|
|
35
|
-
node-key="nodeId"
|
|
36
|
-
@check="handleCheckNode"
|
|
37
|
-
@node-click="handleNodeClick"
|
|
24
|
+
<template v-if="!searchValue">
|
|
25
|
+
<div
|
|
26
|
+
v-if="canShowOrgTree"
|
|
27
|
+
style="padding-top: 5px; overflow: auto; width: auto; display: inline-block !important"
|
|
38
28
|
>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
<el-tree
|
|
30
|
+
ref="workgroupUserTree"
|
|
31
|
+
:filter-node-method="filterNode"
|
|
32
|
+
:load="loadNode"
|
|
33
|
+
:props="defaultProps"
|
|
34
|
+
:show-checkbox="multiple"
|
|
35
|
+
lazy
|
|
36
|
+
node-key="nodeId"
|
|
37
|
+
@check="handleCheckNode"
|
|
38
|
+
@node-click="handleNodeClick"
|
|
39
|
+
>
|
|
40
|
+
<template #default="{ node, data }">
|
|
41
|
+
<span>
|
|
42
|
+
<el-icon>
|
|
43
|
+
<Menu v-if="node.data.id === -1" />
|
|
44
|
+
<Calendar v-else />
|
|
45
|
+
</el-icon>
|
|
46
|
+
<span
|
|
47
|
+
:class="
|
|
48
|
+
data.nodeType && data.nodeType === 'USER' && searchValue && filterUserVal(data, searchValue)
|
|
49
|
+
? 'searchResult'
|
|
50
|
+
: ''
|
|
51
|
+
"
|
|
52
|
+
:title="node.label"
|
|
53
|
+
>
|
|
54
|
+
{{ node.label }}
|
|
55
|
+
</span>
|
|
54
56
|
</span>
|
|
55
|
-
</
|
|
56
|
-
</
|
|
57
|
-
</
|
|
58
|
-
|
|
57
|
+
</template>
|
|
58
|
+
</el-tree>
|
|
59
|
+
</div>
|
|
60
|
+
<!-- 暂无信息 -->
|
|
61
|
+
<EmptyState v-else style="width: 100%; height: 100%" />
|
|
62
|
+
</template>
|
|
59
63
|
<div v-if="searchValue && searchValue.length > 0" style="height: 100%; overflow: hidden">
|
|
60
64
|
<workgroup-user-result
|
|
61
65
|
ref="workgroupUserResult"
|
|
@@ -114,7 +118,7 @@ import localStorage from '../../../src/utils/local-storage'
|
|
|
114
118
|
import utils from '../../utils/utils'
|
|
115
119
|
import workgroupTreeInlineService from './workgroup-tree-inline-service'
|
|
116
120
|
import WorkgroupUserResult from './search-result.vue'
|
|
117
|
-
|
|
121
|
+
import EmptyState from '../../empty-state/index.vue'
|
|
118
122
|
export default {
|
|
119
123
|
data() {
|
|
120
124
|
return {
|
|
@@ -153,12 +157,14 @@ export default {
|
|
|
153
157
|
selectNodeInfo: null,
|
|
154
158
|
// 公司根节点信息
|
|
155
159
|
tenantInfo: {},
|
|
156
|
-
ElIconSearch
|
|
160
|
+
ElIconSearch,
|
|
161
|
+
canShowOrgTree: false
|
|
157
162
|
}
|
|
158
163
|
},
|
|
159
164
|
name: 'InlineWorkgroupUserTree',
|
|
160
165
|
components: {
|
|
161
|
-
WorkgroupUserResult
|
|
166
|
+
WorkgroupUserResult,
|
|
167
|
+
EmptyState
|
|
162
168
|
},
|
|
163
169
|
props: {
|
|
164
170
|
// 是否是多选树,默认是true
|
|
@@ -198,6 +204,9 @@ export default {
|
|
|
198
204
|
}
|
|
199
205
|
},
|
|
200
206
|
created() {
|
|
207
|
+
utils.canShowOrgTree().then((showOrgTree) => {
|
|
208
|
+
this.canShowOrgTree = showOrgTree
|
|
209
|
+
})
|
|
201
210
|
if (this.multiple) {
|
|
202
211
|
this.initSelectUsers(this.searchField, this.selectUserInfo, this.separator).then((users) => {
|
|
203
212
|
if (users) {
|
|
@@ -291,7 +300,10 @@ export default {
|
|
|
291
300
|
// // this.searchParam.userField = this.searchField
|
|
292
301
|
// // 后台查询部门,并拼接树节点
|
|
293
302
|
// this.filterAppendNodes(value)
|
|
294
|
-
|
|
303
|
+
|
|
304
|
+
if(this.$refs.workgroupUserTree) {
|
|
305
|
+
this.$refs.workgroupUserTree.filter(value)
|
|
306
|
+
}
|
|
295
307
|
},
|
|
296
308
|
// 点击查询按钮调用的方法
|
|
297
309
|
clickSearch() {
|