resolver-egretimp-plus 0.0.121 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -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
- assignmentPathVal(reqData, service.pageNum || 'pageNum', tableConfig.vm.page?.pageNum)
55
- assignmentPathVal(reqData, service.pageSize || 'pageSize', tableConfig.vm.page?.pageSize)
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 (configCode) {
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
  }, {})
@@ -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
  ]