| | |
| | | } |
| | | }); |
| | | // 本次循环主要是对页面及后端传参进行初始化赋值 |
| | | console.log(this.currentSample.insProduct) |
| | | this.currentSample.insProduct.forEach(async (a) => { |
| | | try { |
| | | // 计算值赋值 |
| | | let comValue = JSON.parse(a.insProductResult.comValue); |
| | | |
| | | for (var i = 0; i < comValue.length; i++) { |
| | | if ( |
| | | this.param[a.id].comValue.find( |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | <styl scoped> |
| | | <style scoped> |
| | | .custom-table .el-table__header-wrapper th { |
| | | background-color: #87ceeb; |
| | | /* 只对带有my-custom-table类的表格生效 */ |
| | |
| | | display: inline-flex; |
| | | align-items: center; |
| | | } |
| | | </styl> |
| | | </style> |
| | | <style scoped> |
| | | /* .inspection .el-form-item__label { |
| | | color: #000; |
| | |
| | | } |
| | | .data-collection-items { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | flex-wrap: wrap; |
| | | } |
| | | .data-collection-items .el-select, |
| | | .data-collection-items .el-checkbox { |
| | | flex-basis: 20% ; |
| | | flex-basis: 20% ; |
| | | box-sizing: border-box; |
| | | padding: 5px 15px; |
| | | } |
| | | </style> |
| | | |