Browse Source

fix: 喷涂设置加入显式图标标识

master
guoapeng 3 weeks ago
parent
commit
a8016937fc
  1. 19
      src/views/spray/index.vue

19
src/views/spray/index.vue

@ -265,9 +265,21 @@ const viewParams = (index: number) => {
<span>玻片{{ index + 1 }}</span>
</p>
<TrayGraph ref="sprayRefs" :key="index" :container="`spray-${index + 1}`" :edit-select="false" />
<ft-button v-if="!systemStore.systemStatus.spraying" type="primary" @click="() => openSetting(index)">
喷涂设置
<template #default>
<div class="spray-status">
<el-icon v-show="sprayStore.sprayTaskParams[index].hasSet" color="#67C23A">
<SuccessFilled />
</el-icon>
<el-icon v-show="!sprayStore.sprayTaskParams[index].hasSet" color="#E6A23C">
<WarningFilled />
</el-icon>
<span>喷涂设置</span>
</div>
</template>
</ft-button>
<ft-button v-else type="primary" @click="() => viewParams(index)">
运行参数
</ft-button>
@ -357,6 +369,11 @@ const viewParams = (index: number) => {
justify-content: center;
width: 100%;
}
.spray-status {
display: flex;
align-items: center;
gap: 10px;
}
:deep(.ft-button) {
margin: 0;
}

Loading…
Cancel
Save