resolver-egretimp-plus 0.0.98 → 0.0.100
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
|
@@ -20,7 +20,7 @@ const inputProps = computed(() => {
|
|
|
20
20
|
readonly: props.config?.readonly ==='1',
|
|
21
21
|
required: props.required,
|
|
22
22
|
errormsg: props.config?.errormsg,
|
|
23
|
-
clearable: props.clearable,
|
|
23
|
+
clearable: props.clearable && !props.disabled,
|
|
24
24
|
showWordLimit: props.config?.showWordLimit === '1' && props.config?.maxLength,
|
|
25
25
|
showPassword: props.config?.showPassword === '1',
|
|
26
26
|
prefixIcon: props.config?.prefixIcon,
|
package/src/index.jsx
CHANGED
|
@@ -157,7 +157,27 @@ 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
|
+
axiosInstance,
|
|
168
|
+
reqData: {...props.loadEvnetsReq, ...props.dialogReq},
|
|
169
|
+
respCb: (result) => {
|
|
170
|
+
nativeDataLoad.value = true
|
|
171
|
+
let val = result
|
|
172
|
+
if (!clearFlag) {
|
|
173
|
+
val = deepMerge(props.modelValue, result, 'replace')
|
|
174
|
+
}
|
|
175
|
+
emit('update:modelValue', val)
|
|
176
|
+
emit('loadEvnetsCompleted', result)
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
}
|
|
161
181
|
initPageConfig({
|
|
162
182
|
router,
|
|
163
183
|
route,
|
|
@@ -172,22 +192,7 @@ export default {
|
|
|
172
192
|
messageInstance: props.messageInstance,
|
|
173
193
|
messageCb: props.messageCb
|
|
174
194
|
})
|
|
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
|
-
)
|
|
195
|
+
toExecuteLoadServices()
|
|
191
196
|
|
|
192
197
|
watch(toRef(props, 'config'), () => {
|
|
193
198
|
initPageConfig({
|
|
@@ -204,23 +209,9 @@ export default {
|
|
|
204
209
|
messageInstance: props.messageInstance,
|
|
205
210
|
messageCb: props.messageCb
|
|
206
211
|
})
|
|
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
|
-
)
|
|
212
|
+
toExecuteLoadServices()
|
|
223
213
|
})
|
|
214
|
+
provide('_toExecuteLoadServices', toExecuteLoadServices)
|
|
224
215
|
provide('_dialogReq', props.dialogReq)
|
|
225
216
|
provide('_messageCb', props.messageCb)
|
|
226
217
|
provide('_rootStore', rootStore)
|
|
@@ -264,7 +255,8 @@ export default {
|
|
|
264
255
|
rootForm,
|
|
265
256
|
getRequestTraceId: () => {
|
|
266
257
|
return props.requestTraceId
|
|
267
|
-
}
|
|
258
|
+
},
|
|
259
|
+
toExecuteLoadServices,
|
|
268
260
|
})
|
|
269
261
|
|
|
270
262
|
const modelValue = computed({
|