resolver-egretimp-plus 0.0.123 → 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
|
@@ -239,7 +239,7 @@ export function openDailg({
|
|
|
239
239
|
}
|
|
240
240
|
]
|
|
241
241
|
const orginTableConfig = getTableConfig(outParamMappingList, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat })
|
|
242
|
-
selectionsObj.selections = (orginTableConfig
|
|
242
|
+
selectionsObj.selections = (orginTableConfig?.refValue || [])
|
|
243
243
|
selectionsObj.primaryKeys = primaryKeys
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -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()
|
package/src/resolver-common.vue
CHANGED
|
@@ -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'
|
package/src/rules_b/index.js
CHANGED
|
@@ -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
|
}
|