不活跃禁用按钮
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="batch-actions">
|
||||
<el-button size="small" type="primary" @click.stop="showAddPenDialog(batch)">增加猪栏</el-button>
|
||||
<el-button size="small" type="primary" @click.stop="showAddPenDialog(batch)" :disabled="!batch.is_active">增加猪栏</el-button>
|
||||
<el-button size="small" @click.stop="emitEditBatch(batch)">编辑</el-button>
|
||||
<el-button size="small" type="danger" @click.stop="emitDeleteBatch(batch)">删除</el-button>
|
||||
</div>
|
||||
@@ -35,6 +35,7 @@
|
||||
v-for="pen in batch.pens"
|
||||
:key="pen.id"
|
||||
:pen="pen"
|
||||
:isBatchActive="batch.is_active"
|
||||
@modify-pig-count="emitModifyPigCountPen"
|
||||
@remove="emitRemovePen"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user