|
|
@ -24,7 +24,6 @@ import {NzFlexDirective} from "ng-zorro-antd/flex"; |
|
|
|
import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select"; |
|
|
|
import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select"; |
|
|
|
import {NzInputNumberComponent} from "ng-zorro-antd/input-number"; |
|
|
|
import {NzInputNumberComponent} from "ng-zorro-antd/input-number"; |
|
|
|
import {NzMessageService} from "ng-zorro-antd/message"; |
|
|
|
import {NzMessageService} from "ng-zorro-antd/message"; |
|
|
|
import {DATA} from "../../../data/login/localStorage.namespace"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
|
selector: 'app-menu', |
|
|
|
selector: 'app-menu', |
|
|
@ -187,19 +186,19 @@ export class MenuComponent { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (this.menuDetail != null) { |
|
|
|
if (this.menuDetail != null) { |
|
|
|
if (edit) { |
|
|
|
if (edit) { |
|
|
|
// 增加
|
|
|
|
// 增加
|
|
|
|
menu = { |
|
|
|
menu = { |
|
|
|
menuPSid: ""+this.menuDetail.id, |
|
|
|
menuPSid: ""+this.menuDetail.id, |
|
|
|
menuType: '1' |
|
|
|
menuType: '1' |
|
|
|
}; |
|
|
|
}; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 修改
|
|
|
|
// 修改
|
|
|
|
this.editMenuTitle = '修改菜单'; |
|
|
|
this.editMenuTitle = '修改菜单'; |
|
|
|
menu = this.menuDetail; |
|
|
|
menu = this.menuDetail; |
|
|
|
menu['menuPSid'] = ""+menu['menuPSid'] |
|
|
|
menu['menuPSid'] = ""+menu['menuPSid'] |
|
|
|
menu['menuType'] = ""+menu['menuType'] |
|
|
|
menu['menuType'] = ""+menu['menuType'] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.editMenuForm.patchValue(menu); |
|
|
|
this.editMenuForm.patchValue(menu); |
|
|
|
this.editMenuVisible = true; |
|
|
|
this.editMenuVisible = true; |
|
|
|