✨ feat(质检): 调整部分UI
This commit is contained in:
@@ -45,13 +45,12 @@
|
||||
<el-table-column label="机组" align="center" prop="unitGroup" />
|
||||
<el-table-column label="检验结果" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tag
|
||||
:type="scope.row.inspectionResult == 1 ? 'success' : (scope.row.inspectionResult == 2 ? 'danger' : 'info')">
|
||||
<span v-if="scope.row.inspectionResult == 0">未检验</span>
|
||||
<span v-else-if="scope.row.inspectionResult == 1">合格</span>
|
||||
<span v-else-if="scope.row.inspectionResult == 2">不合格</span>
|
||||
<span v-else>未知</span>
|
||||
</el-tag>
|
||||
<span>
|
||||
<span v-if="scope.row.inspectionResult == 0" style="color: grey;">未检验</span>
|
||||
<span v-else-if="scope.row.inspectionResult == 1" style="color: #67C23A;">合格</span>
|
||||
<span v-else-if="scope.row.inspectionResult == 2" style="color: #FF4949;">不合格</span>
|
||||
<span v-else style="color: grey;">未知</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
@@ -99,19 +98,19 @@
|
||||
<el-table-column label="单位" align="center" prop="unit"></el-table-column>
|
||||
<el-table-column label="状态" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tag :type="scope.row.status == 1 ? 'success' : (scope.row.status == 2 ? 'danger' : 'info')">
|
||||
<span v-if="scope.row.status == 0">未检测</span>
|
||||
<span v-else-if="scope.row.status == 1">通过</span>
|
||||
<span v-else-if="scope.row.status == 2">不通过</span>
|
||||
<span v-else>未知</span>
|
||||
</el-tag>
|
||||
<span>
|
||||
<span v-if="scope.row.status == 0" style="color: gray;">未检测</span>
|
||||
<span v-else-if="scope.row.status == 1" style="color: #67C23A;">通过</span>
|
||||
<span v-else-if="scope.row.status == 2" style="color: #FF4949;">不通过</span>
|
||||
<span v-else style="color: gray;">未知</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.status == 0" size="mini" type="success"
|
||||
<el-button v-if="scope.row.status == 0" size="mini" type="text" style="color: #67C23A;"
|
||||
@click="changeItemStatus(detailData.taskId, scope.row.itemId, 1)">通过</el-button>
|
||||
<el-button v-if="scope.row.status == 0" size="mini" type="danger" style="margin-left: 8px;"
|
||||
<el-button v-if="scope.row.status == 0" size="mini" type="text" style="margin-left: 8px; color: #FF4949;"
|
||||
@click="changeItemStatus(detailData.taskId, scope.row.itemId, 2)">不通过</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
Reference in New Issue
Block a user