spring
2025-03-19 07a41ade45c962e93a9d449ce1be0eec52e66a6a
src/components/do/b1-inspect-order-plan/circuit-parameters3.vue
@@ -94,7 +94,8 @@
                    <td>端口</td>
                    <td v-for="(item, index) in n.portList" :key="index + 'aaa'">
                      <div style="display: flex;align-items: center;">
                        <el-input size="small" placeholder="端口" v-model="item.value" :disabled="state > 1"></el-input>
                        <el-input size="small" placeholder="端口" v-model="item.value" :disabled="state > 1"
                          @blur="handleInterface(n.portList, index)"></el-input>
                      </div>
                    </td>
                  </tr>
@@ -154,7 +155,8 @@
                    <td>端口</td>
                    <td v-for="(item, index) in n.portList" :key="index + 'fff'">
                      <div style="display: flex;align-items: center;">
                        <el-input size="small" placeholder="端口" v-model="item.value" :disabled="state > 1"></el-input>
                        <el-input size="small" placeholder="端口" v-model="item.value" :disabled="state > 1"
                          @blur="handleInterface(n.portList, index)"></el-input>
                      </div>
                    </td>
                  </tr>
@@ -283,7 +285,7 @@
      bandList0: [],
      portList: [
        {
          value: '1',
          value: 'P1',
        },
      ],
      projectList: [
@@ -406,7 +408,7 @@
                if (item.insProductResult2.length > 0 && item.insProductResult2.length < bandList.length) {
                  let obj0 = item.insProductResult2.find(n => m.frequency == n.frequency)
                  if (!obj0) {
                    let port = '1'
                    let port = 'P1'
                    let value = JSON.parse(m.value)
                    let value0 = []
                    value.forEach(n => {
@@ -422,7 +424,7 @@
                  }
                } else {
                  // 如果一条数据都没有,则补全数据
                  let port = '1'
                  let port = 'P1'
                  let value = JSON.parse(m.value)
                  let value0 = []
                  value.forEach(n => {
@@ -510,7 +512,7 @@
          // 赋值端口和角度
          this.portList = [
            {
              value: '1',
              value: 'P1',
            },
          ]
          item.portList = JSON.parse(JSON.stringify(this.portList))
@@ -696,6 +698,15 @@
        n.often = n.often + 'MHz'
      }
    },
    // 添加端口P
    handleInterface(arr, index) {
      if (!arr[index].value) {
        return
      }
      if (!arr[index].value.includes('P')) {
        this.$set(arr[index], 'value', 'P' + arr[index].value)
      }
    },
    save(h, y) {
      let arr = h.projectList.map(item => {
        if (item.portList && item.portList.length > 0) {