Commit b2acf8c5 authored by wangqinghua's avatar wangqinghua

单位

parent 8c185dd3
...@@ -347,6 +347,20 @@ export class AlarmModalComponent implements OnInit { ...@@ -347,6 +347,20 @@ export class AlarmModalComponent implements OnInit {
this.message.error("请输入发送信息"); this.message.error("请输入发送信息");
return false; return false;
} }
if(this.isEvent == '1'){
if(!this.validateForm.event.title ){
this.message.error("请输入事件标题");
return false;
}
if(!this.validateForm.event.eventTypeId ){
this.message.error("请选择事件分类");
return false;
}
if(this.operatorList.length == 0 ){
this.message.error("请选择事件负责人");
return false;
}
}
let number = true; let number = true;
this.sendInfoList.map(e=>{ this.sendInfoList.map(e=>{
......
...@@ -36,11 +36,6 @@ import {ThresholdComponent} from '../../../modal/threshold/threshold.component'; ...@@ -36,11 +36,6 @@ import {ThresholdComponent} from '../../../modal/threshold/threshold.component';
:host ::ng-deep .tabs-smart .ant-tabs-nav-scroll div.ant-tabs-tab:nth-child(3){ :host ::ng-deep .tabs-smart .ant-tabs-nav-scroll div.ant-tabs-tab:nth-child(3){
margin-right: 180px !important; margin-right: 180px !important;
} }
:host ::ng-deep .ant-tooltip-inner{
background-color: #fff;
border: 1px solid #ddd;
color: red;
}
` `
] ]
}) })
...@@ -76,7 +71,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit { ...@@ -76,7 +71,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
//监控点 //监控点
isBasicEdit; isBasicEdit;
itemTypeValue = ""; itemTypeValue;
interfaceList: any[]; interfaceList: any[];
itemTypeList: any[]; itemTypeList: any[];
...@@ -839,6 +834,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit { ...@@ -839,6 +834,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
if (null!=res.data){ if (null!=res.data){
this.itemTypeList.unshift(data); this.itemTypeList.unshift(data);
} }
this.itemTypeValue = '';
} }
); );
......
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