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/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/helper/eventOrchestration.js +1 -1
- package/src/components/packages-web/CustomComponentTable.jsx +7 -0
- package/src/components/packages-web/ElInputNumber.vue +3 -0
- package/src/components/styles/CustomComponenTable.scss +2 -2
- package/src/resolver-common.vue +6 -1
- package/src/rules_b/index.js +31 -2
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
|
|
|
@@ -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()
|
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
|
}
|