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
|
@@ -155,7 +155,7 @@ const apis = {
|
|
|
155
155
|
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
156
156
|
// 每页显示多少条
|
|
157
157
|
const pageSize = gridParams.pagination && gridParams.pagination.pageSize
|
|
158
|
-
const isMobile =
|
|
158
|
+
const isMobile = this.isMobile
|
|
159
159
|
if(gridParams.pageContext){
|
|
160
160
|
canCreate = gridParams.options.lineEditOptions.beforeInsertRow.call(
|
|
161
161
|
this,{gridData:isSubTableShowPage ? gridParams.subTableData : gridParams.gridData,
|
|
@@ -306,7 +306,7 @@ const apis = {
|
|
|
306
306
|
// 每页显示多少条
|
|
307
307
|
const pageSize =
|
|
308
308
|
gridParams.pagination && gridParams.pagination.pageSize
|
|
309
|
-
const isMobile =
|
|
309
|
+
const isMobile = this.isMobile
|
|
310
310
|
|
|
311
311
|
if(gridParams.pageContext){
|
|
312
312
|
gridParams.options.lineEditOptions.afterInsertRow.call(
|
|
@@ -419,11 +419,11 @@ const apis = {
|
|
|
419
419
|
// 不是操作列,才需要设值
|
|
420
420
|
const defaultValueSet = column.defaultValue
|
|
421
421
|
let defaultValue = null
|
|
422
|
-
console.log('setColumnsDefaultValue111------getDefaultValueFunc--', getDefaultValueFunc, 'column=',column,'defaultValueSet=', defaultValueSet)
|
|
422
|
+
//console.log('setColumnsDefaultValue111------getDefaultValueFunc--', getDefaultValueFunc, 'column=',column,'defaultValueSet=', defaultValueSet)
|
|
423
423
|
if(getDefaultValueFunc) {
|
|
424
|
-
console.log('setColumnsDefaultValue22---getDefaultValueFunc222---')
|
|
424
|
+
//console.log('setColumnsDefaultValue22---getDefaultValueFunc222---')
|
|
425
425
|
defaultValue = getDefaultValueFunc(gridParams.pageContext, defaultValueSet, null, null)
|
|
426
|
-
console.log('setColumnsDefaultValue33---defaultValue---', defaultValue)
|
|
426
|
+
//console.log('setColumnsDefaultValue33---defaultValue---', defaultValue)
|
|
427
427
|
if(defaultValue === undefined) {
|
|
428
428
|
defaultValue = null
|
|
429
429
|
}
|
|
@@ -901,7 +901,7 @@ const apis = {
|
|
|
901
901
|
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
902
902
|
// 每页显示多少条
|
|
903
903
|
const pageSize = gridParams.pagination && gridParams.pagination.pageSize
|
|
904
|
-
const isMobile =
|
|
904
|
+
const isMobile = this.isMobile
|
|
905
905
|
isValidate =
|
|
906
906
|
gridParams.options.lineEditOptions.beforeRestoreValidate.call(this, {
|
|
907
907
|
rowIndex,
|
|
@@ -942,7 +942,7 @@ const apis = {
|
|
|
942
942
|
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
943
943
|
// 每页显示多少条
|
|
944
944
|
const pageSize = gridParams.pagination && gridParams.pagination.pageSize
|
|
945
|
-
const isMobile =
|
|
945
|
+
const isMobile = this.isMobile
|
|
946
946
|
canRestore = gridParams.options.lineEditOptions.beforeRestore.call(
|
|
947
947
|
this,
|
|
948
948
|
{
|
|
@@ -1055,7 +1055,7 @@ const apis = {
|
|
|
1055
1055
|
const gridData = isSubTableShowPage
|
|
1056
1056
|
? gridParams.subTableData
|
|
1057
1057
|
: gridParams.gridData
|
|
1058
|
-
const isMobile =
|
|
1058
|
+
const isMobile = this.isMobile
|
|
1059
1059
|
if(gridParams.pageContext){
|
|
1060
1060
|
canDelete = gridParams.options.lineEditOptions.beforeDelete.call(
|
|
1061
1061
|
this,{
|
|
@@ -1127,14 +1127,14 @@ const apis = {
|
|
|
1127
1127
|
gridParams.superGrid.clearSelection()
|
|
1128
1128
|
}
|
|
1129
1129
|
gridParams.isCreateRow = false
|
|
1130
|
-
if (isRestore
|
|
1130
|
+
if (isRestore === undefined || !isRestore) {
|
|
1131
1131
|
// 表示是删除操作,执行删除记录后回调
|
|
1132
1132
|
if (isEditOptionFunction('afterDelete', listCode)) {
|
|
1133
1133
|
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
1134
1134
|
// 每页显示多少条
|
|
1135
1135
|
const pageSize =
|
|
1136
1136
|
gridParams.pagination && gridParams.pagination.pageSize
|
|
1137
|
-
const isMobile =
|
|
1137
|
+
const isMobile = this.isMobile
|
|
1138
1138
|
if(gridParams.pageContext){
|
|
1139
1139
|
gridParams.options.lineEditOptions.afterDelete.call(
|
|
1140
1140
|
this,{
|
|
@@ -1224,6 +1224,26 @@ const apis = {
|
|
|
1224
1224
|
})
|
|
1225
1225
|
return result
|
|
1226
1226
|
},
|
|
1227
|
+
// 获得该列表中,下拉选是选项组的字段信息,返回的key是属性名,value是选项集合
|
|
1228
|
+
getTableSelectOptions(listCode) {
|
|
1229
|
+
const result = {}
|
|
1230
|
+
if (!listCode) {
|
|
1231
|
+
listCode = store.get('_list_code')
|
|
1232
|
+
}
|
|
1233
|
+
const gridParams = store.get(listCode)
|
|
1234
|
+
const columns = gridParams.columns
|
|
1235
|
+
columns.forEach(col => {
|
|
1236
|
+
const prop = col.prop
|
|
1237
|
+
const isDynamicDataSource = isDynamicDataSourceSource(col)
|
|
1238
|
+
if (!isDynamicDataSource && col.valueSet && col.valueSet.length > 0) {
|
|
1239
|
+
result[prop] = {
|
|
1240
|
+
options: col.valueSet,
|
|
1241
|
+
column: col
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
})
|
|
1245
|
+
return result
|
|
1246
|
+
},
|
|
1227
1247
|
// 取消列表的编辑状态
|
|
1228
1248
|
restoreGridEdit(listCode) {
|
|
1229
1249
|
if (!listCode) {
|
|
@@ -1375,6 +1395,134 @@ const apis = {
|
|
|
1375
1395
|
gridParams.subTableData = gridData
|
|
1376
1396
|
this.subTableData = gridData
|
|
1377
1397
|
}
|
|
1398
|
+
},
|
|
1399
|
+
// 获得默认值字段集合
|
|
1400
|
+
getDefaultValueColumns(listCode) {
|
|
1401
|
+
const defaultValueColumnsMap = {}
|
|
1402
|
+
const gridParams = store.get(listCode)
|
|
1403
|
+
const defaultValueColumns = gridParams.defaultValueColumns
|
|
1404
|
+
if (defaultValueColumns && defaultValueColumns.length > 0) {
|
|
1405
|
+
defaultValueColumns.forEach(column => {
|
|
1406
|
+
defaultValueColumnsMap[column.prop] = column.defaultValue
|
|
1407
|
+
})
|
|
1408
|
+
}
|
|
1409
|
+
return defaultValueColumnsMap
|
|
1410
|
+
},
|
|
1411
|
+
// 重新刷新子表数据
|
|
1412
|
+
reloadSubTableData(listCode) {
|
|
1413
|
+
const gridParams = store.get(listCode)
|
|
1414
|
+
gridParams.options['subTableData'] = null
|
|
1415
|
+
this.fetchListData()
|
|
1416
|
+
},
|
|
1417
|
+
/**
|
|
1418
|
+
* v10 行编辑时动态控制字段的编辑权限
|
|
1419
|
+
* @param pageContext 页面解析的上下文对象
|
|
1420
|
+
* @param customRules 格式如下:
|
|
1421
|
+
* [
|
|
1422
|
+
{
|
|
1423
|
+
name: '_all_fields', // _all_fields 表示所有字段
|
|
1424
|
+
disabled: true,
|
|
1425
|
+
required: true,
|
|
1426
|
+
rules: [
|
|
1427
|
+
{
|
|
1428
|
+
required: true,
|
|
1429
|
+
trigger: 'blur'
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
type: 'email',
|
|
1433
|
+
trigger: ['blur', 'change']
|
|
1434
|
+
}
|
|
1435
|
+
]
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
name: 'xxxx',
|
|
1439
|
+
disabled: true,
|
|
1440
|
+
required: true,
|
|
1441
|
+
rules: [
|
|
1442
|
+
{
|
|
1443
|
+
required: true,
|
|
1444
|
+
message: 'Please input email address',
|
|
1445
|
+
trigger: 'blur'
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
type: 'email',
|
|
1449
|
+
message: 'Please input correct email address',
|
|
1450
|
+
trigger: ['blur', 'change']
|
|
1451
|
+
}
|
|
1452
|
+
]
|
|
1453
|
+
}
|
|
1454
|
+
]
|
|
1455
|
+
*/
|
|
1456
|
+
dynamicControlTableEdit(pageContext, customRules, listCode){
|
|
1457
|
+
const gridParams = store.get(listCode)
|
|
1458
|
+
// console.log('dynamicControlTableEdit----customRules-----', customRules, gridParams.options.customRules)
|
|
1459
|
+
if(!customRules){
|
|
1460
|
+
return
|
|
1461
|
+
}
|
|
1462
|
+
let gridCustomRules = {}
|
|
1463
|
+
if(gridParams.options.customRules){
|
|
1464
|
+
gridCustomRules = JSON.parse(JSON.stringify(gridParams.options.customRules))
|
|
1465
|
+
}
|
|
1466
|
+
customRules.forEach(item=>{
|
|
1467
|
+
const copyItem = JSON.parse(JSON.stringify(item))
|
|
1468
|
+
const prop = item.name
|
|
1469
|
+
// 当前列新的自定义规则集合
|
|
1470
|
+
let columnRules
|
|
1471
|
+
if(!gridCustomRules[prop]){
|
|
1472
|
+
gridCustomRules[prop] = {}
|
|
1473
|
+
}
|
|
1474
|
+
// console.log('dynamicControlTableEdit----gridCustomRules111-----', gridCustomRules)
|
|
1475
|
+
// 获得当前列已有的自定义规则集合
|
|
1476
|
+
columnRules = gridCustomRules[prop].rules
|
|
1477
|
+
|
|
1478
|
+
if(copyItem.rules){
|
|
1479
|
+
if(!columnRules){
|
|
1480
|
+
columnRules = []
|
|
1481
|
+
}
|
|
1482
|
+
// 将当前列自定义规则集合拼接到已有的自定义规则集合中
|
|
1483
|
+
columnRules = columnRules.concat(copyItem.rules)
|
|
1484
|
+
}
|
|
1485
|
+
// 当前列总的自定义规则更新
|
|
1486
|
+
copyItem.rules = columnRules
|
|
1487
|
+
// this.options.customRules[prop] = copyItem
|
|
1488
|
+
if(!gridParams.options.customRules){
|
|
1489
|
+
gridParams.options.customRules = {}
|
|
1490
|
+
}
|
|
1491
|
+
// console.log('dynamicControlTableEdit----gridParams.options.customRules222-----', gridParams.options.customRules)
|
|
1492
|
+
gridParams.options.customRules[prop] = copyItem
|
|
1493
|
+
})
|
|
1494
|
+
// console.log('dynamicControlTableEdit----gridParams.options.customRules333-----', gridParams.options.customRules)
|
|
1495
|
+
},
|
|
1496
|
+
doLayout(hiddenColumns, listCode) {
|
|
1497
|
+
if(!listCode){
|
|
1498
|
+
listCode = this.code
|
|
1499
|
+
}
|
|
1500
|
+
const gridParams = store.get(listCode)
|
|
1501
|
+
const orgHiddenColumns = gridParams.hiddenColumns
|
|
1502
|
+
// console.log('doLayout----orgHiddenColumns=', orgHiddenColumns)
|
|
1503
|
+
if(hiddenColumns && hiddenColumns.length > 0){
|
|
1504
|
+
let hiddenColumnsResult = orgHiddenColumns
|
|
1505
|
+
if(!hiddenColumnsResult){
|
|
1506
|
+
hiddenColumnsResult = []
|
|
1507
|
+
}
|
|
1508
|
+
if(hiddenColumnsResult.length === 0){
|
|
1509
|
+
hiddenColumnsResult = hiddenColumns
|
|
1510
|
+
} else {
|
|
1511
|
+
hiddenColumns.forEach(prop=>{
|
|
1512
|
+
if(hiddenColumnsResult.indexOf(prop) < 0) {
|
|
1513
|
+
// 去重处理
|
|
1514
|
+
hiddenColumnsResult.push(prop)
|
|
1515
|
+
}
|
|
1516
|
+
})
|
|
1517
|
+
}
|
|
1518
|
+
// console.log('doLayout----hiddenColumnsResult=', hiddenColumnsResult)
|
|
1519
|
+
this.options.hiddenColumns = hiddenColumnsResult
|
|
1520
|
+
} else {
|
|
1521
|
+
this.options.hiddenColumns = orgHiddenColumns
|
|
1522
|
+
}
|
|
1523
|
+
if (this.$refs && this.$refs.superGrid) {
|
|
1524
|
+
this.$refs.superGrid.doLayout()
|
|
1525
|
+
}
|
|
1378
1526
|
}
|
|
1379
1527
|
}
|
|
1380
1528
|
export default apis
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
</el-tag>
|
|
14
14
|
</span>
|
|
15
15
|
<span v-else :style="customStyle">
|
|
16
|
-
<i v-if="formatConfig.position==='pre'" :class="formatConfig.icon" />
|
|
17
|
-
<span v-if="formatConfig.displayTextJudge" class="cell--span">{{ displayText }}
|
|
18
|
-
|
|
19
|
-
<i v-if="formatConfig.position==='suf'" :class="formatConfig.icon" />
|
|
16
|
+
<i v-if="formatConfig.position === 'pre'" :class="formatConfig.icon" />
|
|
17
|
+
<span v-if="formatConfig.displayTextJudge" class="cell--span">{{ displayText }} </span>
|
|
18
|
+
<i v-if="formatConfig.position === 'suf'" :class="formatConfig.icon" />
|
|
20
19
|
</span>
|
|
21
20
|
</span>
|
|
22
21
|
</template>
|
|
@@ -69,14 +68,11 @@ export default {
|
|
|
69
68
|
created() {
|
|
70
69
|
this.initFomrat()
|
|
71
70
|
},
|
|
72
|
-
mounted() {
|
|
73
|
-
|
|
74
|
-
},
|
|
71
|
+
mounted() {},
|
|
75
72
|
methods: {
|
|
76
73
|
...customFormatter,
|
|
77
74
|
initFomrat() {
|
|
78
|
-
|
|
79
|
-
this.column.formatter.options && this.column.formatter.options.format) {
|
|
75
|
+
if (this.column.formatter && this.column.formatter.options && this.column.formatter.options.format) {
|
|
80
76
|
this.formatConfig = JSON.parse(this.column.formatter.options.format)
|
|
81
77
|
Object.assign(this.formatConfig, this.getFormatIconSetting(this.row))
|
|
82
78
|
console.log(this.formatConfig, '-------------------')
|
|
@@ -143,7 +139,7 @@ export default {
|
|
|
143
139
|
if (gridParams.options['eventCallBack'] && gridParams.options['eventCallBack'][this.formatConfig.event]) {
|
|
144
140
|
const customEventResult = gridParams.options['eventCallBack'][this.formatConfig.event].call(this, params)
|
|
145
141
|
if (isPromise(customEventResult)) {
|
|
146
|
-
await customEventResult.then(result => {
|
|
142
|
+
await customEventResult.then((result) => {
|
|
147
143
|
console.log('点击前事件返回结果--Promise--resolve---', result)
|
|
148
144
|
this.customStyle = result
|
|
149
145
|
})
|
|
@@ -153,10 +149,7 @@ export default {
|
|
|
153
149
|
}
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
|
-
|
|
157
152
|
}
|
|
158
153
|
</script>
|
|
159
154
|
|
|
160
|
-
<style>
|
|
161
|
-
|
|
162
|
-
</style>
|
|
155
|
+
<style></style>
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span>
|
|
3
|
-
<el-link :type="getLinkType(row)" @click="clickHyperLink(column, row, listCode,scopeIndex)">
|
|
4
|
-
<span
|
|
5
|
-
|
|
3
|
+
<el-link :type="getLinkType(row)" @click="clickHyperLink(column, row, listCode, scopeIndex)">
|
|
4
|
+
<span
|
|
5
|
+
v-if="isShowOverflowTooltip"
|
|
6
|
+
:id="column.prop + 'DomData' + scopeIndex"
|
|
7
|
+
:title="$escapeHtml(getMyHyperLinkSetting(row).title)"
|
|
8
|
+
:style="{ width: cellWidth + 'px' }"
|
|
9
|
+
class="ellipsis cell--span"
|
|
10
|
+
>{{ $escapeHtml(getMyHyperLinkSetting(row).label)
|
|
11
|
+
}}<i v-if="getMyHyperLinkSetting(row).icon" :class="getMyHyperLinkSetting(row).icon"
|
|
12
|
+
/></span>
|
|
13
|
+
<span v-else :id="column.prop + 'DomData' + scopeIndex" class="cell--span"
|
|
14
|
+
>{{ $escapeHtml(getMyHyperLinkSetting(row).label)
|
|
15
|
+
}}<i v-if="getMyHyperLinkSetting(row).icon" :class="getMyHyperLinkSetting(row).icon"
|
|
16
|
+
/></span>
|
|
6
17
|
</el-link>
|
|
7
18
|
</span>
|
|
8
19
|
</template>
|
|
@@ -48,7 +59,15 @@ export default {
|
|
|
48
59
|
if (gridParams && gridParams.basicInfo && gridParams.basicInfo.tableName) {
|
|
49
60
|
tableName = gridParams.basicInfo.tableName
|
|
50
61
|
}
|
|
51
|
-
const hyperLinkResult = this.getHyperLinkSetting(
|
|
62
|
+
const hyperLinkResult = this.getHyperLinkSetting(
|
|
63
|
+
this.column,
|
|
64
|
+
row,
|
|
65
|
+
this.isSql,
|
|
66
|
+
gridParams.additionalParamMap,
|
|
67
|
+
gridParams.contextParameter,
|
|
68
|
+
tableName,
|
|
69
|
+
this.listCode
|
|
70
|
+
)
|
|
52
71
|
hyperLinkResult.icon = this.getHyperIconClass(hyperLinkResult)
|
|
53
72
|
return hyperLinkResult
|
|
54
73
|
},
|
|
@@ -105,10 +124,7 @@ export default {
|
|
|
105
124
|
return 'primary'
|
|
106
125
|
}
|
|
107
126
|
}
|
|
108
|
-
|
|
109
127
|
}
|
|
110
128
|
</script>
|
|
111
129
|
|
|
112
|
-
<style>
|
|
113
|
-
|
|
114
|
-
</style>
|
|
130
|
+
<style></style>
|