Commit af6dfca7 authored by wangqinghua's avatar wangqinghua

workService

parent 4a861be1
<!--处理人统计-->
<nz-spin [nzSpinning]="isLoading">
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>
</nz-spin>
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
<nz-tab nzTitle="接收流量排行">
<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">
<thead>
<tr>
<th nzWidth="20%">监测点名称</th>
<th>最大值</th>
<th>最小值</th>
<th>平均值</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let item of inList">
<tr (click)="getEcharts(item.itemid)">
<td>{{item.itemName}}</td>
<td>{{item.max | toUtil}}</td>
<td>{{item.min | toUtil}}</td>
<td>{{item.avg | toUtil}}</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
<nz-tab nzTitle="发送流量排行">
<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">
<thead>
<tr>
<th nzWidth="20%">监测点名称</th>
<th>最大值</th>
<th>最小值</th>
<th>平均值</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let data of outList">
<tr class="cursor" (click)="getEcharts(data.itemid)">
<td>{{data.itemName}}</td>
<td>{{data.max | toUtil}}</td>
<td>{{data.min | toUtil}}</td>
<td>{{data.avg | toUtil}}</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
<!--&lt;!&ndash;处理人统计&ndash;&gt;-->
<!--<nz-spin [nzSpinning]="isLoading">-->
<!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
<!--</nz-spin>-->
<!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<!--<nz-tab nzTitle="接收流量排行">-->
<!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->s
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let item of inList">-->
<!--<tr (click)="getEcharts(item.itemid)">-->
<!--<td>{{item.itemName}}</td>-->
<!--<td>{{item.max | toUtil}}</td>-->
<!--<td>{{item.min | toUtil}}</td>-->
<!--<td>{{item.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--<nz-tab nzTitle="发送流量排行">-->
<!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let data of outList">-->
<!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<!--<td>{{data.itemName}}</td>-->
<!--<td>{{data.max | toUtil}}</td>-->
<!--<td>{{data.min | toUtil}}</td>-->
<!--<td>{{data.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--</nz-tabset>-->
<!--事件分类统计-->
<nz-spin [nzSpinning]="isLoading">
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>
</nz-spin>
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
<nz-tab nzTitle="接收流量排行">
<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">
<thead>
<tr>
<th nzWidth="20%">监测点名称</th>
<th>最大值</th>
<th>最小值</th>
<th>平均值</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let item of inList">
<tr (click)="getEcharts(item.itemid)">
<td>{{item.itemName}}</td>
<td>{{item.max | toUtil}}</td>
<td>{{item.min | toUtil}}</td>
<td>{{item.avg | toUtil}}</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
<nz-tab nzTitle="发送流量排行">
<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">
<thead>
<tr>
<th nzWidth="20%">监测点名称</th>
<th>最大值</th>
<th>最小值</th>
<th>平均值</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let data of outList">
<tr class="cursor" (click)="getEcharts(data.itemid)">
<td>{{data.itemName}}</td>
<td>{{data.max | toUtil}}</td>
<td>{{data.min | toUtil}}</td>
<td>{{data.avg | toUtil}}</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
\ No newline at end of file
<!--&lt;!&ndash;事件分类统计&ndash;&gt;-->
<!--<nz-spin [nzSpinning]="isLoading">-->
<!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
<!--</nz-spin>-->
<!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<!--<nz-tab nzTitle="接收流量排行">-->
<!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let item of inList">-->
<!--<tr (click)="getEcharts(item.itemid)">-->
<!--<td>{{item.itemName}}</td>-->
<!--<td>{{item.max | toUtil}}</td>-->
<!--<td>{{item.min | toUtil}}</td>-->
<!--<td>{{item.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--<nz-tab nzTitle="发送流量排行">-->
<!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let data of outList">-->
<!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<!--<td>{{data.itemName}}</td>-->
<!--<td>{{data.max | toUtil}}</td>-->
<!--<td>{{data.min | toUtil}}</td>-->
<!--<td>{{data.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--</nz-tabset>-->
\ No newline at end of file
<!--解决状态统计-->
<nz-spin [nzSpinning]="isLoading">
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>
</nz-spin>
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
<nz-tab nzTitle="接收流量排行">
<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">
<thead>
<tr>
<th nzWidth="20%">监测点名称</th>
<th>最大值</th>
<th>最小值</th>
<th>平均值</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let item of inList">
<tr (click)="getEcharts(item.itemid)">
<td>{{item.itemName}}</td>
<td>{{item.max | toUtil}}</td>
<td>{{item.min | toUtil}}</td>
<td>{{item.avg | toUtil}}</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
<nz-tab nzTitle="发送流量排行">
<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">
<thead>
<tr>
<th nzWidth="20%">监测点名称</th>
<th>最大值</th>
<th>最小值</th>
<th>平均值</th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let data of outList">
<tr class="cursor" (click)="getEcharts(data.itemid)">
<td>{{data.itemName}}</td>
<td>{{data.max | toUtil}}</td>
<td>{{data.min | toUtil}}</td>
<td>{{data.avg | toUtil}}</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
\ No newline at end of file
<!--&lt;!&ndash;解决状态统计&ndash;&gt;-->
<!--<nz-spin [nzSpinning]="isLoading">-->
<!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
<!--</nz-spin>-->
<!--<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">-->
<!--<nz-tab nzTitle="接收流量排行">-->
<!--<nz-table #nzTable [nzData]="inList" [nzLoading]="inLoading" [nzFrontPagination]="false" [nzTotal]="inTotalNum" [nzPageIndex]="inPageNum" [nzPageSize]="inPageCount" (nzPageIndexChange)="inChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let item of inList">-->
<!--<tr (click)="getEcharts(item.itemid)">-->
<!--<td>{{item.itemName}}</td>-->
<!--<td>{{item.max | toUtil}}</td>-->
<!--<td>{{item.min | toUtil}}</td>-->
<!--<td>{{item.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--<nz-tab nzTitle="发送流量排行">-->
<!--<nz-table #nzTable [nzData]="outList" [nzLoading]="outLoading" [nzFrontPagination]="false" [nzTotal]="outTotalNum" [nzPageIndex]="outPageNum" [nzPageSize]="outPageCount" (nzPageIndexChange)="outChnagePage($event)">-->
<!--<thead>-->
<!--<tr>-->
<!--<th nzWidth="20%">监测点名称</th>-->
<!--<th>最大值</th>-->
<!--<th>最小值</th>-->
<!--<th>平均值</th>-->
<!--</tr>-->
<!--</thead>-->
<!--<tbody>-->
<!--<ng-container *ngFor="let data of outList">-->
<!--<tr class="cursor" (click)="getEcharts(data.itemid)">-->
<!--<td>{{data.itemName}}</td>-->
<!--<td>{{data.max | toUtil}}</td>-->
<!--<td>{{data.min | toUtil}}</td>-->
<!--<td>{{data.avg | toUtil}}</td>-->
<!--</tr>-->
<!--</ng-container>-->
<!--</tbody>-->
<!--</nz-table>-->
<!--</nz-tab>-->
<!--</nz-tabset>-->
\ No newline at end of file
......@@ -14,7 +14,7 @@
</nz-breadcrumb>
</div>
<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-arrows-alt"></i></button>
</div>
......
......@@ -16,6 +16,7 @@ export class ResourceAlarmComponent implements OnInit {
startTime;
endTime;
groupList;
isLoading = false;
obj = {
priority:"",
......@@ -23,6 +24,7 @@ export class ResourceAlarmComponent implements OnInit {
startTime:"",
endTime:"",
};
chartOption;
pageCount = pageSize;
pageNum = 1;
......
<!--资源可用性统计-->
<div nz-row class="breadcrumbs">
<div nz-col nzSpan="16">
<nz-breadcrumb class="padding-8-0">
<nz-breadcrumb-item>
首页
</nz-breadcrumb-item>
<nz-breadcrumb-item>
<a>统计分析</a>
</nz-breadcrumb-item>
<nz-breadcrumb-item>
资源可用性统计
</nz-breadcrumb-item>
</nz-breadcrumb>
</div>
<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-sync"></i></button>
<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>
</div>
</div>
<div nz-row [nzGutter]="4" class="search-form">
<div nz-col nzSpan="3">
<nz-select style="width: 100%;" nzPlaceHolder="选择分组" [(ngModel)]="obj.groupid" (ngModelChange)="getList()">
<ng-container *ngFor="let item of groupList">
<nz-option nzLabel="{{item.name}}" nzValue="{{item.groupid}}"></nz-option>
</ng-container>
</nz-select>
</div>
<div nz-col nzSpan="3">
<nz-select style="width: 100%;" nzPlaceHolder="选择主机资源" [(ngModel)]="obj.hostid" (ngModelChange)="getListIO()">
<ng-container *ngFor="let item of hostList;">
<nz-option nzLabel="{{item.name}}" nzValue="{{item.hostid}}"></nz-option>
</ng-container>
</nz-select>
</div>
<div nz-col nzSpan="7">
<nz-radio-group style="width: 100%;" [(ngModel)]="timeType" (ngModelChange)="changeType()" [nzButtonStyle]="'solid'">
<label nz-radio-button nzValue="1">今天</label>
<label nz-radio-button nzValue="2">昨天</label>
<label nz-radio-button nzValue="3">三天</label>
<label nz-radio-button nzValue="4">一周</label>
<label nz-radio-button nzValue="5">自定义</label>
</nz-radio-group>
</div>
<div nz-col nzSpan="8" *ngIf="timeType == '5'">
<nz-date-picker
nzShowTime
[(ngModel)]="startTime"
nzPlaceHolder="开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat="yyyy-MM-dd HH:mm:ss"
[(ngModel)]="endTime"
nzPlaceHolder="结束时间"
></nz-date-picker>
</div>
</div>
<nz-spin [nzSpinning]="isLoading">
<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>
</nz-spin>
<!--&lt;!&ndash;资源可用性统计&ndash;&gt;-->
<!--<div nz-row class="breadcrumbs">-->
<!--<div nz-col nzSpan="16">-->
<!--<nz-breadcrumb class="padding-8-0">-->
<!--<nz-breadcrumb-item>-->
<!--首页-->
<!--</nz-breadcrumb-item>-->
<!--<nz-breadcrumb-item>-->
<!--<a>统计分析</a>-->
<!--</nz-breadcrumb-item>-->
<!--<nz-breadcrumb-item>-->
<!--资源可用性统计-->
<!--</nz-breadcrumb-item>-->
<!--</nz-breadcrumb>-->
<!--</div>-->
<!--<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-sync"></i></button>-->
<!--<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>-->
<!--</div>-->
<!--</div>-->
<!--<div nz-row [nzGutter]="4" class="search-form">-->
<!--<div nz-col nzSpan="3">-->
<!--<nz-select style="width: 100%;" nzPlaceHolder="选择分组" [(ngModel)]="obj.groupid" (ngModelChange)="getList()">-->
<!--<ng-container *ngFor="let item of groupList">-->
<!--<nz-option nzLabel="{{item.name}}" nzValue="{{item.groupid}}"></nz-option>-->
<!--</ng-container>-->
<!--</nz-select>-->
<!--</div>-->
<!--<div nz-col nzSpan="3">-->
<!--<nz-select style="width: 100%;" nzPlaceHolder="选择主机资源" [(ngModel)]="obj.hostid" (ngModelChange)="getListIO()">-->
<!--<ng-container *ngFor="let item of hostList;">-->
<!--<nz-option nzLabel="{{item.name}}" nzValue="{{item.hostid}}"></nz-option>-->
<!--</ng-container>-->
<!--</nz-select>-->
<!--</div>-->
<!--<div nz-col nzSpan="7">-->
<!--<nz-radio-group style="width: 100%;" [(ngModel)]="timeType" (ngModelChange)="changeType()" [nzButtonStyle]="'solid'">-->
<!--<label nz-radio-button nzValue="1">今天</label>-->
<!--<label nz-radio-button nzValue="2">昨天</label>-->
<!--<label nz-radio-button nzValue="3">三天</label>-->
<!--<label nz-radio-button nzValue="4">一周</label>-->
<!--<label nz-radio-button nzValue="5">自定义</label>-->
<!--</nz-radio-group>-->
<!--</div>-->
<!--<div nz-col nzSpan="8" *ngIf="timeType == '5'">-->
<!--<nz-date-picker-->
<!--nzShowTime-->
<!--[(ngModel)]="startTime"-->
<!--nzPlaceHolder="开始时间"-->
<!--&gt;</nz-date-picker>-->
<!--<nz-date-picker-->
<!--nzShowTime-->
<!--nzFormat="yyyy-MM-dd HH:mm:ss"-->
<!--[(ngModel)]="endTime"-->
<!--nzPlaceHolder="结束时间"-->
<!--&gt;</nz-date-picker>-->
<!--</div>-->
<!--</div>-->
<!--<nz-spin [nzSpinning]="isLoading">-->
<!--<div echarts [options]="chartOption" style="height: 400px;width: 100%"></div>-->
<!--</nz-spin>-->
......@@ -4,6 +4,7 @@
export const VERSION = process.env.VERSION;
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 BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP;
export const pageSize = 25;
......
import { HttpClient } from "@angular/common/http";
import {Observable} from "rxjs/Rx";
import { Injectable } from '@angular/core';
import {SERVER_API_URL} from "../app.constants";
import {SERVER_API_URL, SERVER_API_URL_coms} from '../app.constants';
@Injectable()
export class LayoutService {
......@@ -10,11 +10,11 @@ export class LayoutService {
}
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>{
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 {Observable} from "rxjs/Rx";
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';
@Injectable()
......@@ -12,144 +12,144 @@ export class SystemService {
//角色列表
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>{
return this.http.get(SERVER_API_URL + '/role/'+ params);
return this.http.get(SERVER_API_URL_coms + '/role/'+ params);
}
//编辑角色
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>{
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>{
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>{
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>{
return this.http.post(SERVER_API_URL + '/user',data);
return this.http.post(SERVER_API_URL_coms + '/user',data);
}
//删除用户
deleteUser(params){
return this.http.delete(SERVER_API_URL + '/user/'+ params);
return this.http.delete(SERVER_API_URL_coms + '/user/'+ params);
}
//组织结构列表 /organization/updateOrganization
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>{
return this.http.get(SERVER_API_URL + '/organization/updateOrganization',);
return this.http.get(SERVER_API_URL_coms + '/organization/updateOrganization',);
}
//创建组织结构
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>{
return this.http.get(SERVER_API_URL + '/separationConfig/getSeparationConfig',);
return this.http.get(SERVER_API_URL_coms + '/separationConfig/getSeparationConfig',);
}
//审计列表
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>{
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>{
return this.http.post(SERVER_API_URL + '/role/batchGrantRoleToUser',data);
return this.http.post(SERVER_API_URL_coms + '/role/batchGrantRoleToUser',data);
}
//查询三员分立是否开启
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>{
return this.http.post(SERVER_API_URL + '/separationConfig/updateValue',data);
return this.http.post(SERVER_API_URL_coms + '/separationConfig/updateValue',data);
}
//获取当前登录人角色
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>{
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>{
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>{
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>{
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>{
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>{
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>{
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>{
return this.http.post(SERVER_API_URL + '/approval/remove', data);
return this.http.post(SERVER_API_URL_coms + '/approval/remove', data);
}
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>{
return this.http.get(SERVER_API_URL + '/approval/unApproveList' );
return this.http.get(SERVER_API_URL_coms + '/approval/unApproveList' );
}
//修改密码
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