| | |
| | | </div> |
| | | <div v-if="craftModel.number == task?.Procedure?.processModelNumber" class="tip-current">当前使用</div> |
| | | <div class="btn"> |
| | | <el-button type="primary" :disabled="craftModel.isUpdate ? false : true" @click="onUpdateClick"> |
| | | <el-icon v-if="loading" color="#fff" :size="16" class="refresh-top-icon"> |
| | | <el-button |
| | | type="primary" |
| | | :loading="loading" |
| | | :disabled="craftModel.isUpdate ? false : true" |
| | | @click="onUpdateClick" |
| | | > |
| | | <!-- <el-icon v-if="loading" color="#fff" :size="16" class="refresh-top-icon"> |
| | | <Loading /> |
| | | </el-icon> |
| | | </el-icon> --> |
| | | 更新工艺 |
| | | </el-button> |
| | | </div> |
| | |
| | | import type { Task } from '@/api/task' |
| | | const props = defineProps<{ |
| | | craftModel: CraftModel |
| | | activeArr: Array |
| | | activeArr: string[] |
| | | task?: Task |
| | | }>() |
| | | const { craftModel, task, activeArr } = toRefs(props) |
| | |
| | | for (let i in activeArr.value) { |
| | | if (activeArr.value[i] == craftModel.value.number) { |
| | | loading.value = true |
| | | break |
| | | return true |
| | | } |
| | | } |
| | | loading.value = false |
| | | } |
| | | function onDetailClick() { |
| | | emit('detail', craftModel.value) |
| | |
| | | } |
| | | |
| | | .btn { |
| | | width: 100px; |
| | | width: 95px; |
| | | position: absolute; |
| | | right: 5px; |
| | | right: 15px; |
| | | bottom: 10px; |
| | | .el-button--primary { |
| | | background: $status-running; |