| | |
| | | <template v-for="(n, j) in h.projectList"> |
| | | <!-- 电压驻波比 --> |
| | | <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" |
| | | v-if="n.inspectionItemSubclass.includes('驻波比') || n.inspectionItemSubclass.includes('隔离度') || n.inspectionItemSubclass.includes('带外抑制') || n.inspectionItemSubclass.includes('带内波动') || n.inspectionItemSubclass.includes('插入损耗')"> |
| | | v-if="(n.inspectionItemSubclass.includes('驻波比') || n.inspectionItemSubclass.includes('隔离度') || n.inspectionItemSubclass.includes('带外抑制') || n.inspectionItemSubclass.includes('带内波动') || n.inspectionItemSubclass.includes('插入损耗'))&&isLooks(n)"> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> |
| | | </el-col> |
| | |
| | | <div style="text-align: center;">{{ n.unit }}</div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;" v-html="n.ask"></div> |
| | | <div style="text-align: center;"> |
| | | <el-input size="small" v-model="n.ask" :disabled="state > 1" |
| | | ></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <div class="content" style="text-align: center;width: 100%;overflow-x: auto;"> |
| | |
| | | <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> |
| | |
| | | </el-row> |
| | | <!-- 互调 --> |
| | | <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" |
| | | v-if="n.inspectionItemSubclass.includes('互调')"> |
| | | v-if="n.inspectionItemSubclass.includes('互调')&&isLooks(n)"> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> |
| | | </el-col> |
| | |
| | | <div style="text-align: center;">{{ n.unit }}</div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;" v-html="n.ask"></div> |
| | | <div style="text-align: center;"> |
| | | <el-input size="small" v-model="n.ask" :disabled="state > 1" |
| | | ></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <div class="content" style="text-align: center;width: 100%;overflow-x: auto;"> |
| | |
| | | <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> |
| | |
| | | </el-row> |
| | | <!-- 幅度偏差/最大相位偏差 --> |
| | | <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" |
| | | v-if="n.inspectionItemSubclass.includes('偏差')"> |
| | | v-if="n.inspectionItemSubclass.includes('偏差')&&isLooks(n)"> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> |
| | | </el-col> |
| | |
| | | <div style="text-align: center;">{{ n.unit }}</div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;" v-html="n.ask"></div> |
| | | <div style="text-align: center;"> |
| | | <el-input size="small" v-model="n.ask" :disabled="state > 1" |
| | | ></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <div class="content" style="text-align: center;width: 100%;overflow-x: auto;"> |
| | |
| | | </el-row> |
| | | <!-- 最大耦合度/最小耦合度 --> |
| | | <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" |
| | | v-if="n.inspectionItemSubclass.includes('耦合度')"> |
| | | v-if="n.inspectionItemSubclass.includes('耦合度')&&isLooks(n)"> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> |
| | | </el-col> |
| | |
| | | <div style="text-align: center;">{{ n.unit }}</div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <div style="text-align: center;" v-html="n.ask"></div> |
| | | <div style="text-align: center;"> |
| | | <el-input size="small" v-model="n.ask" :disabled="state > 1" |
| | | ></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="17"> |
| | | <div class="content" style="text-align: center;width: 100%;overflow-x: auto;"> |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider v-if="j != h.projectList.length - 1"></el-divider> |
| | | <el-divider v-if="j != h.projectList.length - 1&&isLooks(n)"></el-divider> |
| | | </template> |
| | | </div> |
| | | </div> |
| | |
| | | bandList0: [], |
| | | portList: [ |
| | | { |
| | | value: '1', |
| | | value: 'P1', |
| | | }, |
| | | ], |
| | | projectList: [ |
| | |
| | | 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 => { |
| | |
| | | } |
| | | } else { |
| | | // 如果一条数据都没有,则补全数据 |
| | | let port = '1' |
| | | let port = 'P1' |
| | | let value = JSON.parse(m.value) |
| | | let value0 = [] |
| | | value.forEach(n => { |
| | |
| | | portList.push({ value: m }) |
| | | }) |
| | | } |
| | | let ask = '' |
| | | if (item.ask.includes(',')) { |
| | | item.ask.split(',').forEach((m, i) => { |
| | | ask = ask + m + (i == item.ask.split(',').length - 1 ? '' : '<br/>') |
| | | }) |
| | | } else { |
| | | ask = item.ask |
| | | } |
| | | console.log(ask) |
| | | // let ask = '' |
| | | // if (item.ask.includes(',')) { |
| | | // item.ask.split(',').forEach((m, i) => { |
| | | // ask = ask + m + (i == item.ask.split(',').length - 1 ? '' : '<br/>') |
| | | // }) |
| | | // } else { |
| | | // ask = item.ask |
| | | // } |
| | | // console.log(ask) |
| | | let obj = { |
| | | inspectionItemSubclass: item.inspectionItemSubclass, |
| | | unit: item.unit, |
| | | ask: ask, |
| | | ask: n.ask, |
| | | result: n.result, |
| | | id: item.id, |
| | | often: n.often, |
| | |
| | | // 赋值端口和角度 |
| | | this.portList = [ |
| | | { |
| | | value: '1', |
| | | value: 'P1', |
| | | }, |
| | | ] |
| | | item.portList = JSON.parse(JSON.stringify(this.portList)) |
| | |
| | | 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) { |
| | |
| | | equipName: this.insProductNew.find(m => m.id == item.id).equipName, |
| | | port: item.portList.map(m => m.value).join(','), |
| | | value: JSON.stringify(item.value), |
| | | often: item.often |
| | | often: item.often, |
| | | ask: item.ask |
| | | } |
| | | return obj |
| | | }) |
| | |
| | | equipName: this.insProductNew.find(m => m.id == item.id).equipName, |
| | | port: item.portList.map(m => m.value).join(','), |
| | | value: JSON.stringify(item.value), |
| | | often: item.often |
| | | often: item.often, |
| | | ask: item.ask |
| | | } |
| | | return obj |
| | | }) |
| | |
| | | // this.allBandList[index].projectList = arr |
| | | }) |
| | | this.intermodulationNum = obj.intermodulationNum |
| | | }, |
| | | // 查看时如果没有数据,就不显示这个检验项 |
| | | isLooks(n){ |
| | | if(this.state<2){ |
| | | return true |
| | | } |
| | | let state = n.value.some(m=>m.some(n=>n)) |
| | | if(this.state > 1&&state){ |
| | | return true |
| | | } |
| | | return false |
| | | } |
| | | } |
| | | } |