fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-18 09:51:21
|
* @Date : 2022-01-18 09:51:21
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-05-05 15:22:17
|
* @LastEditTime : 2022-05-06 13:46:07
|
||||||
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
// },
|
// },
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-test.eascs.com',
|
host: 'tms-api-dev.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
<!--
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-04-29 17:28:23
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-05-06 14:20:04
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\partner-list\\components\\index\\partner-list.component.html
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
-->
|
||||||
<page-header-wrapper [title]="'合伙人列表'"> </page-header-wrapper>
|
<page-header-wrapper [title]="'合伙人列表'"> </page-header-wrapper>
|
||||||
|
|
||||||
<nz-card class="search-box" nzBordered>
|
<nz-card class="search-box" nzBordered>
|
||||||
@ -48,7 +58,7 @@
|
|||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col nzSpan="24" se-container [labelWidth]="140" [col]="1">
|
<div nz-col nzSpan="24" se-container [labelWidth]="140" [col]="1">
|
||||||
<se label="合伙人名称"> {{selectItem?.enterpriseName || selectItem?.contactName}} </se>
|
<se label="合伙人名称"> {{selectItem?.enterpriseName || selectItem?.contactName}} </se>
|
||||||
<se label="当前渠道销售"> {{selectItem?.channelId}} </se>
|
<se label="当前渠道销售"> {{selectItem?.channelIdLabel}} </se>
|
||||||
<se label="渠道销售修改为" required>
|
<se label="渠道销售修改为" required>
|
||||||
<nz-select [(ngModel)]="cannelItem.channelId" style="width: 100%">
|
<nz-select [(ngModel)]="cannelItem.channelId" style="width: 100%">
|
||||||
<nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of cannels"></nz-option>
|
<nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of cannels"></nz-option>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<sf #sf [ui]="{ '*': { spanLabelFixed: 120, grid: { span: 24 }}}" [schema]="schema" [button]="'none'"></sf>
|
<sf #sf [ui]="{ '*': { spanLabelFixed: 120, grid: { span: 24 }}}" [schema]="schema" [formData]="formData" [button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button nz-button type="button" (click)="close()">取消</button>
|
<button nz-button type="button" (click)="close()">取消</button>
|
||||||
|
|||||||
@ -15,11 +15,30 @@ export class PartnerAuditModalComponent implements OnInit {
|
|||||||
@Input()
|
@Input()
|
||||||
info: any;
|
info: any;
|
||||||
schema!: SFSchema;
|
schema!: SFSchema;
|
||||||
|
formData: any;
|
||||||
sourcePage = '';
|
sourcePage = '';
|
||||||
constructor(private nzModalService: NzModalService, public service: PartnerListService, private modal: NzModalRef) {}
|
constructor(private nzModalService: NzModalService, public service: PartnerListService, private modal: NzModalRef) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
console.log(this.info);
|
||||||
this.initSF(this.info);
|
this.initSF(this.info);
|
||||||
|
|
||||||
|
if(this.info.channelId) {
|
||||||
|
const value = [{
|
||||||
|
label: this.info.channelIdLabel,
|
||||||
|
value: this.info.channelId,
|
||||||
|
}]
|
||||||
|
setTimeout(() => {
|
||||||
|
if(this.sf) {
|
||||||
|
console.log('888');
|
||||||
|
|
||||||
|
// this.sf.getProperty('/channelId')!.schema.enum = value;
|
||||||
|
// this.sf.getProperty('/channelId')!.widget.reset(value);
|
||||||
|
this.sf.setValue('/channelId', this.info.channelId);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initSF(user: any) {
|
initSF(user: any) {
|
||||||
@ -30,13 +49,13 @@ export class PartnerAuditModalComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
default: this.info.isPass
|
// default: this.info.isPass
|
||||||
},
|
},
|
||||||
staffName: {
|
staffName: {
|
||||||
title: '合伙人名称',
|
title: '合伙人名称',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: { widget: 'text' },
|
ui: { widget: 'text' },
|
||||||
default: user.enterpriseName
|
// default: user.enterpriseName
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
title: '审核结果',
|
title: '审核结果',
|
||||||
@ -68,7 +87,7 @@ export class PartnerAuditModalComponent implements OnInit {
|
|||||||
required: ' '
|
required: ' '
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
default: ''
|
default: user.channelId
|
||||||
},
|
},
|
||||||
approvalOpinion: {
|
approvalOpinion: {
|
||||||
title: '备注',
|
title: '备注',
|
||||||
@ -90,6 +109,8 @@ export class PartnerAuditModalComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
required: ['channelId', 'approvalOpinion']
|
required: ['channelId', 'approvalOpinion']
|
||||||
};
|
};
|
||||||
|
console.log('666');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sure() {
|
sure() {
|
||||||
|
|||||||
Reference in New Issue
Block a user