resolver-egretimp-plus 0.0.130 → 0.0.131
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
|
@@ -7,6 +7,7 @@ import { penddingRules } from './rules/ruleUtils.js'
|
|
|
7
7
|
import { useRoute } from 'vue-router'
|
|
8
8
|
import { executeEventOrchestration } from './components/helper/eventOrchestration.js'
|
|
9
9
|
import { useRouter } from 'vue-router'
|
|
10
|
+
import { onErrorCaptured } from 'vue'
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'AnalysisComponent',
|
|
@@ -238,6 +239,9 @@ export default {
|
|
|
238
239
|
appContext
|
|
239
240
|
})
|
|
240
241
|
}
|
|
242
|
+
onErrorCaptured((err, instance, info) => {
|
|
243
|
+
console.error('component render failer', lang?.value?.indexOf('zh') > -1 ? props.config?.metaNameZh : props.config?.metaNameEn, props.config?.metaCode, err, instance, info)
|
|
244
|
+
})
|
|
241
245
|
return () => {
|
|
242
246
|
const compProps = getRenderComponentProps({config: props.config, props, component: props.component, modelValue, selects, lang: lang.value})
|
|
243
247
|
const compPropsOnClick = compProps?.onClick
|
|
@@ -35,16 +35,16 @@ function assignmentPathVal(obj = {}, path, val) {
|
|
|
35
35
|
})
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export async function dispatchClickEvents ({serviceList = [], requestTraceId, axiosInstance, dialogReq, dynamicMapComp, rootValue, dynamicHireRelat, messageCb, compConfig, messageInstance, beforeRequestService, afterRequestService}) {
|
|
38
|
+
export async function dispatchClickEvents ({serviceList = [], requestTraceId, axiosInstance, dialogReq, dynamicMapComp, rootValue, dynamicHireRelat, messageCb, compConfig, messageInstance, lang, beforeRequestService, afterRequestService}) {
|
|
39
39
|
const dynamicMapCompKeys = Object.keys(dynamicMapComp)
|
|
40
40
|
const mixinServiceConfig = serviceList.find(service => service.serviceType === '1')
|
|
41
41
|
for (let i = 0; i < serviceList.length; i++) {
|
|
42
42
|
const service = serviceList[i]
|
|
43
|
-
dispatchClickEvent(service, {dynamicMapComp, requestTraceId, dialogReq, mixinServiceConfig, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance, beforeRequestService, afterRequestService})
|
|
43
|
+
dispatchClickEvent(service, {dynamicMapComp, requestTraceId, dialogReq, mixinServiceConfig, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance, lang, beforeRequestService, afterRequestService})
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export async function dispatchClickEvent(service, { dynamicMapComp, requestTraceId, dialogReq, mixinServiceConfig, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance, beforeRequestService, afterRequestService }) {
|
|
47
|
+
export async function dispatchClickEvent(service, { dynamicMapComp, requestTraceId, dialogReq, mixinServiceConfig, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance, lang, beforeRequestService, afterRequestService }) {
|
|
48
48
|
let reqData = rootValue || {}
|
|
49
49
|
let tableConfig = null
|
|
50
50
|
if (service.transactionType == '1') {
|
|
@@ -66,6 +66,7 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
66
66
|
const url = service.serviceCode
|
|
67
67
|
const httpMethod = service.httpMethod || "post"
|
|
68
68
|
const reqResult = {
|
|
69
|
+
aid_language: lang,
|
|
69
70
|
requestTraceId,
|
|
70
71
|
pmHandleBusinessIdentity: {
|
|
71
72
|
busiIdentityId: service.busiIdentityId,
|
|
@@ -574,6 +575,7 @@ export async function executeEventOrchestration({
|
|
|
574
575
|
messageCb,
|
|
575
576
|
compConfig: props.config,
|
|
576
577
|
dialogReq,
|
|
578
|
+
lang,
|
|
577
579
|
beforeRequestService: normalBeforeRequestService,
|
|
578
580
|
afterRequestService: normalAfterRequestService
|
|
579
581
|
})
|