@steedos/service-pages 2.2.52-beta.6 → 2.2.53-beta.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.
package/LICENSE.txt
CHANGED
|
@@ -6,14 +6,11 @@ To determine under which license you may use a file from the Steedos source code
|
|
|
6
6
|
please resort to the header of that file.
|
|
7
7
|
|
|
8
8
|
If the file has no header, the following rules apply
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
11
|
-
3. source code that is neither (1) nor (2) is licensed under AGPL, see License.AGPL.txt
|
|
9
|
+
1. enterprise features are licensed under Steedos Enterprise Terms, see License.enterprise.txt
|
|
10
|
+
2. source code that is neither (1) is licensed under MIT, see https://opensource.org/licenses/MIT
|
|
12
11
|
|
|
13
12
|
On request, licenses under different terms are available.
|
|
14
13
|
|
|
15
|
-
Project templates can be found in the folders steedos-projects/
|
|
16
|
-
|
|
17
14
|
Source code of enterprise features are files that
|
|
18
15
|
* are in folders named "ee" or start with "ee_", or in subfolders of such folders.
|
|
19
16
|
* contain the strings "ee_" in its filename name.
|
|
@@ -370,10 +370,16 @@
|
|
|
370
370
|
title: title,
|
|
371
371
|
afterUpdate: function () {
|
|
372
372
|
setTimeout(function () {
|
|
373
|
+
if(["/app/:app_id/:object_name/view/:record_id", "/app/:app_id/:object_name/:record_id/:related_object_name/grid"].indexOf(FlowRouter.current().route.pathDef) > -1){
|
|
374
|
+
// 记录详细界面编辑子表记录,或相关子表列表界面编辑子表记录
|
|
375
|
+
var params = FlowRouter.current().params;
|
|
376
|
+
if(params.record_id !== recordId){
|
|
377
|
+
// ObjectForm有缓存,修改子表记录可能会有主表记录的汇总字段变更,需要刷新主表记录
|
|
378
|
+
SteedosUI.reloadRecord(params.object_name, params.record_id)
|
|
379
|
+
}
|
|
380
|
+
}
|
|
373
381
|
if (FlowRouter.current().route.path.endsWith("/:record_id")) {
|
|
374
382
|
FlowRouter.reload()
|
|
375
|
-
// ObjectForm有缓存,修改子表记录可能会有主表记录的汇总字段变更,需要刷新表单数据
|
|
376
|
-
SteedosUI.reloadRecord(objectApiName, recordId)
|
|
377
383
|
} else {
|
|
378
384
|
window.refreshDxSchedulerInstance()
|
|
379
385
|
window.refreshGrid(options.gridName);
|
|
@@ -424,13 +430,14 @@
|
|
|
424
430
|
let referenceTo = objectFields[fieldName].reference_to;
|
|
425
431
|
const refObject = Creator.getObject(referenceTo)
|
|
426
432
|
if(!refObject){
|
|
433
|
+
window.lodash.remove(fieldsName, function(item) { return item === fieldName; });
|
|
427
434
|
console.error(`未找到对象“${referenceTo}”,请检查是否该对象依赖的软件包未安装。`);
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
if(_.includes(fieldsName, fieldName)){
|
|
431
|
-
fieldsName[_.indexOf(fieldsName, fieldName)] = `${fieldName}:${fieldName}__expand{_id, _NAME_FIELD_VALUE:${refObject.NAME_FIELD_KEY}${spaceUsersCompanyIdsExpand}}`
|
|
432
435
|
}else{
|
|
433
|
-
|
|
436
|
+
if(_.includes(fieldsName, fieldName)){
|
|
437
|
+
fieldsName[_.indexOf(fieldsName, fieldName)] = `${fieldName}:${fieldName}__expand{_id, _NAME_FIELD_VALUE:${refObject.NAME_FIELD_KEY}${spaceUsersCompanyIdsExpand}}`
|
|
438
|
+
}else{
|
|
439
|
+
fieldsName.push(`${fieldName}:${fieldName}__expand{_id, _NAME_FIELD_VALUE:${refObject.NAME_FIELD_KEY}${spaceUsersCompanyIdsExpand}}`)
|
|
440
|
+
}
|
|
434
441
|
}
|
|
435
442
|
}
|
|
436
443
|
})
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.53-beta.2",
|
|
4
4
|
"main": "package.service.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"i18n": "concurrently yarn:i18n:*",
|
|
7
|
-
"i18n:cn": "steedos i18n zh-CN -s ./../../steedos-projects/project-template -p ./../../services/service-pages",
|
|
8
|
-
"i18n:en": "steedos i18n en -s ./../../steedos-projects/project-template -p ./../../services/service-pages"
|
|
9
|
-
},
|
|
5
|
+
"scripts": {},
|
|
10
6
|
"license": "MIT",
|
|
11
7
|
"private": false,
|
|
12
8
|
"publishConfig": {
|
|
13
9
|
"access": "public"
|
|
14
10
|
},
|
|
15
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "d6d2230d72af49a72fc546093b553463cd2f0e9d",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"ejs": "^3.1.8"
|
|
14
|
+
}
|
|
16
15
|
}
|