resolver-egretimp-plus 0.0.99 → 0.0.101
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 +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/index.jsx +27 -34
package/package.json
CHANGED
package/src/index.jsx
CHANGED
|
@@ -157,7 +157,28 @@ export default {
|
|
|
157
157
|
})
|
|
158
158
|
const instance = getCurrentInstance()
|
|
159
159
|
const { initPageConfig, pageConfigRef, mapCompRef, hireRelatMapRulesRef } = usePageConfig()
|
|
160
|
-
|
|
160
|
+
function toExecuteLoadServices(clearFlag) {
|
|
161
|
+
// 触发加载事件执行
|
|
162
|
+
executeLoadServices(
|
|
163
|
+
props.config?.pmPageServiceMapVOList || props.config?.lcpPageServiceMapVOList || [],
|
|
164
|
+
{
|
|
165
|
+
requestTraceId: props.requestTraceId,
|
|
166
|
+
messageInstance: toRef(props, 'messageInstance'),
|
|
167
|
+
businessIdentityReqData: props.businessIdentityReqData,
|
|
168
|
+
axiosInstance,
|
|
169
|
+
reqData: {...props.loadEvnetsReq, ...props.dialogReq},
|
|
170
|
+
respCb: (result) => {
|
|
171
|
+
nativeDataLoad.value = true
|
|
172
|
+
let val = result
|
|
173
|
+
if (!clearFlag) {
|
|
174
|
+
val = deepMerge(props.modelValue, result, 'replace')
|
|
175
|
+
}
|
|
176
|
+
emit('update:modelValue', val)
|
|
177
|
+
emit('loadEvnetsCompleted', result)
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
161
182
|
initPageConfig({
|
|
162
183
|
router,
|
|
163
184
|
route,
|
|
@@ -172,22 +193,7 @@ export default {
|
|
|
172
193
|
messageInstance: props.messageInstance,
|
|
173
194
|
messageCb: props.messageCb
|
|
174
195
|
})
|
|
175
|
-
|
|
176
|
-
executeLoadServices(
|
|
177
|
-
props.config?.pmPageServiceMapVOList || props.config?.lcpPageServiceMapVOList || [],
|
|
178
|
-
{
|
|
179
|
-
requestTraceId: props.requestTraceId,
|
|
180
|
-
messageInstance: toRef(props, 'messageInstance'),
|
|
181
|
-
axiosInstance,
|
|
182
|
-
reqData: {...props.loadEvnetsReq, ...props.dialogReq},
|
|
183
|
-
respCb: (result) => {
|
|
184
|
-
nativeDataLoad.value = true
|
|
185
|
-
const val = deepMerge(props.modelValue, result, 'replace')
|
|
186
|
-
emit('update:modelValue', val)
|
|
187
|
-
emit('loadEvnetsCompleted', result)
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
)
|
|
196
|
+
toExecuteLoadServices()
|
|
191
197
|
|
|
192
198
|
watch(toRef(props, 'config'), () => {
|
|
193
199
|
initPageConfig({
|
|
@@ -204,23 +210,9 @@ export default {
|
|
|
204
210
|
messageInstance: props.messageInstance,
|
|
205
211
|
messageCb: props.messageCb
|
|
206
212
|
})
|
|
207
|
-
|
|
208
|
-
props.config?.pmPageServiceMapVOList || [],
|
|
209
|
-
{
|
|
210
|
-
requestTraceId: props.requestTraceId,
|
|
211
|
-
messageInstance: toRef(props, 'messageInstance'),
|
|
212
|
-
businessIdentityReqData: props.businessIdentityReqData,
|
|
213
|
-
axiosInstance,
|
|
214
|
-
reqData: {...props.loadEvnetsReq, ...props.dialogReq},
|
|
215
|
-
respCb: (result) => {
|
|
216
|
-
nativeDataLoad.value = true
|
|
217
|
-
const val = deepMerge(props.modelValue, result, 'replace')
|
|
218
|
-
emit('update:modelValue', val)
|
|
219
|
-
emit('loadEvnetsCompleted', result)
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
)
|
|
213
|
+
toExecuteLoadServices()
|
|
223
214
|
})
|
|
215
|
+
provide('_toExecuteLoadServices', toExecuteLoadServices)
|
|
224
216
|
provide('_dialogReq', props.dialogReq)
|
|
225
217
|
provide('_messageCb', props.messageCb)
|
|
226
218
|
provide('_rootStore', rootStore)
|
|
@@ -264,7 +256,8 @@ export default {
|
|
|
264
256
|
rootForm,
|
|
265
257
|
getRequestTraceId: () => {
|
|
266
258
|
return props.requestTraceId
|
|
267
|
-
}
|
|
259
|
+
},
|
|
260
|
+
toExecuteLoadServices,
|
|
268
261
|
})
|
|
269
262
|
|
|
270
263
|
const modelValue = computed({
|