resolver-egretimp-plus 0.0.122 → 0.0.124

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.122",
3
+ "version": "0.0.124",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -239,7 +239,7 @@ export function openDailg({
239
239
  }
240
240
  ]
241
241
  const orginTableConfig = getTableConfig(outParamMappingList, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat })
242
- selectionsObj.selections = (orginTableConfig.refValue || [])
242
+ selectionsObj.selections = (orginTableConfig?.refValue || [])
243
243
  selectionsObj.primaryKeys = primaryKeys
244
244
  }
245
245
 
@@ -133,6 +133,10 @@ export default {
133
133
  // 获取表格列的属性配置
134
134
  const getTableColumnProps = (config, idx) => {
135
135
  const nextList = tableColumnConfigs.value.slice(idx + 1)
136
+ // 当前config表格列是最后一个显示列,并且后面有hidden的列
137
+ const isEndConfig = !nextList?.filter(config => {
138
+ return config.displayType != DISPLAY_HIDDEN && !(config.width == 0 || config.width == '0px' || config.hidden == '1')
139
+ })?.length
136
140
  const nextConfig = nextList.find(config => config.displayType != DISPLAY_HIDDEN)
137
141
  const props = Object.keys(ElTableColumn.props).reduce((ret, key) => {
138
142
  if (hasOwn(config, key)) {
@@ -153,6 +157,9 @@ export default {
153
157
  if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px' || nextConfig.hidden == '1')) {
154
158
  props.className = `${props.className || ''} next-hidden-column`
155
159
  }
160
+ if (isEndConfig) {
161
+ props.className = `${props.className || ''} end-show-column`
162
+ }
156
163
  if (
157
164
  isPlainColumn({...config, isColumn: true}, calcDisable(config, props.mode)) &&
158
165
  config.showOverflowTooltip !== false &&
@@ -29,6 +29,9 @@ const inputNumberProps = computed(() => {
29
29
  if (props.config?.minValue && !isNaN(props.config.minValue)) {
30
30
  ret.min = props.config.minValue
31
31
  }
32
+ if (props.config?.precise && !isNaN(props.config.minValue)) {
33
+ ret.precision = props.config.precise
34
+ }
32
35
  return ret
33
36
  })
34
37
  const attrs = useAttrs()
@@ -120,7 +120,7 @@
120
120
  .hidden-column + .el-table__cell {
121
121
  // border: none;
122
122
  }
123
- .next-hidden-column {
124
- // border: none;
123
+ .next-hidden-column.end-show-column {
124
+ border: none;
125
125
  }
126
126
  }
@@ -24,7 +24,11 @@ const props = defineProps({
24
24
  },
25
25
  requestTraceId: {
26
26
  type: String,
27
- }
27
+ },
28
+ loadConfigReq: {
29
+ type: Object,
30
+ default: () => ({})
31
+ },
28
32
  })
29
33
  defineOptions({
30
34
  inheritAttrs: false
@@ -36,6 +40,7 @@ getPageConfig({
36
40
  busiIdentityId: props.busiIdentityId,
37
41
  queryPageMeta: '1',
38
42
  queryPageService: '1',
43
+ ...(props.loadConfigReq || {})
39
44
  }, {
40
45
  configCb: (pageConfig) => {
41
46
  // 配置数据加载完成事件 'loadedConfigCompeted'
@@ -1,8 +1,23 @@
1
-
1
+ import { Engine, Rule } from 'json-rules-engine'
2
+ import { hasOwn } from '../utils'
2
3
 
3
4
  class RuleDriver {
4
- constructor() {
5
+ constructor(rules) {
6
+ const rules = new Rule({
7
+ conditions: {
8
+ all: []
9
+ }
10
+ })
11
+ const engine = new Engine()
12
+ }
13
+ generateRuleConditions(rule) {
14
+ const { eventExpress, pmRuleTargetEventVoList: eventList, ruleType, tabpanelCode } = rule || {}
15
+ if (!eventExpress) return false
5
16
 
17
+ const expressObj = JSON.parse(eventExpress)
18
+ const { relation, conditions } = expressObj
19
+ let conditionsRet = []
20
+ new Rule()
6
21
  }
7
22
  executeRule(rule) {
8
23
 
@@ -10,4 +25,18 @@ class RuleDriver {
10
25
  executeRules(rules) {
11
26
 
12
27
  }
28
+ }
29
+
30
+ function paseRuleExpress(expressInfo) {
31
+ const { relation, conditions } = expressObj
32
+ const key = relation == '1' ? 'all' : 'any'
33
+ return {
34
+ [key]: conditions?.map(condition => {
35
+ if (hasOwn(condition ,'relation') && hasOwn(condition ,'conditions')) {
36
+ return paseRuleExpress(condition)
37
+ } else {
38
+
39
+ }
40
+ })
41
+ }
13
42
  }