...
|
...
|
@@ -104,7 +104,6 @@ export default { |
|
|
let name=Vue.ref();
|
|
|
|
|
|
Vue.watch(()=>props.isDisplay,(newValue, oldValue)=>{
|
|
|
console.log("jdjdjdjdj",newValue)
|
|
|
proxy.networkMonitorVisible=newValue;
|
|
|
if(newValue){
|
|
|
proxy.setBizId();
|
...
|
...
|
@@ -159,7 +158,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
|
|
|
//获取链路信息列表
|
|
|
let getNetLinkList=()=>{
|
|
|
console.log("333",proxy.targetId)
|
|
|
let params={
|
|
|
targetId:proxy.targetId
|
|
|
|
...
|
...
|
@@ -181,13 +179,11 @@ console.log("jdjdjdjdj",newValue) |
|
|
let saveLinkAndNodeInfo=()=>{
|
|
|
if(proxy.linkName){
|
|
|
let bNetNodeList=proxy.nodeData.flat(2);
|
|
|
console.log('aarr--',bNetNodeList)
|
|
|
// bNetNodeList.nodeName=proxy.nodeName;
|
|
|
if(bNetNodeList[bNetNodeList.length-1].isAdd){
|
|
|
bNetNodeList.splice(bNetNodeList.length-1,1);
|
|
|
|
|
|
}
|
|
|
console.log('&&',bNetNodeList)
|
|
|
bNetNodeList.map((item,index)=>{
|
|
|
item.sort=index;
|
|
|
})
|
...
|
...
|
@@ -234,7 +230,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
}
|
|
|
//添加节点
|
|
|
let addRes=(row,index)=>{
|
|
|
console.log("row",row,proxy.nodeDataChecked)
|
|
|
let checked=false;
|
|
|
proxy.nodeDataChecked.map((item,index)=>{
|
|
|
if(row.id==item.id){
|
...
|
...
|
@@ -258,7 +253,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
if(!proxy.nodeName){
|
|
|
proxy.$global.showMsg('请填写链路节点名称','warning')
|
|
|
}else{
|
|
|
console.log("2*2")
|
|
|
bNetNodeList.nodeName=proxy.nodeName;
|
|
|
bNetNodeList.type='point';
|
|
|
bNetNodeList.nodeType='point';
|
...
|
...
|
@@ -286,7 +280,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
|
|
|
if(proxy.flag){
|
|
|
//插入的是点
|
|
|
console.log("isadd",row.isAdd)
|
|
|
// if(row.isAdd){
|
|
|
//isAdd为true代表是添加
|
|
|
// proxy.nodeData.splice(length-1,0,[row]);
|
...
|
...
|
@@ -309,8 +302,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
// proxy.nodeData.push([{nodeName:'',id:'',isAdd:true}])
|
|
|
|
|
|
}
|
|
|
console.log(" proxy.nodeData", proxy.nodeData,proxy.nodeData.length)
|
|
|
|
|
|
proxy.nodeDataChecked=proxy.nodeData.flat(2);
|
|
|
proxy.addSetLIstVisible=false;
|
|
|
|
...
|
...
|
@@ -326,8 +317,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
proxy.modleId=props.propsData.modleId;
|
|
|
proxy.name=props.propsData.name;
|
|
|
}
|
|
|
console.log("*",props.propsData,proxy.bizId,proxy.busTypeArr)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -425,7 +414,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
|
|
|
that.nodeDataChecked=that.nodeData.flat(2);
|
|
|
that.nodeName='';
|
|
|
console.log("delette",that.nodeData.length)
|
|
|
if(that.nodeData.length<1){
|
|
|
that.addSetLIstVisible=true;
|
|
|
}else{
|
...
|
...
|
@@ -460,14 +448,11 @@ console.log("jdjdjdjdj",newValue) |
|
|
for(let i=0;i<resData.length;i+=2){
|
|
|
arr.push(resData.slice(i,i+2))
|
|
|
}
|
|
|
console.log("有节点",arr,arr.length)
|
|
|
that.nodeData=arr;
|
|
|
console.log('nodedata',that.nodeData,that.nodeData.length)
|
|
|
let length=that.nodeData.length;
|
|
|
if(that.nodeData.length>0){
|
|
|
that.addSetLIstVisible=false;
|
|
|
let length1=that.nodeData[length-1].length;
|
|
|
console.log("length1",length1)
|
|
|
if(length1>1){
|
|
|
that.nodeData.push([{nodeName:'',id:'',isAdd:true}])
|
|
|
|
...
|
...
|
@@ -489,7 +474,6 @@ console.log("jdjdjdjdj",newValue) |
|
|
},
|
|
|
//点击进入添加节点页面
|
|
|
addTableList(flag,itemNode){
|
|
|
console.log("itemNode",itemNode)
|
|
|
// if(itemNode==-1 || itemNode.length>0){
|
|
|
// if(itemNode.length==1){
|
|
|
// if(itemNode[0])
|
...
|
...
|
|