@steedos/service-pages 2.2.52 → 2.2.53-beta.4
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.
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.53-beta.4",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "4e43f69e542667e1b83485832a65bfa12371786a",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|