|
|
@@ -322,12 +322,13 @@
|
|
|
// 点击删除时
|
|
|
const handleDelete = (row) => {
|
|
|
if (row.children?.length > 0) {
|
|
|
- ElMessageBox.confirm('存在下级场景,无法删除该场景', '无法删除该条信息', {
|
|
|
+ ElMessageBox.confirm('存在下级车间,无法删除', '车间删除', {
|
|
|
confirmButtonText: '确认',
|
|
|
+ showCancelButton: false,
|
|
|
type: 'error',
|
|
|
});
|
|
|
} else {
|
|
|
- ElMessageBox.confirm('确认要删除该场景吗', {
|
|
|
+ ElMessageBox.confirm('确认要删除该车间吗', {
|
|
|
confirmButtonText: '确认',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
|
@@ -344,6 +345,7 @@
|
|
|
} catch (e: any) {
|
|
|
ElMessageBox.confirm(e, {
|
|
|
confirmButtonText: '确认',
|
|
|
+ showCancelButton: false,
|
|
|
type: 'error',
|
|
|
});
|
|
|
}
|