@steedos/service-plugin-amis 2.4.15-beta.4 → 2.4.15-beta.6

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.
@@ -31,7 +31,7 @@
31
31
  "method": "post",
32
32
  "url": "${context.rootUrl}/graphql?rf=1653731141728",
33
33
  "cache": 100,
34
- "adaptor": "const recordId = api.body.recordId;\nvar data;\nif (recordId) {\n console.log('recordId==>', recordId)\n data = payload.data.data[0] || { _filters_type_controller: 'conditions' };\n //数据格式转换\n if (data) {\n data.columns = lodash.map(data.columns, 'field');\n data.sort = lodash.map(data.sort, (item) => {\n return `${item.field_name}:${item.order || 'asc'}`\n });\n data.mobile_columns = lodash.map(data.mobile_columns, 'field');\n data.searchable_fields = lodash.map(data.searchable_fields, 'field');\n\n if (data.filters && lodash.isString(data.filters)) {\n try {\n data.filters = JSON.parse(data.filters);\n } catch (e) { }\n }\n\n if (data.filters && lodash.isString(data.filters)) {\n data._filters_type_controller = 'function';\n } else {\n data._filters_type_controller = 'conditions'\n }\n\n if (data._filters_type_controller === 'conditions') {\n data._filters_conditions = window.amisConvert.filtersToConditions(data.filters || []);\n } else {\n data._filters_function = data.filters;\n }\n }\n} else {\n const defaultData = api.body.defaultData;\n let defaultValues = {};\n // TODO:字段默认值后期添加\n if(defaultData && _.isObject(defaultData) && !_.isArray(defaultData)){\n data = Object.assign({}, defaultValues, defaultData)\n }\n}\nfor (key in data) {\n if (data[key] === null) {\n delete data[key];\n }\n}\npayload.data = data;\ndelete payload.extensions;\nreturn payload;",
34
+ "adaptor": "const recordId = api.body.recordId;\nvar data;\nif (recordId) {\n data = payload.data.data[0] || { _filters_type_controller: 'conditions' };\n //数据格式转换\n if (data) {\n data.columns = lodash.map(data.columns, 'field');\n data.sort = lodash.map(data.sort, (item) => {\n return `${item.field_name}:${item.order || 'asc'}`\n });\n data.mobile_columns = lodash.map(data.mobile_columns, 'field');\n data.searchable_fields = lodash.map(data.searchable_fields, 'field');\n\n if (data.filters && lodash.isString(data.filters)) {\n try {\n data.filters = JSON.parse(data.filters);\n } catch (e) { }\n }\n\n if (data.filters && lodash.isString(data.filters)) {\n data._filters_type_controller = 'function';\n } else {\n data._filters_type_controller = 'conditions'\n }\n\n if (data._filters_type_controller === 'conditions') {\n data._filters_conditions = window.amisConvert.filtersToConditions(data.filters || []);\n } else {\n data._filters_function = data.filters;\n }\n }\n} else {\n const defaultData = api.body.defaultData;\n let defaultValues = {};\n // TODO:字段默认值后期添加\n if(defaultData && _.isObject(defaultData) && !_.isArray(defaultData)){\n data = Object.assign({}, defaultValues, defaultData)\n }\n}\nfor (key in data) {\n if (data[key] === null) {\n delete data[key];\n }\n}\npayload.data = data;\ndelete payload.extensions;\nreturn payload;",
35
35
  "data": {
36
36
  "recordId": "${recordId}",
37
37
  "defaultData": "${defaultData}",
@@ -197,6 +197,7 @@
197
197
  "headers": {
198
198
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
199
199
  },
200
+ "cache": 10000,
200
201
  "data": null,
201
202
  "requestAdaptor": "",
202
203
  "adaptor": "",
@@ -233,6 +234,7 @@
233
234
  "headers": {
234
235
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
235
236
  },
237
+ "cache": 10000,
236
238
  "data": null,
237
239
  "requestAdaptor": "",
238
240
  "adaptor": "",
@@ -380,6 +382,7 @@
380
382
  "headers": {
381
383
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
382
384
  },
385
+ "cache": 10000,
383
386
  "data": null,
384
387
  "requestAdaptor": "",
385
388
  "adaptor": "",
@@ -424,6 +427,7 @@
424
427
  "headers": {
425
428
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
426
429
  },
430
+ "cache": 10000,
427
431
  "data": null,
428
432
  "requestAdaptor": "",
429
433
  "adaptor": "",
@@ -34,7 +34,7 @@
34
34
  "data": {
35
35
  "recordId": "${recordId}",
36
36
  "defaultData": "${defaultData}",
37
- "query": "{data:object_layouts(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,name,label,object_name,profiles,buttons,fields,related_lists,is_system,created,created_by,modified,modified_by,instances,instance_state,_display:_ui{object_name,profiles,buttons,fields,related_lists,is_system,created,created_by,modified,modified_by,instances,instance_state}}}",
37
+ "query": "{data:object_layouts(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,name,label,object_name,profiles,buttons,fields,related_lists,field_groups,is_system,created,created_by,modified,modified_by,instances,instance_state,_display:_ui{object_name,profiles,buttons,fields,related_lists,is_system,created,created_by,modified,modified_by,instances,instance_state}}}",
38
38
  "uiSchema": "${uiSchema}",
39
39
  "objectName": "${objectName}"
40
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.4.15-beta.4",
3
+ "version": "2.4.15-beta.6",
4
4
  "main": "package.service.js",
5
5
  "scripts": {
6
6
  "build": "yarn build:tailwind-base && yarn build:tailwind",
@@ -13,7 +13,7 @@
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "gitHead": "e194dfdd0682b117f8442cd72db0c55414885f4c",
16
+ "gitHead": "40555dddc4ac402d3419e0e26564a391130e497d",
17
17
  "devDependencies": {
18
18
  "tailwindcss": "3.2.4"
19
19
  }
@@ -87,3 +87,7 @@
87
87
  .ant-message{
88
88
  z-index: 2600;
89
89
  }
90
+
91
+ .antd-Form-item.p-0{
92
+ padding: 0;
93
+ }
@@ -97,6 +97,14 @@
97
97
  margin-top: 0.75rem
98
98
  }
99
99
 
100
+ .mb-0 {
101
+ margin-bottom: 0px
102
+ }
103
+
104
+ .ml-2 {
105
+ margin-left: 0.5rem
106
+ }
107
+
100
108
  .block {
101
109
  display: block
102
110
  }
@@ -208,6 +216,16 @@
208
216
  padding-bottom: 0.5rem
209
217
  }
210
218
 
219
+ .py-5 {
220
+ padding-top: 1.25rem;
221
+ padding-bottom: 1.25rem
222
+ }
223
+
224
+ .py-1 {
225
+ padding-top: 0.25rem;
226
+ padding-bottom: 0.25rem
227
+ }
228
+
211
229
  .px-0 {
212
230
  padding-left: 0px;
213
231
  padding-right: 0px
@@ -229,6 +247,18 @@
229
247
  text-align: center
230
248
  }
231
249
 
250
+ .text-lg {
251
+ font-size: 16px
252
+ }
253
+
254
+ .text-xl {
255
+ font-size: 18px
256
+ }
257
+
258
+ .font-bold {
259
+ font-weight: 700
260
+ }
261
+
232
262
  .lowercase {
233
263
  text-transform: lowercase
234
264
  }