赋初值时给deleteAt赋null
This commit is contained in:
parent
d60abe2ddb
commit
5022c21640
|
|
@ -685,6 +685,7 @@ var CascadeStore = /** @class */ (function (_super) {
|
||||||
Object.assign(data2, (_b = {},
|
Object.assign(data2, (_b = {},
|
||||||
_b[Entity_1.CreateAtAttribute] = now,
|
_b[Entity_1.CreateAtAttribute] = now,
|
||||||
_b[Entity_1.UpdateAtAttribute] = now,
|
_b[Entity_1.UpdateAtAttribute] = now,
|
||||||
|
_b[Entity_1.DeleteAtAttribute] = null,
|
||||||
_b));
|
_b));
|
||||||
};
|
};
|
||||||
if (data instanceof Array) {
|
if (data instanceof Array) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import {
|
import {
|
||||||
EntityDict,
|
EntityDict,
|
||||||
OperateOption, SelectOption, OperationResult, DeduceFilter, CreateAtAttribute, UpdateAtAttribute, AggregationResult
|
OperateOption, SelectOption, OperationResult, DeduceFilter, CreateAtAttribute, UpdateAtAttribute, AggregationResult, DeleteAtAttribute
|
||||||
} from "../types/Entity";
|
} from "../types/Entity";
|
||||||
import { EntityDict as BaseEntityDict } from '../base-app-domain';
|
import { EntityDict as BaseEntityDict } from '../base-app-domain';
|
||||||
import { RowStore } from '../types/RowStore';
|
import { RowStore } from '../types/RowStore';
|
||||||
|
|
@ -816,6 +816,7 @@ export abstract class CascadeStore<ED extends EntityDict & BaseEntityDict> exten
|
||||||
Object.assign(data2, {
|
Object.assign(data2, {
|
||||||
[CreateAtAttribute]: now,
|
[CreateAtAttribute]: now,
|
||||||
[UpdateAtAttribute]: now,
|
[UpdateAtAttribute]: now,
|
||||||
|
[DeleteAtAttribute]: null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (data instanceof Array) {
|
if (data instanceof Array) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue