Commit 9c5d2c6a authored by wangqinghua's avatar wangqinghua

bug update

parent 328dfc33
...@@ -55,9 +55,9 @@ Module ng g module my-module ...@@ -55,9 +55,9 @@ Module ng g module my-module
v2.0.1 修复选择节点之后 流量查询不出来 v2.0.1 修复选择节点之后 流量查询不出来
#上传文件到服务器 #上传文件到服务器
scp -r 22 build/master root@10.10.38.99:/home/nginx/www/ scp -r 22 build/master root@10.10.38.99:/home/nginx/www/ 监控2.0
scp -r 22 build/wx root@10.10.38.99:/home/nginx/html/www/ scp -r 22 build/wx root@10.10.38.99:/home/nginx/html/www/ 监控1.0
#git 命令: #git 命令:
创建分支 git checkout -b test 创建分支 git checkout -b test
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<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>
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
</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="变更级别" nzShowSearch [(ngModel)]="obj.type"> <nz-select style="width: 100%;" nzPlaceHolder="变更级别" nzShowSearch nzAllowClear [(ngModel)]="obj.type">
<ng-container *ngFor="let item of change_level"> <ng-container *ngFor="let item of change_level">
<nz-option [nzLabel]="item.label" [nzValue]="item.value"></nz-option> <nz-option [nzLabel]="item.label" [nzValue]="item.value"></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="变更类型" nzShowSearch [(ngModel)]="obj.classifyId"> <nz-select style="width: 100%;" nzPlaceHolder="变更类型" nzShowSearch nzAllowClear [(ngModel)]="obj.classifyId">
<ng-container *ngFor="let item of typeList"> <ng-container *ngFor="let item of typeList">
<nz-option [nzLabel]="item.label" [nzValue]="item.id"></nz-option> <nz-option [nzLabel]="item.label" [nzValue]="item.id"></nz-option>
</ng-container> </ng-container>
......
...@@ -179,6 +179,8 @@ import {BreadcrumbComponent} from './layouts/breadcrumb/breadcrumb.component'; ...@@ -179,6 +179,8 @@ import {BreadcrumbComponent} from './layouts/breadcrumb/breadcrumb.component';
import {EarlyWarningModule} from './early-warning/early-warning.module'; import {EarlyWarningModule} from './early-warning/early-warning.module';
import {InformationProjectModule} from './information-project/information-project.module'; import {InformationProjectModule} from './information-project/information-project.module';
import {NotationComponent} from './early-warning/modal/notation/notation.component'; import {NotationComponent} from './early-warning/modal/notation/notation.component';
import {LookCompanyComponent} from './project-manager/modal/look-company/look-company.component';
import {LookProjectComponent} from './project-manager/modal/look-project/look-project.component';
@NgModule({ @NgModule({
imports: [ imports: [
...@@ -352,6 +354,8 @@ import {NotationComponent} from './early-warning/modal/notation/notation.compone ...@@ -352,6 +354,8 @@ import {NotationComponent} from './early-warning/modal/notation/notation.compone
OnlineWorkModalComponent, OnlineWorkModalComponent,
VideoMeetModalComponent, VideoMeetModalComponent,
BreadcrumbComponent, BreadcrumbComponent,
LookCompanyComponent,
LookProjectComponent,
], ],
providers: [ providers: [
OverAllService, OverAllService,
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</nz-card> </nz-card>
</div> </div>
</div> </div>
<div class="padding-15-0 text-center"> <div class="padding-15-0 text-center" *ngIf="modal.type == 'add'">
<button nz-button [nzLoading]="modal.isOkLoading" (click)="saveNotation()" nzType="primary">保存</button> <button nz-button [nzLoading]="modal.isOkLoading" (click)="saveNotation()" nzType="primary">保存</button>
<button nz-button (click)="handleCancel()" nzType="primary">取消</button> <button nz-button (click)="handleCancel()" nzType="primary">取消</button>
</div> </div>
......
...@@ -37,6 +37,7 @@ export class NotationComponent implements OnInit { ...@@ -37,6 +37,7 @@ export class NotationComponent implements OnInit {
this.modal.isVisible = true; this.modal.isVisible = true;
this.modal.type = 'add'; this.modal.type = 'add';
this.msgId = item.id; this.msgId = item.id;
this.smartWarningTrackInfo.outGet(item.id);
this.getDetail(); this.getDetail();
} }
...@@ -45,6 +46,7 @@ export class NotationComponent implements OnInit { ...@@ -45,6 +46,7 @@ export class NotationComponent implements OnInit {
this.modal.isVisible = true; this.modal.isVisible = true;
this.modal.type = 'look'; this.modal.type = 'look';
this.msgId = item.id; this.msgId = item.id;
this.smartWarningTrackInfo.outGet(item.id);
this.getDetail(); this.getDetail();
} }
...@@ -92,6 +94,7 @@ export class NotationComponent implements OnInit { ...@@ -92,6 +94,7 @@ export class NotationComponent implements OnInit {
this.modal.isOkLoading = false; this.modal.isOkLoading = false;
this.modal.isVisible = false; this.modal.isVisible = false;
this.newestRemark = ''; this.newestRemark = '';
this.tabNum = 0;
} }
//切换tab //切换tab
......
...@@ -6,13 +6,14 @@ ...@@ -6,13 +6,14 @@
<p>基本信息</p> <p>基本信息</p>
<form nz-form [formGroup]="validateForm"> <form nz-form [formGroup]="validateForm">
<nz-form-item nzFlex> <nz-form-item nzFlex>
<nz-form-label [nzSpan]="6" nzFor="name">规则名称 <nz-form-label [nzSpan]="6" nzRequired nzFor="name">规则名称
</nz-form-label> </nz-form-label>
<nz-form-control [nzSpan]="18"> <nz-form-control [nzSpan]="18">
<input id="name" placeholder="规则名称" name="name" <input id="name" placeholder="规则名称" name="name"
type="text" type="text"
nz-input nz-input
formControlName="name"> formControlName="name">
<nz-form-explain *ngIf="validateForm.get('name').dirty && validateForm.get('name').errors">请输入规则名称</nz-form-explain>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item nzFlex> <nz-form-item nzFlex>
......
...@@ -83,6 +83,13 @@ export class WarngingRuleComponent implements OnInit { ...@@ -83,6 +83,13 @@ export class WarngingRuleComponent implements OnInit {
//添加批注 //添加批注
saveNotation() { saveNotation() {
for (let i in this.validateForm.controls) {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
if (this.validateForm.invalid) {
return false;
}
this.modal.isOkLoading = true; this.modal.isOkLoading = true;
this.earlySer.addWarningRule(this.validateForm.value).subscribe( this.earlySer.addWarningRule(this.validateForm.value).subscribe(
(res) => { (res) => {
......
...@@ -8,8 +8,6 @@ import {NzMessageService} from 'ng-zorro-antd'; ...@@ -8,8 +8,6 @@ import {NzMessageService} from 'ng-zorro-antd';
styles: [] styles: []
}) })
export class WarningTrackInfoComponent implements OnInit { export class WarningTrackInfoComponent implements OnInit {
@Input() msgId;
@Input() title; @Input() title;
warnList = []; warnList = [];
...@@ -20,6 +18,7 @@ export class WarningTrackInfoComponent implements OnInit { ...@@ -20,6 +18,7 @@ export class WarningTrackInfoComponent implements OnInit {
totalNum: 0, totalNum: 0,
loading: false, loading: false,
}; };
msgId;
constructor(public warningSer: EarlyWarningService, public message: NzMessageService, constructor(public warningSer: EarlyWarningService, public message: NzMessageService,
) { ) {
...@@ -29,8 +28,9 @@ export class WarningTrackInfoComponent implements OnInit { ...@@ -29,8 +28,9 @@ export class WarningTrackInfoComponent implements OnInit {
this.getList() this.getList()
} }
outGet() { outGet(id) {
this.page.pageNum = 1; this.page.pageNum = 1;
this.msgId = id;
this.getList(); this.getList();
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</button> </button>
</div> </div>
<div nz-col nzSpan="5"> <div nz-col nzSpan="5">
<input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.keyword" placeholder="预警名称、预警内容、触发规则、创建人"> <input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.keyword" placeholder="预警名称、预警内容、创建人">
</div> </div>
<div nz-col nzSpan="2"> <div nz-col nzSpan="2">
<button (click)="search()" <button (click)="search()"
......
...@@ -140,20 +140,18 @@ ...@@ -140,20 +140,18 @@
[nzLoading]="loading.spareLoading"> [nzLoading]="loading.spareLoading">
<thead> <thead>
<tr> <tr>
<th>编号</th> <th>备件编号</th>
<th nzWidth="30%">名称</th> <th nzWidth="30%">备件名称</th>
<th>品牌</th> <th>所属类型</th>
<th>型号</th> <th>归属项目</th>
<th>序列号</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let data of nzTable4.data"> <tr *ngFor="let data of nzTable4.data">
<td>{{data.versionNo}}</td> <td>{{data.inventoryNo}}</td>
<td>{{data.name}}</td> <td>{{data.inventoryName}}</td>
<td>{{data.brand}}</td> <td>{{data.inventoryType}}</td>
<td>{{data.model}}</td> <td>{{data.belongObject}}</td>
<td>{{data.serialNo}}</td>
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="name">公司名称</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="name">公司名称</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="name" id="name" placeholder="公司名称"> <input nz-input formControlName="name" id="name" placeholder="公司名称">
<nz-form-explain *ngIf="validateForm.get('name').dirty && validateForm.get('name').errors"> <nz-form-explain *ngIf="validateForm.get('name').dirty && validateForm.get('name').errors">
请输入公司名称 请输入公司名称
</nz-form-explain> </nz-form-explain>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="principal">维护负责人</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="principal">维护负责人</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="principal" id="principal" placeholder="维护负责人"> <input nz-input formControlName="principal" id="principal" placeholder="维护负责人">
<nz-form-explain *ngIf="validateForm.get('principal').dirty && validateForm.get('principal').errors"> <nz-form-explain *ngIf="validateForm.get('principal').dirty && validateForm.get('principal').errors">
请输入维护负责人 请输入维护负责人
</nz-form-explain> </nz-form-explain>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="phone">联系电话1</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="phone">联系电话1</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="phone" id="phone" placeholder="联系电话"> <input nz-input formControlName="phone" id="phone" placeholder="联系电话">
<nz-form-explain *ngIf="validateForm.get('phone').dirty && validateForm.get('phone').errors">手机号码错误! <nz-form-explain *ngIf="validateForm.get('phone').dirty && validateForm.get('phone').errors">手机号码错误!
</nz-form-explain> </nz-form-explain>
</nz-form-control> </nz-form-control>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="phone2">联系电话2</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="phone2">联系电话2</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="phone2" id="phone2" placeholder="联系电话"> <input nz-input formControlName="phone2" id="phone2" placeholder="联系电话">
<nz-form-explain *ngIf="validateForm.get('phone2').dirty && validateForm.get('phone2').errors">手机号码错误! <nz-form-explain *ngIf="validateForm.get('phone2').dirty && validateForm.get('phone2').errors">手机号码错误!
</nz-form-explain> </nz-form-explain>
</nz-form-control> </nz-form-control>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="type">维护类型</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="type">维护类型</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<nz-select name="type" formControlName="type" id="type" nzPlaceHolder="选择设备类型"> <nz-select name="type" formControlName="type" id="type" nzPlaceHolder="选择设备类型">
<ng-container *ngFor="let item of opr_company_type"> <ng-container *ngFor="let item of opr_company_type">
<nz-option [nzLabel]="item.label" [nzValue]="item.value"></nz-option> <nz-option [nzLabel]="item.label" [nzValue]="item.value"></nz-option>
</ng-container> </ng-container>
...@@ -50,19 +50,7 @@ ...@@ -50,19 +50,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="description">职责描述</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="description">职责描述</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<textarea formControlName="description" nz-input rows="2" placeholder="职责描述"></textarea> <textarea formControlName="description" nz-input rows="2" placeholder="职责描述"></textarea>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="group">相关附件</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24">
<nz-upload
[nzBeforeUpload]="beforeUpload"
[(nzFileList)]="fileList">
<button nz-button>
<i class="anticon anticon-upload"></i><span>上传</span>
</button>
</nz-upload>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
</form> </form>
......
...@@ -32,6 +32,7 @@ export class CreateCompanyComponent implements OnInit { ...@@ -32,6 +32,7 @@ export class CreateCompanyComponent implements OnInit {
opr_company_type = opr_company_type; opr_company_type = opr_company_type;
cID; cID;
type = '';
constructor(private fb: FormBuilder, private systemSer: SystemService, constructor(private fb: FormBuilder, private systemSer: SystemService,
private message: NzMessageService, private projectSer: ProjectService) { private message: NzMessageService, private projectSer: ProjectService) {
...@@ -68,6 +69,13 @@ export class CreateCompanyComponent implements OnInit { ...@@ -68,6 +69,13 @@ export class CreateCompanyComponent implements OnInit {
this.validateForm.patchValue(data); this.validateForm.patchValue(data);
} }
showLookModal(data) {
this.isVisible = true;
this.title = data.name;
this.type = 'look';
this.validateForm.patchValue(data);
}
handleCancel() { handleCancel() {
this.isVisible = false; this.isVisible = false;
this.initForm(); this.initForm();
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="name">项目名称</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="name">项目名称</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="name" id="name" placeholder="项目名称"> <input nz-input formControlName="name" id="name" placeholder="项目名称">
<nz-form-explain *ngIf="validateForm.get('name').dirty && validateForm.get('name').errors"> <nz-form-explain *ngIf="validateForm.get('name').dirty && validateForm.get('name').errors">
请输入项目名称 请输入项目名称
</nz-form-explain> </nz-form-explain>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="type">项目类型</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="type">项目类型</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<nz-select name="type" formControlName="type" id="type" nzPlaceHolder="项目类型"> <nz-select name="type" formControlName="type" id="type" nzPlaceHolder="项目类型">
<ng-container *ngFor="let item of opr_company_type"> <ng-container *ngFor="let item of opr_company_type">
<nz-option [nzLabel]="item.label" [nzValue]="item.value"></nz-option> <nz-option [nzLabel]="item.label" [nzValue]="item.value"></nz-option>
</ng-container> </ng-container>
...@@ -26,15 +26,15 @@ ...@@ -26,15 +26,15 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="officeName">项目单位</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="officeName">项目单位</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="officeName" id="officeName" placeholder="项目名称"> <input nz-input formControlName="officeName" id="officeName" placeholder="项目名称">
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="companyName">乙方名称</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="companyName">乙方名称</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input disabled nz-input formControlName="companyName" style="width: 85%;display: inline-block" <input disabled nz-input formControlName="companyName" style="width: 85%;display: inline-block"
placeholder="项目名称" id="companyName"> placeholder="乙方名称" id="companyName">
<button nz-button nzType="primary" (click)="showProjectmodal()">选择</button> <button *ngIf="type != 'look'" nz-button nzType="primary" (click)="showProjectmodal()">选择</button>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <nz-form-item>
...@@ -58,13 +58,13 @@ ...@@ -58,13 +58,13 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="amount">项目金额</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="amount">项目金额</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="amount" id="amount" placeholder="项目金额"> <input nz-input formControlName="amount" id="amount" placeholder="项目金额">
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="officePrincipal">单位负责人</nz-form-label> <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="officePrincipal">单位负责人</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24"> <nz-form-control [nzSm]="14" [nzXs]="24">
<input nz-input formControlName="officePrincipal" placeholder="单位负责人" id="officePrincipal"> <input nz-input formControlName="officePrincipal" placeholder="单位负责人" id="officePrincipal">
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <nz-form-item>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<input disabled nz-input formControlName="bprincipalName" <input disabled nz-input formControlName="bprincipalName"
style="width: 85%;display: inline-block" style="width: 85%;display: inline-block"
id="bprincipalName" placeholder="乙方维护组长"> id="bprincipalName" placeholder="乙方维护组长">
<button nz-button nzType="primary" (click)="showSelectPeople()">选择</button> <button *ngIf="type != 'look'" nz-button nzType="primary" (click)="showSelectPeople()">选择</button>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
</form> </form>
......
...@@ -14,9 +14,9 @@ import {WorkService} from '../../../work/work.service'; ...@@ -14,9 +14,9 @@ import {WorkService} from '../../../work/work.service';
selector: 'smart-create-project', selector: 'smart-create-project',
templateUrl: './create-project.component.html', templateUrl: './create-project.component.html',
styles: [ styles: [
` `
:host ::ng-deep .ant-input-disabled{ :host ::ng-deep .ant-input-disabled {
color: rgba(0,0,0,.65); color: rgba(0, 0, 0, .65);
background-color: #fff; background-color: #fff;
} }
` `
...@@ -39,9 +39,10 @@ export class CreateProjectComponent implements OnInit { ...@@ -39,9 +39,10 @@ export class CreateProjectComponent implements OnInit {
opr_company_type = project_type; opr_company_type = project_type;
cID; cID;
type = '';
constructor(private fb: FormBuilder, private systemSer: SystemService, constructor(private fb: FormBuilder, private systemSer: SystemService,
private workSer:WorkService, private workSer: WorkService,
private message: NzMessageService, private projectSer: ProjectService) { private message: NzMessageService, private projectSer: ProjectService) {
} }
...@@ -84,6 +85,13 @@ export class CreateProjectComponent implements OnInit { ...@@ -84,6 +85,13 @@ export class CreateProjectComponent implements OnInit {
this.validateForm.patchValue(data); this.validateForm.patchValue(data);
} }
showLookModal(data) {
this.isVisible = true;
this.title = data.name;
this.type = 'look';
this.validateForm.patchValue(data);
}
handleCancel() { handleCancel() {
this.isVisible = false; this.isVisible = false;
this.isOkLoading = false; this.isOkLoading = false;
...@@ -182,7 +190,7 @@ export class CreateProjectComponent implements OnInit { ...@@ -182,7 +190,7 @@ export class CreateProjectComponent implements OnInit {
this.message.info('请选择乙方公司'); this.message.info('请选择乙方公司');
return; return;
} }
this.smartTeamModal.showModal(this.validateForm.value.companyId,'乙方维护组长'); this.smartTeamModal.showModal(this.validateForm.value.companyId, '乙方维护组长');
} }
setPeople(e) { setPeople(e) {
......
...@@ -65,11 +65,13 @@ ...@@ -65,11 +65,13 @@
<td>{{data.projectNum}}</td> <td>{{data.projectNum}}</td>
<td>{{data.totalAmount}}</td> <td>{{data.totalAmount}}</td>
<td class="handle main-color"> <td class="handle main-color">
<span (click)="handleEditModa(data)">编辑</span> <span (click)="handleLook(data)">查看</span>
<span (click)="handleDelete(data)">删除</span> <span *ngIf="userId == data.createUserId" (click)="handleEditModa(data)">编辑</span>
<span *ngIf="userId == data.createUserId" (click)="handleDelete(data)">删除</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>
<smart-create-company #smartCreateCompany (done)="getList()"></smart-create-company> <smart-create-company #smartCreateCompany (done)="getList()"></smart-create-company>
<smart-look-company #smartLookCompany></smart-look-company>
...@@ -8,6 +8,8 @@ import {Router} from '@angular/router'; ...@@ -8,6 +8,8 @@ import {Router} from '@angular/router';
import {CommonService} from '../../shared/common/common.service'; import {CommonService} from '../../shared/common/common.service';
import {DatePipe} from '@angular/common'; import {DatePipe} from '@angular/common';
import {CreateCompanyComponent} from '../modal/create-company/create-company.component'; import {CreateCompanyComponent} from '../modal/create-company/create-company.component';
import {LocalStorageService} from 'ngx-webstorage';
import {LookCompanyComponent} from '../modal/look-company/look-company.component';
@Component({ @Component({
selector: 'app-opr-company', selector: 'app-opr-company',
...@@ -17,6 +19,7 @@ import {CreateCompanyComponent} from '../modal/create-company/create-company.com ...@@ -17,6 +19,7 @@ import {CreateCompanyComponent} from '../modal/create-company/create-company.com
export class OprCompanyComponent implements OnInit { export class OprCompanyComponent implements OnInit {
@ViewChild('smartCreateCompany') smartCreateCompany: CreateCompanyComponent; @ViewChild('smartCreateCompany') smartCreateCompany: CreateCompanyComponent;
@ViewChild('smartLookCompany') smartLookCompany: LookCompanyComponent;
companyType = [{label: '全部', value: null}, ...opr_company_type]; companyType = [{label: '全部', value: null}, ...opr_company_type];
page = { page = {
...@@ -31,12 +34,15 @@ export class OprCompanyComponent implements OnInit { ...@@ -31,12 +34,15 @@ export class OprCompanyComponent implements OnInit {
name: '', name: '',
type: null type: null
}; };
userId;
constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService, constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService,
private $localStorage: LocalStorageService,
private router: Router, private commonSer: CommonService, private datePipe: DatePipe) { private router: Router, private commonSer: CommonService, private datePipe: DatePipe) {
} }
ngOnInit() { ngOnInit() {
this.userId = this.$localStorage.retrieve('userInfo').userId;
this.getList(); this.getList();
} }
...@@ -61,7 +67,7 @@ export class OprCompanyComponent implements OnInit { ...@@ -61,7 +67,7 @@ export class OprCompanyComponent implements OnInit {
//翻页 //翻页
change(e) { change(e) {
if(e > 0){ if (e > 0) {
this.page.pageNum = e; this.page.pageNum = e;
this.getList(); this.getList();
} }
...@@ -82,21 +88,26 @@ export class OprCompanyComponent implements OnInit { ...@@ -82,21 +88,26 @@ export class OprCompanyComponent implements OnInit {
this.smartCreateCompany.showEditModal(item, '编辑运维公司'); this.smartCreateCompany.showEditModal(item, '编辑运维公司');
} }
//查看
handleLook(item){
this.smartLookCompany.showModal(item);
}
//删除 //删除
handleDelete(item){ handleDelete(item) {
this.commonSer.confirmThing('删除',"确定删除该公司?",()=>{ this.commonSer.confirmThing('删除', '确定删除该公司?', () => {
const data = { const data = {
id:item.id id: item.id
}; };
this.projectSer.deleteMaintainCompany(data).subscribe( this.projectSer.deleteMaintainCompany(data).subscribe(
(res)=>{ (res) => {
if(res.errCode == 10000){ if (res.errCode == 10000) {
this.message.success('删除成功!'); this.message.success('删除成功!');
this.getList(); this.getList();
} }
} }
) );
}) });
} }
} }
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
[nzValue]="item.value">{{item.label}}</label> [nzValue]="item.value">{{item.label}}</label>
</nz-radio-group> </nz-radio-group>
</div> </div>
<div nz-col nzSpan="6"> <div nz-col nzSpan="8">
<ng-container *ngIf="time.type == '7'"> <ng-container *ngIf="time.type == '99'">
<nz-date-picker <nz-date-picker
[nzFormat]="timeFormat" [nzFormat]="timeFormat"
[(ngModel)]="time.startTime" [(ngModel)]="time.startTime"
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<td>{{data.othernum}}项/{{data.othermoney}}元</td> <td>{{data.othernum}}项/{{data.othermoney}}元</td>
<td class="handle main-color"> <td class="handle main-color">
<span (click)="lookCostModal(data)">查看</span> <span (click)="lookCostModal(data)">查看</span>
<span (click)="handleDelete(data)">删除</span> <span *ngIf="userId == data.createUserId" (click)="handleDelete(data)">删除</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -8,6 +8,7 @@ import {Router} from '@angular/router'; ...@@ -8,6 +8,7 @@ import {Router} from '@angular/router';
import {CommonService} from '../../shared/common/common.service'; import {CommonService} from '../../shared/common/common.service';
import {DatePipe} from '@angular/common'; import {DatePipe} from '@angular/common';
import {CostModalComponent} from '../modal/cost-modal/cost-modal.component'; import {CostModalComponent} from '../modal/cost-modal/cost-modal.component';
import {LocalStorageService} from 'ngx-webstorage';
@Component({ @Component({
selector: 'app-opr-cost', selector: 'app-opr-cost',
...@@ -42,12 +43,15 @@ export class OprCostComponent implements OnInit { ...@@ -42,12 +43,15 @@ export class OprCostComponent implements OnInit {
startTime: null, //开始时间 startTime: null, //开始时间
endTime: null //结束时间 endTime: null //结束时间
}; };
userId;
constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService, constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService,
private $localStorage: LocalStorageService,
private router: Router, private commonSer: CommonService, private datePipe: DatePipe) { private router: Router, private commonSer: CommonService, private datePipe: DatePipe) {
} }
ngOnInit() { ngOnInit() {
this.userId = this.$localStorage.retrieve('userInfo').userId;
this.getList(); this.getList();
} }
...@@ -79,7 +83,7 @@ export class OprCostComponent implements OnInit { ...@@ -79,7 +83,7 @@ export class OprCostComponent implements OnInit {
} }
changeTimeType() { changeTimeType() {
if (this.time.type == '7') return; if (this.time.type == '99') return;
this.obj.startTime = this.commonSer.getTimeByType(this.time.type).startTime; this.obj.startTime = this.commonSer.getTimeByType(this.time.type).startTime;
this.obj.endTime = this.commonSer.getTimeByType(this.time.type).endTime; this.obj.endTime = this.commonSer.getTimeByType(this.time.type).endTime;
console.log(this.obj); console.log(this.obj);
...@@ -90,6 +94,10 @@ export class OprCostComponent implements OnInit { ...@@ -90,6 +94,10 @@ export class OprCostComponent implements OnInit {
//搜索 //搜索
search() { search() {
this.page.pageNum = 1; this.page.pageNum = 1;
if (this.time.type == '99') {
this.obj.startTime = this.datePipe.transform(this.time.startTime, 'yyyy-MM-dd') +' 00:00:00';
this.obj.endTime = this.datePipe.transform(this.time.endTime, 'yyyy-MM-dd') +' 23:59:59';
}
this.getList(); this.getList();
} }
......
...@@ -97,11 +97,12 @@ ...@@ -97,11 +97,12 @@
</td> </td>
<td>{{data.amount}}</td> <td>{{data.amount}}</td>
<td class="handle main-color"> <td class="handle main-color">
<span (click)="handleEdit(data)">编辑</span> <span (click)="handleLook(data)">查看</span>
<span (click)="handleDelete(data)">删除</span> <span *ngIf="userId == data.createUserId" (click)="handleEdit(data)">编辑</span>
<span *ngIf="userId == data.createUserId" (click)="handleDelete(data)">删除</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>
<smart-look-project #smartLookProject></smart-look-project>
<smart-create-project #smartCreateProject (done)="getList()"></smart-create-project> <smart-create-project #smartCreateProject (done)="getList()"></smart-create-project>
...@@ -11,6 +11,8 @@ import {DatePipe} from '@angular/common'; ...@@ -11,6 +11,8 @@ import {DatePipe} from '@angular/common';
import {ProjectService} from '../project.service'; import {ProjectService} from '../project.service';
import {project_status} from '../project.constants'; import {project_status} from '../project.constants';
import {CreateProjectComponent} from '../modal/create-project/create-project.component'; import {CreateProjectComponent} from '../modal/create-project/create-project.component';
import {LocalStorageService} from 'ngx-webstorage';
import {LookProjectComponent} from '../modal/look-project/look-project.component';
@Component({ @Component({
selector: 'app-opr-project', selector: 'app-opr-project',
...@@ -19,6 +21,7 @@ import {CreateProjectComponent} from '../modal/create-project/create-project.com ...@@ -19,6 +21,7 @@ import {CreateProjectComponent} from '../modal/create-project/create-project.com
}) })
export class OprProjectComponent implements OnInit { export class OprProjectComponent implements OnInit {
@ViewChild('smartCreateProject') smartCreateProject: CreateProjectComponent; @ViewChild('smartCreateProject') smartCreateProject: CreateProjectComponent;
@ViewChild('smartLookProject') smartLookProject: LookProjectComponent;
timeFormat = 'yyyy'; timeFormat = 'yyyy';
...@@ -41,12 +44,15 @@ export class OprProjectComponent implements OnInit { ...@@ -41,12 +44,15 @@ export class OprProjectComponent implements OnInit {
}; };
yearList = []; yearList = [];
userId;
constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService, constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService,
private $localStorage:LocalStorageService,
private router: Router, private commonSer: CommonService, private datePipe: DatePipe) { private router: Router, private commonSer: CommonService, private datePipe: DatePipe) {
} }
ngOnInit() { ngOnInit() {
this.userId = this.$localStorage.retrieve('userInfo').userId;
let nowYear = new Date().getFullYear(); let nowYear = new Date().getFullYear();
for (let i = nowYear; i > 2000; i--) { for (let i = nowYear; i > 2000; i--) {
const y = { const y = {
...@@ -88,8 +94,6 @@ export class OprProjectComponent implements OnInit { ...@@ -88,8 +94,6 @@ export class OprProjectComponent implements OnInit {
//搜索 //搜索
search() { search() {
this.page.pageNum = 1; this.page.pageNum = 1;
// this.obj.startTime = this.datePipe.transform(this.startTime, 'yyyy-MM-dd HH:mm:ss');
// this.obj.endTime = this.datePipe.transform(this.endTime, 'yyyy-MM-dd HH:mm:ss');
this.getList(); this.getList();
} }
...@@ -103,6 +107,11 @@ export class OprProjectComponent implements OnInit { ...@@ -103,6 +107,11 @@ export class OprProjectComponent implements OnInit {
this.smartCreateProject.showEditModal(data, '编辑运维项目'); this.smartCreateProject.showEditModal(data, '编辑运维项目');
} }
//查看
handleLook(data){
this.smartLookProject.showModal(data);
}
//删除 //删除
handleDelete(item){ handleDelete(item){
this.commonSer.confirmThing('删除',"确定删除该项目?",()=>{ this.commonSer.confirmThing('删除',"确定删除该项目?",()=>{
......
...@@ -63,9 +63,10 @@ ...@@ -63,9 +63,10 @@
<td>{{data.projectName}}</td> <td>{{data.projectName}}</td>
<td>{{data.principal}}</td> <td>{{data.principal}}</td>
<td class="handle main-color"> <td class="handle main-color">
<span (click)="handleEdit(data)">更新团队信息</span> <span>查看</span>
<span (click)="handleUpdateTeam(data)">编辑团队成员</span> <span *ngIf="userId == data.createUserId" (click)="handleEdit(data)">更新团队信息</span>
<span (click)="handleDelete(data)">删除</span> <span *ngIf="userId == data.createUserId" (click)="handleUpdateTeam(data)">编辑团队成员</span>
<span *ngIf="userId == data.createUserId" (click)="handleDelete(data)">删除</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -10,6 +10,7 @@ import {DatePipe} from '@angular/common'; ...@@ -10,6 +10,7 @@ import {DatePipe} from '@angular/common';
import {CreateTeamComponent} from '../modal/create-team/create-team.component'; import {CreateTeamComponent} from '../modal/create-team/create-team.component';
import {TeamPeopleComponent} from '../modal/team-people/team-people.component'; import {TeamPeopleComponent} from '../modal/team-people/team-people.component';
import {TeamModalComponent} from '../modal/team-modal/team-modal.component'; import {TeamModalComponent} from '../modal/team-modal/team-modal.component';
import {LocalStorageService} from 'ngx-webstorage';
@Component({ @Component({
selector: 'app-opr-team', selector: 'app-opr-team',
...@@ -33,12 +34,15 @@ export class OprTeamComponent implements OnInit { ...@@ -33,12 +34,15 @@ export class OprTeamComponent implements OnInit {
name: '', name: '',
type: null type: null
}; };
userId;
constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService, constructor(private workSer: WorkService, private message: NzMessageService, private projectSer: ProjectService,
private $localStorage:LocalStorageService,
private router: Router, private commonSer: CommonService, private datePipe: DatePipe) { private router: Router, private commonSer: CommonService, private datePipe: DatePipe) {
} }
ngOnInit() { ngOnInit() {
this.userId = this.$localStorage.retrieve('userInfo').userId;
this.getList(); this.getList();
} }
......
...@@ -41,7 +41,7 @@ export const opr_time_type = [ ...@@ -41,7 +41,7 @@ export const opr_time_type = [
{value: '4', label: '本周'}, {value: '4', label: '本周'},
{value: '5', label: '本月'}, {value: '5', label: '本月'},
{value: '6', label: '本年'}, {value: '6', label: '本年'},
{value: '7', label: '自定义'}, {value: '99', label: '自定义'},
]; ];
//人员职称 //人员职称
......
...@@ -111,13 +111,8 @@ export class ProjectService { ...@@ -111,13 +111,8 @@ export class ProjectService {
} }
//查询运维项目数量 //查询运维项目数量
selectProjectCount(data): Observable<any> { selectProjectCount(params): Observable<any> {
return this.http.post(SERVER_API_URL + '/maintainProject/selectProjectCount', data); return this.http.get(SERVER_API_URL + '/maintainProject/selectProjectCount/' + params);
}
//跟踪记录查询
selectProjectCount1(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/maintainProject/selectProjectCount', data);
} }
//费用记录 //费用记录
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<th>提交时间</th> <th>提交时间</th>
<th>负责人</th> <th>负责人</th>
<th>变更级别</th> <th>变更级别</th>
<th>变更内容</th> <th nzWidth="20%">变更内容</th>
<th>审核人</th> <th>审核人</th>
<th>审核意见</th> <th>审核意见</th>
<th>状态</th> <th>状态</th>
...@@ -114,8 +114,7 @@ ...@@ -114,8 +114,7 @@
<span (click)="showChangeModal(data)" *ngIf="(data.status == 2 && userInfo.userId == data.verifyUserId)">审核</span> <span (click)="showChangeModal(data)" *ngIf="(data.status == 2 && userInfo.userId == data.verifyUserId)">审核</span>
<span (click)="showChangeModal(data)" *ngIf="data.status == 6">处理</span> <span (click)="showChangeModal(data)" *ngIf="data.status == 6">处理</span>
<span class="handle-delete" (click)="deleteChange(data)" <span class="handle-delete" (click)="deleteChange(data)"
*ngIf="data.status == 1 || data.status == 2 || data.status == 6 || data.status == 3 >删除</span>
|| data.status == 4 || data.status == 7">删除</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -67,7 +67,7 @@ export class GroupModalComponent implements OnInit { ...@@ -67,7 +67,7 @@ export class GroupModalComponent implements OnInit {
} }
this.isOkLoading = true; this.isOkLoading = true;
if(this.title == "新增部门"){ if(this.title == "新增部门"){
// this.create(); this.create();
} }
if(this.title == "编辑部门"){ if(this.title == "编辑部门"){
this.update(); this.update();
......
...@@ -105,14 +105,24 @@ ...@@ -105,14 +105,24 @@
<div nz-col nzSpan="4">关联费用</div> <div nz-col nzSpan="4">关联费用</div>
<div nz-col nzSpan="1"></div> <div nz-col nzSpan="1"></div>
<div nz-col nzSpan="19"> <div nz-col nzSpan="19">
<p class="margin-bottom-10" *ngFor="let item of event?.eventCostList;let i = index">
<span class="margin-right-5">
<ng-container *ngIf="item.costTypeId == '0'">委外费用</ng-container>
<ng-container *ngIf="item.costTypeId == '1'">物料费用</ng-container>
<ng-container *ngIf="item.costTypeId == '2'">其他</ng-container>
</span>
<span class="margin-right-5">{{item.amount}}</span>
</p>
</div> </div>
</div> </div>
<div nz-row> <div nz-row>
<div nz-col nzSpan="4">违规通报</div> <div nz-col nzSpan="4">违规通报</div>
<div nz-col nzSpan="1"></div> <div nz-col nzSpan="1"></div>
<div nz-col nzSpan="19"> <div nz-col nzSpan="19">
<p class="margin-bottom-10" *ngFor="let item of event?.eventViolationVOList;let i = index">
<span class="margin-right-5">{{item.title}}</span>
<span class="margin-right-5">{{item.projectName}}</span>
</p>
</div> </div>
</div> </div>
<div nz-row> <div nz-row>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"noImplicitAny": false, "noImplicitAny": false,
"skipLibCheck": true, "skipLibCheck": true,
"suppressImplicitAnyIndexErrors": true, "suppressImplicitAnyIndexErrors": true,
"outDir": "build/www/app", "outDir": "build/master/app",
"lib": ["es7", "dom"], "lib": ["es7", "dom"],
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
......
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