agilebuilder-ui 1.1.46-sit2 → 1.1.46-sit3
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-75472dcd.js → 401-ef4398a9.js} +1 -1
- package/lib/{404-e5ce8455.js → 404-287cecdc.js} +1 -1
- package/lib/{iframe-page-9d5ce6b0.js → iframe-page-b1ceebcf.js} +1 -1
- package/lib/{index-789fbe10.js → index-53273b38.js} +25 -23
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +1 -1
- package/lib/{tab-content-iframe-index-47fae8cf.js → tab-content-iframe-index-2377cd81.js} +1 -1
- package/lib/{tab-content-index-6e5f5717.js → tab-content-index-85a86e08.js} +1 -1
- package/lib/{tache-subprocess-history-1ed95cee.js → tache-subprocess-history-d0e1354e.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree-inline/src/department-tree-service.js +17 -11
- 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/super-grid/src/super-grid.vue +4 -4
- 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 +4 -1
- package/src/utils/chat-ai-util.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
|
|
2
|
-
import { _ as s } from "./index-
|
|
2
|
+
import { _ as s } from "./index-53273b38.js";
|
|
3
3
|
const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
|
|
4
4
|
this.src = this.$route.query.src;
|
|
5
5
|
} }, mounted() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-
|
|
1
|
+
import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-53273b38.js";
|
|
2
2
|
import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
|
|
3
3
|
const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
|
|
4
4
|
return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./index-
|
|
2
|
+
import { _ as I } from "./index-53273b38.js";
|
|
3
3
|
const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
|
|
4
4
|
const o = this.$route.query.workflowId;
|
|
5
5
|
o && (this.workflowId = parseInt(o));
|
package/package.json
CHANGED
|
@@ -141,11 +141,13 @@ const departmentTreeService = {
|
|
|
141
141
|
)
|
|
142
142
|
.then((result) => {
|
|
143
143
|
// 更新当前点击的节点的子节点
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
if(this.$refs.deparmentTree){
|
|
145
|
+
this.$refs.deparmentTree.updateKeyChildren(data.id, result)
|
|
146
|
+
// 展开当前选中的节点
|
|
147
|
+
this.$refs.deparmentTree.store.nodesMap[data.id].expanded = true
|
|
148
|
+
// 获得所有应该选中的节点
|
|
149
|
+
this.checkedNodeAndChildren(data)
|
|
150
|
+
}
|
|
149
151
|
})
|
|
150
152
|
this.$http
|
|
151
153
|
.get(
|
|
@@ -236,9 +238,11 @@ const departmentTreeService = {
|
|
|
236
238
|
this.$http
|
|
237
239
|
.get(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId)
|
|
238
240
|
.then((children) => {
|
|
239
|
-
this.$refs.deparmentTree
|
|
240
|
-
|
|
241
|
-
this.$refs.deparmentTree.store.nodesMap[parentId]
|
|
241
|
+
if(this.$refs.deparmentTree){
|
|
242
|
+
this.$refs.deparmentTree.updateKeyChildren(parentId, children)
|
|
243
|
+
if (this.$refs.deparmentTree.store.nodesMap[parentId]) {
|
|
244
|
+
this.$refs.deparmentTree.store.nodesMap[parentId].expanded = true
|
|
245
|
+
}
|
|
242
246
|
}
|
|
243
247
|
resolve()
|
|
244
248
|
})
|
|
@@ -254,9 +258,11 @@ const departmentTreeService = {
|
|
|
254
258
|
url += '/' + this.limitFilterColumn
|
|
255
259
|
}
|
|
256
260
|
this.$http.post(url, this.departmentInfo).then((children) => {
|
|
257
|
-
this.$refs.deparmentTree
|
|
258
|
-
|
|
259
|
-
this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]
|
|
261
|
+
if(this.$refs.deparmentTree){
|
|
262
|
+
this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId, children)
|
|
263
|
+
if (this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]) {
|
|
264
|
+
this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded = true
|
|
265
|
+
}
|
|
260
266
|
}
|
|
261
267
|
})
|
|
262
268
|
},
|
|
@@ -89,9 +89,11 @@ const departmentUserTreeMultiService = {
|
|
|
89
89
|
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
|
|
90
90
|
.then((result) => {
|
|
91
91
|
// 更新当前点击的节点的子节点
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
if(this.$refs.deparmentUserTree){
|
|
93
|
+
this.$refs.deparmentUserTree.updateKeyChildren(data.nodeId, result)
|
|
94
|
+
this.$refs.deparmentUserTree.store.nodesMap[data.nodeId].expanded = true
|
|
95
|
+
this.staticCheckedUserNodes(data)
|
|
96
|
+
}
|
|
95
97
|
})
|
|
96
98
|
},
|
|
97
99
|
// 初始化部门人员树
|
|
@@ -123,7 +125,9 @@ const departmentUserTreeMultiService = {
|
|
|
123
125
|
.then((data) => {
|
|
124
126
|
resolve(data)
|
|
125
127
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
126
|
-
this.$refs.deparmentUserTree
|
|
128
|
+
if(this.$refs.deparmentUserTree){
|
|
129
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, data)
|
|
130
|
+
}
|
|
127
131
|
if (parentId === 0) {
|
|
128
132
|
// 初始化树时,展开公司节点
|
|
129
133
|
const tenantData = data[0].data
|
|
@@ -162,10 +166,12 @@ const departmentUserTreeMultiService = {
|
|
|
162
166
|
this.$http
|
|
163
167
|
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
|
|
164
168
|
.then((children) => {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
if(this.$refs.deparmentUserTree){
|
|
170
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
171
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
172
|
+
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
173
|
+
}
|
|
174
|
+
}
|
|
169
175
|
if (isSearch) {
|
|
170
176
|
// 查询时处理
|
|
171
177
|
if (this.allExpandNodeIds.indexOf(parentNodeId) === -1) {
|
|
@@ -174,7 +180,9 @@ const departmentUserTreeMultiService = {
|
|
|
174
180
|
}
|
|
175
181
|
if (this.allExpandNodeIds.length === this.allSearchNodeIds.length) {
|
|
176
182
|
// 表示所有节点已展开,执行树的过滤方法
|
|
177
|
-
this.$refs.deparmentUserTree
|
|
183
|
+
if(this.$refs.deparmentUserTree){
|
|
184
|
+
this.$refs.deparmentUserTree.filter(searchValue)
|
|
185
|
+
}
|
|
178
186
|
this.allExpandNodeIds = []
|
|
179
187
|
this.allSearchNodeIds = []
|
|
180
188
|
}
|
|
@@ -188,10 +196,12 @@ const departmentUserTreeMultiService = {
|
|
|
188
196
|
url += '/' + this.limitFilterColumn
|
|
189
197
|
}
|
|
190
198
|
this.$http.post(url, this.departmentInfo).then((children) => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
if(this.$refs.deparmentUserTree){
|
|
200
|
+
this.$refs.deparmentUserTree.updateKeyChildren(this.tenantNodeId, children)
|
|
201
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
202
|
+
this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId].expanded = true
|
|
203
|
+
}
|
|
204
|
+
}
|
|
195
205
|
})
|
|
196
206
|
},
|
|
197
207
|
getChildrenDepartmentUsers(childrenDepartmentIds) {
|
|
@@ -105,7 +105,9 @@ const departmentUserTreeSingleService = {
|
|
|
105
105
|
.then((data) => {
|
|
106
106
|
resolve(data)
|
|
107
107
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
108
|
-
this.$refs.deparmentUserTree
|
|
108
|
+
if(this.$refs.deparmentUserTree){
|
|
109
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, data)
|
|
110
|
+
}
|
|
109
111
|
if (parentId === 0) {
|
|
110
112
|
// 初始化树时,展开公司节点
|
|
111
113
|
const tenantData = data[0].data
|
|
@@ -144,10 +146,12 @@ const departmentUserTreeSingleService = {
|
|
|
144
146
|
url += '/' + this.limitFilterColumn
|
|
145
147
|
}
|
|
146
148
|
this.$http.post(url, this.departmentInfo).then((children) => {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
if(this.$refs.deparmentUserTree){
|
|
150
|
+
this.$refs.deparmentUserTree.updateKeyChildren(this.tenantNodeId, children)
|
|
151
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
152
|
+
this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId].expanded = true
|
|
153
|
+
}
|
|
154
|
+
}
|
|
151
155
|
})
|
|
152
156
|
}
|
|
153
157
|
}
|
|
@@ -4,9 +4,11 @@ const groupUserTreeService = {
|
|
|
4
4
|
const parentId = data.id
|
|
5
5
|
this.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-group-trees/' + parentId).then(result => {
|
|
6
6
|
// 更新当前点击的节点的子节点
|
|
7
|
-
this.$refs.groupUserTree
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
if(this.$refs.groupUserTree){
|
|
8
|
+
this.$refs.groupUserTree.updateKeyChildren(data.nodeId, result)
|
|
9
|
+
this.$refs.groupUserTree.store.nodesMap[data.nodeId].expanded = true
|
|
10
|
+
this.staticCheckedUserNodes(data)
|
|
11
|
+
}
|
|
10
12
|
})
|
|
11
13
|
},
|
|
12
14
|
// 初始化部门人员树
|
|
@@ -29,20 +31,24 @@ const groupUserTreeService = {
|
|
|
29
31
|
this.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-group-trees/' + parentId).then(data => {
|
|
30
32
|
resolve(data)
|
|
31
33
|
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
32
|
-
this.$refs.groupUserTree
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if(this.$refs.groupUserTree){
|
|
35
|
+
this.$refs.groupUserTree.updateKeyChildren(parentNodeId, data)
|
|
36
|
+
if (parentId === 0) {
|
|
37
|
+
// 初始化树时,展开公司节点
|
|
38
|
+
// 加载整个组织结构树时,展开公司节点
|
|
39
|
+
this.loadDepartment(this.tenantNodeId, this.tenantNodeId + '')
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
})
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
42
46
|
this.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-group-trees/' + parentId).then(children => {
|
|
43
|
-
this.$refs.groupUserTree
|
|
44
|
-
|
|
45
|
-
this.$refs.groupUserTree.store.nodesMap[parentNodeId]
|
|
47
|
+
if(this.$refs.groupUserTree){
|
|
48
|
+
this.$refs.groupUserTree.updateKeyChildren(parentNodeId, children)
|
|
49
|
+
if (this.$refs.groupUserTree.store.nodesMap[parentNodeId]) {
|
|
50
|
+
this.$refs.groupUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
51
|
+
}
|
|
46
52
|
}
|
|
47
53
|
})
|
|
48
54
|
},
|
|
@@ -460,7 +460,7 @@ export default {
|
|
|
460
460
|
// 限制高度最低值
|
|
461
461
|
hasMaxHeight() {
|
|
462
462
|
if (this.maxHeight) {
|
|
463
|
-
return this.maxHeight <= 100 ? 100 : this.maxHeight + (this.heightOffset!==0?this.heightOffset:30)
|
|
463
|
+
return this.maxHeight <= 100 ? 100 : this.maxHeight + (this.heightOffset !== 0 ? this.heightOffset : 30)
|
|
464
464
|
}
|
|
465
465
|
return undefined
|
|
466
466
|
},
|
|
@@ -468,7 +468,7 @@ export default {
|
|
|
468
468
|
// 是指固定高度最低值
|
|
469
469
|
hasTableHeight() {
|
|
470
470
|
if (this.tableHeight) {
|
|
471
|
-
return this.tableHeight <= 100 ? 100 : this.tableHeight + (this.heightOffset!==0?this.heightOffset:30)
|
|
471
|
+
return this.tableHeight <= 100 ? 100 : this.tableHeight + (this.heightOffset !== 0 ? this.heightOffset : 30)
|
|
472
472
|
}
|
|
473
473
|
return undefined
|
|
474
474
|
},
|
|
@@ -925,7 +925,7 @@ export default {
|
|
|
925
925
|
}
|
|
926
926
|
)
|
|
927
927
|
if (!this.isFormSubTable) {
|
|
928
|
-
setPageInfoToChatStore(this.pageContext
|
|
928
|
+
setPageInfoToChatStore(this.pageContext, {
|
|
929
929
|
listRefs: [
|
|
930
930
|
{
|
|
931
931
|
ref: this
|
|
@@ -1666,7 +1666,7 @@ export default {
|
|
|
1666
1666
|
// const subTableData = JSON.parse(JSON.stringify(this.subTableData))
|
|
1667
1667
|
this.pagination.total = subTableData.length
|
|
1668
1668
|
// 当前是第几页
|
|
1669
|
-
let newCurrentPage = currentPage!== undefined && currentPage !== null ?currentPage: this.currentPage
|
|
1669
|
+
let newCurrentPage = currentPage !== undefined && currentPage !== null ? currentPage : this.currentPage
|
|
1670
1670
|
if (newCurrentPage === undefined || newCurrentPage === null) {
|
|
1671
1671
|
newCurrentPage = 1
|
|
1672
1672
|
}
|
|
@@ -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
|
}
|
|
@@ -300,7 +300,10 @@ export default {
|
|
|
300
300
|
// // this.searchParam.userField = this.searchField
|
|
301
301
|
// // 后台查询部门,并拼接树节点
|
|
302
302
|
// this.filterAppendNodes(value)
|
|
303
|
-
|
|
303
|
+
|
|
304
|
+
if(this.$refs.workgroupUserTree) {
|
|
305
|
+
this.$refs.workgroupUserTree.filter(value)
|
|
306
|
+
}
|
|
304
307
|
},
|
|
305
308
|
// 点击查询按钮调用的方法
|
|
306
309
|
clickSearch() {
|
|
@@ -18,10 +18,10 @@ function setActiveMenuToChatAiStore(activeMenu) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function setPageInfoToChatStore(
|
|
21
|
+
function setPageInfoToChatStore(pageContext, info) {
|
|
22
22
|
try {
|
|
23
|
-
if (window.top.ChatAiStore) {
|
|
24
|
-
window.top.ChatAiStore.setPageInfoToChatStore(menuCode, info)
|
|
23
|
+
if (pageContext && window.top.ChatAiStore) {
|
|
24
|
+
window.top.ChatAiStore.setPageInfoToChatStore(pageContext.menuCode, info)
|
|
25
25
|
}
|
|
26
26
|
} catch (error) {
|
|
27
27
|
console.error('ChatAiStore not found', error)
|