agilebuilder-ui 1.1.41 → 1.1.42-sit1
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-deb6f978.js → 401-5c692db3.js} +1 -1
- package/lib/{404-ca0b33ee.js → 404-bcdb3ce5.js} +1 -1
- package/lib/{iframe-page-eb39ba95.js → iframe-page-c8073fc1.js} +1 -1
- package/lib/{index-a36c91b2.js → index-fa4b5a84.js} +4882 -4825
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +85 -85
- package/lib/{tab-content-iframe-index-094835e7.js → tab-content-iframe-index-2be5c19e.js} +1 -1
- package/lib/{tab-content-index-92b24462.js → tab-content-index-69988e2f.js} +1 -1
- package/lib/{tache-subprocess-history-0d32337a.js → tache-subprocess-history-9889b788.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +38 -29
- package/packages/fs-upload-new/src/fs-button-upload.vue +34 -1
- package/packages/fs-upload-new/src/fs-drag-upload.vue +43 -2
- package/packages/fs-upload-new/src/fs-preview-new.vue +6 -4
- package/packages/super-grid/src/custom-formatter.js +16 -10
- package/packages/super-grid/src/dynamic-input.vue +8 -3
- package/packages/super-grid/src/normal-column-content.vue +1 -0
- package/packages/super-grid/src/normal-column.vue +8 -4
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/search-form-advancedQuery.vue +1 -1
- package/packages/super-grid/src/search-form-item.vue +23 -23
- package/packages/super-grid/src/search-form-open.vue +164 -158
- package/packages/super-grid/src/super-grid-service.js +141 -153
- package/packages/super-grid/src/super-grid.vue +43 -14
- package/packages/super-nine-grid/src/search-form.vue +469 -659
- package/packages/super-nine-grid/src/super-nine-grid.vue +1 -1
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +515 -539
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +24 -44
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +626 -665
- package/src/utils/permission.js +86 -9
|
@@ -5,18 +5,14 @@ const workgroupTreeInlineService = {
|
|
|
5
5
|
// 后台查询部门,并拼接树节点
|
|
6
6
|
filterAppendNodes(value) {
|
|
7
7
|
this.$http
|
|
8
|
-
.post(
|
|
9
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
10
|
-
'/component/organization-trees/searches',
|
|
11
|
-
this.searchParam
|
|
12
|
-
)
|
|
8
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/searches', this.searchParam)
|
|
13
9
|
.then((result) => {
|
|
14
10
|
if (result) {
|
|
15
11
|
if (result.length === 0) {
|
|
16
12
|
this.$message({
|
|
17
13
|
showClose: true,
|
|
18
14
|
type: 'error',
|
|
19
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
15
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
20
16
|
})
|
|
21
17
|
return
|
|
22
18
|
}
|
|
@@ -39,7 +35,7 @@ const workgroupTreeInlineService = {
|
|
|
39
35
|
this.$message({
|
|
40
36
|
showClose: true,
|
|
41
37
|
type: 'error',
|
|
42
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
38
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
43
39
|
})
|
|
44
40
|
}
|
|
45
41
|
})
|
|
@@ -58,24 +54,18 @@ const workgroupTreeInlineService = {
|
|
|
58
54
|
if (!isClickNode) {
|
|
59
55
|
var param = {
|
|
60
56
|
parentId: data.id,
|
|
61
|
-
departmentInfo: this.branchInfo
|
|
57
|
+
departmentInfo: this.branchInfo
|
|
62
58
|
}
|
|
63
59
|
this.$http
|
|
64
60
|
.post(
|
|
65
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
66
|
-
'/component/organization-trees/workgroup-users',
|
|
61
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/workgroup-users',
|
|
67
62
|
param
|
|
68
63
|
)
|
|
69
64
|
.then((result) => {
|
|
70
65
|
// 更新当前点击的节点的子节点
|
|
71
|
-
this.$refs.workgroupUserTree.updateKeyChildren(
|
|
72
|
-
data.nodeId,
|
|
73
|
-
result
|
|
74
|
-
)
|
|
66
|
+
this.$refs.workgroupUserTree.updateKeyChildren(data.nodeId, result)
|
|
75
67
|
// 展开当前选中的节点
|
|
76
|
-
this.$refs.workgroupUserTree.store.nodesMap[
|
|
77
|
-
data.nodeId
|
|
78
|
-
].expanded = true
|
|
68
|
+
this.$refs.workgroupUserTree.store.nodesMap[data.nodeId].expanded = true
|
|
79
69
|
// 获得所有应该选中的节点
|
|
80
70
|
this.checkedNodeAndChildren(data)
|
|
81
71
|
})
|
|
@@ -91,8 +81,7 @@ const workgroupTreeInlineService = {
|
|
|
91
81
|
getAllSelectedWorkgroupUsers(parentIds, selectNodeInfo) {
|
|
92
82
|
this.$http
|
|
93
83
|
.post(
|
|
94
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
95
|
-
'/component/organization-trees/user-in-workgroups',
|
|
84
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/user-in-workgroups',
|
|
96
85
|
parentIds
|
|
97
86
|
)
|
|
98
87
|
.then((users) => {
|
|
@@ -102,13 +91,9 @@ const workgroupTreeInlineService = {
|
|
|
102
91
|
if (selectNodeInfo.userIds.length > 0) {
|
|
103
92
|
$emit(this, 'result', selectNodeInfo)
|
|
104
93
|
} else {
|
|
105
|
-
this.$alert(
|
|
106
|
-
getI18n().t('
|
|
107
|
-
|
|
108
|
-
{
|
|
109
|
-
confirmButtonText: getI18n().t('imatrixUIPublicModel.sure'),
|
|
110
|
-
}
|
|
111
|
-
)
|
|
94
|
+
this.$alert(getI18n().t('imatrixUIMessage.pleaseSelectPersonnel'), getI18n().t('imatrixUIMessage.tips'), {
|
|
95
|
+
confirmButtonText: getI18n().t('imatrixUIPublicModel.sure')
|
|
96
|
+
})
|
|
112
97
|
}
|
|
113
98
|
})
|
|
114
99
|
},
|
|
@@ -128,6 +113,11 @@ const workgroupTreeInlineService = {
|
|
|
128
113
|
if (this.$refs.workgroupUserTree) {
|
|
129
114
|
checkedKeys = this.$refs.workgroupUserTree.getCheckedKeys()
|
|
130
115
|
}
|
|
116
|
+
if (parentId === -1 && node.data.children && node.data.children.length > 0) {
|
|
117
|
+
// 表示初始化树时,已经加载过子节点了,如果子节点为空就再查下
|
|
118
|
+
resolve(node.data.children)
|
|
119
|
+
return
|
|
120
|
+
}
|
|
131
121
|
// 初始化部门树
|
|
132
122
|
this.initLoad(parentId, parentNodeId, node, resolve, checkedKeys)
|
|
133
123
|
},
|
|
@@ -135,14 +125,10 @@ const workgroupTreeInlineService = {
|
|
|
135
125
|
initLoad(parentId, parentNodeId, node, resolve, checkedKeys) {
|
|
136
126
|
const param = {
|
|
137
127
|
parentId: parentId,
|
|
138
|
-
departmentInfo: this.branchInfo
|
|
128
|
+
departmentInfo: this.branchInfo
|
|
139
129
|
}
|
|
140
130
|
this.$http
|
|
141
|
-
.post(
|
|
142
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
143
|
-
'/component/organization-trees/workgroup-users',
|
|
144
|
-
param
|
|
145
|
-
)
|
|
131
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/workgroup-users', param)
|
|
146
132
|
.then((data) => {
|
|
147
133
|
resolve(data)
|
|
148
134
|
// 更新当前点击的节点的子节点
|
|
@@ -173,19 +159,14 @@ const workgroupTreeInlineService = {
|
|
|
173
159
|
loadWorkgroup(parentId, parentNodeId, isSearch, searchValue) {
|
|
174
160
|
const param = {
|
|
175
161
|
parentId: parentId,
|
|
176
|
-
departmentInfo: this.branchInfo
|
|
162
|
+
departmentInfo: this.branchInfo
|
|
177
163
|
}
|
|
178
164
|
this.$http
|
|
179
|
-
.post(
|
|
180
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
181
|
-
'/component/organization-trees/workgroup-users',
|
|
182
|
-
param
|
|
183
|
-
)
|
|
165
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/workgroup-users', param)
|
|
184
166
|
.then((children) => {
|
|
185
167
|
this.$refs.workgroupUserTree.updateKeyChildren(parentNodeId, children)
|
|
186
168
|
if (this.$refs.workgroupUserTree.store.nodesMap[parentNodeId]) {
|
|
187
|
-
this.$refs.workgroupUserTree.store.nodesMap[parentNodeId].expanded =
|
|
188
|
-
true
|
|
169
|
+
this.$refs.workgroupUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
189
170
|
}
|
|
190
171
|
if (isSearch) {
|
|
191
172
|
// 查询时处理
|
|
@@ -215,12 +196,11 @@ const workgroupTreeInlineService = {
|
|
|
215
196
|
},
|
|
216
197
|
searchWorkgroupUsers(value) {
|
|
217
198
|
const param = {
|
|
218
|
-
searchValue: value
|
|
199
|
+
searchValue: value
|
|
219
200
|
}
|
|
220
201
|
this.$http
|
|
221
202
|
.post(
|
|
222
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
223
|
-
'/component/organization-trees/search-workgroup-users',
|
|
203
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/search-workgroup-users',
|
|
224
204
|
param
|
|
225
205
|
)
|
|
226
206
|
.then((result) => {
|
|
@@ -229,7 +209,7 @@ const workgroupTreeInlineService = {
|
|
|
229
209
|
this.$message({
|
|
230
210
|
showClose: true,
|
|
231
211
|
type: 'error',
|
|
232
|
-
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
212
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty')
|
|
233
213
|
})
|
|
234
214
|
return
|
|
235
215
|
}
|