@steedos/service-plugin-amis 2.6.8-beta.7 → 2.6.8
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/main/default/client/amis.actions.client.js +3 -3
- package/main/default/pages/action_field_updates_form.page.amis.json +1 -1
- package/main/default/pages/apps_form.page.amis.json +1 -0
- package/main/default/pages/generate_object_tabs.page.amis.json +1 -0
- package/main/default/pages/listview_form.page.amis.json +4 -0
- package/main/default/pages/object_layouts_form.page.amis.json +3 -0
- package/package.json +2 -2
- package/public/translations/amis/en-US.json +1 -1
- package/public/translations/amis/zh-CN.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2024-01-26 11:40:59
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime: 2024-01
|
|
4
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
5
|
+
* @LastEditTime: 2024-03-01 14:19:42
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ amisLib.registerAction('steedos_actions_standard_approve', {
|
|
|
14
14
|
return amisLib.runActions([
|
|
15
15
|
{
|
|
16
16
|
"actionType": "custom",
|
|
17
|
-
"script": "const flows = lodash.filter(Creator.object_workflows, (item) => { return item.object_name ==
|
|
17
|
+
"script": "var objectName = event.data.objectName || event.data.object_name;const flows = lodash.filter(Creator.object_workflows, (item) => { return item.object_name == objectName && (!item.sync_direction || item.sync_direction == 'both' || item.sync_direction == 'obj_to_ins') })\n\nevent.setData({ ...event.data, ...{ flows: flows, flowCount: flows.length } })\n\n"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"actionType": "ajax",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
79
79
|
},
|
|
80
80
|
"adaptor": "\n const data = payload.data;\n var defaultValueOptions = data.defaultValueOptions;\n // 字段值下拉选项合并到options中\n data.options = _.unionWith(defaultValueOptions, data.options, function(a,b){\n return a[\"value\"]=== b[\"value\"];\n });\n delete data.defaultValueOptions;\n payload.data.options = data.options;\n return payload;\n ",
|
|
81
|
-
"requestAdaptor": "\n var filters = [];\n var top =
|
|
81
|
+
"requestAdaptor": "\n var filters = [];\n var top = 1000;\n if(api.data.$term){\n filters = [[\"label\", \"contains\", api.data.$term]];\n }\n // else if(api.data.$value){\n // filters = [[\"_id\", \"=\", api.data.$value]];\n // }\n\n var fieldFilters = undefined;\n if(fieldFilters && fieldFilters.length){\n filters.push(fieldFilters);\n }\n\n const filtersFunction = undefined;\n\n if(filtersFunction){\n const _filters = filtersFunction(filters, api.data.$);\n if(_filters && _filters.length > 0){\n filters.push(_filters);\n }\n }\n var sort = \"\";\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', top).replace('{__sort}', sort.trim());\n\n var defaultValue = api.data.$value;\n var optionsFiltersOp = \"=\";\n var optionsFilters = [[\"name\", optionsFiltersOp, []]];\n if (defaultValue && !api.data.$term) { \n // 字段值单独请求,没值的时候在请求中返回空\n optionsFilters = [[\"name\", optionsFiltersOp, defaultValue]];\n }\n api.data.query = api.data.query.replace(/{__options_filters}/g, JSON.stringify(optionsFilters));\n return api;\n "
|
|
82
82
|
},
|
|
83
83
|
"className": "m-1",
|
|
84
84
|
"labelClassName": "text-left",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"checkAll": false,
|
|
41
41
|
"searchable": true,
|
|
42
42
|
"sortable": true,
|
|
43
|
+
"itemHeight": 40,
|
|
43
44
|
"source": {
|
|
44
45
|
"method": "get",
|
|
45
46
|
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object_name}/fields/options",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
],
|
|
96
97
|
"id": "u:32f3e4e73115",
|
|
97
98
|
"strictMode": true,
|
|
99
|
+
"itemHeight": 40,
|
|
98
100
|
"source": {
|
|
99
101
|
"method": "get",
|
|
100
102
|
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object_name}/sortFields/options",
|
|
@@ -204,6 +206,7 @@
|
|
|
204
206
|
"required": true,
|
|
205
207
|
"placeholder": "-",
|
|
206
208
|
"className": "col-span-2 m-0",
|
|
209
|
+
"itemHeight": 40,
|
|
207
210
|
"checkAll": false,
|
|
208
211
|
"searchable": true,
|
|
209
212
|
"sortable": true,
|
|
@@ -260,6 +263,7 @@
|
|
|
260
263
|
"searchResultMode": "list",
|
|
261
264
|
"joinValues": false,
|
|
262
265
|
"extractValue": true,
|
|
266
|
+
"itemHeight": 40,
|
|
263
267
|
"source": {
|
|
264
268
|
"method": "get",
|
|
265
269
|
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object_name}/fields/options",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
{
|
|
62
62
|
"type": "transfer",
|
|
63
63
|
"name": "picked_buttons",
|
|
64
|
+
"itemHeight": 40,
|
|
64
65
|
"sortable": true,
|
|
65
66
|
"source": {
|
|
66
67
|
"method": "get",
|
|
@@ -205,6 +206,7 @@
|
|
|
205
206
|
{
|
|
206
207
|
"type": "transfer",
|
|
207
208
|
"name": "picked_fields",
|
|
209
|
+
"itemHeight": 40,
|
|
208
210
|
"sortable": true,
|
|
209
211
|
"source": "${fields_options}",
|
|
210
212
|
"value": "${fields|pick:field_name|split}",
|
|
@@ -499,6 +501,7 @@
|
|
|
499
501
|
"body": [
|
|
500
502
|
{
|
|
501
503
|
"type": "transfer",
|
|
504
|
+
"itemHeight": 40,
|
|
502
505
|
"name": "picked_related_lists",
|
|
503
506
|
"sortable": true,
|
|
504
507
|
"source": "${related_lists_options}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.6.8
|
|
3
|
+
"version": "2.6.8",
|
|
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": "
|
|
16
|
+
"gitHead": "2114137be783174e207dac675e75a3597bacdf21",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"File.repick": "Repick",
|
|
130
130
|
"File.result": "Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files",
|
|
131
131
|
"File.retry": "Retry",
|
|
132
|
-
"File.sizeLimit": "The maximum file size is {{maxSize}}
|
|
132
|
+
"File.sizeLimit": "The maximum file size is {{maxSize}}",
|
|
133
133
|
"File.start": "Start upload",
|
|
134
134
|
"File.upload": "Upload",
|
|
135
135
|
"Image.upload": "Upload image",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"File.repick": "重新选择",
|
|
135
135
|
"File.result": "已成功上传 {{uploaded}} 个文件,{{failed}} 个文件上传失败,",
|
|
136
136
|
"File.retry": "重试上传",
|
|
137
|
-
"File.sizeLimit": "文件大小不超过 {{maxSize}}
|
|
137
|
+
"File.sizeLimit": "文件大小不超过 {{maxSize}}",
|
|
138
138
|
"File.start": "开始上传",
|
|
139
139
|
"File.upload": "文件上传",
|
|
140
140
|
"Image.upload": "图片上传",
|