@ibiz-template/runtime 0.7.26-alpha.1 → 0.7.26-alpha.2
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.
- package/dist/index.esm.js +484 -222
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.js +2 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +15 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +85 -16
- package/out/controller/control/calendar/calendar.service.d.ts +10 -0
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +21 -1
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +3 -1
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +199 -80
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +14 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +29 -1
- package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
- package/out/controller/notification/internal-message.controller.js +7 -1
- package/out/interface/controller/state/control/i-calendar.state.d.ts +21 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -1
- package/out/interface/service/i-data-entity/i-data-entity.d.ts +7 -0
- package/out/interface/service/i-data-entity/i-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.d.ts +1 -0
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +2 -0
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts +15 -0
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +17 -2
- package/out/utils/script/script-factory.d.ts +12 -0
- package/out/utils/script/script-factory.d.ts.map +1 -1
- package/out/utils/script/script-factory.js +16 -1
- package/package.json +2 -2
|
@@ -253,7 +253,7 @@ export class ChartOptionsGenerator {
|
|
|
253
253
|
* @memberof ChartOptionsGenerator
|
|
254
254
|
*/
|
|
255
255
|
async initMultiCatalogxAxis(context, params) {
|
|
256
|
-
var _a, _b, _c, _d, _e;
|
|
256
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
257
257
|
const { controlParam } = this.model;
|
|
258
258
|
if (controlParam && ((_a = controlParam.ctrlParams) === null || _a === void 0 ? void 0 : _a.CATALOGFIELDS)) {
|
|
259
259
|
try {
|
|
@@ -261,29 +261,50 @@ export class ChartOptionsGenerator {
|
|
|
261
261
|
const tempCatalogFields = JSON.parse(controlParam.ctrlParams.CATALOGFIELDS);
|
|
262
262
|
const tempaxis = [];
|
|
263
263
|
let titleshow = true;
|
|
264
|
-
let
|
|
264
|
+
let labelshow = true;
|
|
265
265
|
let gridIndex = 0;
|
|
266
266
|
if (Array.isArray(tempCatalogFields)) {
|
|
267
267
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
268
268
|
if (this.chartUserParam && this.chartUserParam.xAxis) {
|
|
269
|
-
if (
|
|
269
|
+
if (((_b = controlParam.ctrlParams) === null || _b === void 0 ? void 0 : _b.MODE) === 'ROW') {
|
|
270
|
+
if (Array.isArray(this.chartUserParam.yAxis)) {
|
|
271
|
+
const tempconfig = this.chartUserParam.yAxis[this.chartUserParam.yAxis.length - 1];
|
|
272
|
+
titleshow =
|
|
273
|
+
tempconfig.name === undefined ? true : !!tempconfig.name;
|
|
274
|
+
labelshow =
|
|
275
|
+
((_c = tempconfig.axisLabel) === null || _c === void 0 ? void 0 : _c.show) === undefined
|
|
276
|
+
? true
|
|
277
|
+
: (_d = tempconfig.axisLabel) === null || _d === void 0 ? void 0 : _d.show;
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
titleshow =
|
|
281
|
+
((_e = this.chartUserParam.yAxis) === null || _e === void 0 ? void 0 : _e.name) === undefined
|
|
282
|
+
? true
|
|
283
|
+
: !!this.chartUserParam.yAxis.name;
|
|
284
|
+
labelshow =
|
|
285
|
+
((_g = (_f = this.chartUserParam.yAxis) === null || _f === void 0 ? void 0 : _f.axisLabel) === null || _g === void 0 ? void 0 : _g.show) === undefined
|
|
286
|
+
? true
|
|
287
|
+
: (_h = this.chartUserParam.yAxis.axisLabel) === null || _h === void 0 ? void 0 : _h.show;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
else if (Array.isArray(this.chartUserParam.xAxis)) {
|
|
270
291
|
const tempconfig = this.chartUserParam.xAxis[this.chartUserParam.xAxis.length - 1];
|
|
271
292
|
titleshow =
|
|
272
293
|
tempconfig.name === undefined ? true : !!tempconfig.name;
|
|
273
|
-
|
|
274
|
-
((
|
|
294
|
+
labelshow =
|
|
295
|
+
((_j = tempconfig.axisLabel) === null || _j === void 0 ? void 0 : _j.show) === undefined
|
|
275
296
|
? true
|
|
276
|
-
: (
|
|
297
|
+
: (_k = tempconfig.axisLabel) === null || _k === void 0 ? void 0 : _k.show;
|
|
277
298
|
}
|
|
278
299
|
else {
|
|
279
300
|
titleshow =
|
|
280
301
|
this.chartUserParam.xAxis.name === undefined
|
|
281
302
|
? true
|
|
282
303
|
: !!this.chartUserParam.xAxis.name;
|
|
283
|
-
|
|
284
|
-
((
|
|
304
|
+
labelshow =
|
|
305
|
+
((_l = this.chartUserParam.xAxis.axisLabel) === null || _l === void 0 ? void 0 : _l.show) === undefined
|
|
285
306
|
? true
|
|
286
|
-
: (
|
|
307
|
+
: (_m = this.chartUserParam.xAxis.axisLabel) === null || _m === void 0 ? void 0 : _m.show;
|
|
287
308
|
}
|
|
288
309
|
}
|
|
289
310
|
if (this.chartUserParam &&
|
|
@@ -294,42 +315,85 @@ export class ChartOptionsGenerator {
|
|
|
294
315
|
await Promise.all(tempCatalogFields
|
|
295
316
|
.slice(0, -1)
|
|
296
317
|
.map(async (catalog, index) => {
|
|
318
|
+
var _a;
|
|
297
319
|
if (catalog.mode === 'codelist' && catalog.codelistId) {
|
|
298
320
|
const codeListItems = await app.codeList.get(catalog.codelistId, context, params);
|
|
299
321
|
if (codeListItems) {
|
|
300
322
|
const tempxAxisData = [];
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
data: xAxisData,
|
|
315
|
-
position: 'bottom',
|
|
323
|
+
if (((_a = controlParam.ctrlParams) === null || _a === void 0 ? void 0 : _a.MODE) === 'ROW') {
|
|
324
|
+
const yAxisData = codeListItems.map((code) => {
|
|
325
|
+
return {
|
|
326
|
+
value: code.text,
|
|
327
|
+
textStyle: {
|
|
328
|
+
padding: [
|
|
329
|
+
0,
|
|
330
|
+
40 + 40 * (tempCatalogFields.length - index - 1),
|
|
331
|
+
0,
|
|
332
|
+
0,
|
|
333
|
+
],
|
|
334
|
+
},
|
|
335
|
+
};
|
|
316
336
|
});
|
|
337
|
+
if (index === 0) {
|
|
338
|
+
tempaxis.push({
|
|
339
|
+
show: labelshow,
|
|
340
|
+
gridIndex,
|
|
341
|
+
type: 'category',
|
|
342
|
+
data: yAxisData,
|
|
343
|
+
position: 'left',
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
let length = 1;
|
|
348
|
+
for (let i = 0; i < tempaxis.length; i++) {
|
|
349
|
+
length *= tempaxis[i].data.length;
|
|
350
|
+
}
|
|
351
|
+
for (let i = 0; i < length; i++) {
|
|
352
|
+
tempxAxisData.push(...yAxisData);
|
|
353
|
+
}
|
|
354
|
+
tempaxis.push({
|
|
355
|
+
show: labelshow,
|
|
356
|
+
gridIndex,
|
|
357
|
+
type: 'category',
|
|
358
|
+
data: tempxAxisData,
|
|
359
|
+
position: 'left',
|
|
360
|
+
});
|
|
361
|
+
}
|
|
317
362
|
}
|
|
318
363
|
else {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
364
|
+
const xAxisData = codeListItems.map((code) => {
|
|
365
|
+
return {
|
|
366
|
+
value: code.text,
|
|
367
|
+
textStyle: {
|
|
368
|
+
lineHeight: 45 * (tempCatalogFields.length - 1 - index),
|
|
369
|
+
},
|
|
370
|
+
};
|
|
371
|
+
});
|
|
372
|
+
if (index === 0) {
|
|
373
|
+
tempaxis.push({
|
|
374
|
+
show: labelshow,
|
|
375
|
+
gridIndex,
|
|
376
|
+
type: 'category',
|
|
377
|
+
data: xAxisData,
|
|
378
|
+
position: 'bottom',
|
|
379
|
+
});
|
|
322
380
|
}
|
|
323
|
-
|
|
324
|
-
|
|
381
|
+
else {
|
|
382
|
+
let length = 1;
|
|
383
|
+
for (let i = 0; i < tempaxis.length; i++) {
|
|
384
|
+
length *= tempaxis[i].data.length;
|
|
385
|
+
}
|
|
386
|
+
for (let i = 0; i < length; i++) {
|
|
387
|
+
tempxAxisData.push(...xAxisData);
|
|
388
|
+
}
|
|
389
|
+
tempaxis.push({
|
|
390
|
+
show: labelshow,
|
|
391
|
+
gridIndex,
|
|
392
|
+
type: 'category',
|
|
393
|
+
data: tempxAxisData,
|
|
394
|
+
position: 'bottom',
|
|
395
|
+
});
|
|
325
396
|
}
|
|
326
|
-
tempaxis.push({
|
|
327
|
-
show: labelshoww,
|
|
328
|
-
gridIndex,
|
|
329
|
-
type: 'category',
|
|
330
|
-
data: tempxAxisData,
|
|
331
|
-
position: 'bottom',
|
|
332
|
-
});
|
|
333
397
|
}
|
|
334
398
|
}
|
|
335
399
|
}
|
|
@@ -338,59 +402,114 @@ export class ChartOptionsGenerator {
|
|
|
338
402
|
.map((catalog) => {
|
|
339
403
|
return catalog.name;
|
|
340
404
|
})
|
|
341
|
-
.join('/')
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
405
|
+
.join('/')
|
|
406
|
+
.split('')
|
|
407
|
+
.join('\n');
|
|
408
|
+
if (((_o = controlParam.ctrlParams) === null || _o === void 0 ? void 0 : _o.MODE) !== 'ROW') {
|
|
409
|
+
tempaxis.push({
|
|
410
|
+
type: 'category',
|
|
411
|
+
gridIndex,
|
|
412
|
+
show: titleshow,
|
|
413
|
+
data: [
|
|
414
|
+
{
|
|
415
|
+
value: mergeName,
|
|
416
|
+
textStyle: {
|
|
417
|
+
lineHeight: labelshow ? 45 * tempCatalogFields.length : 45,
|
|
418
|
+
},
|
|
351
419
|
},
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
420
|
+
],
|
|
421
|
+
position: 'bottom',
|
|
422
|
+
});
|
|
423
|
+
}
|
|
356
424
|
if (this.chartUserParam) {
|
|
357
|
-
if (
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
425
|
+
if (((_p = controlParam.ctrlParams) === null || _p === void 0 ? void 0 : _p.MODE) === 'ROW') {
|
|
426
|
+
if (!this.chartUserParam.grid) {
|
|
427
|
+
this.chartUserParam.grid = {};
|
|
428
|
+
}
|
|
429
|
+
let { length } = tempCatalogFields;
|
|
430
|
+
if (!labelshow) {
|
|
431
|
+
length = 1;
|
|
432
|
+
}
|
|
433
|
+
if (!titleshow) {
|
|
434
|
+
length -= 1;
|
|
435
|
+
}
|
|
436
|
+
if (length === 0) {
|
|
437
|
+
Object.assign(this.chartUserParam.grid, {
|
|
438
|
+
bottom: 45,
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
else {
|
|
442
|
+
Object.assign(this.chartUserParam.grid, {
|
|
443
|
+
left: (length + 1) * 60,
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
tempaxis.push({
|
|
447
|
+
type: 'category',
|
|
448
|
+
gridIndex,
|
|
449
|
+
show: titleshow,
|
|
450
|
+
data: [
|
|
451
|
+
{
|
|
452
|
+
value: mergeName,
|
|
453
|
+
textStyle: {
|
|
454
|
+
padding: [0, length * 60, 0, 0],
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
position: 'left',
|
|
383
459
|
});
|
|
460
|
+
if (this.chartUserParam.yAxis &&
|
|
461
|
+
Array.isArray(this.chartUserParam.yAxis)) {
|
|
462
|
+
this.chartUserParam.yAxis = [
|
|
463
|
+
...this.chartUserParam.yAxis,
|
|
464
|
+
...tempaxis,
|
|
465
|
+
];
|
|
466
|
+
}
|
|
467
|
+
else if (this.chartUserParam.yAxis) {
|
|
468
|
+
this.chartUserParam.yAxis = [
|
|
469
|
+
this.chartUserParam.yAxis,
|
|
470
|
+
...tempaxis,
|
|
471
|
+
];
|
|
472
|
+
}
|
|
384
473
|
}
|
|
385
474
|
else {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
475
|
+
if (this.chartUserParam.xAxis &&
|
|
476
|
+
Array.isArray(this.chartUserParam.xAxis)) {
|
|
477
|
+
this.chartUserParam.xAxis = [
|
|
478
|
+
...this.chartUserParam.xAxis,
|
|
479
|
+
...tempaxis,
|
|
480
|
+
];
|
|
481
|
+
}
|
|
482
|
+
else if (this.chartUserParam.xAxis) {
|
|
483
|
+
this.chartUserParam.xAxis = [
|
|
484
|
+
this.chartUserParam.xAxis,
|
|
485
|
+
...tempaxis,
|
|
486
|
+
];
|
|
487
|
+
}
|
|
488
|
+
if (!this.chartUserParam.grid) {
|
|
489
|
+
this.chartUserParam.grid = {};
|
|
490
|
+
}
|
|
491
|
+
let { length } = tempCatalogFields;
|
|
492
|
+
if (!labelshow) {
|
|
493
|
+
length = 1;
|
|
494
|
+
}
|
|
495
|
+
if (!titleshow) {
|
|
496
|
+
length -= 1;
|
|
497
|
+
}
|
|
498
|
+
if (length === 0) {
|
|
499
|
+
Object.assign(this.chartUserParam.grid, {
|
|
500
|
+
bottom: 45,
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
Object.assign(this.chartUserParam.grid, {
|
|
505
|
+
bottom: (length > 2 ? length - 1 : length) * 45,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
389
508
|
}
|
|
390
509
|
}
|
|
391
510
|
}
|
|
392
511
|
}
|
|
393
|
-
catch (
|
|
512
|
+
catch (_q) {
|
|
394
513
|
throw new Error(ibiz.i18n.t('runtime.control.chart.errorJson'));
|
|
395
514
|
}
|
|
396
515
|
}
|
package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts
CHANGED
|
@@ -57,6 +57,13 @@ export declare class FormMDCtrlFormController extends FormMDCtrlController {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
*/
|
|
59
59
|
deName: string;
|
|
60
|
+
/**
|
|
61
|
+
* 数据集合
|
|
62
|
+
*
|
|
63
|
+
* @type {IData[]}
|
|
64
|
+
* @memberof FormMDCtrlFormController
|
|
65
|
+
*/
|
|
66
|
+
items: IData[];
|
|
60
67
|
/**
|
|
61
68
|
* 初始化
|
|
62
69
|
*
|
|
@@ -74,6 +81,13 @@ export declare class FormMDCtrlFormController extends FormMDCtrlController {
|
|
|
74
81
|
* @return {*} {Promise<void>}
|
|
75
82
|
*/
|
|
76
83
|
fetchData(): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* 更新数据
|
|
86
|
+
* - 仅支持更新临时数据
|
|
87
|
+
* @return {*} {Promise<void>}
|
|
88
|
+
* @memberof FormMDCtrlFormController
|
|
89
|
+
*/
|
|
90
|
+
updateData(): Promise<void>;
|
|
77
91
|
/**
|
|
78
92
|
* 表单状态变更通知
|
|
79
93
|
*
|
package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-mdctrl-form.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;;;;;;;;GASG;AACH,qBAAa,wBAAyB,SAAQ,oBAAoB;IAChE;;;;;;OAMG;IACK,KAAK,EAAE,mBAAmB,CAAC;IAEnC;;;;OAIG;IACH,oBAAoB,UAAS;IAE7B,SAAS,CAAC,WAAW,IAAI,mBAAmB;IAI5C;;;;OAIG;IACH,OAAO,mCAA0C;IAEjD;;;;;;OAMG;IACH,YAAY,EAAG,gBAAgB,CAAC;IAEhC;;;;;OAKG;IACH,OAAO,EAAG,eAAe,CAAC;IAE1B;;;;;OAKG;IACH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB7B;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"form-mdctrl-form.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;;;;;;;;GASG;AACH,qBAAa,wBAAyB,SAAQ,oBAAoB;IAChE;;;;;;OAMG;IACK,KAAK,EAAE,mBAAmB,CAAC;IAEnC;;;;OAIG;IACH,oBAAoB,UAAS;IAE7B,SAAS,CAAC,WAAW,IAAI,mBAAmB;IAI5C;;;;OAIG;IACH,OAAO,mCAA0C;IAEjD;;;;;;OAMG;IACH,YAAY,EAAG,gBAAgB,CAAC;IAEhC;;;;;OAKG;IACH,OAAO,EAAG,eAAe,CAAC;IAE1B;;;;;OAKG;IACH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,KAAK,EAAE,KAAK,EAAE,CAAM;IAEpB;;;;;;;;OAQG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB7B;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBhC;;;;;OAKG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAkBjC;;;;;OAKG;IACG,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5D;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB,GAAG,IAAI;IA6BpE;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IASlC;;;;;;OAMG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBvC;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAkB5B,OAAO,IAAI,IAAI;IAIT,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IActD;;;;;OAKG;IACH,SAAS,CAAC,oBAAoB,IAAI,IAAI;CAKvC"}
|
|
@@ -29,6 +29,13 @@ export class FormMDCtrlFormController extends FormMDCtrlController {
|
|
|
29
29
|
* @date 2023-11-11 08:03:56
|
|
30
30
|
*/
|
|
31
31
|
this.formMap = new Map();
|
|
32
|
+
/**
|
|
33
|
+
* 数据集合
|
|
34
|
+
*
|
|
35
|
+
* @type {IData[]}
|
|
36
|
+
* @memberof FormMDCtrlFormController
|
|
37
|
+
*/
|
|
38
|
+
this.items = [];
|
|
32
39
|
}
|
|
33
40
|
createState() {
|
|
34
41
|
var _a;
|
|
@@ -73,7 +80,8 @@ export class FormMDCtrlFormController extends FormMDCtrlController {
|
|
|
73
80
|
.getApp(this.model.appId)
|
|
74
81
|
.deService.exec(appDataEntityId, fetchAction, this.context, this.params);
|
|
75
82
|
if (res.ok) {
|
|
76
|
-
this.
|
|
83
|
+
this.items = res.data;
|
|
84
|
+
this.state.items = this.items.map(item => {
|
|
77
85
|
const context = this.context.clone();
|
|
78
86
|
context[this.deName] = item.srfkey;
|
|
79
87
|
const params = Object.assign({}, this.params);
|
|
@@ -85,6 +93,26 @@ export class FormMDCtrlFormController extends FormMDCtrlController {
|
|
|
85
93
|
});
|
|
86
94
|
}
|
|
87
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* 更新数据
|
|
98
|
+
* - 仅支持更新临时数据
|
|
99
|
+
* @return {*} {Promise<void>}
|
|
100
|
+
* @memberof FormMDCtrlFormController
|
|
101
|
+
*/
|
|
102
|
+
async updateData() {
|
|
103
|
+
var _a;
|
|
104
|
+
const { appDataEntityId } = this.model.contentControl;
|
|
105
|
+
const fetchAction = 'update';
|
|
106
|
+
const deService = await ibiz.hub.getAppDEService(this.model.appId, appDataEntityId, this.context);
|
|
107
|
+
const data = (_a = this.state.items) === null || _a === void 0 ? void 0 : _a.map((item, index) => {
|
|
108
|
+
const _item = this.items.find(v => v.srfkey === item.id);
|
|
109
|
+
_item.srfordervalue = index + 1;
|
|
110
|
+
return _item;
|
|
111
|
+
});
|
|
112
|
+
if (deService.isLocalMode && data) {
|
|
113
|
+
await deService.exec(fetchAction, this.context, data);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
88
116
|
/**
|
|
89
117
|
* 表单状态变更通知
|
|
90
118
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-message.controller.d.ts","sourceRoot":"","sources":["../../../src/controller/notification/internal-message.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAQvD,qBAAa,yBAA0B,YAAW,0BAA0B;IAC1E,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAiB;IAE7D,KAAK,EAAE,MAAM,CAAK;IAElB,WAAW,EAAE,MAAM,CAAK;IAExB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAK;IAEjB,IAAI,EAAE,MAAM,CAAM;IAElB,QAAQ,EAAE,gBAAgB,EAAE,CAAM;IAElC,UAAU,UAAS;IAEnB,SAAS,CAAC,OAAO,yBAAgC;IAEjD,EAAE,EAAE,SAAS,GAAG,IAAI,CAAQ;IAE5B,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IAE3C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAQrB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IASzC;;;;;OAKG;IACH,gBAAgB,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI;cAUrB,KAAK,CAAC,QAAQ,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA6C/D;;;;;OAKG;IACH,SAAS,CAAC,UAAU,IAAI,IAAI;IA2BtB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"internal-message.controller.d.ts","sourceRoot":"","sources":["../../../src/controller/notification/internal-message.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAQvD,qBAAa,yBAA0B,YAAW,0BAA0B;IAC1E,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAiB;IAE7D,KAAK,EAAE,MAAM,CAAK;IAElB,WAAW,EAAE,MAAM,CAAK;IAExB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAK;IAEjB,IAAI,EAAE,MAAM,CAAM;IAElB,QAAQ,EAAE,gBAAgB,EAAE,CAAM;IAElC,UAAU,UAAS;IAEnB,SAAS,CAAC,OAAO,yBAAgC;IAEjD,EAAE,EAAE,SAAS,GAAG,IAAI,CAAQ;IAE5B,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IAE3C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAQrB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IASzC;;;;;OAKG;IACH,gBAAgB,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI;cAUrB,KAAK,CAAC,QAAQ,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA6C/D;;;;;OAKG;IACH,SAAS,CAAC,UAAU,IAAI,IAAI;IA2BtB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBxD;;;;;OAKG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAOpC;;;;;;OAMG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAIjD"}
|
|
@@ -145,7 +145,13 @@ export class InternalMessageController {
|
|
|
145
145
|
find.status = 'READ';
|
|
146
146
|
this.unreadCount -= 1;
|
|
147
147
|
this.evt.emit('unreadCountChange', this.unreadCount);
|
|
148
|
-
|
|
148
|
+
// 查询未读的消息时,标记信息已读需刷新数据
|
|
149
|
+
if (this.unreadOnly) {
|
|
150
|
+
this.load();
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
this.evt.emit('dataChange');
|
|
154
|
+
}
|
|
149
155
|
}
|
|
150
156
|
/**
|
|
151
157
|
* 把所有未读消息标记为已读
|
|
@@ -24,6 +24,27 @@ export interface ICalendarState extends IMDControlState {
|
|
|
24
24
|
* @memberof ICalendarState
|
|
25
25
|
*/
|
|
26
26
|
selectedDate: Date;
|
|
27
|
+
/**
|
|
28
|
+
* 图例
|
|
29
|
+
*
|
|
30
|
+
* @type {IData[]}
|
|
31
|
+
* @memberof ICalendarStateEx
|
|
32
|
+
*/
|
|
33
|
+
legends: IData[];
|
|
34
|
+
/**
|
|
35
|
+
* 日历名称
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ICalendarState
|
|
39
|
+
*/
|
|
40
|
+
calendarTitle: string;
|
|
41
|
+
/**
|
|
42
|
+
* 是否弹框显示详情
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ICalendarState
|
|
46
|
+
*/
|
|
47
|
+
showDetail: boolean;
|
|
27
48
|
}
|
|
28
49
|
/**
|
|
29
50
|
* 日历项数据
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-calendar.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-calendar.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AAEH,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD;;;;;OAKG;IACH,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,YAAY,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"i-calendar.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-calendar.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AAEH,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD;;;;;OAKG;IACH,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,YAAY,EAAE,IAAI,CAAC;IAEnB;;;;;OAKG;IACH,OAAO,EAAE,KAAK,EAAE,CAAC;IAEjB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;IACH,MAAM,EAAE,KAAK,CAAC;IAEd;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-data-entity.d.ts","sourceRoot":"","sources":["../../../../src/interface/service/i-data-entity/i-data-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAE1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;;;;OAMG;IACH,KAAK,IAAI,WAAW,CAAC;IAErB;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW,CAAC;CAChD"}
|
|
1
|
+
{"version":3,"file":"i-data-entity.d.ts","sourceRoot":"","sources":["../../../../src/interface/service/i-data-entity/i-data-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAE1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;;;;OAMG;IACH,KAAK,IAAI,WAAW,CAAC;IAErB;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW,CAAC;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-data-entity.d.ts","sourceRoot":"","sources":["../../../src/service/app-data-entity/app-data-entity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B,UAAkB,KAAK,EAAE,KAAK,CAAC;IAE/B,UAAkB,OAAO,EAAE,cAAc,CAAC;IAElC,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"app-data-entity.d.ts","sourceRoot":"","sources":["../../../src/service/app-data-entity/app-data-entity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B,UAAkB,KAAK,EAAE,KAAK,CAAC;IAE/B,UAAkB,OAAO,EAAE,cAAc,CAAC;IAElC,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,EAAE,MAAM,CAAC;IAE9B,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED;;;;;;;OAOG;gBACS,MAAM,EAAE,cAAc,EAAE,IAAI,GAAE,KAAK,GAAG,aAAkB;IAyFpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,IAAI,IAAI;IAgClC;;;;;;OAMG;IACH,KAAK,IAAI,aAAa;IAOtB;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,aAAa;IAiBlD;;;;;;;;OAQG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO;CA6B5E"}
|
|
@@ -148,6 +148,7 @@ export class AppDataEntity {
|
|
|
148
148
|
clone() {
|
|
149
149
|
const entity = new AppDataEntity(this._entity, this._data);
|
|
150
150
|
entity.srfkey = this.srfkey;
|
|
151
|
+
entity.srfordervalue = this.srfordervalue;
|
|
151
152
|
return entity;
|
|
152
153
|
}
|
|
153
154
|
/**
|
|
@@ -162,6 +163,7 @@ export class AppDataEntity {
|
|
|
162
163
|
let _data = {};
|
|
163
164
|
if (data instanceof AppDataEntity) {
|
|
164
165
|
_data = data._data;
|
|
166
|
+
this.srfordervalue = data.srfordervalue;
|
|
165
167
|
}
|
|
166
168
|
else {
|
|
167
169
|
_data = data;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { IDEUIRawCodeLogic } from '@ibiz/model-core';
|
|
2
2
|
import { UILogicContext } from '../../ui-logic-context';
|
|
3
3
|
import { UILogicNode } from '../ui-logic-node';
|
|
4
|
+
/**
|
|
5
|
+
* 直接脚本,同步执行方式写法
|
|
6
|
+
* 1)`return new Promise((resolve) => {
|
|
7
|
+
* uiLogic.reportpanel.openReportDesignPage().then((result) =>{
|
|
8
|
+
* resolve(result);
|
|
9
|
+
* })
|
|
10
|
+
* });`
|
|
11
|
+
* 2)`return await uiLogic.reportpanel.openReportDesignPage()`
|
|
12
|
+
*
|
|
13
|
+
* @author tony001
|
|
14
|
+
* @date 2024-06-25 14:06:02
|
|
15
|
+
* @export
|
|
16
|
+
* @class RawJSCodeNode
|
|
17
|
+
* @extends {UILogicNode}
|
|
18
|
+
*/
|
|
4
19
|
export declare class RawJSCodeNode extends UILogicNode {
|
|
5
20
|
model: IDEUIRawCodeLogic;
|
|
6
21
|
exec(ctx: UILogicContext): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw-js-code-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"raw-js-code-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAiB/C"}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import { ScriptFactory } from '../../../utils';
|
|
2
2
|
import { UILogicNode } from '../ui-logic-node';
|
|
3
|
+
/**
|
|
4
|
+
* 直接脚本,同步执行方式写法
|
|
5
|
+
* 1)`return new Promise((resolve) => {
|
|
6
|
+
* uiLogic.reportpanel.openReportDesignPage().then((result) =>{
|
|
7
|
+
* resolve(result);
|
|
8
|
+
* })
|
|
9
|
+
* });`
|
|
10
|
+
* 2)`return await uiLogic.reportpanel.openReportDesignPage()`
|
|
11
|
+
*
|
|
12
|
+
* @author tony001
|
|
13
|
+
* @date 2024-06-25 14:06:02
|
|
14
|
+
* @export
|
|
15
|
+
* @class RawJSCodeNode
|
|
16
|
+
* @extends {UILogicNode}
|
|
17
|
+
*/
|
|
3
18
|
export class RawJSCodeNode extends UILogicNode {
|
|
4
19
|
async exec(ctx) {
|
|
5
20
|
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeDirectCode', {
|
|
6
21
|
id: this.model.id,
|
|
7
22
|
}), this.model.code);
|
|
8
|
-
ScriptFactory.
|
|
23
|
+
await ScriptFactory.asyncExecScriptFn({
|
|
9
24
|
view: ctx.view,
|
|
10
25
|
context: ctx.context,
|
|
11
26
|
params: ctx.viewParam,
|
|
12
27
|
uiLogic: ctx.params,
|
|
13
|
-
}, this.model.code || ''
|
|
28
|
+
}, this.model.code || '');
|
|
14
29
|
}
|
|
15
30
|
}
|
|
@@ -22,6 +22,18 @@ export declare class ScriptFactory {
|
|
|
22
22
|
* @return {*}
|
|
23
23
|
*/
|
|
24
24
|
static execScriptFn(args: IParams, scriptCode: string, options?: IScriptFunctionOpts): unknown;
|
|
25
|
+
/**
|
|
26
|
+
* 直接创建并同步执行脚本
|
|
27
|
+
*
|
|
28
|
+
* @author tony001
|
|
29
|
+
* @date 2024-06-25 14:06:25
|
|
30
|
+
* @static
|
|
31
|
+
* @param {IParams} args
|
|
32
|
+
* @param {string} scriptCode
|
|
33
|
+
* @param {IScriptFunctionOpts} [options={}]
|
|
34
|
+
* @return {*} {Promise<unknown>}
|
|
35
|
+
*/
|
|
36
|
+
static asyncExecScriptFn(args: IParams, scriptCode: string, options?: IScriptFunctionOpts): Promise<unknown>;
|
|
25
37
|
/**
|
|
26
38
|
* 执行单行脚本
|
|
27
39
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script-factory.d.ts","sourceRoot":"","sources":["../../../src/utils/script/script-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,aAAa;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CACnB,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,cAAc;IAIjB;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAY,CACjB,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"script-factory.d.ts","sourceRoot":"","sources":["../../../src/utils/script/script-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,aAAa;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CACnB,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,cAAc;IAIjB;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAY,CACjB,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAwB,GAChC,OAAO;IAMV;;;;;;;;;;OAUG;WACU,iBAAiB,CAC5B,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,OAAO,CAAC;IAQnB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,GAAE,OAAY,GAAG,OAAO;CAMvE"}
|