licp
2024-11-08 100005431ace86564be26478818302d4572f8959
修改电路试验bug
已修改3个文件
33 ■■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/circuit-parameters1.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/circuit-parameters2.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/circuit-parameters1.vue
@@ -803,9 +803,10 @@
      // return
      obj.allBandList.forEach((item,index)=>{
        if(!this.allBandList[index]){
          this.allBandList[index] = {
            projectList:this.HaveJson(this.allBandList[0].projectList)
          }
          this.$set(this.allBandList, index, {projectList:this.HaveJson(this.allBandList[0].projectList)})
          // this.allBandList[index] = {
          //   projectList:this.HaveJson(this.allBandList[0].projectList)
          // }
        }
        this.allBandList[index].band = item.band
        let arr = []
@@ -815,13 +816,15 @@
            angleList:m.angleList,
            portList:m.portList,
            portNum:m.portNum,
              value:m.value,
              valueType:m.valueType
            }
            this.$set(obj0,'value',m.value)
            arr.push({...this.allBandList[index].projectList.find(n=>n.inspectionItemSubclass==m.inspectionItemSubclass),...obj0})
          }
        })
        this.allBandList[index].projectList = arr
        this.$delete(this.allBandList[index],'projectList')
        this.$set(this.allBandList[index],'projectList',arr)
        // this.allBandList[index].projectList = arr
      })
      this.angleList = obj.angleList
      this.intermodulationNum = obj.intermodulationNum
src/components/do/b1-inspect-order-plan/circuit-parameters2.vue
@@ -679,10 +679,11 @@
      // return
      obj.allBandList.forEach((item,index)=>{
        if(!this.allBandList[index]){
          this.allBandList[index] = {
            projectList:this.HaveJson(this.allBandList[0].projectList),
            band:item.band
          }
          this.$set(this.allBandList, index, {projectList:this.HaveJson(this.allBandList[0].projectList)})
          // this.allBandList[index] = {
          //   projectList:this.HaveJson(this.allBandList[0].projectList),
          //   band:item.band
          // }
        }
        let arr = []
        item.projectList.forEach((m,i)=>{
@@ -691,13 +692,16 @@
            angleList:m.angleList,
            portList:m.portList,
            portNum:m.portNum,
              value:m.value,
              // value:m.value,
              valueType:m.valueType
            }
            this.$set(obj0,'value',m.value)
            arr.push({...this.allBandList[index].projectList.find(n=>n.inspectionItemSubclass==m.inspectionItemSubclass),...obj0})
          }
        })
        this.allBandList[index].projectList = arr
        // this.allBandList[index].projectList = arr
        this.$delete(this.allBandList[index],'projectList')
        this.$set(this.allBandList[index],'projectList',arr)
      })
      this.angleList = obj.angleList
      this.intermodulationNum = obj.intermodulationNum
src/main.js
@@ -21,11 +21,11 @@
//本地
// 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 = "https://ztwxlims.ztt.cn:7443";