| | |
| | | }, |
| | | save(h,y) { |
| | | let arr = h.projectList.map(item=>{ |
| | | if(item.portList&&item.portList.length>0){ |
| | | item.value.forEach(m=>{ |
| | | m = m.splice(item.portList.length) |
| | | }) |
| | | } |
| | | let obj = { |
| | | insProductId:item.id, |
| | | equipValue:this.insProductNew.find(m=>m.id==item.id).equipValue, |
| | |
| | | }, |
| | | save(h,y) { |
| | | let arr = h.projectList.map(item=>{ |
| | | if(item.portList&&item.portList.length>0){ |
| | | item.value.forEach(m=>{ |
| | | m = m.splice(item.portList.length) |
| | | }) |
| | | } |
| | | let obj = { |
| | | insProductId:item.id, |
| | | equipValue:this.insProductNew.find(m=>m.id==item.id).equipValue, |
| | |
| | | //本地 |
| | | // Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | // const javaApi = 'http://127.0.0.1:8001'; |
| | | // const javaApi = 'http://172.20.10.5:8001'; |
| | | const javaApi = 'http://172.20.10.5:8001'; |
| | | |
| | | // //通信测试库 |
| | | // Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080"; |
| | | const javaApi = 'http://10.1.13.77:8001'; |
| | | // const javaApi = 'http://10.1.13.77:8001'; |
| | | |
| | | //云 |
| | | // Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080"; |
| | |
| | | this.saveClick() |
| | | }, |
| | | removeTab(index) { |
| | | console.log(3333,this.$refs[`com-${this.tabs[index].k}`],this.tabs[index]) |
| | | let obj = this.$refs[`com-${this.tabs[index].k}`][0] |
| | | if(obj.state&&obj.state==1&&this.tabs[index].v=='检验任务'&&(obj.version===0||obj.version===1)){ |
| | | this.$confirm('请确认当前数据是否全部保存,是否关闭当前页面?', '提示', { |