| | |
| | | <el-input size="small" placeholder="端口" v-model="item.value" :disabled="state>1"></el-input> |
| | | </div> |
| | | </td> |
| | | <td :rowspan="n.angleList.length+1"> |
| | | <el-button icon="el-icon-minus" circle size="mini" type="danger" |
| | | @click="deleteList(n.portList.length-1,n.portList)" :disabled="state>1" style="margin: 5px;"></el-button> |
| | | <el-button icon="el-icon-plus" circle size="mini" type="primary" @click="addList(n.portList)" :disabled="state>1" style="margin: 5px;"></el-button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | |
| | | </table> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-col :span="1"> |
| | | <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> |
| | | </el-col> |
| | | <el-col :span="1"> |
| | | <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} |
| | | </div> |
| | | </el-col> |
| | |
| | | <el-input size="small" placeholder="端口" v-model="item.value" :disabled="state>1"></el-input> |
| | | </div> |
| | | </td> |
| | | <td :rowspan="n.angleList.length+1"> |
| | | <el-button icon="el-icon-minus" circle size="mini" type="danger" |
| | | @click="deleteList(n.portList.length-1,n.portList)" :disabled="state>1" style="margin: 5px;"></el-button> |
| | | <el-button icon="el-icon-plus" circle size="mini" type="primary" @click="addList(n.portList)" :disabled="state>1" style="margin: 5px;"></el-button> |
| | | </td> |
| | | </tr> |
| | | <tr v-for="(item,index) in n.angleList" :key="index + 'eee'"> |
| | | <td> |
| | |
| | | </table> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-col :span="1"> |
| | | <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> |
| | | </el-col> |
| | | <el-col :span="1"> |
| | | <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} |
| | | </div> |
| | | </el-col> |
| | |
| | | equipName:n.equipName, |
| | | equipValue:n.equipValue, |
| | | frequency:n.frequency, |
| | | sonLaboratory:item.sonLaboratory |
| | | sonLaboratory:item.sonLaboratory, |
| | | portNum:JSON.parse(n.value).length>0?JSON.parse(n.value)[0].length:4 |
| | | } |
| | | this.$set(obj,'portList', n.port?portList:[]) |
| | | this.$set(obj,'angleList', n.angle?angleList:[]) |
| | |
| | | item.angleList = JSON.parse(JSON.stringify(this.angleList)) |
| | | // 赋值结论 |
| | | item.result = '' |
| | | item.portNum = 4 |
| | | // 赋值最差值 |
| | | item.value = [] |
| | | if(item.inspectionItemSubclass.includes('互调')){ |
| | |
| | | } |
| | | }) |
| | | list.push(obj) |
| | | }else if(type=='端口'){ |
| | | let obj = JSON.parse(JSON.stringify(list[0])); |
| | | obj.value = null; |
| | | list.push(obj) |
| | | }else{ |
| | | let obj = JSON.parse(JSON.stringify(list[0])); |
| | | list.push(obj) |
| | | } |
| | | }, |
| | | // 改变端口 |
| | | changePort(num,list){ |
| | | if(num>list.length){ |
| | | for(let i = list.length;i<num;i++){ |
| | | let obj = JSON.parse(JSON.stringify(list[0])); |
| | | obj.value = null; |
| | | list.push(obj) |
| | | } |
| | | }else if(num<list.length){ |
| | | for(let i = list.length;i>num;i--){ |
| | | list.pop() |
| | | } |
| | | } |
| | | }, |
| | | // 获取设备选项 id:为检验项id |
| | |
| | | .green{ |
| | | color: green; |
| | | } |
| | | >>>.el-input-number { |
| | | display: inline-flex; |
| | | flex-direction: column !important; |
| | | line-height: 26px; |
| | | } |
| | | |
| | | >>>.el-input-number__increase, >>>.el-input-number__decrease { |
| | | width: 26px; |
| | | height: 26px; |
| | | } |
| | | >>>.el-input-number__increase{ |
| | | top: 36px; |
| | | left: 10px; |
| | | border: 0px; |
| | | border-radius: 50%; |
| | | background: #3A7BFA; |
| | | color: #fff; |
| | | } |
| | | >>>.el-input-number__decrease{ |
| | | top: -30px; |
| | | border: 0px; |
| | | border-radius: 50%; |
| | | left: 10px; |
| | | background: #F56C6C; |
| | | color: #fff; |
| | | } |
| | | >>>.el-input-number .el-input{ |
| | | width: 50px; |
| | | } |
| | | >>>.el-input-number .el-input__inner{ |
| | | width: 50px; |
| | | padding: 0; |
| | | } |
| | | </style> |