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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -238,7 +238,6 @@ export default {
238
238
  }) // 生成formItem()的辅助函数
239
239
  return formItemPolyfill(
240
240
  <currentComponent.value
241
- key={props.config}
242
241
  ref={refFn}
243
242
  onVnodeMounted={onVnodeMounted}
244
243
  onVnodeUnmounted={onVnodeUnmounted}
@@ -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
  ]
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)
@@ -1,6 +1,7 @@
1
1
  @mixin nestMargin {
2
2
  & > div {
3
- & > .CustomComponentCollapse {
3
+ & > .CustomComponentCollapse,
4
+ & > .CustomComponentTabs {
4
5
  & > div {
5
6
  margin-right: 16px;
6
7
  }