支持移除猪栏

This commit is contained in:
2025-10-23 15:45:14 +08:00
parent 2191bf2bdf
commit 624592a63d
3 changed files with 24 additions and 14 deletions

View File

@@ -11,7 +11,7 @@
</div>
<div class="actions-section">
<el-button size="small" @click="emitAllocatePigs" :disabled="!isBatchActive">分配猪只</el-button>
<el-button size="small" type="danger" @click="emitRemove" :disabled="!isBatchActive">移除</el-button>
<el-button size="small" type="danger" @click="emitRemove" :disabled="!isBatchActive || pen.current_pig_count > 0">移除</el-button>
</div>
</div>
</template>