resolver-egretimp-plus 0.0.43 → 0.0.44
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 +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/helper/eventOrchestration.js +13 -4
- package/src/components/helper/resolver.js +11 -1
- package/src/components/packages-H5/CmiCell.vue +9 -1
- package/src/index.jsx +1 -1
- package/src/resolver-common.vue +1 -1
- package/src/utils/render.jsx +2 -2
package/package.json
CHANGED
|
@@ -4,14 +4,15 @@ import { RESULT_CODE, resultToast } from "../../utils/respone"
|
|
|
4
4
|
|
|
5
5
|
export async function dispatchClickEvents ({serviceList = [], axiosInstance, dynamicMapComp, rootValue, dynamicHireRelat, messageCb, compConfig, messageInstance}) {
|
|
6
6
|
const dynamicMapCompKeys = Object.keys(dynamicMapComp)
|
|
7
|
+
const mixinServiceConfig = serviceList.find(service => service.serviceType === '1')
|
|
7
8
|
for (let i = 0; i < serviceList.length; i++) {
|
|
8
9
|
const service = serviceList[i]
|
|
9
|
-
dispatchClickEvent(service, {dynamicMapComp, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance})
|
|
10
|
+
dispatchClickEvent(service, {dynamicMapComp, mixinServiceConfig, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance})
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export async function dispatchClickEvent(service, { dynamicMapComp, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance }) {
|
|
14
|
-
let reqData = rootValue
|
|
14
|
+
export async function dispatchClickEvent(service, { dynamicMapComp, mixinServiceConfig, rootValue, dynamicMapCompKeys, dynamicHireRelat, axiosInstance, messageCb, compConfig, messageInstance }) {
|
|
15
|
+
let reqData = rootValue || {}
|
|
15
16
|
let tableConfig = null
|
|
16
17
|
if (service.transactionType == '1') {
|
|
17
18
|
reqData = getReqData(service.inParamMappingList || [], {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat})
|
|
@@ -25,7 +26,15 @@ export async function dispatchClickEvent(service, { dynamicMapComp, rootValue, d
|
|
|
25
26
|
const ret = await (axiosInstance && axiosInstance({
|
|
26
27
|
url,
|
|
27
28
|
method: "post",
|
|
28
|
-
data:
|
|
29
|
+
data: {
|
|
30
|
+
pmHandleBusinessIdentity: {
|
|
31
|
+
busiIdentityId: service.busiIdentityId,
|
|
32
|
+
pageMetaId: service.pageMetaId,
|
|
33
|
+
tenantId: service.tenantId,
|
|
34
|
+
mainServiceCode: mixinServiceConfig?.mainServiceCode, // 提交按钮绑定上绑定的融合服务编码
|
|
35
|
+
},
|
|
36
|
+
...reqData
|
|
37
|
+
}
|
|
29
38
|
}))
|
|
30
39
|
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig})) {
|
|
31
40
|
await Promise.reject()
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
export async function executeLoadServices(services = [], { axiosInstance, messageInstance, reqData, respCb }) {
|
|
2
2
|
const loadServices = services.filter(ser => ser.eventType == '1')
|
|
3
|
+
// const mixinServiceConfig = services.find(service => service.serviceType === '1')
|
|
4
|
+
|
|
3
5
|
for (let i = 0; i < loadServices.length; i++) {
|
|
4
6
|
const service = loadServices[i]
|
|
5
7
|
const url = service.serviceCode
|
|
6
8
|
const ret = await (axiosInstance.value && axiosInstance.value({
|
|
7
9
|
url,
|
|
8
10
|
method: "post",
|
|
9
|
-
data:
|
|
11
|
+
data: {
|
|
12
|
+
pmHandleBusinessIdentity: {
|
|
13
|
+
busiIdentityId: service.busiIdentityId,
|
|
14
|
+
pageMetaId: service.pageMetaId,
|
|
15
|
+
tenantId: service.tenantId,
|
|
16
|
+
// mainServiceCode: mixinServiceConfig?.mainServiceCode, // 提交按钮绑定上绑定的融合服务编码
|
|
17
|
+
},
|
|
18
|
+
...(reqData || {})
|
|
19
|
+
}
|
|
10
20
|
}))
|
|
11
21
|
// const ret = await (new Promise((res) => {
|
|
12
22
|
// setTimeout(() => {
|
|
@@ -25,12 +25,20 @@ const onChange = (e) => {
|
|
|
25
25
|
modelValue.value = e.detail.value
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
const normalVal = computed(() => {
|
|
29
|
+
const findItem = props?.options?.find(item => item.columnValue == modelValue.value)
|
|
30
|
+
if (findItem) {
|
|
31
|
+
return lang?.value?.indexOf('zh') > -1 ? findItem.columnDesc_zh : findItem.columnDesc
|
|
32
|
+
}
|
|
33
|
+
return modelValue.value
|
|
34
|
+
})
|
|
35
|
+
|
|
28
36
|
</script>
|
|
29
37
|
|
|
30
38
|
<template>
|
|
31
39
|
<cmi-cell-group>
|
|
32
40
|
<cmi-cell
|
|
33
|
-
:value="
|
|
41
|
+
:value="normalVal" v-bind="{ ...attrs, ...calcProps}"
|
|
34
42
|
@change="onChange"
|
|
35
43
|
></cmi-cell>
|
|
36
44
|
</cmi-cell-group>
|
package/src/index.jsx
CHANGED
|
@@ -139,7 +139,7 @@ export default {
|
|
|
139
139
|
})
|
|
140
140
|
// 触发加载事件执行
|
|
141
141
|
executeLoadServices(
|
|
142
|
-
props.config?.pmPageServiceMapVOList || [],
|
|
142
|
+
props.config?.pmPageServiceMapVOList || props.config?.lcpPageServiceMapVOList || [],
|
|
143
143
|
{
|
|
144
144
|
messageInstance: toRef(props, 'messageInstance'),
|
|
145
145
|
axiosInstance,
|
package/src/resolver-common.vue
CHANGED
package/src/utils/render.jsx
CHANGED
|
@@ -627,7 +627,7 @@ function getFormItemRule(config, lang, params) {
|
|
|
627
627
|
const required = config.requiredFlag === '1'
|
|
628
628
|
const onlyRequiredFlag = config.onlyRequiredFlag
|
|
629
629
|
const rules = [{
|
|
630
|
-
required,
|
|
630
|
+
// required,
|
|
631
631
|
validator: (rule, value, callback) => {
|
|
632
632
|
if (config.editFlag === '0') callback()
|
|
633
633
|
const val = config.bindValue
|
|
@@ -673,7 +673,7 @@ function getFormItemRule(config, lang, params) {
|
|
|
673
673
|
rules.push({
|
|
674
674
|
validator: (rule, value, callback) => {
|
|
675
675
|
if (config.editFlag === '0') callback()
|
|
676
|
-
const val = config.bindValue
|
|
676
|
+
const val = (config.bindValue === null || config.bindValue === undefined) ? '' : config.bindValue
|
|
677
677
|
|
|
678
678
|
for (let i = 0; i < regexPattern.length; i++) {
|
|
679
679
|
const validInfo = regexPattern[i]
|