Browse Source

菜单管理

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

4
proxy.config.json

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

10
src/app/system-management/menu/menu.component.html

@ -1,9 +1,9 @@
<div class="orbox" id="orbox"> <div class="orbox" id="orbox">
<div class="topbox"> <div class="topbox">
<div class="lefttop"> <div class="lefttop">
<span>组织机构列表</span> <span>菜单列表</span>
<span><img style="vertical-align: top;" src="../../../assets/images/icon/orgrey.png" alt=""> <span><img style="vertical-align: top;" src="../../../assets/images/icon/orgrey.png" alt="">
{{totalCount}}个单位</span> {{totalCount}}个</span>
</div> </div>
<div class="righttop"> <div class="righttop">
<!-- <form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()"> <!-- <form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
@ -16,15 +16,15 @@
<button style="display: none;" type="submit"></button> <button style="display: none;" type="submit"></button>
</nz-form-item> </nz-form-item>
</form> --> </form> -->
<nz-input-group nzPrefixIcon="search"> <!-- <nz-input-group nzPrefixIcon="search">
<input type="text" nz-input placeholder="请输入单位" [(ngModel)]="searchValue" /> <input type="text" nz-input placeholder="请输入单位" [(ngModel)]="searchValue" />
</nz-input-group> </nz-input-group> -->
<button nz-button nzType="primary" (click)="addOr()"><i nz-icon nzType="plus-circle" <button nz-button nzType="primary" (click)="addOr()"><i nz-icon nzType="plus-circle"
nzTheme="outline"></i>新增</button> nzTheme="outline"></i>新增</button>
</div> </div>
</div> </div>
<div class="treeTitle"> <div class="treeTitle">
<span>组织机构</span> <span>菜单名称</span>
<span>操作</span> <span>操作</span>
</div> </div>
<nz-tree [nzHideUnMatched]='true' [nzSearchValue]="searchValue" #nzTreeComponent [nzData]="nodes" <nz-tree [nzHideUnMatched]='true' [nzSearchValue]="searchValue" #nzTreeComponent [nzData]="nodes"

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

@ -45,7 +45,8 @@ export class MenuComponent implements OnInit {
let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id
let params = { let params = {
OrganizationUnitId: OrganizationUnitId, OrganizationUnitId: OrganizationUnitId,
IsContainsChildren: "true" IsContainsChildren: "true",
MaxResultCount:"999"
} }
this.http.get('/api/services/app/Menu/GetAll', { this.http.get('/api/services/app/Menu/GetAll', {
params: params params: params

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

@ -16,5 +16,12 @@
</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