resolver-egretimp-plus 0.0.130 → 0.0.132
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,18 +35,20 @@ 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
|
+
const serviceCustomProps = parseExtendAttr({extendAttr: service.extendAttr})
|
|
51
|
+
|
|
50
52
|
if (service.transactionType == '1') {
|
|
51
53
|
reqData = getReqData(service.inParamMappingList || [], {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat})
|
|
52
54
|
tableConfig = getTableConfig(service.outParamMappingList, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat })
|
|
@@ -66,6 +68,7 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
66
68
|
const url = service.serviceCode
|
|
67
69
|
const httpMethod = service.httpMethod || "post"
|
|
68
70
|
const reqResult = {
|
|
71
|
+
aid_language: lang,
|
|
69
72
|
requestTraceId,
|
|
70
73
|
pmHandleBusinessIdentity: {
|
|
71
74
|
busiIdentityId: service.busiIdentityId,
|
|
@@ -105,8 +108,8 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
105
108
|
}
|
|
106
109
|
const ret = await (axiosInstance && axiosInstance(reqConfig))
|
|
107
110
|
afterRequestService && afterRequestService(ret)
|
|
108
|
-
|
|
109
|
-
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig, noSuccessIip
|
|
111
|
+
const noSuccessIip = httpMethod.toLocaleLowerCase() === 'get' || service.transactionType == '1' || serviceCustomProps?.noSuccessIip
|
|
112
|
+
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig, noSuccessIip})) {
|
|
110
113
|
await Promise.reject()
|
|
111
114
|
return
|
|
112
115
|
}
|
|
@@ -574,6 +577,7 @@ export async function executeEventOrchestration({
|
|
|
574
577
|
messageCb,
|
|
575
578
|
compConfig: props.config,
|
|
576
579
|
dialogReq,
|
|
580
|
+
lang,
|
|
577
581
|
beforeRequestService: normalBeforeRequestService,
|
|
578
582
|
afterRequestService: normalAfterRequestService
|
|
579
583
|
})
|