车辆接口更新
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user