@@ -47,6 +46,10 @@
+
+ 正在导出中,请稍后在此处进行下载
+
+
@@ -100,8 +103,9 @@
{{ data.downloadTime | date: 'yyyy-MM-dd HH:mm:ss'}} |
{{ data.status | status}} |
- 下载
- 重新下载
+ 下载
+ 重新下载
+
|
diff --git a/src/app/pages/body/index/index.component.less b/src/app/pages/body/index/index.component.less
index b14d3f5..e227cbd 100644
--- a/src/app/pages/body/index/index.component.less
+++ b/src/app/pages/body/index/index.component.less
@@ -70,3 +70,25 @@ nz-content {
.file-downLoad {
width: 300px;
}
+.button-up {
+ font-size: 16px;
+ padding: 10px;
+ top: 48px;
+ left: 22px;
+ z-index: 999;
+ border-radius: 5px;
+ position:absolute;
+ height: 80px;
+ width: 280px;
+ background-color: rgba(0, 0, 0, 0.7);
+}
+.to_top {
+ z-index: 999;
+ top: 40px;
+ position:absolute;
+ width: 0;
+ height: 0;
+ border-bottom: 8px solid rgba(0, 0, 0, 0.7);
+ border-left: 8px solid transparent;
+ border-right: 8px solid transparent;
+}
diff --git a/src/app/pages/body/index/index.component.ts b/src/app/pages/body/index/index.component.ts
index b0d5a55..218d0da 100644
--- a/src/app/pages/body/index/index.component.ts
+++ b/src/app/pages/body/index/index.component.ts
@@ -38,6 +38,9 @@ import {NzTimelineComponent, NzTimelineItemComponent} from "ng-zorro-antd/timeli
import {NzTableComponent, NzTableModule} from "ng-zorro-antd/table";
import {BusinessTypePipe} from "../../../pipes/file/business-type.pipe";
import {StatusPipe} from "../../../pipes/file/status.pipe";
+import {NzPopconfirmDirective} from "ng-zorro-antd/popconfirm";
+import {NzButtonComponent} from "ng-zorro-antd/button";
+import {NzBadgeComponent} from "ng-zorro-antd/badge";
@Component({
selector: 'app-index',
@@ -85,7 +88,10 @@ import {StatusPipe} from "../../../pipes/file/status.pipe";
NzTableComponent,
NzModalContentDirective,
BusinessTypePipe,
- StatusPipe
+ StatusPipe,
+ NzPopconfirmDirective,
+ NzButtonComponent,
+ NzBadgeComponent
],
templateUrl: './index.component.html',
styleUrl: './index.component.less',
@@ -111,6 +117,7 @@ export class IndexComponent {
currentParentMenu: any = {};
downloadType = 1;
interval: any;
+ showComponent = false;
constructor(
private commonService: CommonService,
private storage: BrowserStorageService,
@@ -124,6 +131,7 @@ export class IndexComponent {
) {
this.communicationService.currentMessage.subscribe(message => {
+ this.showComponent = true;
this.fileRecords();
this.findFileRecords(message.id);
this.downloadType = 2;
@@ -212,13 +220,14 @@ export class IndexComponent {
public findFileRecords(id: number) {
this.interval = setInterval(() => this.fileService.findFileRecords(id, (data: any) => {
if (data['return_code'] == '000000') {
- if (data['return_data'].status == 1) {
+ if (data['return_data'].status == 1 || data['return_data'].status == 3) {
+ this.showComponent = false;
clearTimeout(this.interval);
- console.log("完成");
this.downloadType = 1;
this.fileRecords();
}
}else {
+ this.showComponent = false;
clearTimeout(this.interval);
this.fileRecords();
this.downloadType = 1;
@@ -233,10 +242,12 @@ export class IndexComponent {
public getDownLoad(id: number) {
this.fileService.getDownLoad(id, (data: any) => {
if (data['return_code'] == '000000') {
- window.location.href = data['return_data'];
+ this.fileRecords();
+ window.open(data['return_data']);
}else {
this.message.error(data['return_msg']);
}
})
}
+
}
diff --git a/src/app/pages/trade/goods-list/goods-list.component.html b/src/app/pages/trade/goods-list/goods-list.component.html
index 7433a8b..1f5ca21 100644
--- a/src/app/pages/trade/goods-list/goods-list.component.html
+++ b/src/app/pages/trade/goods-list/goods-list.component.html
@@ -202,7 +202,7 @@
diff --git a/src/app/pages/trade/goods-list/goods-list.component.ts b/src/app/pages/trade/goods-list/goods-list.component.ts
index 476eccf..98a3537 100644
--- a/src/app/pages/trade/goods-list/goods-list.component.ts
+++ b/src/app/pages/trade/goods-list/goods-list.component.ts
@@ -260,39 +260,16 @@ export class GoodsListComponent {
});
}
- getLogisticsNo(id: number): void {
- this.getRequest(false);
- this.goodsOrderId = id;
- this.isVisible = true;
- }
-
showDetail(data: OrderGoodsData): void {
this.orderGoodsData = data;
this.findDeliveryAddressById(data.deliveryAddressId);
this.orderDetailModal = true;
}
- handleOk(): void {
- let params = {
- id: this.goodsOrderId,
- logisticsNo: this.logisticsNo,
- time: new Date().getTime()
- }
-
- this.orderGoodsService.updateLogisticsNo(params , (data: any) => {
- if (data['return_code'] == '000000') {
- this.isVisible = false;
-
- this.msg.success("成功")
- } else {
- this.msg.error(data['return_msg']);
- }
- });
- }
- showLogisticsNo(logisticsNo: string): void {
+ showLogisticsNo(id: number): void {
let params = {
- logisticsNo:logisticsNo,
+ id:id,
time: new Date().getTime()
}
diff --git a/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.html b/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.html
index f0aba29..3bbef23 100644
--- a/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.html
+++ b/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.html
@@ -188,7 +188,7 @@
diff --git a/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.ts b/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.ts
index 488df62..730395b 100644
--- a/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.ts
+++ b/src/app/pages/trade/goods-logistics-list/goods-logistics-list.component.ts
@@ -278,9 +278,9 @@ export class GoodsLogisticsListComponent {
});
}
- showLogisticsNo(logisticsNo: string): void {
+ showLogisticsNo(id: number): void {
let params = {
- logisticsNo:logisticsNo,
+ id:id,
time: new Date().getTime()
}