|
|
|
@ -43,49 +43,82 @@ |
|
|
|
|
</span> |
|
|
|
|
<div class="operating-button"> |
|
|
|
|
<button nz-button nzType="primary" class="right-btn" [routerLink]="['/admin/merchantStore/store-edit']" ><i nz-icon nzType="plus" nzTheme="outline"></i>添加</button> |
|
|
|
|
<nz-upload |
|
|
|
|
[nzAccept]="'.xls,.xlsx'" |
|
|
|
|
nzAction="{{WEB_SERVE_URL}}highMerchantStore/importMerchantStore" |
|
|
|
|
[nzHeaders]="{ authorization: 'authorization-text' }" |
|
|
|
|
(nzChange)="handleChange($event)" |
|
|
|
|
[nzShowUploadList]="false" |
|
|
|
|
> |
|
|
|
|
<button nz-button nzType="primary" ><i nz-icon nzType="import" nzTheme="outline"></i>批量导入</button> |
|
|
|
|
</nz-upload> |
|
|
|
|
</div> |
|
|
|
|
<nz-table |
|
|
|
|
class="table" |
|
|
|
|
#ajaxTable |
|
|
|
|
nzShowSizeChanger |
|
|
|
|
[nzFrontPagination]="false" |
|
|
|
|
[nzData]="requestData" |
|
|
|
|
[nzLoading]="loading" |
|
|
|
|
[nzTotal]="total" |
|
|
|
|
[(nzPageIndex)]="pageNum" |
|
|
|
|
[(nzPageSize)]="pageSize" |
|
|
|
|
[nzScroll]="{ x: '1200px' }" |
|
|
|
|
(nzPageIndexChange)="getRequest(false , searchForm.value)" |
|
|
|
|
(nzPageSizeChange)="getRequest(false , searchForm.value)"> |
|
|
|
|
<thead nzSingleSort> |
|
|
|
|
<nz-spin nzTip="批量导入中..." [nzSpinning]="isSpinning"> |
|
|
|
|
<nz-table |
|
|
|
|
class="table" |
|
|
|
|
#ajaxTable |
|
|
|
|
nzShowSizeChanger |
|
|
|
|
[nzFrontPagination]="false" |
|
|
|
|
[nzData]="requestData" |
|
|
|
|
[nzLoading]="loading" |
|
|
|
|
[nzTotal]="total" |
|
|
|
|
[(nzPageIndex)]="pageNum" |
|
|
|
|
[(nzPageSize)]="pageSize" |
|
|
|
|
[nzScroll]="{ x: '1200px' }" |
|
|
|
|
(nzPageIndexChange)="getRequest(false , searchForm.value)" |
|
|
|
|
(nzPageSizeChange)="getRequest(false , searchForm.value)"> |
|
|
|
|
<thead nzSingleSort> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="50px">编号</th> |
|
|
|
|
<th nzWidth="80px">所属地区</th> |
|
|
|
|
<th nzWidth="80px">门店编号</th> |
|
|
|
|
<th nzWidth="80px">门店名称</th> |
|
|
|
|
<th nzWidth="100px">门店电话</th> |
|
|
|
|
<th nzWidth="100px">创建时间</th> |
|
|
|
|
<th nzWidth="80px" nzRight="0px">操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of ajaxTable.data; let i = index"> |
|
|
|
|
<td>{{i+1}}</td> |
|
|
|
|
<td>{{data.regionName}}</td> |
|
|
|
|
<td>{{data.storeKey}}</td> |
|
|
|
|
<td>{{data.storeName}}</td> |
|
|
|
|
<td>{{data.telephone}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
<a (click)="getEdit(data.id)"><i nz-icon nzType="form" nzTheme="outline" nz-tooltip="编辑"></i></a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)="getDetail(data.id)"><i nz-icon [nzIconfont]="'icon-xiangqing'" nz-tooltip="门店详情"></i></a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)="getDelete(data.id)"><i nz-icon nzType="delete" nzTheme="outline" nz-tooltip="删除"></i></a> |
|
|
|
|
</td> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|
</nz-spin> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="errorStudentVisible" nzTitle="导入失败数据" (nzOnCancel)="handleCancelError()" nzWidth="900px" [nzFooter]="null"> |
|
|
|
|
<nz-table #errorStudentTable [nzData]="importErrorStudentArray"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="50px">编号</th> |
|
|
|
|
<th nzWidth="80px">所属地区</th> |
|
|
|
|
<th nzWidth="80px">门店编号</th> |
|
|
|
|
<th nzWidth="80px">门店名称</th> |
|
|
|
|
<th nzWidth="100px">门店电话</th> |
|
|
|
|
<th nzWidth="100px">创建时间</th> |
|
|
|
|
<th nzWidth="80px" nzRight="0px">操作</th> |
|
|
|
|
<th nzWidth="80px">序号</th> |
|
|
|
|
<th nzWidth="150px">门店编号</th> |
|
|
|
|
<th nzWidth="150px">门店名称</th> |
|
|
|
|
<th nzWidth="150px">区域ID</th> |
|
|
|
|
<th nzWidth="300px">原因</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of ajaxTable.data; let i = index"> |
|
|
|
|
<td>{{i+1}}</td> |
|
|
|
|
<td>{{data.regionName}}</td> |
|
|
|
|
<tr *ngFor="let data of errorStudentTable.data;let i = index"> |
|
|
|
|
<td>{{ i + 1}}</td> |
|
|
|
|
<td>{{data.storeKey}}</td> |
|
|
|
|
<td>{{data.storeName}}</td> |
|
|
|
|
<td>{{data.telephone}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
<a (click)="getEdit(data.id)"><i nz-icon nzType="form" nzTheme="outline" nz-tooltip="编辑"></i></a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)="getDetail(data.id)"><i nz-icon [nzIconfont]="'icon-xiangqing'" nz-tooltip="门店详情"></i></a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)="getDelete(data.id)"><i nz-icon nzType="delete" nzTheme="outline" nz-tooltip="删除"></i></a> |
|
|
|
|
</td> |
|
|
|
|
<td>{{data.regionId}}</td> |
|
|
|
|
<td>{{data.errorMessage}}</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</nz-modal> |
|
|
|
|