edit
This commit is contained in:
@ -33,7 +33,7 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
|||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
|
|
||||||
settingAction(item?: any) {
|
settingAction(item?: any) {
|
||||||
this.modal.create({
|
const modal = this.modal.create({
|
||||||
nzTitle: '配置',
|
nzTitle: '配置',
|
||||||
nzContent: DynamicSettingModalComponent,
|
nzContent: DynamicSettingModalComponent,
|
||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
@ -44,6 +44,12 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modal.afterClose.subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.st.load(1);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -153,7 +153,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
|||||||
{ title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 },
|
{ title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 },
|
||||||
{ title: '联系人', className: 'text-center', index: 'contacter', width: 150 },
|
{ title: '联系人', className: 'text-center', index: 'contacter', width: 150 },
|
||||||
{ title: '手机号', className: 'text-center', index: 'mobile', width: 150 },
|
{ title: '手机号', className: 'text-center', index: 'mobile', width: 150 },
|
||||||
{ title: '申请时间', className: 'text-center', index: 'createTime', width: 150 },
|
{ title: '申请时间', className: 'text-center', index: 'createTime', width: 160 },
|
||||||
{
|
{
|
||||||
title: '审核状态',
|
title: '审核状态',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
@ -189,11 +189,11 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
|||||||
initAdminST(): STColumn[] {
|
initAdminST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
{ title: '企业名称', className: 'text-center', index: 'enterpriseName' },
|
{ title: '企业名称', className: 'text-center', index: 'enterpriseName' },
|
||||||
{ title: '当前管理员', className: 'text-center', index: 'oldAdminName' },
|
{ title: '当前管理员', className: 'text-center', index: 'oldAdminName', width: 140 },
|
||||||
{ title: '当前管理员手机号', className: 'text-center', index: 'oldAdminMobile' },
|
{ title: '当前管理员手机号', className: 'text-center', index: 'oldAdminMobile', width: 150 },
|
||||||
{ title: '转授对象', className: 'text-center', index: 'newAdminName' },
|
{ title: '转授对象', className: 'text-center', index: 'newAdminName', width: 140 },
|
||||||
{ title: '转授对象手机号', className: 'text-center', index: 'newAdminMobile' },
|
{ title: '转授对象手机号', className: 'text-center', index: 'newAdminMobile', width: 150 },
|
||||||
{ title: '申请时间', className: 'text-center', index: 'createTime' },
|
{ title: '申请时间', className: 'text-center', index: 'createTime', width: 160 },
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
@ -203,7 +203,8 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
|||||||
10: { text: '待审核', color: 'processing' },
|
10: { text: '待审核', color: 'processing' },
|
||||||
20: { text: '已成功', color: 'success' },
|
20: { text: '已成功', color: 'success' },
|
||||||
30: { text: '已驳回', color: 'warning' }
|
30: { text: '已驳回', color: 'warning' }
|
||||||
}
|
},
|
||||||
|
width: 130
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
|
|
||||||
settingAction(item?: any) {
|
settingAction(item?: any) {
|
||||||
this.modal.create({
|
const modal = this.modal.create({
|
||||||
nzTitle: '配置',
|
nzTitle: '配置',
|
||||||
nzContent: DynamicSettingModalComponent,
|
nzContent: DynamicSettingModalComponent,
|
||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
@ -66,6 +66,11 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
|
modal.afterClose.subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.st.load(1);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
exportList() {
|
exportList() {
|
||||||
|
|||||||
@ -75,8 +75,6 @@ export class DynamicSettingModalComponent implements OnInit {
|
|||||||
this.configList = this.formatItems(this.selectedTab.items);
|
this.configList = this.formatItems(this.selectedTab.items);
|
||||||
const hiddenType = this.configList.find((item: any) => item.itemType === 7 || item.itemType === 999);
|
const hiddenType = this.configList.find((item: any) => item.itemType === 7 || item.itemType === 999);
|
||||||
this.labelWidth = hiddenType ? 0 : 200;
|
this.labelWidth = hiddenType ? 0 : 200;
|
||||||
console.log(this.configList);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -103,7 +101,7 @@ export class DynamicSettingModalComponent implements OnInit {
|
|||||||
this.service.request('/api/mdc/pbc/sysConfigItemExtend/saveBatch', p).subscribe(res => {
|
this.service.request('/api/mdc/pbc/sysConfigItemExtend/saveBatch', p).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('修改配置成功');
|
this.service.msgSrv.success('修改配置成功');
|
||||||
this.modalHelp.destroy();
|
this.modalHelp.destroy(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user