resolver-egretimp-plus 0.0.129 → 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/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/analysisComponent.jsx +4 -0
- package/src/components/helper/eventOrchestration.js +5 -3
- package/src/components/packages-web/CustomComponentPlain.vue +1 -1
- package/src/components/packages-web/ElInput.jsx +8 -1
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
|
})
|
|
@@ -81,7 +81,7 @@ function selectFormat(value) {
|
|
|
81
81
|
valList = valList ? (valList?.split(',') || []) : []
|
|
82
82
|
}
|
|
83
83
|
return valList?.reduce((ret, val) => {
|
|
84
|
-
const str = props?.options?.find(item => item.columnValue == val)?.[lang?.value?.indexOf('zh') > -1 ? 'columnDesc_zh' : 'columnDesc']
|
|
84
|
+
const str = props?.options?.find(item => item.columnValue == val)?.[lang?.value?.indexOf('zh') > -1 ? 'columnDesc_zh' : 'columnDesc'] || ''
|
|
85
85
|
return `${ret}${ret ? ',' : ''}${str}`
|
|
86
86
|
}, '')
|
|
87
87
|
}
|
|
@@ -78,10 +78,17 @@ export default {
|
|
|
78
78
|
}
|
|
79
79
|
return ret
|
|
80
80
|
})
|
|
81
|
+
const inputWrapAttrs = computed(() => {
|
|
82
|
+
return {
|
|
83
|
+
class: attrs?.class,
|
|
84
|
+
style: attrs?.style
|
|
85
|
+
}
|
|
86
|
+
})
|
|
81
87
|
const normalAttrs = computed(() => {
|
|
82
88
|
const ret = {
|
|
83
89
|
...attrs
|
|
84
90
|
}
|
|
91
|
+
delete ret.class
|
|
85
92
|
if (isPagePopup.value && isOnlyIconClickFlag.value) {
|
|
86
93
|
delete ret.onClick
|
|
87
94
|
}
|
|
@@ -162,7 +169,7 @@ export default {
|
|
|
162
169
|
}
|
|
163
170
|
return () => {
|
|
164
171
|
return (
|
|
165
|
-
<div class="input-contrainer">
|
|
172
|
+
<div class="input-contrainer" {...inputWrapAttrs.value}>
|
|
166
173
|
<span ref={(e) => calcSpanRef.value = e} class="calc-span">{ modelValue.value }</span>
|
|
167
174
|
{
|
|
168
175
|
polyfillInputWrap(
|