From abf59f38e7d11a9a974e5e73dffd6cbd16ac0234 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 30 Mar 2022 14:55:49 +0800 Subject: [PATCH] edit --- proxy.conf.js | 2 +- .../components/list/list.component.ts | 41 ++++++++----------- .../cancellation-invoice.component.html | 2 +- .../invoice-detail.component.html | 2 +- .../invoice-requested-detail.component.html | 2 +- .../invoice-requested.component.html | 2 +- .../invoice-requested.component.ts | 11 ++--- .../driver/detail/detail.component.html | 2 +- .../driver/detail/detail.component.ts | 19 ++++++--- 9 files changed, 42 insertions(+), 41 deletions(-) diff --git a/proxy.conf.js b/proxy.conf.js index 10071e14..67c15ee2 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -20,7 +20,7 @@ module.exports = { // } '//api': { target: { - host: 'tms-api-dev.eascs.com', + host: 'tms-api-test.eascs.com', protocol: 'https:', port: 443 }, diff --git a/src/app/routes/download/components/list/list.component.ts b/src/app/routes/download/components/list/list.component.ts index 00b3626b..05f38c4c 100644 --- a/src/app/routes/download/components/list/list.component.ts +++ b/src/app/routes/download/components/list/list.component.ts @@ -8,7 +8,7 @@ import { DownloadService } from '../../services/download.service'; @Component({ selector: 'app-download-center-components-list', - templateUrl: './list.component.html', + templateUrl: './list.component.html' }) export class DownloadComponentsListComponent implements OnInit { ui: SFUISchema = {}; @@ -24,7 +24,7 @@ export class DownloadComponentsListComponent implements OnInit { get reqParams() { const params = Object.assign({}, this.sf?.value || {}); delete params._$expand; - return { ...params }; + return { ...params, createTime: params?.createTime?.start, applyEndTime: params?.createTime?.end }; } /** @@ -49,23 +49,18 @@ export class DownloadComponentsListComponent implements OnInit { properties: { _$expand: { type: 'boolean', - ui: { hidden: true }, + ui: { hidden: true } }, - applyStartTime: { + createTime: { type: 'string', title: '创建时间', ui: { - widget: 'date', - format: 'yyyy-MM-dd', - end: 'applyEndTime', - } as SFDateWidgetSchema, - }, - applyEndTime: { - type: 'string', - title: '', - ui: { widget: 'date', end: 'end' } as SFDateWidgetSchema, - }, - }, + widget: 'sl-from-to', + type: 'date', + format: 'yyyy-MM-dd' + } as SFDateWidgetSchema + } + } }; this.ui = { '*': { spanLabelFixed: 80, grid: { span: 8, gutter: 4 } } }; } @@ -87,8 +82,8 @@ export class DownloadComponentsListComponent implements OnInit { enum: { 0: '生成中', 1: '已完成', - 2: '失败', - }, + 2: '失败' + } }, { title: '下载次数', index: 'downloadCount', width: '120px', className: 'text-center' }, { title: '创建时间', index: 'createTime', width: '120px', className: 'text-center' }, @@ -98,10 +93,8 @@ export class DownloadComponentsListComponent implements OnInit { fixed: 'right', width: '170px', className: 'text-center', - buttons: [ - { text: '下载', click: (_record) => this.download(_record)}, - ], - }, + buttons: [{ text: '下载', click: _record => this.download(_record) }] + } ]; } @@ -115,12 +108,12 @@ export class DownloadComponentsListComponent implements OnInit { nzTitle: '删除确认', nzContent: `即将删除 当前行数据,请仔细核对,避免误操作!
是否删除?
`, nzOnOk: () => - this.service.request(this.service.encodeUrlHeader(this.service.$api_del_many, headers), { fileKey: record.id }).subscribe((res) => { + this.service.request(this.service.encodeUrlHeader(this.service.$api_del_many, headers), { fileKey: record.id }).subscribe(res => { if (res) { this.service.msgSrv.success('数据删除成功!'); this.st?.reload(); } - }), + }) }); } download(record: STData) { @@ -129,7 +122,7 @@ export class DownloadComponentsListComponent implements OnInit { this.service.encodeUrlHeader(this.service.$api_download_file, headers), {}, { fileKey: record.fileUniqueKey }, - 'POST', + 'POST' ); } } diff --git a/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html b/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html index 80d1837f..04fdad70 100644 --- a/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html +++ b/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html @@ -12,7 +12,7 @@
- + - +
diff --git a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html index 14f0808f..2d05f3d4 100644 --- a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html +++ b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html @@ -83,7 +83,7 @@ class="text-right"> - + - +