微调
This commit is contained in:
@@ -483,7 +483,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
isShow: checkStateShow,
|
isShow: checkStateShow,
|
||||||
render: scope => {
|
render: scope => {
|
||||||
return scope.row.checkState === 0 ? '未检' : scope.row.checkState === 1 ? '检测中' : '检测完成'
|
return scope.row.checkState === 0 ? '未检' : scope.row.checkState === 1 ? '检测中' : scope.row.checkState === 2 ? '检测完成':'归档'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -494,6 +494,8 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
|||||||
render: scope => {
|
render: scope => {
|
||||||
if (scope.row.checkResult === 0) {
|
if (scope.row.checkResult === 0) {
|
||||||
return <el-tag type="danger">不符合</el-tag>
|
return <el-tag type="danger">不符合</el-tag>
|
||||||
|
} else if (scope.row.checkResult === 0) {
|
||||||
|
return '不符合'
|
||||||
} else if (scope.row.checkResult === 1) {
|
} else if (scope.row.checkResult === 1) {
|
||||||
return '符合'
|
return '符合'
|
||||||
}else if(scope.row.checkResult === 2) {
|
}else if(scope.row.checkResult === 2) {
|
||||||
@@ -1087,7 +1089,7 @@ const openDrawer = async (title: string, row: any) => {
|
|||||||
|
|
||||||
if (title === '检测数据查询') {
|
if (title === '检测数据查询') {
|
||||||
checkStore.setShowDetailType(0)
|
checkStore.setShowDetailType(0)
|
||||||
if (modeStore.currentMode == '模拟式') {
|
if (modeStore.currentMode == '模拟式'||modeStore.currentMode == '数字式') {
|
||||||
dataCheckPopupRef.value?.open(row.id, '-1', null)
|
dataCheckPopupRef.value?.open(row.id, '-1', null)
|
||||||
} else if (modeStore.currentMode == '比对式') {
|
} else if (modeStore.currentMode == '比对式') {
|
||||||
dataCheckSingleChannelSingleTestPopupRef.value?.open(row, null, row.id, 2)
|
dataCheckSingleChannelSingleTestPopupRef.value?.open(row, null, row.id, 2)
|
||||||
@@ -1095,7 +1097,7 @@ const openDrawer = async (title: string, row: any) => {
|
|||||||
}
|
}
|
||||||
if (title === '误差体系更换') {
|
if (title === '误差体系更换') {
|
||||||
checkStore.setShowDetailType(1)
|
checkStore.setShowDetailType(1)
|
||||||
if (modeStore.currentMode == '模拟式') {
|
if (modeStore.currentMode == '模拟式'||modeStore.currentMode == '数字式') {
|
||||||
dataCheckPopupRef.value?.open(row.id, '-1', null)
|
dataCheckPopupRef.value?.open(row.id, '-1', null)
|
||||||
} else if (modeStore.currentMode == '比对式') {
|
} else if (modeStore.currentMode == '比对式') {
|
||||||
dataCheckSingleChannelSingleTestPopupRef.value?.open(row, null, row.id, 2)
|
dataCheckSingleChannelSingleTestPopupRef.value?.open(row, null, row.id, 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user