edit
This commit is contained in:
@ -1,16 +1,15 @@
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col nzSpan="19">
|
||||
<sf #sf [schema]="searchSchema" [ui]="{ '*': {grid: { span: 8 } }}" [compact]="true"
|
||||
[button]="'none'"></sf>
|
||||
<sf #sf [schema]="searchSchema" [ui]="{ '*': {grid: { span: 8 } }}" [compact]="true" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="5" class="text-right mb-md">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<st #st [data]="service.$mock_url" [columns]="columns" bordered size="small"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100] }"
|
||||
[loading]="service.http.loading" [scroll]="{ x:'810px',y: '400px' }" (change)="stChange($event)"></st>
|
||||
</div>
|
||||
<st #st [data]="service.$api_get_etc_list" [columns]="columns" bordered size="small"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100] }" [loading]="service.http.loading"
|
||||
[scroll]="{ x:'810px',y: '400px' }" (change)="stChange($event)"></st>
|
||||
@ -1,8 +1,6 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { SFComponent, SFSchema } from '@delon/form';
|
||||
import { TicketService } from '../../../services/ticket.service';
|
||||
|
||||
@Component({
|
||||
@ -18,28 +16,33 @@ export class AddOwnerComponent implements OnInit {
|
||||
sf!: SFComponent;
|
||||
columns: STColumn[] = [
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '企业名称', index: 'no' },
|
||||
{ title: '联系人姓名', index: 'callNo' },
|
||||
{ title: '联系人手机号', index: 'callNo' },
|
||||
{ title: '认证状态', index: 'callNo' }
|
||||
{ title: '企业名称', index: 'enterpriseName' },
|
||||
{ title: '联系人姓名', index: 'contacter' },
|
||||
{ title: '联系人手机号', index: 'mobile' },
|
||||
{
|
||||
title: '认证状态',
|
||||
index: 'approvalStatus',
|
||||
type: 'enum',
|
||||
enum: { 1: '未上传', 0: '草稿', 10: '待审核', 20: '已审核', 30: '已驳回', 40: '证件过期' }
|
||||
}
|
||||
];
|
||||
searchSchema: SFSchema = {
|
||||
properties: {
|
||||
params1: {
|
||||
enterpriseName: {
|
||||
title: '',
|
||||
type: 'string',
|
||||
ui: {
|
||||
placeholder: '请输入企业名称'
|
||||
}
|
||||
},
|
||||
params2: {
|
||||
contactName: {
|
||||
title: '',
|
||||
type: 'string',
|
||||
ui: {
|
||||
placeholder: '请输入姓名'
|
||||
}
|
||||
},
|
||||
params3: {
|
||||
mobile: {
|
||||
title: '',
|
||||
type: 'string',
|
||||
ui: {
|
||||
@ -49,11 +52,14 @@ export class AddOwnerComponent implements OnInit {
|
||||
}
|
||||
};
|
||||
|
||||
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
|
||||
constructor(public service: TicketService) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, {
|
||||
listSource: 2
|
||||
});
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value
|
||||
|
||||
Reference in New Issue
Block a user