resolver-egretimp-plus 0.0.120 → 0.0.122
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/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/common.scss +2 -1
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/analysisComponent.jsx +0 -1
- package/src/components/helper/eventOrchestration.js +12 -16
- package/src/enums/index.js +3 -2
- package/src/index.jsx +3 -2
- package/src/theme/element/components/common.scss +2 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArray, isHasVal } from "../../utils/is"
|
|
1
|
+
import { isArray, isHasVal, isNull, isUndefined } from "../../utils/is"
|
|
2
2
|
import { DATA_VALID_RULE_EXECUTE } from "../../api/builtIn"
|
|
3
3
|
import { getRelateConfigKeys } from "../../rules/ruleUtils"
|
|
4
4
|
import { RESULT_CODE, resultToast } from "../../utils/respone"
|
|
@@ -51,8 +51,12 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
51
51
|
reqData = getReqData(service.inParamMappingList || [], {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat})
|
|
52
52
|
tableConfig = getTableConfig(service.outParamMappingList, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat })
|
|
53
53
|
if (tableConfig?.vm) {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
if (!isUndefined(tableConfig.vm.page?.pageNum) && !isNull(tableConfig.vm.page?.pageNum) ) {
|
|
55
|
+
assignmentPathVal(reqData, service.pageNum || 'pageNum', tableConfig.vm.page?.pageNum)
|
|
56
|
+
}
|
|
57
|
+
if (!isUndefined(tableConfig.vm.page?.pageSize) && !isNull(tableConfig.vm.page?.pageSize) ) {
|
|
58
|
+
assignmentPathVal(reqData, service.pageSize || 'pageSize', tableConfig.vm.page?.pageSize)
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
reqData = {
|
|
58
62
|
...reqData,
|
|
@@ -123,21 +127,13 @@ function getReqData(inParamMappingList = [], {dynamicMapComp, dynamicMapCompKeys
|
|
|
123
127
|
console.error('search arg muti', params, configCodes)
|
|
124
128
|
}
|
|
125
129
|
const configCode = configCodes[0]
|
|
126
|
-
if (
|
|
130
|
+
if (
|
|
131
|
+
configCode &&
|
|
132
|
+
!isUndefined(dynamicMapComp[configCode]?.refValue) &&
|
|
133
|
+
!isNull(dynamicMapComp[configCode]?.refValue)
|
|
134
|
+
) {
|
|
127
135
|
const destParamArr = destParam?.split('.') || []
|
|
128
136
|
assignmentPathVal(ret, destParamArr, dynamicMapComp[configCode]?.refValue)
|
|
129
|
-
|
|
130
|
-
// let currentObj = ret
|
|
131
|
-
// destParamArr.forEach((item, idx) => {
|
|
132
|
-
// if (idx + 1 === destParamArr.length) {
|
|
133
|
-
// currentObj[item] = dynamicMapComp[configCode]?.refValue
|
|
134
|
-
// } else {
|
|
135
|
-
// if (!currentObj[item]) {
|
|
136
|
-
// currentObj[item] = {}
|
|
137
|
-
// }
|
|
138
|
-
// currentObj = currentObj[item]
|
|
139
|
-
// }
|
|
140
|
-
// })
|
|
141
137
|
}
|
|
142
138
|
return ret
|
|
143
139
|
}, {})
|
package/src/enums/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GET_SYS_PARAM_CACHE, LCP_LOGIN, QUERY_PAGE_CONFIG_DATA } from "../api/builtIn"
|
|
1
|
+
import { DATA_VALID_RULE_EXECUTE, GET_SYS_PARAM_CACHE, LCP_LOGIN, QUERY_PAGE_CONFIG_DATA } from "../api/builtIn"
|
|
2
2
|
|
|
3
3
|
export const USER_NAME = 'lcpsupport'
|
|
4
4
|
export const PASSWORD = '8ik,*IK<'
|
|
@@ -8,5 +8,6 @@ export const AUTH_CODE = '9887'
|
|
|
8
8
|
export const NOT_AUTH_APIS = [
|
|
9
9
|
LCP_LOGIN,
|
|
10
10
|
GET_SYS_PARAM_CACHE,
|
|
11
|
-
QUERY_PAGE_CONFIG_DATA
|
|
11
|
+
QUERY_PAGE_CONFIG_DATA,
|
|
12
|
+
DATA_VALID_RULE_EXECUTE
|
|
12
13
|
]
|
package/src/index.jsx
CHANGED
|
@@ -7,8 +7,8 @@ import { MODE } from "./utils/const.js"
|
|
|
7
7
|
import { generateRequester } from "./utils/request.js"
|
|
8
8
|
import { executeLoadServices } from "./components/helper/resolver.js"
|
|
9
9
|
import { deepMerge } from "./utils/index.js"
|
|
10
|
-
import { useRouter } from "vue-router"
|
|
11
|
-
import { useRoute } from "vue-router"
|
|
10
|
+
// import { useRouter } from "vue-router"
|
|
11
|
+
// import { useRoute } from "vue-router"
|
|
12
12
|
export default {
|
|
13
13
|
name: 'Resolver',
|
|
14
14
|
props: {
|
|
@@ -172,6 +172,7 @@ export default {
|
|
|
172
172
|
let val = result
|
|
173
173
|
if (!clearFlag) {
|
|
174
174
|
val = deepMerge(props.modelValue, result, 'replace')
|
|
175
|
+
val = {...val}
|
|
175
176
|
}
|
|
176
177
|
emit('update:modelValue', val)
|
|
177
178
|
emit('loadEvnetsCompleted', result)
|