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