质量管理修改

This commit is contained in:
hzz 2024-04-18 19:12:45 +08:00
parent 88f4928763
commit cefa2eb8cf
2 changed files with 13 additions and 7 deletions

View File

@ -173,6 +173,7 @@ let bar_option = ref({
itemStyle: { itemStyle: {
color: '#91cc75' color: '#91cc75'
}, },
barWidth:'30%',
data: [0] data: [0]
}, },
{ {
@ -186,6 +187,7 @@ let bar_option = ref({
itemStyle: { itemStyle: {
color: '#c81623' color: '#c81623'
}, },
barWidth:'30%',
data: [0], data: [0],
label: { label: {
show: true, show: true,

View File

@ -94,11 +94,15 @@
</el-table-column> </el-table-column>
<el-table-column :label="tLang('quality', '状态')" v-if="columns[7].visible" align="center" prop="state"> <el-table-column :label="tLang('quality', '状态')" v-if="columns[7].visible" align="center" prop="state">
<template #default="scope"> <template #default="scope">
<div> <el-tooltip :content="scope.row.errorMsg" :disabled="scope.row.state !== '1'" placement="top-start" v-if="scope.row.userId !== 1">
<el-tag type="success" size="mini" v-if="scope.row.state === '0'">{{tLang('common','合格')}}</el-tag> <div style="cursor: pointer;">
<el-tag type="danger" size="mini" v-else-if="scope.row.state === '1'">{{tLang('common','不合格')}}</el-tag> <el-tag type="success" size="mini"
v-if="scope.row.state === '0'">{{ tLang('common', '合格') }}</el-tag>
<el-tag type="danger" size="mini"
v-else-if="scope.row.state === '1'">{{ tLang('common', '不合格') }}</el-tag>
<el-tag type="warning" size="mini" v-else>{{ tLang('common', '未完成') }}</el-tag> <el-tag type="warning" size="mini" v-else>{{ tLang('common', '未完成') }}</el-tag>
</div> </div>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column :label="tLang('quality','')操作" align="center" class-name="small-padding fixed-width"> <!-- <el-table-column :label="tLang('quality','')操作" align="center" class-name="small-padding fixed-width">