| | |
| | | <span v-show="scope.row.testState != null" :style="{ |
| | | color: scope.row.testState === 1 ? '#67C23A' : '#F56C6C' |
| | | }">{{ scope.row.testState === 1 ? "合格" : "不合格" }}</span> |
| | | <span v-show="scope.row.testState == null">暂未结论</span> |
| | | <span v-show="scope.row.testState != null">{{null}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="detailId !== null" label="操作" width="120"> |
| | |
| | | conclusion.uName = [ |
| | | ...new Set(this.projectTable.map(item => item.uName)) |
| | | ]; |
| | | if ( |
| | | this.projectTable.filter(item => item.testState === undefined).length === |
| | | this.projectTable.length |
| | | ) { |
| | | conclusion.testState = null; |
| | | return [conclusion]; |
| | | } |
| | | if (this.projectTable.filter(item => item.testState === 0).length > 0) { |
| | | conclusion.testState = 0; |
| | | } else { |
| | | conclusion.testState = 1; |
| | | } |
| | | console.log([conclusion]); |
| | | return [conclusion]; |
| | | } |
| | | }, |