resolver-egretimp-plus 0.0.76 → 0.0.78
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 +134 -134
- package/dist/web/index.js +13 -13
- package/package.json +1 -1
- package/src/analysisComponent.jsx +6 -0
- package/src/components/childDialog/src/index.vue +3 -0
- package/src/components/helper/eventOrchestration.js +13 -10
- package/src/components/packages-H5/CustomComponentCollapseH5.vue +2 -2
- package/src/components/packages-H5/CustomComponentTableH5.vue +4 -3
- package/src/components/packages-web/CustomComponentTable.jsx +6 -3
- package/src/components/styles/CustomComponenTable.scss +4 -3
- package/src/index.jsx +6 -2
- package/src/utils/valid.js +3 -1
package/package.json
CHANGED
|
@@ -99,6 +99,9 @@ export default {
|
|
|
99
99
|
})
|
|
100
100
|
penddingRules[hireRelat] = null
|
|
101
101
|
}
|
|
102
|
+
if (props.config?.immediateClickEvent) {
|
|
103
|
+
executeClickEvents()
|
|
104
|
+
}
|
|
102
105
|
}
|
|
103
106
|
const onVnodeUnmounted = () => {
|
|
104
107
|
props.config.vmIsBind = false
|
|
@@ -183,6 +186,9 @@ export default {
|
|
|
183
186
|
appContext
|
|
184
187
|
}
|
|
185
188
|
attrs?.onClick?.call(context, e) // 如果配置中有点击事件
|
|
189
|
+
executeClickEvents()
|
|
190
|
+
}
|
|
191
|
+
function executeClickEvents() {
|
|
186
192
|
executeEventOrchestration({
|
|
187
193
|
props,
|
|
188
194
|
requestTraceId: requestTraceId?.value,
|
|
@@ -46,7 +46,7 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
46
46
|
delete reqConfig.data
|
|
47
47
|
}
|
|
48
48
|
const ret = await (axiosInstance && axiosInstance(reqConfig))
|
|
49
|
-
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig})) {
|
|
49
|
+
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig, noSuccessIip: httpMethod.toLocaleLowerCase() === 'get'})) {
|
|
50
50
|
await Promise.reject()
|
|
51
51
|
return
|
|
52
52
|
}
|
|
@@ -195,17 +195,20 @@ export function openDailg({
|
|
|
195
195
|
initPolyfillConfigs[pagePopupMap.outDisplayTrigger] = (config) => {
|
|
196
196
|
return {
|
|
197
197
|
onClick() {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (mapList[key]) {
|
|
204
|
-
retItem[key] = item[mapList[key]]
|
|
198
|
+
let outResult = rootStore.tableSelectedInfo
|
|
199
|
+
if (isList) {
|
|
200
|
+
outResult = rootStore.tableSelectedInfo?.map(item => {
|
|
201
|
+
const retItem = {
|
|
202
|
+
...item
|
|
205
203
|
}
|
|
204
|
+
Object.keys(mapList).forEach(key => {
|
|
205
|
+
if (mapList[key]) {
|
|
206
|
+
retItem[key] = item[mapList[key]]
|
|
207
|
+
}
|
|
208
|
+
})
|
|
209
|
+
return retItem
|
|
206
210
|
})
|
|
207
|
-
|
|
208
|
-
})
|
|
211
|
+
}
|
|
209
212
|
initOutParamData(outParamMappingList, {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, outResult})
|
|
210
213
|
dialogClose?.()
|
|
211
214
|
}
|
|
@@ -28,10 +28,10 @@ const pmPageMetaList = computed(() => {
|
|
|
28
28
|
return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot) || []
|
|
29
29
|
})
|
|
30
30
|
const showCollapseBtn = computed(() => {
|
|
31
|
-
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN)?.length > collapseLimt
|
|
31
|
+
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN && item.hidden != '1')?.length > collapseLimt
|
|
32
32
|
})
|
|
33
33
|
const showPageMeteList = computed(() => {
|
|
34
|
-
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN).slice(0, isCollapse.value ? collapseLimt : Number.MAX_VALUE)
|
|
34
|
+
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN && item.hidden != '1').slice(0, isCollapse.value ? collapseLimt : Number.MAX_VALUE)
|
|
35
35
|
})
|
|
36
36
|
const collapseLabel = computed(() => {
|
|
37
37
|
const isCh = lang?.value?.indexOf('zh') > -1
|
|
@@ -12,8 +12,9 @@ const props = defineProps({
|
|
|
12
12
|
const tableData = ref([])
|
|
13
13
|
const modelValue = defineModel()
|
|
14
14
|
|
|
15
|
+
// 移动端默认前端分页
|
|
15
16
|
const isFrontPage = computed(() => {
|
|
16
|
-
return props.config?.frontPageFlag == '1'
|
|
17
|
+
return hasOwn(props.config, 'frontPageFlag') ? props.config?.frontPageFlag == '1' : true
|
|
17
18
|
})
|
|
18
19
|
const tableProps = computed(() => {
|
|
19
20
|
return {
|
|
@@ -123,7 +124,7 @@ watch(() => page.pageSize, (val) => {
|
|
|
123
124
|
})
|
|
124
125
|
|
|
125
126
|
const pmPageMetaList = computed(() => {
|
|
126
|
-
return (props.config.pmPageMetaList || [])
|
|
127
|
+
return (props.config.pmPageMetaList || []).filter(config => config.hidden != '1')
|
|
127
128
|
})
|
|
128
129
|
|
|
129
130
|
const getTableColumnProps = (config) => {
|
|
@@ -188,7 +189,7 @@ function normalTableRowValue(row) {
|
|
|
188
189
|
>
|
|
189
190
|
</cmi-table-column>
|
|
190
191
|
</cmi-table>
|
|
191
|
-
<div v-if="pageable" :style="{'justify-content': pageAlignEnmu[pageAlign || PAGE_RIGHT]}" style="margin-bottom: 12px;">
|
|
192
|
+
<div v-if="pageable && normalPageTotal > page.pageSize" :style="{'justify-content': pageAlignEnmu[pageAlign || PAGE_RIGHT]}" style="margin-bottom: 12px;">
|
|
192
193
|
<cmi-pagination
|
|
193
194
|
:key="normalPageTotal"
|
|
194
195
|
v-bind="{...paginationProps, ...pagenationEvents}"
|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
129
129
|
// 获取表格列的属性配置
|
|
130
130
|
const getTableColumnProps = (config, idx) => {
|
|
131
131
|
const nextList = tableColumnConfigs.value.slice(idx + 1)
|
|
132
|
-
const nextConfig = nextList.find(config => config.displayType
|
|
132
|
+
const nextConfig = nextList.find(config => config.displayType != DISPLAY_HIDDEN)
|
|
133
133
|
const props = Object.keys(ElTableColumn.props).reduce((ret, key) => {
|
|
134
134
|
if (hasOwn(config, key)) {
|
|
135
135
|
ret[key] = config[key]
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
props.className = 'hidden-column'
|
|
147
147
|
props.width = '1px'
|
|
148
148
|
}
|
|
149
|
-
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px')) {
|
|
149
|
+
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px' || nextConfig.hidden == '1')) {
|
|
150
150
|
props.className = `${props.className || ''} next-hidden-column`
|
|
151
151
|
}
|
|
152
152
|
if (isPlainColumn({...config, isColumn: true}, calcDisable(config, props.mode))) {
|
|
@@ -216,6 +216,9 @@ export default {
|
|
|
216
216
|
watch(() => {
|
|
217
217
|
return tableData?.value?.length
|
|
218
218
|
}, (length) => {
|
|
219
|
+
// if (props.config.metaCode == 'solutionSupports') {
|
|
220
|
+
// debugger
|
|
221
|
+
// }
|
|
219
222
|
let list = []
|
|
220
223
|
if (length) {
|
|
221
224
|
const newVal = tableData?.value
|
|
@@ -314,7 +317,7 @@ export default {
|
|
|
314
317
|
|
|
315
318
|
// 表格是否开启啦可选择配置
|
|
316
319
|
const selectable = computed(() => {
|
|
317
|
-
return props.config?.selectable
|
|
320
|
+
return props.config?.selectable == '1' || props.config?.canSelect
|
|
318
321
|
})
|
|
319
322
|
const selectedRow = ref(null)
|
|
320
323
|
const currentChange = (row) => {
|
|
@@ -114,12 +114,13 @@
|
|
|
114
114
|
margin-top: 16px;
|
|
115
115
|
}
|
|
116
116
|
.hidden-column {
|
|
117
|
-
|
|
117
|
+
border: none;
|
|
118
|
+
// display: none;
|
|
118
119
|
}
|
|
119
120
|
.hidden-column + .el-table__cell {
|
|
120
|
-
border: none;
|
|
121
|
+
// border: none;
|
|
121
122
|
}
|
|
122
123
|
.next-hidden-column {
|
|
123
|
-
border: none;
|
|
124
|
+
// border: none;
|
|
124
125
|
}
|
|
125
126
|
}
|
package/src/index.jsx
CHANGED
|
@@ -6,6 +6,7 @@ import { toValidate } from './utils/valid.js'
|
|
|
6
6
|
import { MODE } from "./utils/const.js"
|
|
7
7
|
import { generateRequester } from "./utils/request.js"
|
|
8
8
|
import { executeLoadServices } from "./components/helper/resolver.js"
|
|
9
|
+
import { deepMerge } from "./utils/index.js"
|
|
9
10
|
export default {
|
|
10
11
|
name: 'Resolver',
|
|
11
12
|
props: {
|
|
@@ -197,7 +198,7 @@ export default {
|
|
|
197
198
|
reqData: props.loadEvnetsReq,
|
|
198
199
|
respCb: (result) => {
|
|
199
200
|
nativeDataLoad.value = true
|
|
200
|
-
emit('update:modelValue', result)
|
|
201
|
+
emit('update:modelValue', deepMerge(props.modelValue, result, 'replace') )
|
|
201
202
|
emit('loadEvnetsCompleted', result)
|
|
202
203
|
}
|
|
203
204
|
}
|
|
@@ -242,7 +243,10 @@ export default {
|
|
|
242
243
|
dynamicMapComp,
|
|
243
244
|
validate,
|
|
244
245
|
pageConfig: pageConfigRef,
|
|
245
|
-
rootForm
|
|
246
|
+
rootForm,
|
|
247
|
+
getRequestTraceId: () => {
|
|
248
|
+
return props.requestTraceId
|
|
249
|
+
}
|
|
246
250
|
})
|
|
247
251
|
|
|
248
252
|
const modelValue = computed({
|
package/src/utils/valid.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export function toValidate(formRef, cb, dynamicMapComp) {
|
|
2
2
|
if (!cb) {
|
|
3
3
|
return formRef.value && formRef.value.validate().catch(err => {
|
|
4
|
+
debugger
|
|
4
5
|
validFailAction(err, dynamicMapComp)
|
|
5
6
|
return Promise.reject(err)
|
|
6
7
|
})
|
|
7
8
|
}
|
|
8
9
|
return formRef.value && formRef.value.validate((valid, errInfo) => {
|
|
10
|
+
debugger
|
|
9
11
|
errInfo && validFailAction(errInfo, dynamicMapComp)
|
|
10
12
|
cb && cb(valid, errInfo)
|
|
11
13
|
})
|
|
@@ -40,7 +42,7 @@ function validFailAction(errInfo, dynamicMapComp) {
|
|
|
40
42
|
// 标签组件,需要进行聚焦当前页面
|
|
41
43
|
// component组件,需要打开折叠
|
|
42
44
|
function validFail(config, nextConfig) {
|
|
43
|
-
const type = config.metaType
|
|
45
|
+
const type = config.renderby || config.metaType
|
|
44
46
|
switch (type) {
|
|
45
47
|
case 'CustomComponentTabPane':
|
|
46
48
|
case 'CustomComponentCycleTabPane':
|