edit
This commit is contained in:
@ -13,27 +13,16 @@
|
|||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||||
<sf
|
<sf #sf [schema]="schema"
|
||||||
#sf
|
[ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24, gutter: 4 } } }" [compact]="true"
|
||||||
[schema]="schema"
|
[button]="'none'"></sf>
|
||||||
[ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24, gutter: 4 } } }"
|
|
||||||
[compact]="true"
|
|
||||||
[button]="'none'"
|
|
||||||
></sf>
|
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" class="text-right">
|
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand"
|
||||||
<button
|
class="text-right">
|
||||||
nz-button
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl
|
||||||
nzType="primary"
|
[acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button>
|
||||||
[nzLoading]="service.http.loading"
|
<button nz-button nzType="primary" [disabled]="service.http.loading" acl
|
||||||
(click)="st?.load(1)"
|
[acl-ability]="['USERCENTER-FREIGHT-LIST-export']">导出</button>
|
||||||
acl
|
|
||||||
[acl-ability]="['USERCENTER-FREIGHT-LIST-list']"
|
|
||||||
>查询</button
|
|
||||||
>
|
|
||||||
<button nz-button nzType="primary" [disabled]="service.http.loading" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-export']"
|
|
||||||
>导出</button
|
|
||||||
>
|
|
||||||
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
{{ !_$expand ? '展开' : '收起' }}
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import { UsermanageService } from '../../../services/usercenter.service';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-freight-config',
|
selector: 'app-freight-config',
|
||||||
templateUrl: './freight-config.component.html',
|
templateUrl: './freight-config.component.html',
|
||||||
styleUrls: ['../../../../commom/less/box.less']
|
styleUrls: ['../../../../commom/less/box.less', '../../../../commom/less/expend-but.less']
|
||||||
})
|
})
|
||||||
export class FreightConfigComponent implements OnInit {
|
export class FreightConfigComponent implements OnInit {
|
||||||
schema: SFSchema = this.initSF();
|
schema: SFSchema = this.initSF();
|
||||||
@ -38,15 +38,21 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
|
|
||||||
beforeReq = (requestOptions: STRequestOptions) => {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
Object.assign(requestOptions.body, { listSource: 1 });
|
Object.assign(requestOptions.body, { listSource: 1 });
|
||||||
if (this.sf) {
|
console.log(1);
|
||||||
|
|
||||||
|
if (this.sf?.value) {
|
||||||
|
Object.assign(requestOptions.body, {
|
||||||
|
...this.sf.value
|
||||||
|
});
|
||||||
|
if (this.sf?.value.createTime) {
|
||||||
Object.assign(requestOptions.body, {
|
Object.assign(requestOptions.body, {
|
||||||
...this.sf.value,
|
|
||||||
createTime: {
|
createTime: {
|
||||||
start: this.sf?.value.effectiveDate[0],
|
start: this.sf?.value.createTime[0],
|
||||||
end: this.sf?.value.effectiveDate[1]
|
end: this.sf?.value.createTime[1]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return requestOptions;
|
return requestOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -239,17 +245,17 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
effectiveDate: {
|
createTime: {
|
||||||
title: '注册时间',
|
title: '注册时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'date',
|
widget: 'sl-from-to-search',
|
||||||
mode: 'range',
|
|
||||||
format: 'yyyy-MM-dd',
|
format: 'yyyy-MM-dd',
|
||||||
|
placeholder: '请选择',
|
||||||
|
nzShowTime: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
}
|
||||||
allowClear: true
|
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user