This commit is contained in:
Taric Xin
2022-02-14 17:56:28 +08:00
parent 950f60f717
commit d00c9a2aeb
8 changed files with 27 additions and 22 deletions

View File

@ -52,7 +52,7 @@ export class ApiAuthComponent implements OnInit {
this.listOfMapData.forEach(item => {
this.mapOfExpandedData[item.key] = this.service.convertTreeToList(item);
});
console.log(this.listOfMapData, this.mapOfExpandedData);
// console.log(this.listOfMapData, this.mapOfExpandedData);
}
});
}

View File

@ -70,7 +70,7 @@
<!-- <td nzWidth="70px" nzAlign="center" [nzChecked]="item.checked">{{ i+1 }}</td> -->
<td [nzIndentSize]="item.level! * 20" [nzShowExpand]="!!item.children" [(nzExpand)]="item.expand"
(nzExpandChange)="service.collapse(mapOfExpandedData[data.key], item, $event)">
{{ item.text }}
{{ item.title }}
</td>
<td>{{ item.keyCode }}</td>
<td>{{ item.link }}</td>

View File

@ -33,7 +33,7 @@ export class MenuModalComponent implements OnInit {
initSF(data?: any) {
this.schema = {
properties: {
text: {
title: {
title: '菜单名称',
type: 'string',
default: this.formData.text,
@ -99,7 +99,7 @@ export class MenuModalComponent implements OnInit {
}
}
},
required: ['text']
required: ['title']
};
this.ui = {
'*': {
@ -137,10 +137,9 @@ export class MenuModalComponent implements OnInit {
shortcut: 0,
hideInBreadcrumb: 0,
functionType: 0,
sortId: this.sf.value.sortId?.toString() || null
sortId: this.sf.value.sortId?.toString() || null,
text: this.sf.value.title
};
console.log(params);
this.service.request(this.service.$api_add_one, params).subscribe(res => {
if (res) {
this.service.msgSrv.success(this.formData.id ? '修改菜单成功' : '新增菜单成功');