Browse Source

feat: 初始化忽略逻辑

master
guoapeng 2 months ago
parent
commit
85de15d11e
  1. 16
      src/components/check/index.vue

16
src/components/check/index.vue

@ -162,6 +162,14 @@ const ignore = async (item: any) => {
})
item.status = 'ignore'
}
const ignoreFalse = async (item: any) => {
await setIgnoreItem({
ignoreSelfTestType: item.ignoreKey,
ignore: false,
})
item.status = 'error'
}
</script>
<template>
@ -186,13 +194,13 @@ const ignore = async (item: any) => {
<el-icon v-else-if="item.status === 'ignore'">
<More />
</el-icon>
<ft-button v-if="item.status !== 'success'" type="primary" :click-handle="() => commandHandle(item)">
<ft-button v-if="item.status !== 'success'" type="primary" size="small" :click-handle="() => commandHandle(item)">
回原点
</ft-button>
<ft-button v-if="item.status !== 'ignore'" type="primary" :click-handle="() => ignore(item)">
<ft-button v-if="item.status !== 'ignore' && item.name === '门电机回原点'" size="small" type="primary" :click-handle="() => ignore(item)">
忽略
</ft-button>
<ft-button v-if="item.status === 'ignore'" type="danger" :click-handle="() => ignore(item)">
<ft-button v-if="item.status === 'ignore' && item.name === '门电机回原点'" size="small" type="danger" :click-handle="() => ignoreFalse(item)">
取消忽略
</ft-button>
</div>
@ -282,7 +290,7 @@ const ignore = async (item: any) => {
align-items: center;
margin-bottom: 10px;
.el-tag {
width: 70%;
width: 50%;
}
.el-icon {
margin: 0 10px;

Loading…
Cancel
Save