|
|
@ -65,7 +65,6 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import {mainBindBtn} from "@/utils/disposition/defaultButtons"; |
|
|
|
|
|
|
|
defineOptions({ name: 'Workstation' }) |
|
|
|
|
|
|
@ -136,7 +135,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
const butttondata = [ |
|
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:workstation:update'}), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:workstation:delete'}), // 删除 |
|
|
|
defaultButtons.mainListBindBtn({hasPermi:'wms:workstation:update'}), // 删除 |
|
|
|
defaultButtons.mainListBindBtn({hasPermi:'wms:workstation:update'}), // 绑定 |
|
|
|
] |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
@ -144,9 +143,9 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
}else if (val == 'bind') { // 绑定 |
|
|
|
detailRef.value.openDetail(row, row.name, "绑定", 'mesWorkstation') |
|
|
|
await handleDelete(row.id) |
|
|
|
}else if (val == 'bind') { // 删除 |
|
|
|
await detailRef.value.openDetail(row, '绑定', row.name, 'mesWorkstation') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|