agilebuilder-ui 1.1.34 → 1.1.35-sit2
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-7193e896.js → 401-10787110.js} +1 -1
- package/lib/{404-2852bd20.js → 404-81306f89.js} +1 -1
- package/lib/{iframe-page-bcc25b1c.js → iframe-page-bd0c7ac7.js} +1 -1
- package/lib/index-5d1deed4.js +73264 -0
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +89 -89
- package/lib/{tab-content-iframe-index-48b3b846.js → tab-content-iframe-index-84fee73c.js} +1 -1
- package/lib/{tab-content-index-d25e4873.js → tab-content-index-ddd15021.js} +1 -1
- package/lib/{tache-subprocess-history-a72dd967.js → tache-subprocess-history-00e89e0a.js} +1 -1
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +343 -368
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +113 -42
- package/packages/organization-input/src/organization-input.vue +11 -0
- package/packages/super-grid/src/apis.js +13 -13
- package/packages/super-grid/src/dynamic-input.vue +11 -1
- package/packages/super-grid/src/formatter.js +58 -57
- package/packages/super-grid/src/normal-column-content.vue +149 -56
- package/packages/super-grid/src/row-operation.vue +35 -18
- package/packages/super-grid/src/search-form-open.vue +0 -1
- package/packages/super-grid/src/super-grid-service.js +1 -1
- package/packages/super-grid/src/super-grid.vue +135 -97
- package/packages/super-icon/src/index.vue +35 -18
- package/packages/utils/value-set.js +147 -1
- package/src/styles/display-layout.scss +1 -1
- package/src/styles/index.scss +7 -1
- package/src/utils/auth-api.js +4 -0
- package/src/utils/common-util.js +3 -0
- package/src/utils/dingtalk-util.ts +23 -17
- package/src/utils/util.js +721 -715
- package/src/views/dsc-component/Sidebar/Item.vue +76 -60
- package/src/views/layout/components/Menubar/Item.vue +94 -74
- package/lib/index-d502d8fe.js +0 -72779
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
@reset="resetSearch"
|
|
36
36
|
@close="closeSearchFormDialog"
|
|
37
37
|
/>
|
|
38
|
-
<div ref="superGridMain" :class="'grid-area ' + code"
|
|
38
|
+
<div ref="superGridMain" :class="'grid-area ' + code" class="super-grid-main-body">
|
|
39
39
|
<MobileCard
|
|
40
40
|
v-if="isShowCard"
|
|
41
41
|
:selection="selectionTableData"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@row-click="rowClickEvent"
|
|
54
54
|
@row-dblclick="rowDblclickEvent"
|
|
55
55
|
/>
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
<el-table
|
|
58
58
|
v-else-if="refreshGrid && hasLoadedColumns && !isShowCard"
|
|
59
59
|
ref="superGrid"
|
|
@@ -91,38 +91,30 @@
|
|
|
91
91
|
@cell-dblclick="cellDblClick"
|
|
92
92
|
>
|
|
93
93
|
<row-detail v-if="detailColumn" :column="detailColumn" :list-code="code" @show-detail="openRowForm" />
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
<component
|
|
96
96
|
:is="getComponentType(column)"
|
|
97
|
-
v-for="({column, ...item}, index) in visibleColumnsComponentData"
|
|
97
|
+
v-for="({ column, ...item }, index) in visibleColumnsComponentData"
|
|
98
98
|
:ref="column.prop"
|
|
99
99
|
:key="column.label + index"
|
|
100
100
|
v-bind="item.$bind"
|
|
101
101
|
v-on="item.$on"
|
|
102
102
|
/>
|
|
103
|
-
|
|
104
103
|
</el-table>
|
|
105
104
|
<div v-if="showPagination && !isShowCard" class="super-grid-main-table-footer-view">
|
|
106
|
-
<div class="yx-flex-wrap" style="gap: 10px
|
|
107
|
-
|
|
105
|
+
<div class="yx-flex-wrap" style="gap: 10px">
|
|
108
106
|
<div
|
|
109
107
|
v-if="basicInfo.customConfig && !isFormSubTable"
|
|
110
108
|
class="el-icon-setting"
|
|
111
109
|
:title="$t('superGrid.columnConfig')"
|
|
112
110
|
@click="configColumns"
|
|
113
111
|
>
|
|
114
|
-
<el-icon-setting style="width: 16px; height: 16px; color: #777; cursor: pointer
|
|
112
|
+
<el-icon-setting style="width: 16px; height: 16px; color: #777; cursor: pointer" />
|
|
115
113
|
</div>
|
|
116
114
|
|
|
117
|
-
<div
|
|
118
|
-
|
|
119
|
-
class="el-icon-refresh"
|
|
120
|
-
:title="$t('superGrid.refresh')"
|
|
121
|
-
@click="refreshGridData"
|
|
122
|
-
>
|
|
123
|
-
<el-icon-refresh style="width: 16px; height: 16px; color: #777; cursor: pointer;" />
|
|
115
|
+
<div v-if="!isFormSubTable" class="el-icon-refresh" :title="$t('superGrid.refresh')" @click="refreshGridData">
|
|
116
|
+
<el-icon-refresh style="width: 16px; height: 16px; color: #777; cursor: pointer" />
|
|
124
117
|
</div>
|
|
125
|
-
|
|
126
118
|
</div>
|
|
127
119
|
<el-pagination
|
|
128
120
|
v-if="pagination && isShowPage"
|
|
@@ -178,7 +170,7 @@
|
|
|
178
170
|
:page-grid-data="isSubTableShowPage ? getSubTableGridData(subTableData) : gridData"
|
|
179
171
|
:line-edit="lineEdit"
|
|
180
172
|
:show-page="pagination && isShowPage"
|
|
181
|
-
:page-size="pagination?pagination.pageSize: null"
|
|
173
|
+
:page-size="pagination ? pagination.pageSize : null"
|
|
182
174
|
@close="closeRowForm"
|
|
183
175
|
@refresData="refresData"
|
|
184
176
|
@refresPortData="refresPortData"
|
|
@@ -231,9 +223,9 @@ import apis from './apis'
|
|
|
231
223
|
import headerContextMenu from './header-context-menu.vue'
|
|
232
224
|
import { isMobileBrowser, isPromise } from '../../../src/utils/common-util'
|
|
233
225
|
import { checkPermission } from '../../../src/utils/permission'
|
|
234
|
-
import { getGuId } from '../../../src/utils/guid.js'
|
|
226
|
+
import { getGuId } from '../../../src/utils/guid.js'
|
|
235
227
|
// import resizeMixin from '../../../src/mixins/resizeMixin.js';
|
|
236
|
-
import storeVuex from '../../../src/store'
|
|
228
|
+
import storeVuex from '../../../src/store'
|
|
237
229
|
|
|
238
230
|
export default {
|
|
239
231
|
components: {
|
|
@@ -310,7 +302,7 @@ export default {
|
|
|
310
302
|
manualHeightOffset: {
|
|
311
303
|
type: [undefined, Number],
|
|
312
304
|
default: undefined
|
|
313
|
-
}
|
|
305
|
+
}
|
|
314
306
|
},
|
|
315
307
|
data() {
|
|
316
308
|
let parentProp
|
|
@@ -426,7 +418,8 @@ export default {
|
|
|
426
418
|
isShowPageDialog: false, // 是否显示弹框
|
|
427
419
|
jumpPageSetting: null,
|
|
428
420
|
pageCode,
|
|
429
|
-
maxHeight:
|
|
421
|
+
maxHeight: undefined,
|
|
422
|
+
tableHeight: undefined,
|
|
430
423
|
pageHeight, // 页面高度
|
|
431
424
|
currentSelectCell: null,
|
|
432
425
|
isLazy, // 树形结构时是否懒加载,默认是懒加载的
|
|
@@ -454,7 +447,7 @@ export default {
|
|
|
454
447
|
showRowForm: false, // 是否显示行记录详情
|
|
455
448
|
baseURL: null,
|
|
456
449
|
hasFilterDataEvent: false, // 是否是表格过滤
|
|
457
|
-
selectionTableData: []
|
|
450
|
+
selectionTableData: [] // 勾选数据
|
|
458
451
|
}
|
|
459
452
|
},
|
|
460
453
|
computed: {
|
|
@@ -465,7 +458,7 @@ export default {
|
|
|
465
458
|
// 限制高度最低值
|
|
466
459
|
hasMaxHeight() {
|
|
467
460
|
if (this.maxHeight) {
|
|
468
|
-
return this.maxHeight <= 100 ? 100 : this.maxHeight + this.heightOffset
|
|
461
|
+
return this.maxHeight <= 100 ? 100 : this.maxHeight + this.heightOffset
|
|
469
462
|
}
|
|
470
463
|
return undefined
|
|
471
464
|
},
|
|
@@ -473,7 +466,7 @@ export default {
|
|
|
473
466
|
// 是指固定高度最低值
|
|
474
467
|
hasTableHeight() {
|
|
475
468
|
if (this.tableHeight) {
|
|
476
|
-
return this.tableHeight <= 100 ? 100 : this.tableHeight
|
|
469
|
+
return this.tableHeight <= 100 ? 100 : this.tableHeight + this.heightOffset
|
|
477
470
|
}
|
|
478
471
|
return undefined
|
|
479
472
|
},
|
|
@@ -482,15 +475,20 @@ export default {
|
|
|
482
475
|
},
|
|
483
476
|
// 是否显示卡片
|
|
484
477
|
isShowCard() {
|
|
485
|
-
return
|
|
478
|
+
return (
|
|
479
|
+
this.isShowAutoCard &&
|
|
480
|
+
this.isMobileListCard &&
|
|
481
|
+
!this.options.isAdministerListView &&
|
|
482
|
+
(this.options?.configureObj?.props?.base?.isMobileCard ?? true)
|
|
483
|
+
)
|
|
486
484
|
},
|
|
487
485
|
visibleColumns() {
|
|
488
486
|
const gridParams = store.get(this.code)
|
|
489
487
|
const operations = this.getOptionOperations()
|
|
490
488
|
gridParams.canntEdit = false
|
|
491
489
|
|
|
492
|
-
const setAttrs = data => data.map(item => ({ property: item.prop, ...item}))
|
|
493
|
-
|
|
490
|
+
const setAttrs = (data) => data.map((item) => ({ property: item.prop, ...item }))
|
|
491
|
+
|
|
494
492
|
if (operations && operations.operation && operations.operation.length > 0) {
|
|
495
493
|
operations.operation.forEach((buttonInfo) => {
|
|
496
494
|
if (buttonInfo.props.code === 'lineEditUpdate') {
|
|
@@ -529,7 +527,12 @@ export default {
|
|
|
529
527
|
if (column.show === undefined || column.show) {
|
|
530
528
|
isVisible = true
|
|
531
529
|
const hiddenColumns = this.options.hiddenColumns
|
|
532
|
-
if (
|
|
530
|
+
if (
|
|
531
|
+
hiddenColumns &&
|
|
532
|
+
hiddenColumns.length > 0 &&
|
|
533
|
+
column.prop &&
|
|
534
|
+
hiddenColumns.indexOf(column.prop) !== -1
|
|
535
|
+
) {
|
|
533
536
|
// 如果当前字段包含在隐藏字段集合中,则不显示该字段
|
|
534
537
|
isVisible = false
|
|
535
538
|
return isVisible
|
|
@@ -552,10 +555,10 @@ export default {
|
|
|
552
555
|
}
|
|
553
556
|
},
|
|
554
557
|
visibleColumnsComponentData() {
|
|
555
|
-
return this.visibleColumns.map(data => this.getColumnComponentData(data, this.myCustomFormatter))
|
|
558
|
+
return this.visibleColumns.map((data) => this.getColumnComponentData(data, this.myCustomFormatter))
|
|
556
559
|
},
|
|
557
560
|
mobileColumns() {
|
|
558
|
-
return 'Layout'
|
|
561
|
+
return 'Layout'
|
|
559
562
|
},
|
|
560
563
|
tableDatas() {
|
|
561
564
|
return this.hasFilterDataEvent ? this.filterGridData : this.gridData
|
|
@@ -603,11 +606,11 @@ export default {
|
|
|
603
606
|
},
|
|
604
607
|
watch: {
|
|
605
608
|
// 切换表格 与 卡片是否
|
|
606
|
-
|
|
609
|
+
isShowCard: {
|
|
607
610
|
deep: true,
|
|
608
611
|
handler(is) {
|
|
609
612
|
// 是否开启卡片,如果开启则平台切换时候重新回到第一页
|
|
610
|
-
if(this.isShowAutoCard) {
|
|
613
|
+
if (this.isShowAutoCard) {
|
|
611
614
|
if (this.currentPage > 1) {
|
|
612
615
|
this.currentPage = 1
|
|
613
616
|
this.handleCurrentChange()
|
|
@@ -615,7 +618,7 @@ export default {
|
|
|
615
618
|
this.$nextTick()
|
|
616
619
|
}
|
|
617
620
|
}
|
|
618
|
-
if(!is) {
|
|
621
|
+
if (!is) {
|
|
619
622
|
// 显示表格后重新格式化展示
|
|
620
623
|
this.$nextTick(() => {
|
|
621
624
|
this.resizeTableHeight()
|
|
@@ -624,7 +627,7 @@ export default {
|
|
|
624
627
|
}
|
|
625
628
|
}
|
|
626
629
|
},
|
|
627
|
-
|
|
630
|
+
tableDatas: {
|
|
628
631
|
deep: true,
|
|
629
632
|
immediate: true,
|
|
630
633
|
handler(a, b) {
|
|
@@ -697,7 +700,8 @@ export default {
|
|
|
697
700
|
this.$nextTick(() => {
|
|
698
701
|
if (newVal) {
|
|
699
702
|
// 手动触发新单元格的点击事件
|
|
700
|
-
|
|
703
|
+
// 2025年5月28日 注释newVal.click(),这里会导致行点击事件触发两次,
|
|
704
|
+
// newVal.click()
|
|
701
705
|
}
|
|
702
706
|
if (oldVal) {
|
|
703
707
|
// 清空上一个单元格的选中样式
|
|
@@ -752,7 +756,7 @@ export default {
|
|
|
752
756
|
return {}
|
|
753
757
|
},
|
|
754
758
|
created() {
|
|
755
|
-
storeVuex?.dispatch?.('startListeningToResize')
|
|
759
|
+
storeVuex?.dispatch?.('startListeningToResize')
|
|
756
760
|
store.set(this.code, getGridParams())
|
|
757
761
|
store.set('_list_code', this.code)
|
|
758
762
|
this.initSetting()
|
|
@@ -781,6 +785,7 @@ export default {
|
|
|
781
785
|
if (gridParams && gridParams.basicInfo && gridParams.basicInfo.name) {
|
|
782
786
|
this.listName = gridParams.basicInfo.name
|
|
783
787
|
}
|
|
788
|
+
$emit(this, 'grid-onmounted')
|
|
784
789
|
this.$nextTick(() => {
|
|
785
790
|
// 将子表选项组值传递super-pages中,解决到处报告时子表选项组赋值问题
|
|
786
791
|
this.columns.forEach((column) => {
|
|
@@ -809,7 +814,7 @@ export default {
|
|
|
809
814
|
}
|
|
810
815
|
)
|
|
811
816
|
}
|
|
812
|
-
window.addEventListener('resize', this.resizeTableHeight)
|
|
817
|
+
window.addEventListener('resize', this.resizeTableHeight)
|
|
813
818
|
this.$watch(
|
|
814
819
|
'hasLoadData',
|
|
815
820
|
function (newVal, oldVal) {
|
|
@@ -909,16 +914,16 @@ export default {
|
|
|
909
914
|
})
|
|
910
915
|
},
|
|
911
916
|
beforeDestroy() {
|
|
912
|
-
window.removeEventListener('resize', this.resizeTableHeight)
|
|
917
|
+
window.removeEventListener('resize', this.resizeTableHeight)
|
|
913
918
|
},
|
|
914
919
|
methods: {
|
|
915
920
|
...events,
|
|
916
921
|
...publicMethods,
|
|
917
922
|
...superGridService,
|
|
918
923
|
...apis,
|
|
919
|
-
|
|
924
|
+
onResize(entry) {
|
|
920
925
|
this.resizeTableHeight()
|
|
921
|
-
|
|
926
|
+
},
|
|
922
927
|
onClickMain() {
|
|
923
928
|
// 清理编辑选中
|
|
924
929
|
storeVuex?.dispatch?.('clearAllEditing')
|
|
@@ -950,7 +955,7 @@ export default {
|
|
|
950
955
|
this.$nextTick(() => {
|
|
951
956
|
let tableHeight = getTableHeight(this.$refs.superGrid, this.code, this.pageHeight)
|
|
952
957
|
|
|
953
|
-
let tempMaxHeight =
|
|
958
|
+
let tempMaxHeight = undefined
|
|
954
959
|
const gridParams = store.get(this.code)
|
|
955
960
|
if (isHasOptionFunction('resizeHeight', this.code)) {
|
|
956
961
|
let searchHeight = 0
|
|
@@ -972,43 +977,65 @@ export default {
|
|
|
972
977
|
}
|
|
973
978
|
// 设置列表最大高度
|
|
974
979
|
if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.isPdfEditor) {
|
|
975
|
-
tempMaxHeight =
|
|
980
|
+
tempMaxHeight = undefined
|
|
976
981
|
} else if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.formSetMaxHeight) {
|
|
977
982
|
tempMaxHeight = gridParams.options.formSetMaxHeight
|
|
978
983
|
}
|
|
979
984
|
|
|
980
985
|
// 设置列表高度
|
|
981
986
|
if (tempMaxHeight === undefined || tempMaxHeight === null) {
|
|
982
|
-
tempMaxHeight = tableHeight
|
|
983
987
|
if (this.optionTableHeight) {
|
|
984
988
|
tempMaxHeight = this.optionTableHeight
|
|
985
989
|
} else if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.isPdfEditor) {
|
|
986
|
-
tempMaxHeight =
|
|
990
|
+
tempMaxHeight = undefined
|
|
987
991
|
} else if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.formSetHeight) {
|
|
988
992
|
tempMaxHeight = gridParams.options.formSetHeight
|
|
993
|
+
} else {
|
|
994
|
+
tempMaxHeight = tableHeight
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
if(tempMaxHeight === null){
|
|
998
|
+
// 高度是null会导致页面卡死
|
|
999
|
+
tempMaxHeight = undefined
|
|
1000
|
+
}
|
|
1001
|
+
if(tempMaxHeight !== null && tempMaxHeight !== undefined && parseFloat(tempMaxHeight+'') < 100){
|
|
1002
|
+
// 如果小于100时,高度给100
|
|
1003
|
+
tempMaxHeight = 100
|
|
1004
|
+
}
|
|
1005
|
+
if(tempMaxHeight !== null && tempMaxHeight !== undefined){
|
|
1006
|
+
// 用parseFloat是因为tempMaxHeight的值有时是数字字符串
|
|
1007
|
+
tempMaxHeight = parseFloat(tempMaxHeight+'')
|
|
1008
|
+
}
|
|
1009
|
+
if(gridParams.options && gridParams.options.isFormSubTable){
|
|
1010
|
+
// 表示表单页面子表时,不解析 显示效果了,直接使用高度就行了
|
|
1011
|
+
if (
|
|
1012
|
+
!this.basicInfo.displayEffect ||
|
|
1013
|
+
this.basicInfo.displayEffect === '' ||
|
|
1014
|
+
this.basicInfo.displayEffect === 'default'
|
|
1015
|
+
) {
|
|
1016
|
+
// default默认不铺满
|
|
1017
|
+
this.maxHeight = tempMaxHeight
|
|
1018
|
+
this.tableHeight = undefined
|
|
1019
|
+
} else {
|
|
1020
|
+
// 表示需要cover铺满
|
|
1021
|
+
this.tableHeight = tempMaxHeight
|
|
1022
|
+
this.maxHeight = undefined
|
|
989
1023
|
}
|
|
990
|
-
// else if (
|
|
991
|
-
// !this.basicInfo.displayEffect ||
|
|
992
|
-
// this.basicInfo.displayEffect === '' ||
|
|
993
|
-
// this.basicInfo.displayEffect === 'default'
|
|
994
|
-
// ) {
|
|
995
|
-
// tempMaxHeight = null
|
|
996
|
-
// }
|
|
997
|
-
// if(tempHeight !== undefined && tempHeight !== null){
|
|
998
|
-
// // el-table的height和maxHeight不能同时设值,会导致列表渲染失败,报脚本错.设置height不起作用,都使用maxHeight控制列表高度吧,暂时不知道原因
|
|
999
|
-
// this.tableHeight = tempHeight
|
|
1000
|
-
// }
|
|
1001
|
-
}
|
|
1002
|
-
if (
|
|
1003
|
-
!this.basicInfo.displayEffect ||
|
|
1004
|
-
this.basicInfo.displayEffect === '' ||
|
|
1005
|
-
this.basicInfo.displayEffect === 'default'
|
|
1006
|
-
) {
|
|
1007
|
-
// default默认不铺满
|
|
1008
|
-
this.maxHeight = tempMaxHeight
|
|
1009
1024
|
} else {
|
|
1010
|
-
//
|
|
1011
|
-
|
|
1025
|
+
// 不是表单页面子表,默认铺满
|
|
1026
|
+
if (
|
|
1027
|
+
!this.basicInfo.displayEffect ||
|
|
1028
|
+
this.basicInfo.displayEffect === '' ||
|
|
1029
|
+
this.basicInfo.displayEffect === 'cover'
|
|
1030
|
+
) {
|
|
1031
|
+
// 表示需要cover铺满
|
|
1032
|
+
this.tableHeight = tempMaxHeight
|
|
1033
|
+
this.maxHeight = undefined
|
|
1034
|
+
} else {
|
|
1035
|
+
// default默认不铺满
|
|
1036
|
+
this.maxHeight = tempMaxHeight
|
|
1037
|
+
this.tableHeight = undefined
|
|
1038
|
+
}
|
|
1012
1039
|
}
|
|
1013
1040
|
console.log(
|
|
1014
1041
|
'resizeTableHeight-----tempMaxHeight=',
|
|
@@ -1789,17 +1816,24 @@ export default {
|
|
|
1789
1816
|
if (typeof parentRowIds === 'undefined' || parentRowIds === null) {
|
|
1790
1817
|
// 当开启卡片的时候,则开启滚动分页
|
|
1791
1818
|
const getChildren = (data) => {
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1819
|
+
return (
|
|
1820
|
+
data?.map((item) => {
|
|
1821
|
+
return {
|
|
1822
|
+
$rowDataGuId: getGuId(),
|
|
1823
|
+
...item,
|
|
1824
|
+
...(item?.children?.length
|
|
1825
|
+
? {
|
|
1826
|
+
children: getChildren(item.children)
|
|
1827
|
+
}
|
|
1828
|
+
: {})
|
|
1829
|
+
}
|
|
1830
|
+
}) ?? []
|
|
1831
|
+
)
|
|
1801
1832
|
}
|
|
1802
|
-
const dataList = [
|
|
1833
|
+
const dataList = [
|
|
1834
|
+
...(this.isShowCard && this.currentPage > 1 ? this.gridData : []),
|
|
1835
|
+
...getChildren(data?.data ?? [])
|
|
1836
|
+
]
|
|
1803
1837
|
let tableData = []
|
|
1804
1838
|
// 对数据做序列化,比如:处理xss攻击
|
|
1805
1839
|
if (isHasOptionFunction('gridDataLoaded', this.code)) {
|
|
@@ -2805,7 +2839,7 @@ export default {
|
|
|
2805
2839
|
return this.isSubTableShowPage ? this.subTableData : this.gridData
|
|
2806
2840
|
},
|
|
2807
2841
|
rowDblclickEvent(row, column, event) {
|
|
2808
|
-
debugger
|
|
2842
|
+
debugger
|
|
2809
2843
|
const gridParams = store.get(this.code)
|
|
2810
2844
|
if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.isPdfEditor) {
|
|
2811
2845
|
// 如果是子表并且是pdf模式
|
|
@@ -2846,7 +2880,7 @@ export default {
|
|
|
2846
2880
|
}
|
|
2847
2881
|
} else {
|
|
2848
2882
|
if (row) {
|
|
2849
|
-
debugger
|
|
2883
|
+
debugger
|
|
2850
2884
|
if (gridParams && gridParams.lineEdit && gridParams.lineEdit.editable && gridParams.canntEdit) {
|
|
2851
2885
|
let index = this.gridData.findIndex(function (item) {
|
|
2852
2886
|
return (item.id && item.id === row.id) || (item.ID && item.ID === row.ID)
|
|
@@ -3133,7 +3167,7 @@ export default {
|
|
|
3133
3167
|
cardSelectionChangeEvent(newSelection) {
|
|
3134
3168
|
try {
|
|
3135
3169
|
this.$refs.superGrid?.clearSelection()
|
|
3136
|
-
for(const i in newSelection) {
|
|
3170
|
+
for (const i in newSelection) {
|
|
3137
3171
|
const row = newSelection[i]
|
|
3138
3172
|
this.$refs.superGrid?.toggleRowSelection(row, true)
|
|
3139
3173
|
}
|
|
@@ -3272,7 +3306,7 @@ export default {
|
|
|
3272
3306
|
// props + attrs 参数
|
|
3273
3307
|
$bind: {
|
|
3274
3308
|
column,
|
|
3275
|
-
|
|
3309
|
+
ref: column.prop,
|
|
3276
3310
|
// 'is': componentType,
|
|
3277
3311
|
'is-sql': this.isSql,
|
|
3278
3312
|
'list-code': this.code,
|
|
@@ -3282,28 +3316,32 @@ export default {
|
|
|
3282
3316
|
'table-name': this.tableName,
|
|
3283
3317
|
'page-code': this.pageCode,
|
|
3284
3318
|
'list-name': this.listName,
|
|
3285
|
-
|
|
3319
|
+
options: this.options,
|
|
3286
3320
|
'current-page': this.currentPage,
|
|
3287
|
-
|
|
3288
|
-
'is-data-children': this.tableDatas.some(d => Array.isArray(d?.children)),
|
|
3321
|
+
pagination: this.pagination,
|
|
3322
|
+
'is-data-children': this.tableDatas.some((d) => Array.isArray(d?.children)),
|
|
3289
3323
|
'grid-data': this.isSubTableShowPage ? this.subTableData : this.gridData,
|
|
3290
3324
|
'page-grid-data': this.isSubTableShowPage ? this.getSubTableGridData(this.subTableData) : this.gridData,
|
|
3291
|
-
...(myCustomFormatter
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3325
|
+
...(myCustomFormatter
|
|
3326
|
+
? {
|
|
3327
|
+
'custom-format': ['GroupColumn'].includes(componentType)
|
|
3328
|
+
? myCustomFormatter
|
|
3329
|
+
: myCustomFormatter[column.prop]
|
|
3330
|
+
}
|
|
3331
|
+
: {
|
|
3332
|
+
'is-line-edit': this.lineEdit?.editable ?? false,
|
|
3333
|
+
'list-toolbar-form-data': this.listToolbarFormData
|
|
3334
|
+
})
|
|
3297
3335
|
},
|
|
3298
3336
|
// 事件绑定
|
|
3299
3337
|
$on: {
|
|
3300
3338
|
'open-page': this.openPageDialog,
|
|
3301
|
-
|
|
3339
|
+
refresData: this.refresData,
|
|
3302
3340
|
'refresh-list': this.refreshList,
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3341
|
+
refresPortData: this.refresPortData,
|
|
3342
|
+
refresPortsData: this.refresPortsData,
|
|
3343
|
+
refresMainTableFields: this.refresMainTableFields,
|
|
3344
|
+
prohibitToEdit: this.prohibitToEdit
|
|
3307
3345
|
}
|
|
3308
3346
|
}
|
|
3309
3347
|
} catch (error) {
|
|
@@ -3313,7 +3351,7 @@ export default {
|
|
|
3313
3351
|
}
|
|
3314
3352
|
}
|
|
3315
3353
|
},
|
|
3316
|
-
changeOperationAddState(state){
|
|
3354
|
+
changeOperationAddState(state) {
|
|
3317
3355
|
eventBus.$emit('change-add-state', state)
|
|
3318
3356
|
}
|
|
3319
3357
|
},
|
|
@@ -3349,7 +3387,6 @@ export default {
|
|
|
3349
3387
|
}
|
|
3350
3388
|
}
|
|
3351
3389
|
|
|
3352
|
-
|
|
3353
3390
|
.flex-gap-15 {
|
|
3354
3391
|
display: flex;
|
|
3355
3392
|
gap: var(--layout-form-flex-gap, 15px);
|
|
@@ -3428,7 +3465,9 @@ export default {
|
|
|
3428
3465
|
}
|
|
3429
3466
|
|
|
3430
3467
|
& > .el-form-item__content {
|
|
3431
|
-
& > .el-select
|
|
3468
|
+
& > .el-select,
|
|
3469
|
+
& > .el-input,
|
|
3470
|
+
& > .el-textarea {
|
|
3432
3471
|
width: calc(100% - 1px);
|
|
3433
3472
|
}
|
|
3434
3473
|
}
|
|
@@ -3482,7 +3521,6 @@ export default {
|
|
|
3482
3521
|
flex-grow: 1;
|
|
3483
3522
|
flex-shrink: 1;
|
|
3484
3523
|
flex-basis: auto;
|
|
3485
|
-
height: auto !important;
|
|
3486
3524
|
}
|
|
3487
3525
|
|
|
3488
3526
|
.super-grid-main-card-view {
|
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<i v-if="iconValue.indexOf('amb-icon-') === 0" class="amb-iconfont" :class="iconValue" />
|
|
3
|
-
<i v-else-if="iconValue.indexOf('
|
|
4
|
-
<
|
|
5
|
-
<img
|
|
6
|
-
|
|
3
|
+
<i v-else-if="iconValue.indexOf('amb-color-icon-') === 0" class="amb-color-iconfont super-icon" :class="iconValue" />
|
|
4
|
+
<i v-else-if="iconValue.indexOf('fa-') === 0" :class="'fa ' + iconValue" />
|
|
5
|
+
<img
|
|
6
|
+
v-else-if="iconValue.indexOf('svg-img-') === 0"
|
|
7
|
+
:src="defaultShowImageAction + iconValue.substring('svg-img-'.length)"
|
|
8
|
+
style="width: 1em; height: 1em"
|
|
9
|
+
/>
|
|
10
|
+
<SvgIcon v-else-if="iconValue.indexOf('svg-') === 0" :icon-class="iconValue.substring('svg-'.length)" />
|
|
11
|
+
<img
|
|
12
|
+
v-else-if="iconValue.indexOf('http') === 0 || iconValue.indexOf('//') === 0 || iconValue.indexOf('data:') === 0"
|
|
13
|
+
:src="iconValue"
|
|
14
|
+
style="width: 1em; height: 1em"
|
|
15
|
+
/>
|
|
16
|
+
<el-icon v-else><component :is="iconValue" /></el-icon>
|
|
7
17
|
</template>
|
|
8
|
-
<script
|
|
18
|
+
<script lang="ts">
|
|
9
19
|
export default {
|
|
10
20
|
name: 'SuperIcon'
|
|
11
21
|
}
|
|
12
22
|
</script>
|
|
13
23
|
|
|
14
|
-
<script
|
|
24
|
+
<script setup lang="ts">
|
|
15
25
|
import { ref } from 'vue'
|
|
26
|
+
import SvgIcon from '../../svg-icon/src/svg-icon.vue'
|
|
16
27
|
const props = defineProps({
|
|
17
28
|
// 值为:ElementUI、custom
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
iconType: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: 'custom'
|
|
32
|
+
},
|
|
33
|
+
iconValue: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true,
|
|
36
|
+
default: ''
|
|
37
|
+
}
|
|
27
38
|
})
|
|
28
|
-
const defaultShowImageAction = ref(
|
|
29
|
-
|
|
39
|
+
const defaultShowImageAction = ref(
|
|
40
|
+
window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-image?serverPath='
|
|
41
|
+
)
|
|
30
42
|
</script>
|
|
31
|
-
|
|
43
|
+
<style lang="scss" scoped>
|
|
44
|
+
.super-icon {
|
|
45
|
+
width: 14px;
|
|
46
|
+
height: 14px;
|
|
47
|
+
}
|
|
48
|
+
</style>
|