merge
This commit is contained in:
commit
7cfa310637
|
|
@ -8,7 +8,7 @@ export default OakComponent({
|
|||
relationIds: [],
|
||||
},
|
||||
formData() {
|
||||
const { entity } = this.props;
|
||||
const entity = this.props.entity;
|
||||
const actions = this.features.relationAuth.getActions(entity);
|
||||
const daas = this.features.relationAuth.getCascadeActionAuths(entity, false);
|
||||
const relations = this.features.cache.get('relation', {
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ class ListNode extends Node {
|
|||
operation: {
|
||||
id: generateNewId(),
|
||||
action: 'create',
|
||||
data: item.id ? item : Object.assign(item, { id }),
|
||||
data: Object.assign(item, { id }),
|
||||
},
|
||||
};
|
||||
this.setDirty();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ exports.default = OakComponent({
|
|||
relationIds: [],
|
||||
},
|
||||
formData() {
|
||||
const { entity } = this.props;
|
||||
const entity = this.props.entity;
|
||||
const actions = this.features.relationAuth.getActions(entity);
|
||||
const daas = this.features.relationAuth.getCascadeActionAuths(entity, false);
|
||||
const relations = this.features.cache.get('relation', {
|
||||
|
|
|
|||
|
|
@ -489,7 +489,7 @@ class ListNode extends Node {
|
|||
operation: {
|
||||
id: (0, uuid_1.generateNewId)(),
|
||||
action: 'create',
|
||||
data: item.id ? item : Object.assign(item, { id }),
|
||||
data: Object.assign(item, { id }),
|
||||
},
|
||||
};
|
||||
this.setDirty();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export default OakComponent({
|
|||
relationIds: [] as string[],
|
||||
},
|
||||
formData() {
|
||||
const { entity } = this.props;
|
||||
const entity = this.props.entity;
|
||||
const actions = this.features.relationAuth.getActions(entity!);
|
||||
const daas = this.features.relationAuth.getCascadeActionAuths(entity!, false);
|
||||
const relations = this.features.cache.get('relation', {
|
||||
|
|
|
|||
|
|
@ -635,7 +635,7 @@ class ListNode<
|
|||
operation: {
|
||||
id: generateNewId(),
|
||||
action: 'create',
|
||||
data: item.id ? item : Object.assign(item, { id }),
|
||||
data: Object.assign(item, { id }),
|
||||
},
|
||||
};
|
||||
this.setDirty();
|
||||
|
|
|
|||
Loading…
Reference in New Issue