提交代码

master
胡锐 6 months ago
parent 40c1874390
commit a7bce7aa8d
  1. 1
      src/app/pages/account/sys-role/sys-role.component.ts
  2. 4
      src/app/pages/merchant/mer-list/mer-list.component.html
  3. 4
      src/app/pages/merchant/mer-list/mer-list.component.ts

@ -188,6 +188,7 @@ export class SysRoleComponent {
* *
*/ */
closeEditRole() { closeEditRole() {
this.editRoleForm.reset();
this.editRoleVisible = false; this.editRoleVisible = false;
} }

@ -96,8 +96,8 @@
<ng-container *nzModalContent> <ng-container *nzModalContent>
<nz-descriptions nzBordered [nzColumn]="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }"> <nz-descriptions nzBordered [nzColumn]="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
<nz-descriptions-item nzSpan="2" nzTitle="商户标志"> <nz-descriptions-item nzSpan="2" nzTitle="商户标志">
<nz-avatar *ngIf="merDetailObject.merLogo" [nzShape]="'square'" [nzSize]="64" nzText="商户标志" nzSrc="{{IMAGE_URL+merDetailObject.merLogo}}"></nz-avatar> <span *ngIf="merDetailObject.merLogo == null || merDetailObject.merLogo == ''" >未上传</span>
<span *ngIf="!merDetailObject.merLogo"></span> <img *ngIf="merDetailObject.merLogo != null && merDetailObject.merLogo != ''" nz-image width="64px" height="64px" nzSrc="{{IMAGE_URL+merDetailObject.merLogo}}" alt="">
</nz-descriptions-item> </nz-descriptions-item>
<nz-descriptions-item nzTitle="登录账号">{{merDetailObject.loginName}}</nz-descriptions-item> <nz-descriptions-item nzTitle="登录账号">{{merDetailObject.loginName}}</nz-descriptions-item>
<nz-descriptions-item nzTitle="账户角色">{{merDetailObject.roleName}}</nz-descriptions-item> <nz-descriptions-item nzTitle="账户角色">{{merDetailObject.roleName}}</nz-descriptions-item>

@ -28,6 +28,7 @@ import {Observable, Observer} from "rxjs";
import {NzAvatarModule} from "ng-zorro-antd/avatar"; import {NzAvatarModule} from "ng-zorro-antd/avatar";
import {MerService} from "../../../services/merchant/mer.service"; import {MerService} from "../../../services/merchant/mer.service";
import {RoleService} from "../../../services/role/role.service"; import {RoleService} from "../../../services/role/role.service";
import {NzImageModule} from "ng-zorro-antd/image";
@Component({ @Component({
selector: 'app-mer-list', selector: 'app-mer-list',
@ -68,7 +69,8 @@ import {RoleService} from "../../../services/role/role.service";
NzFlexDirective, NzFlexDirective,
NzDescriptionsModule, NzDescriptionsModule,
NzUploadComponent, NzUploadComponent,
NzAvatarModule NzAvatarModule,
NzImageModule
], ],
templateUrl: './mer-list.component.html', templateUrl: './mer-list.component.html',
styleUrl: './mer-list.component.less' styleUrl: './mer-list.component.less'

Loading…
Cancel
Save