build
This commit is contained in:
parent
bfe63596fc
commit
5121cacbc2
|
|
@ -2,5 +2,4 @@ import { String } from 'oak-domain/lib/types/DataType';
|
||||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||||
export interface Schema extends EntityShape {
|
export interface Schema extends EntityShape {
|
||||||
type: String<64>;
|
type: String<64>;
|
||||||
display?: String<64>;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ const entityDesc = {
|
||||||
name: '消息类型',
|
name: '消息类型',
|
||||||
attr: {
|
attr: {
|
||||||
type: '类型',
|
type: '类型',
|
||||||
display: '显示值',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,10 @@ import { String } from "oak-domain/lib/types/DataType";
|
||||||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||||
export declare type OpSchema = EntityShape & {
|
export declare type OpSchema = EntityShape & {
|
||||||
type: String<64>;
|
type: String<64>;
|
||||||
display?: String<64> | null;
|
|
||||||
};
|
};
|
||||||
export declare type OpAttr = keyof OpSchema;
|
export declare type OpAttr = keyof OpSchema;
|
||||||
export declare type Schema = EntityShape & {
|
export declare type Schema = EntityShape & {
|
||||||
type: String<64>;
|
type: String<64>;
|
||||||
display?: String<64> | null;
|
|
||||||
} & {
|
} & {
|
||||||
[A in ExpressionKey]?: any;
|
[A in ExpressionKey]?: any;
|
||||||
};
|
};
|
||||||
|
|
@ -21,7 +19,6 @@ declare type AttrFilter = {
|
||||||
$$seq$$: Q_StringValue;
|
$$seq$$: Q_StringValue;
|
||||||
$$updateAt$$: Q_DateValue;
|
$$updateAt$$: Q_DateValue;
|
||||||
type: Q_StringValue;
|
type: Q_StringValue;
|
||||||
display: Q_StringValue;
|
|
||||||
};
|
};
|
||||||
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
||||||
export declare type Projection = {
|
export declare type Projection = {
|
||||||
|
|
@ -32,7 +29,6 @@ export declare type Projection = {
|
||||||
$$updateAt$$?: number;
|
$$updateAt$$?: number;
|
||||||
$$seq$$?: number;
|
$$seq$$?: number;
|
||||||
type?: number;
|
type?: number;
|
||||||
display?: number;
|
|
||||||
} & Partial<ExprOp<OpAttr | string>>;
|
} & Partial<ExprOp<OpAttr | string>>;
|
||||||
declare type MessageTypeIdProjection = OneOf<{
|
declare type MessageTypeIdProjection = OneOf<{
|
||||||
id: number;
|
id: number;
|
||||||
|
|
@ -47,8 +43,6 @@ export declare type SortAttr = {
|
||||||
$$updateAt$$: number;
|
$$updateAt$$: number;
|
||||||
} | {
|
} | {
|
||||||
type: number;
|
type: number;
|
||||||
} | {
|
|
||||||
display: number;
|
|
||||||
} | {
|
} | {
|
||||||
[k: string]: any;
|
[k: string]: any;
|
||||||
} | OneOf<ExprOp<OpAttr | string>>;
|
} | OneOf<ExprOp<OpAttr | string>>;
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,6 @@ export const desc = {
|
||||||
params: {
|
params: {
|
||||||
length: 64
|
length: 64
|
||||||
}
|
}
|
||||||
},
|
|
||||||
display: {
|
|
||||||
type: "varchar",
|
|
||||||
params: {
|
|
||||||
length: 64
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actionType: "crud",
|
actionType: "crud",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{ "name": "消息类型", "attr": { "type": "类型", "display": "显示值" } }
|
{ "name": "消息类型", "attr": { "type": "类型" } }
|
||||||
|
|
|
||||||
|
|
@ -25,5 +25,5 @@ export default function Render(props) {
|
||||||
children: (_jsx(MessageTypeTemplateIdList, { oakAutoUnmount: true, applicationId: oakId, oakPath: `$application-detail-mttId-${oakId}` })),
|
children: (_jsx(MessageTypeTemplateIdList, { oakAutoUnmount: true, applicationId: oakId, oakPath: `$application-detail-mttId-${oakId}` })),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return (_jsx(PageHeader, { showBack: true, title: "\u5E94\u7528\u6982\u89C8", children: _jsx("div", { className: Style.container, children: _jsx(Card, { title: name, bordered: false, actions: Actions, children: _jsx(Tabs, { items: items }) }) }) }));
|
return (_jsx(PageHeader, { showBack: true, title: "\u5E94\u7528\u6982\u89C8", children: _jsx("div", { className: Style.container, children: _jsx(Card, { title: name, bordered: false, extra: Actions, children: _jsx(Tabs, { items: items }) }) }) }));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ const triggers = [
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
if (data instanceof Array) {
|
if (data instanceof Array) {
|
||||||
data.forEach(async (ele) => await setData(ele));
|
for (const item of data) {
|
||||||
|
await setData(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
await setData(data);
|
await setData(data);
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,4 @@ import { String } from 'oak-domain/lib/types/DataType';
|
||||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||||
export interface Schema extends EntityShape {
|
export interface Schema extends EntityShape {
|
||||||
type: String<64>;
|
type: String<64>;
|
||||||
display?: String<64>;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ var entityDesc = {
|
||||||
name: '消息类型',
|
name: '消息类型',
|
||||||
attr: {
|
attr: {
|
||||||
type: '类型',
|
type: '类型',
|
||||||
display: '显示值',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,10 @@ import { String } from "oak-domain/lib/types/DataType";
|
||||||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||||
export declare type OpSchema = EntityShape & {
|
export declare type OpSchema = EntityShape & {
|
||||||
type: String<64>;
|
type: String<64>;
|
||||||
display?: String<64> | null;
|
|
||||||
};
|
};
|
||||||
export declare type OpAttr = keyof OpSchema;
|
export declare type OpAttr = keyof OpSchema;
|
||||||
export declare type Schema = EntityShape & {
|
export declare type Schema = EntityShape & {
|
||||||
type: String<64>;
|
type: String<64>;
|
||||||
display?: String<64> | null;
|
|
||||||
} & {
|
} & {
|
||||||
[A in ExpressionKey]?: any;
|
[A in ExpressionKey]?: any;
|
||||||
};
|
};
|
||||||
|
|
@ -21,7 +19,6 @@ declare type AttrFilter = {
|
||||||
$$seq$$: Q_StringValue;
|
$$seq$$: Q_StringValue;
|
||||||
$$updateAt$$: Q_DateValue;
|
$$updateAt$$: Q_DateValue;
|
||||||
type: Q_StringValue;
|
type: Q_StringValue;
|
||||||
display: Q_StringValue;
|
|
||||||
};
|
};
|
||||||
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
||||||
export declare type Projection = {
|
export declare type Projection = {
|
||||||
|
|
@ -32,7 +29,6 @@ export declare type Projection = {
|
||||||
$$updateAt$$?: number;
|
$$updateAt$$?: number;
|
||||||
$$seq$$?: number;
|
$$seq$$?: number;
|
||||||
type?: number;
|
type?: number;
|
||||||
display?: number;
|
|
||||||
} & Partial<ExprOp<OpAttr | string>>;
|
} & Partial<ExprOp<OpAttr | string>>;
|
||||||
declare type MessageTypeIdProjection = OneOf<{
|
declare type MessageTypeIdProjection = OneOf<{
|
||||||
id: number;
|
id: number;
|
||||||
|
|
@ -47,8 +43,6 @@ export declare type SortAttr = {
|
||||||
$$updateAt$$: number;
|
$$updateAt$$: number;
|
||||||
} | {
|
} | {
|
||||||
type: number;
|
type: number;
|
||||||
} | {
|
|
||||||
display: number;
|
|
||||||
} | {
|
} | {
|
||||||
[k: string]: any;
|
[k: string]: any;
|
||||||
} | OneOf<ExprOp<OpAttr | string>>;
|
} | OneOf<ExprOp<OpAttr | string>>;
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,6 @@ exports.desc = {
|
||||||
params: {
|
params: {
|
||||||
length: 64
|
length: 64
|
||||||
}
|
}
|
||||||
},
|
|
||||||
display: {
|
|
||||||
type: "varchar",
|
|
||||||
params: {
|
|
||||||
length: 64
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actionType: "crud",
|
actionType: "crud",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{ "name": "消息类型", "attr": { "type": "类型", "display": "显示值" } }
|
{ "name": "消息类型", "attr": { "type": "类型" } }
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,6 @@ function Render(props) {
|
||||||
children: ((0, jsx_runtime_1.jsx)(list_1.default, { oakAutoUnmount: true, applicationId: oakId, oakPath: "$application-detail-mttId-".concat(oakId) })),
|
children: ((0, jsx_runtime_1.jsx)(list_1.default, { oakAutoUnmount: true, applicationId: oakId, oakPath: "$application-detail-mttId-".concat(oakId) })),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return ((0, jsx_runtime_1.jsx)(pageHeader_1.default, tslib_1.__assign({ showBack: true, title: "\u5E94\u7528\u6982\u89C8" }, { children: (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.container }, { children: (0, jsx_runtime_1.jsx)(antd_1.Card, tslib_1.__assign({ title: name, bordered: false, actions: Actions }, { children: (0, jsx_runtime_1.jsx)(antd_1.Tabs, { items: items }) })) })) })));
|
return ((0, jsx_runtime_1.jsx)(pageHeader_1.default, tslib_1.__assign({ showBack: true, title: "\u5E94\u7528\u6982\u89C8" }, { children: (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.container }, { children: (0, jsx_runtime_1.jsx)(antd_1.Card, tslib_1.__assign({ title: name, bordered: false, extra: Actions }, { children: (0, jsx_runtime_1.jsx)(antd_1.Tabs, { items: items }) })) })) })));
|
||||||
}
|
}
|
||||||
exports.default = Render;
|
exports.default = Render;
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,10 @@ var triggers = [
|
||||||
fn: function (_a, context) {
|
fn: function (_a, context) {
|
||||||
var operation = _a.operation;
|
var operation = _a.operation;
|
||||||
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
||||||
var data, systemId, setData;
|
var data, systemId, setData, data_1, data_1_1, item, e_1_1;
|
||||||
return tslib_1.__generator(this, function (_b) {
|
var e_1, _b;
|
||||||
switch (_b.label) {
|
return tslib_1.__generator(this, function (_c) {
|
||||||
|
switch (_c.label) {
|
||||||
case 0:
|
case 0:
|
||||||
data = operation.data;
|
data = operation.data;
|
||||||
systemId = context.getSystemId();
|
systemId = context.getSystemId();
|
||||||
|
|
@ -52,19 +53,39 @@ var triggers = [
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}); };
|
}); };
|
||||||
if (!(data instanceof Array)) return [3 /*break*/, 1];
|
if (!(data instanceof Array)) return [3 /*break*/, 9];
|
||||||
data.forEach(function (ele) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
|
_c.label = 1;
|
||||||
switch (_a.label) {
|
case 1:
|
||||||
case 0: return [4 /*yield*/, setData(ele)];
|
_c.trys.push([1, 6, 7, 8]);
|
||||||
case 1: return [2 /*return*/, _a.sent()];
|
data_1 = tslib_1.__values(data), data_1_1 = data_1.next();
|
||||||
}
|
_c.label = 2;
|
||||||
}); }); });
|
|
||||||
return [3 /*break*/, 3];
|
|
||||||
case 1: return [4 /*yield*/, setData(data)];
|
|
||||||
case 2:
|
case 2:
|
||||||
_b.sent();
|
if (!!data_1_1.done) return [3 /*break*/, 5];
|
||||||
_b.label = 3;
|
item = data_1_1.value;
|
||||||
case 3: return [2 /*return*/, 1];
|
return [4 /*yield*/, setData(item)];
|
||||||
|
case 3:
|
||||||
|
_c.sent();
|
||||||
|
_c.label = 4;
|
||||||
|
case 4:
|
||||||
|
data_1_1 = data_1.next();
|
||||||
|
return [3 /*break*/, 2];
|
||||||
|
case 5: return [3 /*break*/, 8];
|
||||||
|
case 6:
|
||||||
|
e_1_1 = _c.sent();
|
||||||
|
e_1 = { error: e_1_1 };
|
||||||
|
return [3 /*break*/, 8];
|
||||||
|
case 7:
|
||||||
|
try {
|
||||||
|
if (data_1_1 && !data_1_1.done && (_b = data_1.return)) _b.call(data_1);
|
||||||
|
}
|
||||||
|
finally { if (e_1) throw e_1.error; }
|
||||||
|
return [7 /*endfinally*/];
|
||||||
|
case 8: return [3 /*break*/, 11];
|
||||||
|
case 9: return [4 /*yield*/, setData(data)];
|
||||||
|
case 10:
|
||||||
|
_c.sent();
|
||||||
|
_c.label = 11;
|
||||||
|
case 11: return [2 /*return*/, 1];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,9 @@ const triggers: Trigger<EntityDict, 'user', RuntimeCxt>[] = [
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
if (data instanceof Array) {
|
if (data instanceof Array) {
|
||||||
data.forEach(async (ele) => await setData(ele));
|
for (const item of data) {
|
||||||
|
await setData(item);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
await setData(data);
|
await setData(data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue