fix bug
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\model\\import-supply\\import-supply.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<div>
|
||||
<div *ngIf="status">
|
||||
<sf #sf mode="edit" [schema]="schema" [ui]="ui" button="none">
|
||||
<ng-template sf-template="resourceCode2" let-me let-ui="ui" let-schema="schema">
|
||||
<input readonly nz-input placeholder="请选择上传文件" [(ngModel)]="files2" />
|
||||
@ -41,6 +41,9 @@
|
||||
<sv style="height: 20px;">5、发布成功后,可在货源列表-待接单查看</sv>
|
||||
</sv-container>
|
||||
</div>
|
||||
<div *ngIf="!status">
|
||||
文件上传成功!成功xx条,失败xx条!
|
||||
</div>
|
||||
<div class="modal-footer text-right">
|
||||
<button nz-button type="button" (click)="close()">取消</button>
|
||||
<button nz-button type="submit" nzType="primary" (click)="save()">确定</button>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-01 15:13:03
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-01 16:15:26
|
||||
* @LastEditTime : 2022-03-01 16:18:58
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\model\\import-supply\\import-supply.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -26,6 +26,7 @@ import { SupplyManagementService } from '../../services/supply-management.servic
|
||||
export class SupplyManagementImportSupplyComponent implements OnInit {
|
||||
record: any = {};
|
||||
files: any;
|
||||
status: boolean = true
|
||||
files2: any;
|
||||
schema: SFSchema = {};
|
||||
ui: SFUISchema = {};
|
||||
@ -185,7 +186,9 @@ export class SupplyManagementImportSupplyComponent implements OnInit {
|
||||
downFile() {
|
||||
this.service.request(this.service.$api_exportGoodsResourceOperateTemplate).subscribe((res: any)=> {
|
||||
console.log(res)
|
||||
|
||||
if(res) {
|
||||
this.status = false
|
||||
}
|
||||
})
|
||||
// window.location.href('')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user