@steedos-widgets/amis-lib 6.10.1-beta.16 → 6.10.1-beta.18

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/index.esm.js CHANGED
@@ -3125,7 +3125,10 @@ async function getTableApi(mainObject, fields, options){
3125
3125
  console.error("本地存储中crud参数解析异常:", ex);
3126
3126
  }
3127
3127
  ${baseFilters ? `var systemFilters = ${JSON.stringify(baseFilters)};` : 'var systemFilters = [];'}
3128
- var _ids = []
3128
+ var _ids = [];
3129
+ if(systemFilters && systemFilters.length){
3130
+ SteedosUI.traverseNestedArrayFormula(systemFilters, api.context);
3131
+ }
3129
3132
  const filtersFunction = ${filtersFunction};
3130
3133
  if(filtersFunction){
3131
3134
  const _filters = filtersFunction(systemFilters, api.data.$self);
@@ -3566,7 +3569,7 @@ async function getReadonlyFormInitApi(object, recordId, fields, options){
3566
3569
  }
3567
3570
  return {
3568
3571
  method: "post",
3569
- url: getApi$2(),
3572
+ url: getApi$2() + '&objectName=${objectName}' + "&recordId=${recordId}",
3570
3573
  cache: API_CACHE,
3571
3574
  requestAdaptor: `
3572
3575
  ${options && options.initApiRequestAdaptor || ''}
@@ -3576,8 +3579,7 @@ async function getReadonlyFormInitApi(object, recordId, fields, options){
3576
3579
  data: await getFindOneQuery$1(object, recordId, fields, findOneOptions),
3577
3580
  headers: {
3578
3581
  Authorization: "Bearer ${context.tenantId},${context.authToken}"
3579
- },
3580
- trackExpression: '${objectName}'
3582
+ }
3581
3583
  }
3582
3584
  }
3583
3585