Commit 9717f939 authored by wangqinghua's avatar wangqinghua

update

parent 2684c3ca
......@@ -15,16 +15,16 @@ export const color = {
gray:'#bfbfbf',
black:'#6064'
};
//图片地址
export const serverPath = "http://10.10.38.99:8282";
export const imgUrl = serverPath + "/file/icon/";
export const fileUrl = serverPath + "/file/";
// //图片地址
// const urlPath = window.document.location.href; //浏览器显示地址
// const docPath = window.document.location.pathname; //文件在服务器相对地址
// const index = urlPath.indexOf(docPath);
// const serverPath = urlPath.substring(0, index);//服务器地址
// export const imgUrl = serverPath + "file/icon/";
// // export const fileUrl = "http://10.10.38.99:8282/file/";
// export const fileUrl = serverPath + "file/";
// export const serverPath = "http://10.10.38.99:8282";
// export const imgUrl = serverPath + "/file/icon/";
// export const fileUrl = serverPath + "/file/";
//图片地址
const urlPath = window.document.location.href; //浏览器显示地址
const docPath = window.document.location.pathname; //文件在服务器相对地址
const index = urlPath.indexOf(docPath);
const serverPath = urlPath.substring(0, index);//服务器地址
export const imgUrl = serverPath + "file/icon/";
// export const fileUrl = "http://10.10.38.99:8282/file/";
export const fileUrl = serverPath + "file/";
......@@ -70,9 +70,9 @@
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="6">丢失时间</nz-form-label>
<nz-form-label [nzSpan]="6">丢失时间(秒)</nz-form-label>
<nz-form-control [nzSpan]="14" nzFor="lifetime">
<input type="text" name="lifetime" placeholder="输入丢失时间" nz-input
<input type="text" name="lifetime" placeholder="输入丢失时间(秒)" nz-input
formControlName="lifetime">
</nz-form-control>
</nz-form-item>
......
......@@ -45,7 +45,7 @@ export class DiscoveryComponent implements OnInit {
delay: [null, [Validators.required]],
description: [null],
lifetime: ['3600'],
status: [null],
status: [null], //0启用 1禁用
});
}
......@@ -67,6 +67,7 @@ export class DiscoveryComponent implements OnInit {
const data = res.data[0];
data.type += '';
data.value_type += '';
data.status = data.status == 0 ? true : false;
this.validateForm.patchValue(data);
}
);
......@@ -82,7 +83,7 @@ export class DiscoveryComponent implements OnInit {
this.message.error('请输入必填信息');
return false;
}
let d = this.validateForm.value.status == true ? 1 : 0;
let d = this.validateForm.value.status == true ? 0 : 1;
this.validateForm.patchValue({
status:d,
hostid:this.hostId
......
......@@ -335,7 +335,6 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
const hostIds = [];
arr.forEach(e=>{
if(e.elementType == 'link' && e.itemId && e.itemId.length > 0){
console.log(e);
const data = {
itemIdIn:e.itemId.split(',')[0],
itemIdOut:e.itemId.split(',')[1],
......
......@@ -265,7 +265,6 @@ export class NetworkDetailComponent implements OnInit, OnChanges {
tooltip: {
// trigger: 'axis',
formatter: (params) => {
console.log(params);
if (params.data) {
let res = params.seriesName;
res += '<br/>时间:' + params.name;
......
......@@ -66,4 +66,4 @@
</nz-table>
<!--自动发现-->
<smart-discovery #smartDiscovery></smart-discovery>
\ No newline at end of file
<smart-discovery #smartDiscovery (done)="getList()"></smart-discovery>
\ No newline at end of file
......@@ -94,6 +94,7 @@ export class CheckPrototypeComponent implements OnInit {
const data = res.data[0];
data.type += '';
data.value_type += '';
data.status = data.status == 0 ? true : false;
if (data.applications) {
data.applications = data.applications.map(e => {
return e.applicationid;
......
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