|
@@ -90,7 +90,7 @@
|
|
|
<el-button type="primary" icon="Plus" @click="handleAddDept"
|
|
|
>新增</el-button
|
|
|
>
|
|
|
- <el-button type="danger" icon="Delete" @click="handleDeptDelete">
|
|
|
+ <el-button type="danger" icon="Delete" :disabled="ids.length == 0" @click="handleDeptDelete">
|
|
|
删除</el-button
|
|
|
>
|
|
|
</el-form-item>
|
|
@@ -259,7 +259,6 @@ function handleDeleteWorkshop(row) {
|
|
|
})
|
|
|
//删除车间的同时删除工段上workId
|
|
|
.then(function () {
|
|
|
-
|
|
|
return updateDeptWorkshopByDeptId({workshopId:_ids})
|
|
|
})
|
|
|
.then(() => {
|