agilebuilder-ui 1.0.621 → 1.0.962
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/super-ui.css +1 -1
- package/lib/super-ui.js +115880 -110424
- package/lib/super-ui.umd.cjs +103 -95
- package/package.json +6 -3
- package/packages/department-tree/src/department-tree.vue +27 -10
- package/packages/department-tree-inline/src/department-tree-service.js +20 -41
- package/packages/department-tree-mobile/src/department-tree-app.vue +6 -6
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +15 -15
- package/packages/department-user-tree/src/department-user-tree.vue +17 -2
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +61 -26
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +64 -22
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -6
- package/packages/department-user-tree-inline/src/group-user/group-input.vue +162 -0
- package/packages/department-user-tree-inline/src/group-user/group-list.vue +99 -0
- package/packages/department-user-tree-inline/src/group-user/group-user.vue +42 -0
- package/packages/department-user-tree-inline/src/group-user-multiple-tree.vue +304 -0
- package/packages/department-user-tree-inline/src/group-user-single-tree.vue +155 -0
- package/packages/department-user-tree-inline/src/group-user-tree-service.js +74 -0
- package/packages/department-user-tree-inline/src/search-result.vue +34 -36
- package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +6 -6
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +17 -19
- package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +0 -11
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +795 -799
- package/packages/dynamic-source-select/src/events.js +11 -16
- package/packages/fs-upload-list/src/fs-upload-list.vue +183 -122
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-app.vue +246 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +480 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-component.vue +127 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +246 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload.vue +255 -0
- package/packages/fs-upload-new/src/fs-button-upload.vue +10 -13
- package/packages/fs-upload-new/src/fs-drag-upload.vue +4 -8
- package/packages/fs-upload-new/src/fs-preview-new.vue +103 -36
- package/packages/fs-upload-new/src/fs-upload-new.vue +160 -13
- package/packages/index.js +11 -2
- package/packages/organization-input/src/organization-input.vue +493 -539
- package/packages/plugins/export-data-new.js +34 -1
- package/packages/rich-editor/index.vue +29 -0
- package/packages/row-form/index.js +7 -0
- package/packages/row-form/index.vue +211 -0
- package/packages/scan-code-input/src/scan-code-input.vue +136 -104
- package/packages/scan-code-input-browser/index.js +6 -0
- package/packages/{scan-code-input/src/scan-code-input-colse.vue → scan-code-input-browser/src/scan-code-input.vue} +1 -28
- package/packages/secret-info/index.vue +2 -2
- package/packages/super-grid/src/apis.js +158 -10
- package/packages/super-grid/src/components/grid-icon.vue +7 -14
- package/packages/super-grid/src/components/hyperlinks.vue +24 -8
- package/packages/super-grid/src/custom-formatter.js +312 -380
- package/packages/super-grid/src/dynamic-input.vue +346 -43
- package/packages/super-grid/src/formValidatorUtil.js +79 -15
- package/packages/super-grid/src/group-column.vue +5 -0
- package/packages/super-grid/src/normal-column-content.vue +1056 -0
- package/packages/super-grid/src/normal-column.vue +57 -740
- package/packages/super-grid/src/row-detail.vue +50 -0
- package/packages/super-grid/src/row-operation.vue +19 -10
- package/packages/super-grid/src/scan-util.ts +243 -0
- package/packages/super-grid/src/search-button.vue +18 -14
- package/packages/super-grid/src/search-form-advancedQuery.vue +9 -2
- package/packages/super-grid/src/search-form-item.vue +10 -3
- package/packages/super-grid/src/search-form-mobile.vue +250 -0
- package/packages/super-grid/src/search-form.vue +159 -82
- package/packages/super-grid/src/super-grid-service.js +51 -6
- package/packages/super-grid/src/super-grid.vue +657 -761
- package/packages/super-grid/src/utils.js +126 -170
- package/packages/super-nine-grid/src/super-nine-grid.vue +1032 -1141
- package/packages/workflow-button/src/workflow-button.vue +6 -1
- package/packages/workgroup-tree/src/workgroup-tree.vue +31 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +28 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +26 -0
- package/packages/workgroup-tree-mobile/index.js +6 -0
- package/packages/workgroup-tree-mobile/src/dept-result.vue +51 -0
- package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +120 -0
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +375 -0
- package/packages/workgroup-tree-mobile/src/workgroup-tree-service.ts +62 -0
- package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +15 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +27 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +11 -0
- package/packages/workgroup-user-tree-mobile/index.js +6 -0
- package/packages/workgroup-user-tree-mobile/src/dept-path.vue +36 -0
- package/packages/workgroup-user-tree-mobile/src/dept-result.vue +58 -0
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue +119 -0
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +394 -0
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-service.ts +41 -0
- package/src/api/sso-service.js +44 -15
- package/src/directives/permission/permission.js +4 -3
- package/src/i18n/langs/cn.js +19 -3
- package/src/i18n/langs/en.js +18 -2
- package/src/permission.js +114 -122
- package/src/store/modules/user.js +32 -33
- package/src/styles/index.scss +1 -0
- package/src/styles/table.scss +12 -0
- package/src/styles/theme/dark-blue/button.scss +2 -2
- package/src/styles/theme/dark-blue/index.scss +1 -1
- package/src/styles/theme/dark-blue/sidebar.scss +10 -0
- package/src/styles/theme/dark-blue/table.scss +8 -52
- package/src/styles/theme/green/button.scss +2 -2
- package/src/styles/theme/green/green.scss +1 -1
- package/src/styles/theme/green/index.scss +1 -1
- package/src/styles/theme/green/sidebar.scss +20 -0
- package/src/styles/theme/green/table.scss +7 -51
- package/src/styles/theme/ocean-blue/button.scss +2 -2
- package/src/styles/theme/ocean-blue/index.scss +1 -1
- package/src/styles/theme/ocean-blue/ocean-blue.scss +1 -1
- package/src/styles/theme/ocean-blue/sidebar.scss +10 -0
- package/src/styles/theme/ocean-blue/table.scss +7 -52
- package/src/utils/auth.js +23 -3
- package/src/utils/calculator/calculator-factory.js +4 -4
- package/src/utils/calculator/calculator-util.js +14 -0
- package/src/utils/common-util.js +270 -124
- package/src/utils/i18n-util.js +145 -0
- package/src/utils/jump-page-utils.js +245 -314
- package/src/utils/permission.js +7 -1
- package/src/utils/permissionAuth.js +155 -37
- package/src/utils/request.js +10 -11
- package/src/utils/util.js +154 -205
- package/src/views/layout/EmptyLayout.vue +1 -1
- package/src/views/layout/components/Menubar/Item.vue +27 -4
- package/src/views/layout/components/Menubar/SidebarItem.vue +7 -3
- package/src/views/layout/components/Menubar/index.vue +14 -2
- package/src/views/layout/tab-content-index.vue +1 -1
|
@@ -176,6 +176,7 @@ const superGridService = {
|
|
|
176
176
|
gridParams.pagination = this.pagination
|
|
177
177
|
gridParams.pageContext = this.pageContext
|
|
178
178
|
gridParams.configureObj = this.configureObj
|
|
179
|
+
gridParams.hiddenColumns = this.options.hiddenColumns?JSON.parse(JSON.stringify(this.options.hiddenColumns)):[]
|
|
179
180
|
if (this.pagination) {
|
|
180
181
|
// 监控每行显示多少条变量使用
|
|
181
182
|
this.pageSize = this.pagination.pageSize
|
|
@@ -192,6 +193,7 @@ const superGridService = {
|
|
|
192
193
|
? this.isShowPage
|
|
193
194
|
: false
|
|
194
195
|
gridParams.isSubTableShowPage = this.isSubTableShowPage
|
|
196
|
+
this.getDetailColumn()
|
|
195
197
|
this.hasLoadedColumns = true
|
|
196
198
|
let canFetchData = true
|
|
197
199
|
if (isHasOptionFunction('loadBeforeSend', this.code)) {
|
|
@@ -203,6 +205,7 @@ const superGridService = {
|
|
|
203
205
|
configureObj: this.configureObj
|
|
204
206
|
})
|
|
205
207
|
}
|
|
208
|
+
// console.log('fetchData-----this.options.initSearch=', this.options.initSearch,'gridParams.basicInfo.initializationQuery=', gridParams.basicInfo.initializationQuery, '0000000')
|
|
206
209
|
if (canFetchData === undefined || canFetchData === true) {
|
|
207
210
|
// 表示初始化时查询记录
|
|
208
211
|
if (this.options.isPageInfo) {
|
|
@@ -213,6 +216,7 @@ const superGridService = {
|
|
|
213
216
|
'undefined' ||
|
|
214
217
|
gridParams.basicInfo.initializationQuery
|
|
215
218
|
) {
|
|
219
|
+
// console.log('fetchData-----this.loadCompleteQuery=', this.loadCompleteQuery, '1111111')
|
|
216
220
|
// 判断是否初始化完查询条件后再查询数据
|
|
217
221
|
if (this.loadCompleteQuery) {
|
|
218
222
|
this.isLoading = false
|
|
@@ -220,7 +224,7 @@ const superGridService = {
|
|
|
220
224
|
this.fetchData()
|
|
221
225
|
}
|
|
222
226
|
}
|
|
223
|
-
} else if (this.options.initSearch
|
|
227
|
+
} else if (this.options.initSearch) {
|
|
224
228
|
// 判断是否初始化完查询条件后再查询数据
|
|
225
229
|
if (this.loadCompleteQuery) {
|
|
226
230
|
this.isLoading = false
|
|
@@ -230,9 +234,9 @@ const superGridService = {
|
|
|
230
234
|
}
|
|
231
235
|
}
|
|
232
236
|
this.createBackgroundColorMap()
|
|
233
|
-
const p2 = new Date().getTime()
|
|
234
|
-
console.log('拿到共享数据并存储p2-p1=', p2 - p1)
|
|
235
|
-
console.log('拿到共享数据并存储p2-b=', p2 - b)
|
|
237
|
+
// const p2 = new Date().getTime()
|
|
238
|
+
// console.log('拿到共享数据并存储p2-p1=', p2 - p1)
|
|
239
|
+
// console.log('拿到共享数据并存储p2-b=', p2 - b)
|
|
236
240
|
resolve()
|
|
237
241
|
})
|
|
238
242
|
.catch((error) => {
|
|
@@ -247,6 +251,45 @@ const superGridService = {
|
|
|
247
251
|
console.log('初始化所耗时间', a1 - a)
|
|
248
252
|
})
|
|
249
253
|
},
|
|
254
|
+
getDetailColumn() {
|
|
255
|
+
if (this.isFormSubTable && this.options.showRowForm) {
|
|
256
|
+
// 显示详情列
|
|
257
|
+
const detailColumn = {
|
|
258
|
+
"prop": "$detail",
|
|
259
|
+
"orgProp": "$detail",
|
|
260
|
+
"label": "详情",
|
|
261
|
+
"dataType": "TEXT",
|
|
262
|
+
"width": 80,
|
|
263
|
+
"show": true,
|
|
264
|
+
"exportable": false,
|
|
265
|
+
"sortable": "false",
|
|
266
|
+
"filterable": false,
|
|
267
|
+
"fixed": "left",
|
|
268
|
+
"span": false,
|
|
269
|
+
"queryType": "no",
|
|
270
|
+
"querySetting": "{}",
|
|
271
|
+
"editable": false,
|
|
272
|
+
"componentType": "input",
|
|
273
|
+
"titleAlign": "center",
|
|
274
|
+
"contAlign": "center",
|
|
275
|
+
"showType": "default",
|
|
276
|
+
"exportType": "default",
|
|
277
|
+
"displayOrderType": "default",
|
|
278
|
+
"displayOrder": 5,
|
|
279
|
+
"widthType": "default",
|
|
280
|
+
"ifMultiData": true,
|
|
281
|
+
"dynamic": false,
|
|
282
|
+
"total": false,
|
|
283
|
+
"custom": true,
|
|
284
|
+
"remoteEnum": false,
|
|
285
|
+
"fuzzy": true,
|
|
286
|
+
"groupHeader": false
|
|
287
|
+
}
|
|
288
|
+
detailColumn.label = this.$t('superGrid.detail')
|
|
289
|
+
this.detailColumn = detailColumn
|
|
290
|
+
console.log('getDetailColumn----this.detailColumn=', this.detailColumn)
|
|
291
|
+
}
|
|
292
|
+
},
|
|
250
293
|
getListViewSetting(additionalParams) {
|
|
251
294
|
return new Promise((resolve, reject) => {
|
|
252
295
|
console.log('getListViewSetting--this.settings====', this.settings)
|
|
@@ -295,9 +338,10 @@ const superGridService = {
|
|
|
295
338
|
column.hasOwnProperty('prop')
|
|
296
339
|
) {
|
|
297
340
|
if (column.prop !== '$index' && column.prop !== '$selection') {
|
|
298
|
-
if (column.queryType && column.queryType !== 'no'
|
|
341
|
+
if (column.queryType && column.queryType !== 'no' && column.componentType && (column.componentType === 'date' || column.componentType === 'dateSection' ||
|
|
342
|
+
column.componentType === 'timePicker' || column.componentType === 'dateTimePicker')) {
|
|
299
343
|
// 配置了默认值
|
|
300
|
-
if (column.controlConfig) {
|
|
344
|
+
if (column.controlConfig && column.controlConfig.timeDefaultQueryRange) {
|
|
301
345
|
queryParameterSize++
|
|
302
346
|
}
|
|
303
347
|
}
|
|
@@ -307,6 +351,7 @@ const superGridService = {
|
|
|
307
351
|
if (queryParameterSize > 0) {
|
|
308
352
|
this.loadCompleteQuery = true
|
|
309
353
|
}
|
|
354
|
+
// console.log('isLoadCompleteQuery-----this.loadCompleteQuery=', this.loadCompleteQuery)
|
|
310
355
|
}
|
|
311
356
|
},
|
|
312
357
|
packageColumnOptionMap(gridParams) {
|