Browse Source

菜单管理

beijing
陈鹏飞 2 years ago
parent
commit
2bd898bde3
  1. 4
      proxy.config.json
  2. 4
      src/app/system-management/menu/menu.component.ts
  3. 7
      src/app/system-management/role/editrole/editrole.component.html

4
proxy.config.json

@ -1,11 +1,11 @@
{ {
"/api": { "/api": {
"target": "http://121.36.37.70:8906/", "target": "http://121.36.37.70:8906",
"secure": false, "secure": false,
"changeOrigin": true "changeOrigin": true
}, },
"/signalr": { "/signalr": {
"target": "http://121.36.37.70:8906/", "target": "http://121.36.37.70:8906",
"secure": false, "secure": false,
"ws": true, "ws": true,
"logLevel": "debug" "logLevel": "debug"

4
src/app/system-management/menu/menu.component.ts

@ -74,7 +74,7 @@ export class MenuComponent implements OnInit {
addOr(node?: any) { addOr(node?: any) {
console.log(node) console.log(node)
const modal = this.modal.create({ const modal = this.modal.create({
nzTitle: node ? '新增组织机构' : '新增一级组织机构', nzTitle: node ? '新增子菜单' : '新增一级菜单',
nzContent: AddmenuComponent, nzContent: AddmenuComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,
nzWidth: 288, nzWidth: 288,
@ -160,7 +160,7 @@ export class MenuComponent implements OnInit {
this.message.create('warning', '请先删除所有子节点'); this.message.create('warning', '请先删除所有子节点');
} else { } else {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.title}这个机构吗?`, nzTitle: `确定要删除${item.title}这个菜单吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'danger',
nzOnOk: () => { nzOnOk: () => {

7
src/app/system-management/role/editrole/editrole.component.html

@ -16,12 +16,5 @@
</nz-select> </nz-select>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="菜单">菜单</nz-form-label>
<nz-form-control>
<nz-tree-select formControlName="menus" [nzNodes]="nodes" nzShowSearch nzCheckable nzPlaceHolder="请选择菜单">
</nz-tree-select>
</nz-form-control>
</nz-form-item>
</form> </form>
</div> </div>

Loading…
Cancel
Save