Authored by 王涛

Merge branch 'master-v32-lushangqing' into 'master'

故障联调 网络检测添加链路



See merge request !259
@@ -318,7 +318,7 @@ export default { @@ -318,7 +318,7 @@ export default {
318 saveModel(){ 318 saveModel(){
319 let that=this; 319 let that=this;
320 let params={ 320 let params={
321 - type:'npm', 321 + type:'apm',
322 targetId:this.targetId, 322 targetId:this.targetId,
323 state:'1', 323 state:'1',
324 id:this.modleId, 324 id:this.modleId,
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <el-select class="margin-right-10" v-model="busTypeArr" @change="changeBUsType" filterable clearable collapse-tags placeholder="请选择业务"> 9 <el-select class="margin-right-10" v-model="busTypeArr" @change="changeBUsType" filterable clearable collapse-tags placeholder="请选择业务">
10 <el-option 10 <el-option
11 v-for="item in busTypeList" 11 v-for="item in busTypeList"
12 - :label="item.busTypeName" :value="item.busId"></el-option> 12 + :label="item.busTypeName" :value="item.busId" :key="item.busId"></el-option>
13 </el-select> 13 </el-select>
14 </div> 14 </div>
15 </el-col> 15 </el-col>
@@ -166,7 +166,8 @@ @@ -166,7 +166,8 @@
166 <div class="btn-el-btn margin-bottom-10" v-for="(item, index) in networkMonitorList" :key="index"> 166 <div class="btn-el-btn margin-bottom-10" v-for="(item, index) in networkMonitorList" :key="index">
167 <div> 167 <div>
168 <el-button :disabled="faultStateRadio==0" class="multiple-choice-button" type="primary">{{item.linkName}}</el-button> 168 <el-button :disabled="faultStateRadio==0" class="multiple-choice-button" type="primary">{{item.linkName}}</el-button>
169 - <img :id="item.id" @click="deleteNetLink(item)" src="./src/assets/images/faultDiagnosis/icon-item-delete.png" class="multiple-choice-icon cursorClass"> 169 + <img :id="item.id" v-if="faultStateRadio==1" @click="deleteNetLink(item)" src="./src/assets/images/faultDiagnosis/icon-item-delete.png" class="multiple-choice-icon cursorClass">
  170 + <img src="" v-else style="width:12px;height:12px;" class="multiple-choice-icon" alt="">
170 </div> 171 </div>
171 </div> 172 </div>
172 <div class="flex-div btn-el-btn margin-bottom-10" v-if="faultStateRadio==1"> 173 <div class="flex-div btn-el-btn margin-bottom-10" v-if="faultStateRadio==1">
@@ -989,7 +989,7 @@ export default { @@ -989,7 +989,7 @@ export default {
989 //更改业务选择 989 //更改业务选择
990 changeBUsType(val){ 990 changeBUsType(val){
991 if(val){ 991 if(val){
992 - this.getBusList(); 992 + this.getBusList(val);
993 993
994 } 994 }
995 // this.propsData={ 995 // this.propsData={
@@ -1005,7 +1005,7 @@ export default { @@ -1005,7 +1005,7 @@ export default {
1005 // } 1005 // }
1006 }, 1006 },
1007 //根据业务bizId判断故障诊断表是否存在所属业务 1007 //根据业务bizId判断故障诊断表是否存在所属业务
1008 - getBusList(){ 1008 + getBusList(val){
1009 1009
1010 let that=this; 1010 let that=this;
1011 let params={ 1011 let params={
@@ -1014,6 +1014,10 @@ export default { @@ -1014,6 +1014,10 @@ export default {
1014 1014
1015 this.$http.get('/api-web/fault/conf/isExistByBizId/'+this.busTypeArr, {},function (res){ 1015 this.$http.get('/api-web/fault/conf/isExistByBizId/'+this.busTypeArr, {},function (res){
1016 if(res && res.success){ 1016 if(res && res.success){
  1017 + console.log('sssss',that.busTypeArr)
  1018 + that.$forceUpdate();
  1019 + that.$set('that','busTypeArr',val)
  1020 +
1017 1021
1018 }else{ 1022 }else{
1019 that.$global.showMsg(res.msg,'warning'); 1023 that.$global.showMsg(res.msg,'warning');
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 </ul> 59 </ul>
60 </template> 60 </template>
61 <div @click="addTableList(true,itemNode)" :class="['step-img','flex-div-center',{'isActive':itemNode[0].nodeName}]"> 61 <div @click="addTableList(true,itemNode)" :class="['step-img','flex-div-center',{'isActive':itemNode[0].nodeName}]">
62 - <i v-if="itemNode[0].nodeName" class="icon-delete-right" @click.stop="deleteNode(item,index)"></i> 62 + <i v-if="itemNode[0].nodeName" class="icon-delete-right" @click.stop="deleteNode(itemNode,index)"></i>
63 <i class="icon-step flex-div-center"><img :src="'/src/style/img/restypeimg/'+itemNode[0].resType+'.png'" alt=""></i> 63 <i class="icon-step flex-div-center"><img :src="'/src/style/img/restypeimg/'+itemNode[0].resType+'.png'" alt=""></i>
64 </div> 64 </div>
65 </el-tooltip> 65 </el-tooltip>
@@ -103,7 +103,7 @@ export default { @@ -103,7 +103,7 @@ export default {
103 let name=Vue.ref(); 103 let name=Vue.ref();
104 104
105 Vue.watch(()=>props.isDisplay,(newValue, oldValue)=>{ 105 Vue.watch(()=>props.isDisplay,(newValue, oldValue)=>{
106 - 106 +console.log("jdjdjdjdj",newValue)
107 proxy.networkMonitorVisible=newValue; 107 proxy.networkMonitorVisible=newValue;
108 if(newValue){ 108 if(newValue){
109 proxy.setBizId(); 109 proxy.setBizId();
@@ -193,7 +193,13 @@ export default { @@ -193,7 +193,13 @@ export default {
193 let linkId=''; 193 let linkId='';
194 if(proxy.isClickNet!=-1){ 194 if(proxy.isClickNet!=-1){
195 linkId=proxy.linkId; 195 linkId=proxy.linkId;
  196 +
  197 + }else{
  198 + linkId='';
196 } 199 }
  200 + bNetNodeList.map((item,index)=>{
  201 + item.linkId=linkId;
  202 + })
197 let params={ 203 let params={
198 bNetLink:{ 204 bNetLink:{
199 id:linkId, 205 id:linkId,
@@ -204,7 +210,7 @@ export default { @@ -204,7 +210,7 @@ export default {
204 bNetNodeList:bNetNodeList 210 bNetNodeList:bNetNodeList
205 } 211 }
206 proxy.$http.post(proxy.apiUrl1,params,function (res){ 212 proxy.$http.post(proxy.apiUrl1,params,function (res){
207 - if(res){ 213 + if(res && res.success){
208 proxy.$global.showMsg("添加成功", "success") 214 proxy.$global.showMsg("添加成功", "success")
209 // proxy.tableVisible=false; 215 // proxy.tableVisible=false;
210 if(res.object){ 216 if(res.object){
@@ -215,6 +221,9 @@ export default { @@ -215,6 +221,9 @@ export default {
215 } 221 }
216 222
217 proxy.getNetLinkList(); 223 proxy.getNetLinkList();
  224 + }else{
  225 + proxy.$global.showMsg("添加失败", "success")
  226 +
218 } 227 }
219 }) 228 })
220 }else{ 229 }else{
@@ -398,7 +407,7 @@ export default { @@ -398,7 +407,7 @@ export default {
398 that.nodeData.splice(index, 1); 407 that.nodeData.splice(index, 1);
399 that.nodeName=''; 408 that.nodeName='';
400 console.log("delette",that.nodeData.length) 409 console.log("delette",that.nodeData.length)
401 - if(that.nodeData.length==1){ 410 + if(that.nodeData.length<1){
402 that.addSetLIstVisible=true; 411 that.addSetLIstVisible=true;
403 } 412 }
404 413
@@ -539,7 +548,7 @@ export default { @@ -539,7 +548,7 @@ export default {
539 saveModel(){ 548 saveModel(){
540 let that=this; 549 let that=this;
541 let params={ 550 let params={
542 - type:'npm', 551 + type:'netlink',
543 targetId:this.targetId, 552 targetId:this.targetId,
544 state:'1', 553 state:'1',
545 id:this.modleId, 554 id:this.modleId,