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';
|
||||
export interface Schema extends EntityShape {
|
||||
type: String<64>;
|
||||
display?: String<64>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ const entityDesc = {
|
|||
name: '消息类型',
|
||||
attr: {
|
||||
type: '类型',
|
||||
display: '显示值',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,12 +6,10 @@ import { String } from "oak-domain/lib/types/DataType";
|
|||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||
export declare type OpSchema = EntityShape & {
|
||||
type: String<64>;
|
||||
display?: String<64> | null;
|
||||
};
|
||||
export declare type OpAttr = keyof OpSchema;
|
||||
export declare type Schema = EntityShape & {
|
||||
type: String<64>;
|
||||
display?: String<64> | null;
|
||||
} & {
|
||||
[A in ExpressionKey]?: any;
|
||||
};
|
||||
|
|
@ -21,7 +19,6 @@ declare type AttrFilter = {
|
|||
$$seq$$: Q_StringValue;
|
||||
$$updateAt$$: Q_DateValue;
|
||||
type: Q_StringValue;
|
||||
display: Q_StringValue;
|
||||
};
|
||||
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
||||
export declare type Projection = {
|
||||
|
|
@ -32,7 +29,6 @@ export declare type Projection = {
|
|||
$$updateAt$$?: number;
|
||||
$$seq$$?: number;
|
||||
type?: number;
|
||||
display?: number;
|
||||
} & Partial<ExprOp<OpAttr | string>>;
|
||||
declare type MessageTypeIdProjection = OneOf<{
|
||||
id: number;
|
||||
|
|
@ -47,8 +43,6 @@ export declare type SortAttr = {
|
|||
$$updateAt$$: number;
|
||||
} | {
|
||||
type: number;
|
||||
} | {
|
||||
display: number;
|
||||
} | {
|
||||
[k: string]: any;
|
||||
} | OneOf<ExprOp<OpAttr | string>>;
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ export const desc = {
|
|||
params: {
|
||||
length: 64
|
||||
}
|
||||
},
|
||||
display: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 64
|
||||
}
|
||||
}
|
||||
},
|
||||
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}` })),
|
||||
});
|
||||
}
|
||||
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) {
|
||||
data.forEach(async (ele) => await setData(ele));
|
||||
for (const item of data) {
|
||||
await setData(item);
|
||||
}
|
||||
}
|
||||
else {
|
||||
await setData(data);
|
||||
|
|
|
|||
|
|
@ -2,5 +2,4 @@ import { String } from 'oak-domain/lib/types/DataType';
|
|||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
type: String<64>;
|
||||
display?: String<64>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ var entityDesc = {
|
|||
name: '消息类型',
|
||||
attr: {
|
||||
type: '类型',
|
||||
display: '显示值',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,12 +6,10 @@ import { String } from "oak-domain/lib/types/DataType";
|
|||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||
export declare type OpSchema = EntityShape & {
|
||||
type: String<64>;
|
||||
display?: String<64> | null;
|
||||
};
|
||||
export declare type OpAttr = keyof OpSchema;
|
||||
export declare type Schema = EntityShape & {
|
||||
type: String<64>;
|
||||
display?: String<64> | null;
|
||||
} & {
|
||||
[A in ExpressionKey]?: any;
|
||||
};
|
||||
|
|
@ -21,7 +19,6 @@ declare type AttrFilter = {
|
|||
$$seq$$: Q_StringValue;
|
||||
$$updateAt$$: Q_DateValue;
|
||||
type: Q_StringValue;
|
||||
display: Q_StringValue;
|
||||
};
|
||||
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
||||
export declare type Projection = {
|
||||
|
|
@ -32,7 +29,6 @@ export declare type Projection = {
|
|||
$$updateAt$$?: number;
|
||||
$$seq$$?: number;
|
||||
type?: number;
|
||||
display?: number;
|
||||
} & Partial<ExprOp<OpAttr | string>>;
|
||||
declare type MessageTypeIdProjection = OneOf<{
|
||||
id: number;
|
||||
|
|
@ -47,8 +43,6 @@ export declare type SortAttr = {
|
|||
$$updateAt$$: number;
|
||||
} | {
|
||||
type: number;
|
||||
} | {
|
||||
display: number;
|
||||
} | {
|
||||
[k: string]: any;
|
||||
} | OneOf<ExprOp<OpAttr | string>>;
|
||||
|
|
|
|||
|
|
@ -10,12 +10,6 @@ exports.desc = {
|
|||
params: {
|
||||
length: 64
|
||||
}
|
||||
},
|
||||
display: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 64
|
||||
}
|
||||
}
|
||||
},
|
||||
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) })),
|
||||
});
|
||||
}
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@ var triggers = [
|
|||
fn: function (_a, context) {
|
||||
var operation = _a.operation;
|
||||
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
||||
var data, systemId, setData;
|
||||
return tslib_1.__generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
var data, systemId, setData, data_1, data_1_1, item, e_1_1;
|
||||
var e_1, _b;
|
||||
return tslib_1.__generator(this, function (_c) {
|
||||
switch (_c.label) {
|
||||
case 0:
|
||||
data = operation.data;
|
||||
systemId = context.getSystemId();
|
||||
|
|
@ -52,19 +53,39 @@ var triggers = [
|
|||
}
|
||||
});
|
||||
}); };
|
||||
if (!(data instanceof Array)) return [3 /*break*/, 1];
|
||||
data.forEach(function (ele) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, setData(ele)];
|
||||
case 1: return [2 /*return*/, _a.sent()];
|
||||
}
|
||||
}); }); });
|
||||
return [3 /*break*/, 3];
|
||||
case 1: return [4 /*yield*/, setData(data)];
|
||||
if (!(data instanceof Array)) return [3 /*break*/, 9];
|
||||
_c.label = 1;
|
||||
case 1:
|
||||
_c.trys.push([1, 6, 7, 8]);
|
||||
data_1 = tslib_1.__values(data), data_1_1 = data_1.next();
|
||||
_c.label = 2;
|
||||
case 2:
|
||||
_b.sent();
|
||||
_b.label = 3;
|
||||
case 3: return [2 /*return*/, 1];
|
||||
if (!!data_1_1.done) return [3 /*break*/, 5];
|
||||
item = data_1_1.value;
|
||||
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) {
|
||||
data.forEach(async (ele) => await setData(ele));
|
||||
for (const item of data) {
|
||||
await setData(item);
|
||||
}
|
||||
} else {
|
||||
await setData(data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue