Commit af6dfca7 authored by wangqinghua's avatar wangqinghua

workService

parent 4a861be1
<!--处理人统计--> <!--&lt;!&ndash;处理人统计&ndash;&gt;-->
<nz-spin [nzSpinning]="isLoading"> <!--<nz-spin [nzSpinning]="isLoading">-->
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div> <!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
</nz-spin> <!--</nz-spin>-->
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'"> <!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<nz-tab nzTitle="接收流量排行"> <!--<nz-tab nzTitle="接收流量排行">-->
<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)"> <!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<thead> <!--<thead>-->
<tr> <!--<tr>-->
<th nzWidth="20%">监测点名称</th> <!--<th nzWidth="20%">监测点名称</th>-->
<th>最大值</th> <!--<th>最大值</th>-->
<th>最小值</th> <!--<th>最小值</th>-->
<th>平均值</th> <!--<th>平均值</th>-->s
</tr> <!--</tr>-->
</thead> <!--</thead>-->
<tbody> <!--<tbody>-->
<ng-container *ngFor="let item of inList"> <!--<ng-container *ngFor="let item of inList">-->
<tr (click)="getEcharts(item.itemid)"> <!--<tr (click)="getEcharts(item.itemid)">-->
<td>{{item.itemName}}</td> <!--<td>{{item.itemName}}</td>-->
<td>{{item.max | toUtil}}</td> <!--<td>{{item.max | toUtil}}</td>-->
<td>{{item.min | toUtil}}</td> <!--<td>{{item.min | toUtil}}</td>-->
<td>{{item.avg | toUtil}}</td> <!--<td>{{item.avg | toUtil}}</td>-->
</tr> <!--</tr>-->
</ng-container> <!--</ng-container>-->
</tbody> <!--</tbody>-->
</nz-table> <!--</nz-table>-->
</nz-tab> <!--</nz-tab>-->
<nz-tab nzTitle="发送流量排行"> <!--<nz-tab nzTitle="发送流量排行">-->
<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)"> <!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<thead> <!--<thead>-->
<tr> <!--<tr>-->
<th nzWidth="20%">监测点名称</th> <!--<th nzWidth="20%">监测点名称</th>-->
<th>最大值</th> <!--<th>最大值</th>-->
<th>最小值</th> <!--<th>最小值</th>-->
<th>平均值</th> <!--<th>平均值</th>-->
</tr> <!--</tr>-->
</thead> <!--</thead>-->
<tbody> <!--<tbody>-->
<ng-container *ngFor="let data of outList"> <!--<ng-container *ngFor="let data of outList">-->
<tr class="cursor" (click)="getEcharts(data.itemid)"> <!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<td>{{data.itemName}}</td> <!--<td>{{data.itemName}}</td>-->
<td>{{data.max | toUtil}}</td> <!--<td>{{data.max | toUtil}}</td>-->
<td>{{data.min | toUtil}}</td> <!--<td>{{data.min | toUtil}}</td>-->
<td>{{data.avg | toUtil}}</td> <!--<td>{{data.avg | toUtil}}</td>-->
</tr> <!--</tr>-->
</ng-container> <!--</ng-container>-->
</tbody> <!--</tbody>-->
</nz-table> <!--</nz-table>-->
</nz-tab> <!--</nz-tab>-->
</nz-tabset> <!--</nz-tabset>-->
<!--事件分类统计--> <!--&lt;!&ndash;事件分类统计&ndash;&gt;-->
<nz-spin [nzSpinning]="isLoading"> <!--<nz-spin [nzSpinning]="isLoading">-->
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div> <!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
</nz-spin> <!--</nz-spin>-->
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'"> <!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<nz-tab nzTitle="接收流量排行"> <!--<nz-tab nzTitle="接收流量排行">-->
<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)"> <!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<thead> <!--<thead>-->
<tr> <!--<tr>-->
<th nzWidth="20%">监测点名称</th> <!--<th nzWidth="20%">监测点名称</th>-->
<th>最大值</th> <!--<th>最大值</th>-->
<th>最小值</th> <!--<th>最小值</th>-->
<th>平均值</th> <!--<th>平均值</th>-->
</tr> <!--</tr>-->
</thead> <!--</thead>-->
<tbody> <!--<tbody>-->
<ng-container *ngFor="let item of inList"> <!--<ng-container *ngFor="let item of inList">-->
<tr (click)="getEcharts(item.itemid)"> <!--<tr (click)="getEcharts(item.itemid)">-->
<td>{{item.itemName}}</td> <!--<td>{{item.itemName}}</td>-->
<td>{{item.max | toUtil}}</td> <!--<td>{{item.max | toUtil}}</td>-->
<td>{{item.min | toUtil}}</td> <!--<td>{{item.min | toUtil}}</td>-->
<td>{{item.avg | toUtil}}</td> <!--<td>{{item.avg | toUtil}}</td>-->
</tr> <!--</tr>-->
</ng-container> <!--</ng-container>-->
</tbody> <!--</tbody>-->
</nz-table> <!--</nz-table>-->
</nz-tab> <!--</nz-tab>-->
<nz-tab nzTitle="发送流量排行"> <!--<nz-tab nzTitle="发送流量排行">-->
<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)"> <!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<thead> <!--<thead>-->
<tr> <!--<tr>-->
<th nzWidth="20%">监测点名称</th> <!--<th nzWidth="20%">监测点名称</th>-->
<th>最大值</th> <!--<th>最大值</th>-->
<th>最小值</th> <!--<th>最小值</th>-->
<th>平均值</th> <!--<th>平均值</th>-->
</tr> <!--</tr>-->
</thead> <!--</thead>-->
<tbody> <!--<tbody>-->
<ng-container *ngFor="let data of outList"> <!--<ng-container *ngFor="let data of outList">-->
<tr class="cursor" (click)="getEcharts(data.itemid)"> <!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<td>{{data.itemName}}</td> <!--<td>{{data.itemName}}</td>-->
<td>{{data.max | toUtil}}</td> <!--<td>{{data.max | toUtil}}</td>-->
<td>{{data.min | toUtil}}</td> <!--<td>{{data.min | toUtil}}</td>-->
<td>{{data.avg | toUtil}}</td> <!--<td>{{data.avg | toUtil}}</td>-->
</tr> <!--</tr>-->
</ng-container> <!--</ng-container>-->
</tbody> <!--</tbody>-->
</nz-table> <!--</nz-table>-->
</nz-tab> <!--</nz-tab>-->
</nz-tabset> <!--</nz-tabset>-->
\ No newline at end of file \ No newline at end of file
<!--解决状态统计--> <!--&lt;!&ndash;解决状态统计&ndash;&gt;-->
<nz-spin [nzSpinning]="isLoading"> <!--<nz-spin [nzSpinning]="isLoading">-->
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div> <!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
</nz-spin> <!--</nz-spin>-->
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'"> <!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<nz-tab nzTitle="接收流量排行"> <!--<nz-tab nzTitle="接收流量排行">-->
<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)"> <!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<thead> <!--<thead>-->
<tr> <!--<tr>-->
<th nzWidth="20%">监测点名称</th> <!--<th nzWidth="20%">监测点名称</th>-->
<th>最大值</th> <!--<th>最大值</th>-->
<th>最小值</th> <!--<th>最小值</th>-->
<th>平均值</th> <!--<th>平均值</th>-->
</tr> <!--</tr>-->
</thead> <!--</thead>-->
<tbody> <!--<tbody>-->
<ng-container *ngFor="let item of inList"> <!--<ng-container *ngFor="let item of inList">-->
<tr (click)="getEcharts(item.itemid)"> <!--<tr (click)="getEcharts(item.itemid)">-->
<td>{{item.itemName}}</td> <!--<td>{{item.itemName}}</td>-->
<td>{{item.max | toUtil}}</td> <!--<td>{{item.max | toUtil}}</td>-->
<td>{{item.min | toUtil}}</td> <!--<td>{{item.min | toUtil}}</td>-->
<td>{{item.avg | toUtil}}</td> <!--<td>{{item.avg | toUtil}}</td>-->
</tr> <!--</tr>-->
</ng-container> <!--</ng-container>-->
</tbody> <!--</tbody>-->
</nz-table> <!--</nz-table>-->
</nz-tab> <!--</nz-tab>-->
<nz-tab nzTitle="发送流量排行"> <!--<nz-tab nzTitle="发送流量排行">-->
<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)"> <!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<thead> <!--<thead>-->
<tr> <!--<tr>-->
<th nzWidth="20%">监测点名称</th> <!--<th nzWidth="20%">监测点名称</th>-->
<th>最大值</th> <!--<th>最大值</th>-->
<th>最小值</th> <!--<th>最小值</th>-->
<th>平均值</th> <!--<th>平均值</th>-->
</tr> <!--</tr>-->
</thead> <!--</thead>-->
<tbody> <!--<tbody>-->
<ng-container *ngFor="let data of outList"> <!--<ng-container *ngFor="let data of outList">-->
<tr class="cursor" (click)="getEcharts(data.itemid)"> <!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<td>{{data.itemName}}</td> <!--<td>{{data.itemName}}</td>-->
<td>{{data.max | toUtil}}</td> <!--<td>{{data.max | toUtil}}</td>-->
<td>{{data.min | toUtil}}</td> <!--<td>{{data.min | toUtil}}</td>-->
<td>{{data.avg | toUtil}}</td> <!--<td>{{data.avg | toUtil}}</td>-->
</tr> <!--</tr>-->
</ng-container> <!--</ng-container>-->
</tbody> <!--</tbody>-->
</nz-table> <!--</nz-table>-->
</nz-tab> <!--</nz-tab>-->
</nz-tabset> <!--</nz-tabset>-->
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</nz-breadcrumb> </nz-breadcrumb>
</div> </div>
<div nz-col nzSpan="8" class="text-right"> <div nz-col nzSpan="8" class="text-right">
<button (click)="search()" nz-button nzType="primary"><i class="anticon anticon-search"></i></button> <button nz-button nzType="primary"><i class="anticon anticon-search"></i></button>
<button nz-button nzType="primary"><i class="anticon anticon-sync"></i></button> <button nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button> <button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>
</div> </div>
......
...@@ -16,6 +16,7 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -16,6 +16,7 @@ export class ResourceAlarmComponent implements OnInit {
startTime; startTime;
endTime; endTime;
groupList; groupList;
isLoading = false;
obj = { obj = {
priority:"", priority:"",
...@@ -23,6 +24,7 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -23,6 +24,7 @@ export class ResourceAlarmComponent implements OnInit {
startTime:"", startTime:"",
endTime:"", endTime:"",
}; };
chartOption;
pageCount = pageSize; pageCount = pageSize;
pageNum = 1; pageNum = 1;
......
<!--资源可用性统计--> <!--&lt;!&ndash;资源可用性统计&ndash;&gt;-->
<div nz-row class="breadcrumbs"> <!--<div nz-row class="breadcrumbs">-->
<div nz-col nzSpan="16"> <!--<div nz-col nzSpan="16">-->
<nz-breadcrumb class="padding-8-0"> <!--<nz-breadcrumb class="padding-8-0">-->
<nz-breadcrumb-item> <!--<nz-breadcrumb-item>-->
首页 <!--首页-->
</nz-breadcrumb-item> <!--</nz-breadcrumb-item>-->
<nz-breadcrumb-item> <!--<nz-breadcrumb-item>-->
<a>统计分析</a> <!--<a>统计分析</a>-->
</nz-breadcrumb-item> <!--</nz-breadcrumb-item>-->
<nz-breadcrumb-item> <!--<nz-breadcrumb-item>-->
资源可用性统计 <!--资源可用性统计-->
</nz-breadcrumb-item> <!--</nz-breadcrumb-item>-->
</nz-breadcrumb> <!--</nz-breadcrumb>-->
</div> <!--</div>-->
<div nz-col nzSpan="8" class="text-right"> <!--<div nz-col nzSpan="8" class="text-right">-->
<button (click)="search()" nz-button nzType="primary"><i class="anticon anticon-search"></i></button> <!--<button (click)="search()" nz-button nzType="primary"><i class="anticon anticon-search"></i></button>-->
<button nz-button nzType="primary"><i class="anticon anticon-sync"></i></button> <!--<button nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>-->
<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button> <!--<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>-->
</div> <!--</div>-->
</div> <!--</div>-->
<div nz-row [nzGutter]="4" class="search-form"> <!--<div nz-row [nzGutter]="4" class="search-form">-->
<div nz-col nzSpan="3"> <!--<div nz-col nzSpan="3">-->
<nz-select style="width: 100%;" nzPlaceHolder="选择分组" [(ngModel)]="obj.groupid" (ngModelChange)="getList()"> <!--<nz-select style="width: 100%;" nzPlaceHolder="选择分组" [(ngModel)]="obj.groupid" (ngModelChange)="getList()">-->
<ng-container *ngFor="let item of groupList"> <!--<ng-container *ngFor="let item of groupList">-->
<nz-option nzLabel="{{item.name}}" nzValue="{{item.groupid}}"></nz-option> <!--<nz-option nzLabel="{{item.name}}" nzValue="{{item.groupid}}"></nz-option>-->
</ng-container> <!--</ng-container>-->
</nz-select> <!--</nz-select>-->
</div> <!--</div>-->
<div nz-col nzSpan="3"> <!--<div nz-col nzSpan="3">-->
<nz-select style="width: 100%;" nzPlaceHolder="选择主机资源" [(ngModel)]="obj.hostid" (ngModelChange)="getListIO()"> <!--<nz-select style="width: 100%;" nzPlaceHolder="选择主机资源" [(ngModel)]="obj.hostid" (ngModelChange)="getListIO()">-->
<ng-container *ngFor="let item of hostList;"> <!--<ng-container *ngFor="let item of hostList;">-->
<nz-option nzLabel="{{item.name}}" nzValue="{{item.hostid}}"></nz-option> <!--<nz-option nzLabel="{{item.name}}" nzValue="{{item.hostid}}"></nz-option>-->
</ng-container> <!--</ng-container>-->
</nz-select> <!--</nz-select>-->
</div> <!--</div>-->
<div nz-col nzSpan="7"> <!--<div nz-col nzSpan="7">-->
<nz-radio-group style="width: 100%;" [(ngModel)]="timeType" (ngModelChange)="changeType()" [nzButtonStyle]="'solid'"> <!--<nz-radio-group style="width: 100%;" [(ngModel)]="timeType" (ngModelChange)="changeType()" [nzButtonStyle]="'solid'">-->
<label nz-radio-button nzValue="1">今天</label> <!--<label nz-radio-button nzValue="1">今天</label>-->
<label nz-radio-button nzValue="2">昨天</label> <!--<label nz-radio-button nzValue="2">昨天</label>-->
<label nz-radio-button nzValue="3">三天</label> <!--<label nz-radio-button nzValue="3">三天</label>-->
<label nz-radio-button nzValue="4">一周</label> <!--<label nz-radio-button nzValue="4">一周</label>-->
<label nz-radio-button nzValue="5">自定义</label> <!--<label nz-radio-button nzValue="5">自定义</label>-->
</nz-radio-group> <!--</nz-radio-group>-->
</div> <!--</div>-->
<div nz-col nzSpan="8" *ngIf="timeType == '5'"> <!--<div nz-col nzSpan="8" *ngIf="timeType == '5'">-->
<nz-date-picker <!--<nz-date-picker-->
nzShowTime <!--nzShowTime-->
[(ngModel)]="startTime" <!--[(ngModel)]="startTime"-->
nzPlaceHolder="开始时间" <!--nzPlaceHolder="开始时间"-->
></nz-date-picker> <!--&gt;</nz-date-picker>-->
<nz-date-picker <!--<nz-date-picker-->
nzShowTime <!--nzShowTime-->
nzFormat="yyyy-MM-dd HH:mm:ss" <!--nzFormat="yyyy-MM-dd HH:mm:ss"-->
[(ngModel)]="endTime" <!--[(ngModel)]="endTime"-->
nzPlaceHolder="结束时间" <!--nzPlaceHolder="结束时间"-->
></nz-date-picker> <!--&gt;</nz-date-picker>-->
</div> <!--</div>-->
</div> <!--</div>-->
<nz-spin [nzSpinning]="isLoading"> <!--<nz-spin [nzSpinning]="isLoading">-->
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div> <!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
</nz-spin> <!--</nz-spin>-->
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
export const VERSION = process.env.VERSION; export const VERSION = process.env.VERSION;
export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED; export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED;
export const SERVER_API_URL_coms = '/coms';
export const SERVER_API_URL = '/zabbixBox'; export const SERVER_API_URL = '/zabbixBox';
export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP; export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP;
export const pageSize = 25; export const pageSize = 25;
......
import { HttpClient } from "@angular/common/http"; import { HttpClient } from "@angular/common/http";
import {Observable} from "rxjs/Rx"; import {Observable} from "rxjs/Rx";
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import {SERVER_API_URL} from "../app.constants"; import {SERVER_API_URL, SERVER_API_URL_coms} from '../app.constants';
@Injectable() @Injectable()
export class LayoutService { export class LayoutService {
...@@ -10,11 +10,11 @@ export class LayoutService { ...@@ -10,11 +10,11 @@ export class LayoutService {
} }
getMenu(): Observable<any>{ getMenu(): Observable<any>{
return this.http.get(SERVER_API_URL + '/resources/getMenu'); return this.http.get(SERVER_API_URL_coms + '/resources/getMenu');
} }
getAllMenu(): Observable<any>{ getAllMenu(): Observable<any>{
return this.http.get(SERVER_API_URL + "/resources/getAll"); return this.http.get(SERVER_API_URL_coms + "/resources/getAll");
} }
} }
import { HttpClient } from "@angular/common/http"; import { HttpClient } from "@angular/common/http";
import {Observable} from "rxjs/Rx"; import {Observable} from "rxjs/Rx";
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import {SERVER_API_URL} from "../app.constants"; import {SERVER_API_URL_coms} from "../app.constants";
import {CommonService} from '../shared/common/common.service'; import {CommonService} from '../shared/common/common.service';
@Injectable() @Injectable()
...@@ -12,144 +12,144 @@ export class SystemService { ...@@ -12,144 +12,144 @@ export class SystemService {
//角色列表 //角色列表
role(): Observable<any>{ role(): Observable<any>{
return this.http.get(SERVER_API_URL + '/role/getAllRole'); return this.http.get(SERVER_API_URL_coms + '/role/getAllRole');
} }
//获取单个角色 //获取单个角色
getRole(params): Observable<any>{ getRole(params): Observable<any>{
return this.http.get(SERVER_API_URL + '/role/'+ params); return this.http.get(SERVER_API_URL_coms + '/role/'+ params);
} }
//编辑角色 //编辑角色
editRole(data): Observable<any>{ editRole(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/role/updateRole',data); return this.http.post(SERVER_API_URL_coms + '/role/updateRole',data);
} }
//新增角色 //新增角色
addRole(data): Observable<any>{ addRole(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/role/createRole',data); return this.http.post(SERVER_API_URL_coms + '/role/createRole',data);
} }
//删除用户 //删除用户
deleteRole(params): Observable<any>{ deleteRole(params): Observable<any>{
return this.http.get(SERVER_API_URL + '/role/deleteRoleById?' +this.commonSer.toQuery(params)); return this.http.get(SERVER_API_URL_coms + '/role/deleteRoleById?' +this.commonSer.toQuery(params));
} }
//用户列表 //用户列表
user(data): Observable<any>{ user(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/user/findUsers',data); return this.http.post(SERVER_API_URL_coms + '/user/findUsers',data);
} }
//新增用户 //新增用户
adduser(data): Observable<any>{ adduser(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/user',data); return this.http.post(SERVER_API_URL_coms + '/user',data);
} }
//删除用户 //删除用户
deleteUser(params){ deleteUser(params){
return this.http.delete(SERVER_API_URL + '/user/'+ params); return this.http.delete(SERVER_API_URL_coms + '/user/'+ params);
} }
//组织结构列表 /organization/updateOrganization //组织结构列表 /organization/updateOrganization
organization(): Observable<any>{ organization(): Observable<any>{
return this.http.get(SERVER_API_URL + '/organization/getAll',); return this.http.get(SERVER_API_URL_coms + '/organization/getAll',);
} }
//编辑组织 //编辑组织
updateOrganization(): Observable<any>{ updateOrganization(): Observable<any>{
return this.http.get(SERVER_API_URL + '/organization/updateOrganization',); return this.http.get(SERVER_API_URL_coms + '/organization/updateOrganization',);
} }
//创建组织结构 //创建组织结构
createOrg(data): Observable<any>{ createOrg(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/organization/createOrganization',data); return this.http.post(SERVER_API_URL_coms + '/organization/createOrganization',data);
} }
//三员分立列表 //三员分立列表
getSeparationConfig(): Observable<any>{ getSeparationConfig(): Observable<any>{
return this.http.get(SERVER_API_URL + '/separationConfig/getSeparationConfig',); return this.http.get(SERVER_API_URL_coms + '/separationConfig/getSeparationConfig',);
} }
//审计列表 //审计列表
logList(data): Observable<any>{ logList(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/log?'+this.commonSer.toQuery(data)); return this.http.get(SERVER_API_URL_coms + '/log?'+this.commonSer.toQuery(data));
} }
//对单一角色批量添加用户 //对单一角色批量添加用户
batchGrantUserToRole(data): Observable<any>{ batchGrantUserToRole(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/role/batchGrantUserToRole',data); return this.http.post(SERVER_API_URL_coms + '/role/batchGrantUserToRole',data);
} }
//对单一用户批量授权角色 //对单一用户批量授权角色
batchGrantRoleToUser(data): Observable<any>{ batchGrantRoleToUser(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/role/batchGrantRoleToUser',data); return this.http.post(SERVER_API_URL_coms + '/role/batchGrantRoleToUser',data);
} }
//查询三员分立是否开启 //查询三员分立是否开启
separationPowerStatus(): Observable<any>{ separationPowerStatus(): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/separationPowerStatus'); return this.http.get(SERVER_API_URL_coms + '/approval/separationPowerStatus');
} }
//修改三员分立状态 //修改三员分立状态
updateValue(data): Observable<any>{ updateValue(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/separationConfig/updateValue',data); return this.http.post(SERVER_API_URL_coms + '/separationConfig/updateValue',data);
} }
//获取当前登录人角色 //获取当前登录人角色
currentUserRoles(): Observable<any>{ currentUserRoles(): Observable<any>{
return this.http.get(SERVER_API_URL + '/role/currentUserRoles'); return this.http.get(SERVER_API_URL_coms + '/role/currentUserRoles');
} }
//单个用户角色获取 //单个用户角色获取
roleList(data): Observable<any>{ roleList(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/user/roleList?'+this.commonSer.toQuery(data) ); return this.http.get(SERVER_API_URL_coms + '/user/roleList?'+this.commonSer.toQuery(data) );
} }
//获取当前安全管理员已审批记录 //获取当前安全管理员已审批记录
approveListSafeManager(data): Observable<any>{ approveListSafeManager(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/approveListSafeManager?'+this.commonSer.toQuery(data) ); return this.http.get(SERVER_API_URL_coms + '/approval/approveListSafeManager?'+this.commonSer.toQuery(data) );
} }
//获取当前安全管理员未审批记录 //获取当前安全管理员未审批记录
unapproveListSafeManager(data): Observable<any>{ unapproveListSafeManager(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/unapproveListSafeManager?'+this.commonSer.toQuery(data) ); return this.http.get(SERVER_API_URL_coms + '/approval/unapproveListSafeManager?'+this.commonSer.toQuery(data) );
} }
//获取当前系统管理员的已审批记录 //获取当前系统管理员的已审批记录
approveListSystemManager(data): Observable<any>{ approveListSystemManager(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/approveListSystemManager?'+this.commonSer.toQuery(data) ); return this.http.get(SERVER_API_URL_coms + '/approval/approveListSystemManager?'+this.commonSer.toQuery(data) );
} }
//获取当前系统管理员的未审批记录 //获取当前系统管理员的未审批记录
unApproveListSystemManager(data): Observable<any>{ unApproveListSystemManager(data): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/unApproveListSystemManager?'+this.commonSer.toQuery(data) ); return this.http.get(SERVER_API_URL_coms + '/approval/unApproveListSystemManager?'+this.commonSer.toQuery(data) );
} }
//批量审批通过 //批量审批通过
approvalPass(data): Observable<any>{ approvalPass(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/approval/pass', data); return this.http.post(SERVER_API_URL_coms + '/approval/pass', data);
} }
//批量审批退回 //批量审批退回
approvalReject(data): Observable<any>{ approvalReject(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/approval/reject', data); return this.http.post(SERVER_API_URL_coms + '/approval/reject', data);
} }
//批量撤回审批 //批量撤回审批
approvalRemove(data): Observable<any>{ approvalRemove(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/approval/remove', data); return this.http.post(SERVER_API_URL_coms + '/approval/remove', data);
} }
approveList(): Observable<any>{ approveList(): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/approveList'); return this.http.get(SERVER_API_URL_coms + '/approval/approveList');
} }
unApproveList(): Observable<any>{ unApproveList(): Observable<any>{
return this.http.get(SERVER_API_URL + '/approval/unApproveList' ); return this.http.get(SERVER_API_URL_coms + '/approval/unApproveList' );
} }
//修改密码 //修改密码
modifyPassword(data): Observable<any>{ modifyPassword(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/modifyPassword',data ); return this.http.post(SERVER_API_URL_coms + '/modifyPassword',data );
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment