车辆接口更新

This commit is contained in:
wangshiming
2022-01-21 10:57:11 +08:00
parent c05a8eb2ba
commit 2bc832186a
13 changed files with 415 additions and 109 deletions

View File

@ -4,8 +4,8 @@
* @Author : Shiming
* @Date : 2022-01-19 10:47:46
* @LastEditors : Shiming
* @LastEditTime : 2022-01-19 11:13:37
* @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\close-account copy\\btn-management.component.html
* @LastEditTime : 2022-01-21 10:56:48
* @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\btn-management\\btn-management.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
@ -69,7 +69,7 @@
</st>
</nz-card>
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" [nzTitle]="editText" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" [nzTitle]="editcode" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
<ng-container *nzModalContent>
<sf #sfFre [schema]="addSchema" [ui]="ui2" [formData]="formData" [compact]="false" [button]="'none'"> </sf>
</ng-container>

View File

@ -22,7 +22,7 @@ export class BtnManagementComponent implements OnInit {
schema: SFSchema = {};
addSchema: SFSchema = {};
_$expand = false;
editText = '';
editcode = '';
formData :any;
isVisible = false;
edit = false;
@ -32,16 +32,16 @@ export class BtnManagementComponent implements OnInit {
{ title: '按钮名称', index: 'name' },
{ title: 'i18n', index: 'i18n' },
{ title: '创建时间', index: 'createTime' },
{ title: '按钮说明', index: 'text' },
{ title: '按钮编码', index: 'code' },
{
title: '操作',
buttons: [
{
text: '编辑',
code: '编辑',
click: item => this.roleAction(item, 2)
},
{
text: '删除',
code: '删除',
click: item => this.deleteAction(item)
},
]
@ -116,22 +116,22 @@ export class BtnManagementComponent implements OnInit {
title: 'i18n',
ui: { placeholder: '请输入' }
},
text: {
title: '按钮说明',
code: {
title: '按钮编码',
type: 'string',
ui: {
placeholder: '请输入',
}
},
},
required: ['name', 'i18n', 'text']
required: ['name', 'i18n', 'code']
};
this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
}
roleAction(value: any,item?: any) {
if(item === 1) {
this.edit = false;
this.editText = '新增';
this.editcode = '新增';
this.formData = {};
} else {
this.service.request(this.service.$api_getButtonInfo_one, {id: value.id}).subscribe((res: any) => {
@ -142,7 +142,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
})
this.edit = true;
this.editId = value.id;
this.editText = '编辑';
this.editcode = '编辑';
}
this.isVisible = true;
}