this.st.load() } };
+export class FreightComponentsUserComponent extends BasicTableComponent implements OnInit {
schema: SFSchema = this.initSF();
columns: STColumn[] = this.initST();
@ViewChild('st', { static: false }) st!: STComponent;
- @ViewChild('sf', { static: false }) sf!: SFComponent;
@ViewChild('promoterModal', { static: false })
promoterModal!: any;
@@ -23,7 +22,16 @@ export class FreightComponentsUserComponent implements OnInit {
resourceStatus: any = 0;
- constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {}
+ constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute,
+ public searchDrawerService: SearchDrawerService
+ ) {
+ super(searchDrawerService);
+ }
+
+ search() {
+ this.st?.load(1);
+ }
+
ngOnInit() {
this.ar.url.subscribe(params => {
@@ -106,19 +114,6 @@ export class FreightComponentsUserComponent implements OnInit {
});
}
- expandToggle() {
- this._$expand = !this._$expand;
- this.sf?.setValue('/expand', this._$expand);
- }
-
- /**
- * 重置表单
- */
- resetSF() {
- this.sf.reset();
- this._$expand = false;
- }
-
private initSF(): SFSchema {
return {
properties: {
@@ -163,9 +158,6 @@ export class FreightComponentsUserComponent implements OnInit {
default: '',
ui: {
widget: 'select',
- visibleIf: {
- expand: (value: boolean) => value
- }
}
},
promotersTelephone: {
@@ -174,9 +166,6 @@ export class FreightComponentsUserComponent implements OnInit {
maxLength: 11,
ui: {
placeholder: '请输入手机号',
- visibleIf: {
- expand: (value: boolean) => value
- }
}
},
effectiveDate: {
@@ -186,9 +175,6 @@ export class FreightComponentsUserComponent implements OnInit {
widget: 'date',
mode: 'range',
format: 'yyyy-MM-dd',
- visibleIf: {
- expand: (value: boolean) => value
- }
} as SFDateWidgetSchema
}
}
diff --git a/src/app/routes/vehicle/components/list/detail/detail.component.html b/src/app/routes/vehicle/components/list/detail/detail.component.html
index 7c6d6fd2..187882d1 100644
--- a/src/app/routes/vehicle/components/list/detail/detail.component.html
+++ b/src/app/routes/vehicle/components/list/detail/detail.component.html
@@ -11,7 +11,8 @@
-
+
@@ -25,91 +26,59 @@
车辆基础信息
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -118,12 +87,10 @@
-
+ ">
@@ -133,70 +100,45 @@
行驶证信息
-
+
-
+
+
+
+
+ {{detailData?.carBrand }}
+
-
+
-
+
-
+
-
+
+
+
+
+ {{detailData?.driverLicenseSigningOrg }}
+
@@ -204,33 +146,17 @@
-
+
-
+
-
+
@@ -239,72 +165,44 @@
-
+
-
+
-
-
+
+
-
+
-
+
+
+
+
+ {{detailData?.carOwner }}
+
+ <<<<<<< HEAD=======>>>>>>> 6d503f57e2434e5c0a0baa406ac42fe2b7a8a9b5
-
+ ">
-
+ ">
@@ -313,66 +211,42 @@
道路运输证信息
-
-
+
-
+
-
+
-
+
-
+ ">
@@ -380,19 +254,10 @@
认证司机
-
+
未上传
@@ -407,13 +272,8 @@
-
+
@@ -434,27 +294,15 @@
-
+
上传
-
+
@@ -465,4 +313,4 @@
-
+
\ No newline at end of file
diff --git a/src/app/shared/components/account-detail/account-detail.component.html b/src/app/shared/components/account-detail/account-detail.component.html
index 86ce37aa..a23b587f 100644
--- a/src/app/shared/components/account-detail/account-detail.component.html
+++ b/src/app/shared/components/account-detail/account-detail.component.html
@@ -1,22 +1,12 @@
-
+ [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loading]="false"
+ [scroll]="{ y: '370px' }">
- {{ item.paAccount || '添加' }}
+ {{ item.paAccount || '添加' }}
- {{ item.pfAccount || '添加' }}
+ {{ item.pfAccount || '添加' }}
\ No newline at end of file
diff --git a/src/app/shared/components/account-detail/account-detail.component.ts b/src/app/shared/components/account-detail/account-detail.component.ts
index a0b1a133..c1585743 100644
--- a/src/app/shared/components/account-detail/account-detail.component.ts
+++ b/src/app/shared/components/account-detail/account-detail.component.ts
@@ -1,6 +1,7 @@
import { CurrencyPipe } from '@angular/common';
import { Component, OnInit, ViewChild } from '@angular/core';
import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st';
+import { ACLService } from '@delon/acl';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { BaseService } from '../../services';
@@ -18,7 +19,9 @@ export class AccountDetailComponent implements OnInit {
isCanCreate = false;
params: any = {};
- constructor(public service: BaseService, public currencyPipe: CurrencyPipe, private modalHelp: NzModalRef) {
+ constructor(public service: BaseService, public currencyPipe: CurrencyPipe, private modalHelp: NzModalRef, private acl: ACLService) {
+ const acls = acl.data.abilities || [];
+ this.isCanCreate = acl.data.full || !!acls.find(acl => acl === 'USERCENTER-FREIGHT-LIST-createAccount');
this.initST();
}