@cloudbase/weda-ui-mp 3.18.0 → 3.18.2
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.
|
@@ -283,7 +283,7 @@ Component({
|
|
|
283
283
|
? `附近搜索失败,请检查APIKEY【${apiKey}】是否正确,调整/ws/place/v1/explore配额`
|
|
284
284
|
: '',
|
|
285
285
|
});
|
|
286
|
-
|
|
286
|
+
_this.triggerEvent('error', { error: comErrorInfo });
|
|
287
287
|
_this.setData({
|
|
288
288
|
searchLoadingStatus: false,
|
|
289
289
|
});
|
|
@@ -251,6 +251,9 @@ Component({
|
|
|
251
251
|
}
|
|
252
252
|
const cleanInitValue = JSON.parse(JSON.stringify(initValue));
|
|
253
253
|
if (this.setReadonlyAttributes) {
|
|
254
|
+
this.setData({
|
|
255
|
+
remoteValue: cleanInitValue,
|
|
256
|
+
});
|
|
254
257
|
this.setReadonlyAttributes({ remoteValue: cleanInitValue });
|
|
255
258
|
}
|
|
256
259
|
this.setData({ isLoadingData: false });
|
|
@@ -268,7 +271,7 @@ Component({
|
|
|
268
271
|
formData: initValues,
|
|
269
272
|
initialValues: initValues,
|
|
270
273
|
});
|
|
271
|
-
this.triggerEvent('querySuccess', initValue);
|
|
274
|
+
this.triggerEvent('querySuccess', { ...initValue, data: initValue });
|
|
272
275
|
}, compMountTimeOut);
|
|
273
276
|
}
|
|
274
277
|
if (Object.keys(initValue).length === 0) {
|
|
@@ -314,7 +314,7 @@ Component({
|
|
|
314
314
|
const { queryParam, dataSourceName, primaryField } = this.data;
|
|
315
315
|
const _filter = {
|
|
316
316
|
where: {
|
|
317
|
-
$and: [{ $or: values.map((i) => ({ _id: { $
|
|
317
|
+
$and: [{ $or: values.map((i) => ({ _id: { $eq: i } })) }],
|
|
318
318
|
},
|
|
319
319
|
};
|
|
320
320
|
let data = await callDataSourceApi({
|