resolver-egretimp-plus 0.0.163 → 0.0.164
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/package.json
CHANGED
|
@@ -543,6 +543,8 @@ function closePage(lcpPageClosedMapVO) {
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
export async function executeEventOrchestration({
|
|
546
|
+
beforeDataValidRequestService,
|
|
547
|
+
afterDataValidRequestService,
|
|
546
548
|
beforeRequestService,
|
|
547
549
|
afterRequestService,
|
|
548
550
|
beforeOpenDialog,
|
|
@@ -601,24 +603,51 @@ export async function executeEventOrchestration({
|
|
|
601
603
|
}
|
|
602
604
|
}
|
|
603
605
|
if (lcpPageRuleVOLis?.length) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
606
|
+
let normalBeforeDataValidRequestService
|
|
607
|
+
let normalAfterDataValidRequestService
|
|
608
|
+
const configBeforeDataValidRequestService = props.config?.beforeDataValidRequestService
|
|
609
|
+
if (configBeforeDataValidRequestService || beforeDataValidRequestService) {
|
|
610
|
+
normalBeforeDataValidRequestService = async (...arg) => {
|
|
611
|
+
let beforeRequestServiceRet = true
|
|
612
|
+
if (beforeDataValidRequestService) {
|
|
613
|
+
beforeRequestServiceRet = beforeDataValidRequestService?.(...arg)
|
|
614
|
+
}
|
|
615
|
+
const beforeRequestServiceRetValid = await beforeRequestServiceRet
|
|
616
|
+
if (beforeRequestServiceRetValid === false) {
|
|
617
|
+
return false
|
|
618
|
+
}
|
|
619
|
+
if (configBeforeDataValidRequestService) {
|
|
620
|
+
return configBeforeDataValidRequestService?.(...arg)
|
|
621
|
+
} else {
|
|
622
|
+
return true
|
|
623
|
+
}
|
|
621
624
|
}
|
|
625
|
+
}
|
|
626
|
+
const configAfterDataValidRequestService = props.config?.afterDataValidRequestService
|
|
627
|
+
if (configAfterDataValidRequestService || afterDataValidRequestService) {
|
|
628
|
+
normalAfterDataValidRequestService = (...arg) => {
|
|
629
|
+
afterDataValidRequestService?.(...arg)
|
|
630
|
+
configAfterDataValidRequestService?.(...arg)
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
// 数据校验服务
|
|
634
|
+
const validConfig = lcpPageRuleVOLis[0]
|
|
635
|
+
const valid = await executeDataValid(validConfig, {
|
|
636
|
+
dynamicMapComp,
|
|
637
|
+
requestTraceId,
|
|
638
|
+
rootValue,
|
|
639
|
+
axiosInstance,
|
|
640
|
+
mixinServiceConfig,
|
|
641
|
+
compConfig: props.config,
|
|
642
|
+
confirmInstance,
|
|
643
|
+
builtPolyfillReq,
|
|
644
|
+
beforeRequestService: normalBeforeDataValidRequestService,
|
|
645
|
+
afterRequestService: normalAfterDataValidRequestService,
|
|
646
|
+
lang
|
|
647
|
+
})
|
|
648
|
+
if (!valid) {
|
|
649
|
+
return
|
|
650
|
+
}
|
|
622
651
|
}
|
|
623
652
|
|
|
624
653
|
if (PageServiceMapVOList?.length) {
|
|
@@ -79,6 +79,11 @@ const tableEvents = computed(() => {
|
|
|
79
79
|
if (attrs.onRowclick) {
|
|
80
80
|
attrs.onRowclick?.(e)
|
|
81
81
|
}
|
|
82
|
+
},
|
|
83
|
+
onTogglelandscape: (e) => {
|
|
84
|
+
if (attrs.onTogglelandscape) {
|
|
85
|
+
attrs.onTogglelandscape?.(e)
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
return ret
|
|
@@ -213,7 +218,7 @@ function normalTableRowValue(row) {
|
|
|
213
218
|
}
|
|
214
219
|
</script>
|
|
215
220
|
<template>
|
|
216
|
-
<cmi-table ref="tableRef" :key="tableKey" v-bind="tableProps" @rowclick="tableEvents.onRowclick">
|
|
221
|
+
<cmi-table ref="tableRef" :key="tableKey" v-bind="tableProps" @rowclick="tableEvents.onRowclick" @togglelandscape="tableEvents.onTogglelandscape">
|
|
217
222
|
<cmi-table-column
|
|
218
223
|
v-for="column in pmPageMetaList" :key="column.metaCode"
|
|
219
224
|
v-bind="{
|