imm-element-ui 1.4.3 → 1.4.5
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/esm2022/lib/am/am.component.mjs +22 -22
- package/esm2022/lib/grid/grid/grid.component.mjs +3 -2
- package/esm2022/lib/service/userHistory.service.mjs +2 -2
- package/fesm2022/imm-element-ui.mjs +24 -23
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +1 -1
- package/lib/grid/grid/grid.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -235,21 +235,21 @@ class AmComponent {
|
|
|
235
235
|
return this.http.post(apiPath + '/goam/api/webget', param).pipe(map((response) => {
|
|
236
236
|
return response;
|
|
237
237
|
}), finalize(() => {
|
|
238
|
-
this.loadingService.setLoading(false);
|
|
238
|
+
// this.loadingService.setLoading(false);
|
|
239
239
|
}));
|
|
240
240
|
}
|
|
241
241
|
websave(param) {
|
|
242
242
|
return this.http.post(apiPath + '/goam/api/websave', param).pipe(map((response) => {
|
|
243
243
|
return response;
|
|
244
244
|
}), finalize(() => {
|
|
245
|
-
this.loadingService.setLoading(false);
|
|
245
|
+
// this.loadingService.setLoading(false);
|
|
246
246
|
}));
|
|
247
247
|
}
|
|
248
248
|
webdel(param) {
|
|
249
249
|
return this.http.post(apiPath + 'webdel', param).pipe(map((response) => {
|
|
250
250
|
return response;
|
|
251
251
|
}), finalize(() => {
|
|
252
|
-
this.loadingService.setLoading(false);
|
|
252
|
+
// this.loadingService.setLoading(false);
|
|
253
253
|
}));
|
|
254
254
|
}
|
|
255
255
|
upsert(prm, cb) {
|
|
@@ -319,7 +319,7 @@ class AmComponent {
|
|
|
319
319
|
}
|
|
320
320
|
return response;
|
|
321
321
|
}), finalize(() => {
|
|
322
|
-
this.loadingService.setLoading(false);
|
|
322
|
+
// this.loadingService.setLoading(false);
|
|
323
323
|
}));
|
|
324
324
|
}
|
|
325
325
|
//自处理逻辑
|
|
@@ -337,7 +337,7 @@ class AmComponent {
|
|
|
337
337
|
this.dealPrm = { data: response, ...this.dealPrm };
|
|
338
338
|
return response;
|
|
339
339
|
}), finalize(() => {
|
|
340
|
-
this.loadingService.setLoading(false);
|
|
340
|
+
// this.loadingService.setLoading(false);
|
|
341
341
|
}));
|
|
342
342
|
}
|
|
343
343
|
//传入map,根据ID,更新map数据
|
|
@@ -360,7 +360,7 @@ class AmComponent {
|
|
|
360
360
|
}
|
|
361
361
|
return response;
|
|
362
362
|
}), finalize(() => {
|
|
363
|
-
this.loadingService.setLoading(false);
|
|
363
|
+
// this.loadingService.setLoading(false);
|
|
364
364
|
}));
|
|
365
365
|
}
|
|
366
366
|
//根据ID删除
|
|
@@ -380,7 +380,7 @@ class AmComponent {
|
|
|
380
380
|
}
|
|
381
381
|
return response;
|
|
382
382
|
}), finalize(() => {
|
|
383
|
-
this.loadingService.setLoading(false);
|
|
383
|
+
// this.loadingService.setLoading(false);
|
|
384
384
|
}));
|
|
385
385
|
}
|
|
386
386
|
//根据ID获取一条数据
|
|
@@ -405,7 +405,7 @@ class AmComponent {
|
|
|
405
405
|
this.id = response?.id;
|
|
406
406
|
return response;
|
|
407
407
|
}), finalize(() => {
|
|
408
|
-
this.loadingService.setLoading(false);
|
|
408
|
+
// this.loadingService.setLoading(false);
|
|
409
409
|
}));
|
|
410
410
|
}
|
|
411
411
|
//获取多条数据,根据传入的条件自动组织sql
|
|
@@ -424,7 +424,7 @@ class AmComponent {
|
|
|
424
424
|
console.log('upsey-----', this.upsertPrm);
|
|
425
425
|
return response;
|
|
426
426
|
}), finalize(() => {
|
|
427
|
-
this.loadingService.setLoading(false);
|
|
427
|
+
// this.loadingService.setLoading(false);
|
|
428
428
|
}));
|
|
429
429
|
}
|
|
430
430
|
searchmap(prm) {
|
|
@@ -442,7 +442,7 @@ class AmComponent {
|
|
|
442
442
|
console.log('upsey-----', this.upsertPrm);
|
|
443
443
|
return response;
|
|
444
444
|
}), finalize(() => {
|
|
445
|
-
this.loadingService.setLoading(false);
|
|
445
|
+
// this.loadingService.setLoading(false);
|
|
446
446
|
}));
|
|
447
447
|
}
|
|
448
448
|
//获取多条数据,根据传入的条件自动组织sql
|
|
@@ -460,7 +460,7 @@ class AmComponent {
|
|
|
460
460
|
this.searchPrm = { ...response };
|
|
461
461
|
return response;
|
|
462
462
|
}), finalize(() => {
|
|
463
|
-
this.loadingService.setLoading(false);
|
|
463
|
+
// this.loadingService.setLoading(false);
|
|
464
464
|
}));
|
|
465
465
|
}
|
|
466
466
|
//excel导入
|
|
@@ -507,7 +507,7 @@ class AmComponent {
|
|
|
507
507
|
FileSaver.saveAs(data, fileName);
|
|
508
508
|
return response;
|
|
509
509
|
}), finalize(() => {
|
|
510
|
-
this.loadingService.setLoading(false);
|
|
510
|
+
// this.loadingService.setLoading(false);
|
|
511
511
|
}));
|
|
512
512
|
}
|
|
513
513
|
//人工处理导入
|
|
@@ -532,7 +532,7 @@ class AmComponent {
|
|
|
532
532
|
FileSaver.saveAs(data, fileName);
|
|
533
533
|
return response;
|
|
534
534
|
}), finalize(() => {
|
|
535
|
-
this.loadingService.setLoading(false);
|
|
535
|
+
// this.loadingService.setLoading(false);
|
|
536
536
|
}));
|
|
537
537
|
}
|
|
538
538
|
//下载导入的模板
|
|
@@ -554,7 +554,7 @@ class AmComponent {
|
|
|
554
554
|
FileSaver.saveAs(data, fileName);
|
|
555
555
|
return response;
|
|
556
556
|
}), finalize(() => {
|
|
557
|
-
this.loadingService.setLoading(false);
|
|
557
|
+
// this.loadingService.setLoading(false);
|
|
558
558
|
}));
|
|
559
559
|
}
|
|
560
560
|
//删除图片
|
|
@@ -572,7 +572,7 @@ class AmComponent {
|
|
|
572
572
|
this.messageService.add({ severity: 'success', summary: 'Success', detail: response });
|
|
573
573
|
return response;
|
|
574
574
|
}), finalize(() => {
|
|
575
|
-
this.loadingService.setLoading(false);
|
|
575
|
+
// this.loadingService.setLoading(false);
|
|
576
576
|
}));
|
|
577
577
|
}
|
|
578
578
|
//删除图片
|
|
@@ -590,7 +590,7 @@ class AmComponent {
|
|
|
590
590
|
this.messageService.add({ severity: 'success', summary: 'Success', detail: response });
|
|
591
591
|
return response;
|
|
592
592
|
}), finalize(() => {
|
|
593
|
-
this.loadingService.setLoading(false);
|
|
593
|
+
// this.loadingService.setLoading(false);
|
|
594
594
|
}));
|
|
595
595
|
}
|
|
596
596
|
//刷新token
|
|
@@ -599,7 +599,7 @@ class AmComponent {
|
|
|
599
599
|
this.dealPrm = { data: response, ...this.dealPrm };
|
|
600
600
|
return response;
|
|
601
601
|
}), finalize(() => {
|
|
602
|
-
this.loadingService.setLoading(false);
|
|
602
|
+
// this.loadingService.setLoading(false);
|
|
603
603
|
}));
|
|
604
604
|
}
|
|
605
605
|
//创建表
|
|
@@ -617,7 +617,7 @@ class AmComponent {
|
|
|
617
617
|
// this.messageService.add({severity: 'success',summary: 'Success',detail: response})
|
|
618
618
|
return response;
|
|
619
619
|
}), finalize(() => {
|
|
620
|
-
this.loadingService.setLoading(false);
|
|
620
|
+
// this.loadingService.setLoading(false);
|
|
621
621
|
}));
|
|
622
622
|
}
|
|
623
623
|
// 暂无确定是否重置其他公共变量
|
|
@@ -652,7 +652,7 @@ class AmComponent {
|
|
|
652
652
|
this.dealPrm = { data: response, ...this.dealPrm };
|
|
653
653
|
return response;
|
|
654
654
|
}), finalize(() => {
|
|
655
|
-
this.loadingService.setLoading(false);
|
|
655
|
+
// this.loadingService.setLoading(false);
|
|
656
656
|
}));
|
|
657
657
|
}
|
|
658
658
|
dealCustom(prm) {
|
|
@@ -669,7 +669,7 @@ class AmComponent {
|
|
|
669
669
|
this.dealPrm = { data: response, ...this.dealPrm };
|
|
670
670
|
return response;
|
|
671
671
|
}), finalize(() => {
|
|
672
|
-
this.loadingService.setLoading(false);
|
|
672
|
+
// this.loadingService.setLoading(false);
|
|
673
673
|
}));
|
|
674
674
|
}
|
|
675
675
|
dealSubmit(prm) {
|
|
@@ -686,7 +686,7 @@ class AmComponent {
|
|
|
686
686
|
this.dealPrm = { data: response, ...this.dealPrm };
|
|
687
687
|
return response;
|
|
688
688
|
}), finalize(() => {
|
|
689
|
-
this.loadingService.setLoading(false);
|
|
689
|
+
// this.loadingService.setLoading(false);
|
|
690
690
|
}));
|
|
691
691
|
}
|
|
692
692
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -5743,7 +5743,8 @@ class GridComponent {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
getData() {
|
|
5745
5745
|
untracked(() => {
|
|
5746
|
-
|
|
5746
|
+
console.log('this.toOptions()', this.toOptions());
|
|
5747
|
+
if (!this.searchPrm().modelName && !this.rowData())
|
|
5747
5748
|
return;
|
|
5748
5749
|
this.cancelSelect();
|
|
5749
5750
|
const search = this.action.getSearch(this.toOptions().modelName);
|
|
@@ -8334,7 +8335,7 @@ class UserHistoryService {
|
|
|
8334
8335
|
i18nKey = i18nKey == '' && code != '' ? `menus.${code}` : i18nKey;
|
|
8335
8336
|
}
|
|
8336
8337
|
const paramsKeys = Object.keys(child.params);
|
|
8337
|
-
console.log('title',
|
|
8338
|
+
// console.log('title',child,configPath,url)
|
|
8338
8339
|
if (title && configPath) {
|
|
8339
8340
|
let isExit = this.historyList().filter(v => v.configPath == configPath);
|
|
8340
8341
|
// configPath.indexOf(':') > -1 && paramsKeys.length > 0 && ( title = this.detailName)
|