edit
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<sf #sf [compact]="true" [ui]="ui" [schema]="schema" [button]="'none'" *ngIf="schema">
|
<sf #sf [compact]="true" [ui]="ui" [schema]="schema" [button]="'none'" *ngIf="schema">
|
||||||
<ng-template sf-template="creditPhoto" let-me let-ui="ui" let-schema="schema">
|
<ng-template sf-template="creditPhoto" let-me let-ui="ui" let-schema="schema">
|
||||||
<img [src]="i.creditPhoto" alt="" />
|
<img [src]="me.formProperty.value" alt="" style="width: 200px;height: 160px;"/>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</sf>
|
</sf>
|
||||||
@ -30,7 +30,6 @@ export class AuditAdminComponent implements OnInit {
|
|||||||
|
|
||||||
loadUserInfo() {
|
loadUserInfo() {
|
||||||
this.service.request(this.service.$api_get_enterprise_user_by_id, { id: this.i.id }).subscribe(res => {
|
this.service.request(this.service.$api_get_enterprise_user_by_id, { id: this.i.id }).subscribe(res => {
|
||||||
console.log(res);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
this.initSF(res);
|
this.initSF(res);
|
||||||
}
|
}
|
||||||
@ -38,6 +37,8 @@ export class AuditAdminComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initSF(user?: any) {
|
initSF(user?: any) {
|
||||||
|
console.log(user);
|
||||||
|
|
||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
oldAdminName: {
|
oldAdminName: {
|
||||||
@ -79,7 +80,8 @@ export class AuditAdminComponent implements OnInit {
|
|||||||
creditPhoto: {
|
creditPhoto: {
|
||||||
title: '企业授权函',
|
title: '企业授权函',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: { widget: 'custom' }
|
ui: { widget: 'custom' },
|
||||||
|
default: user.creditPhoto
|
||||||
},
|
},
|
||||||
approvalOpinion: {
|
approvalOpinion: {
|
||||||
title: '备注',
|
title: '备注',
|
||||||
|
|||||||
Reference in New Issue
Block a user