@steedos/service-core-objects 3.0.0-beta.140 → 3.0.0-beta.142
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/applications/admin.app.yml +3 -3
- package/main/default/objects/object_fields/listviews/all.listview.yml +1 -1
- package/main/default/objects/object_functions/buttons/open_api.button.yml +1 -1
- package/main/default/objects/reports.object.yml +0 -92
- package/main/default/pages/apps_form.page.amis.json +1 -1
- package/main/default/pages/object_detail.page.amis.json +1 -1
- package/package.json +3 -3
|
@@ -161,12 +161,12 @@ tab_items:
|
|
|
161
161
|
admin_bull_dashboard:
|
|
162
162
|
group: development
|
|
163
163
|
index: 43
|
|
164
|
+
admin_logs:
|
|
165
|
+
group: development
|
|
166
|
+
index: 52
|
|
164
167
|
admin_settings:
|
|
165
168
|
group: advanced_settings
|
|
166
169
|
index: 50
|
|
167
|
-
admin_logs:
|
|
168
|
-
group: advanced_settings
|
|
169
|
-
index: 52
|
|
170
170
|
admin_audit_records:
|
|
171
171
|
group: advanced_settings
|
|
172
172
|
index: 36
|
|
@@ -6,7 +6,7 @@ amis_schema: >-
|
|
|
6
6
|
objectApiName__expand{\n name\n }\n }\n}\n
|
|
7
7
|
`\n}","adaptor":"","messages":{}}},{"ignoreError":false,"actionType":"custom","script":"const
|
|
8
8
|
record =
|
|
9
|
-
event.data.object_function;\nwindow.open(`/api/
|
|
9
|
+
event.data.object_function;\nwindow.open(`/api/v6/functions/${record.object.name}/${record.name}`)\n"}]}},"hidden":false,"visibleOn":"${true}"}],"data":{"context":{},"dataComponentId":"","record_id":"","record":{},"permissions":{}},"bodyClassName":"p-0","id":"u:05f888280584","dsType":"api"}
|
|
10
10
|
is_enable: true
|
|
11
11
|
label: 请求API
|
|
12
12
|
locked: false
|
|
@@ -236,104 +236,12 @@ list_views:
|
|
|
236
236
|
- report_type
|
|
237
237
|
- object_name
|
|
238
238
|
- is_system
|
|
239
|
-
# application:
|
|
240
|
-
# label: Application Reports
|
|
241
|
-
# filter_scope: space
|
|
242
|
-
# filters: !<tag:yaml.org,2002:js/function> |-
|
|
243
|
-
# function () {
|
|
244
|
-
# var object_names;
|
|
245
|
-
# object_names = Creator.getAppObjectNames();
|
|
246
|
-
# return [["object_name", "=", object_names]];
|
|
247
|
-
# }
|
|
248
|
-
# filter_fields:
|
|
249
|
-
# - report_type
|
|
250
|
-
# - created
|
|
251
239
|
mine:
|
|
252
240
|
label: My Reports
|
|
253
241
|
filter_scope: mine
|
|
254
242
|
filter_fields:
|
|
255
243
|
- report_type
|
|
256
244
|
- created
|
|
257
|
-
global:
|
|
258
|
-
label: Standard Reports
|
|
259
|
-
filter_scope: space
|
|
260
|
-
filters:
|
|
261
|
-
- - space
|
|
262
|
-
- =
|
|
263
|
-
- global
|
|
264
|
-
filter_fields:
|
|
265
|
-
- report_type
|
|
266
|
-
- created
|
|
267
|
-
actions:
|
|
268
|
-
standard_new_by_template:
|
|
269
|
-
label: Pull from Library
|
|
270
|
-
visible: false
|
|
271
|
-
# visible: !<tag:yaml.org,2002:js/function> |-
|
|
272
|
-
# function () {
|
|
273
|
-
# var permissions;
|
|
274
|
-
# permissions = Creator.getPermissions();
|
|
275
|
-
# if (Creator.getTemplateSpaceId() && permissions) {
|
|
276
|
-
# return permissions["allowCreate"];
|
|
277
|
-
# }
|
|
278
|
-
# }
|
|
279
|
-
'on': list
|
|
280
|
-
todo: !<tag:yaml.org,2002:js/function> |-
|
|
281
|
-
function (object_name, record_id, fields) {
|
|
282
|
-
Template.gridModal.show({
|
|
283
|
-
id: 'gridModal',
|
|
284
|
-
heading: '请选择报表',
|
|
285
|
-
onConfirm: function (selection) {
|
|
286
|
-
if (selection && selection.length > 0) {
|
|
287
|
-
var record = selection[0];
|
|
288
|
-
var recordId = record._id;
|
|
289
|
-
var url = Steedos.absoluteUrl("/api/v4/reports/all/copy");
|
|
290
|
-
var data = {
|
|
291
|
-
recordId: recordId
|
|
292
|
-
};
|
|
293
|
-
if (recordId) {
|
|
294
|
-
$.ajax({
|
|
295
|
-
url: url,
|
|
296
|
-
type: 'POST',
|
|
297
|
-
async: true,
|
|
298
|
-
data: JSON.stringify(data),
|
|
299
|
-
dataType: 'json',
|
|
300
|
-
processData: false,
|
|
301
|
-
contentType: 'application/json',
|
|
302
|
-
success: function (data) {
|
|
303
|
-
if (data.errors) {
|
|
304
|
-
data.errors.forEach(function (e) {
|
|
305
|
-
toastr.error(e.errorMessage);
|
|
306
|
-
});
|
|
307
|
-
return;
|
|
308
|
-
} else if (data.value) {
|
|
309
|
-
FlowRouter.go("/app/-/reports/view/" + data.value._id);
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
error: function (xhr, msg, ex) {
|
|
313
|
-
toastr.error(msg);
|
|
314
|
-
}
|
|
315
|
-
})
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
gridProp: {
|
|
320
|
-
id: 'reports_object_grid',
|
|
321
|
-
objectName: 'reports',
|
|
322
|
-
enableSearch: true,
|
|
323
|
-
selectRows: 'radio',
|
|
324
|
-
spaceId: Creator.getTemplateSpaceId(),
|
|
325
|
-
columns: [{
|
|
326
|
-
field: 'name',
|
|
327
|
-
label: '名称',
|
|
328
|
-
width: '30%'
|
|
329
|
-
}, {
|
|
330
|
-
field: 'description',
|
|
331
|
-
type: 'markdown',
|
|
332
|
-
label: '描述'
|
|
333
|
-
}]
|
|
334
|
-
}
|
|
335
|
-
})
|
|
336
|
-
}
|
|
337
245
|
permission_set:
|
|
338
246
|
user:
|
|
339
247
|
allowCreate: true
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
],
|
|
197
197
|
"id": "u:6a3b45d7adcf",
|
|
198
198
|
"tabsMode": "vertical",
|
|
199
|
-
"className": "steedos-record-tabs bg-white m-4 border-none sm:shadow",
|
|
199
|
+
"className": "steedos-record-tabs bg-white m-4 border-none sm:shadow p-1 sm:rounded",
|
|
200
200
|
"toolbarClassName": "",
|
|
201
201
|
"linksClassName": "",
|
|
202
202
|
"contentClassName": "bg-white",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-core-objects",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.142",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"steedos"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@steedos/service-package-loader": "3.0.0-beta.
|
|
12
|
+
"@steedos/service-package-loader": "3.0.0-beta.142",
|
|
13
13
|
"json2xls": "^0.1.2",
|
|
14
14
|
"lodash": "^4.17.21"
|
|
15
15
|
},
|
|
16
16
|
"description": "steedos package",
|
|
17
17
|
"repository": {},
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "309aa68394930632b969c02bb84853f416d6d4a3"
|
|
20
20
|
}
|