fix: 自测bug修复。
This commit is contained in:
@@ -214,6 +214,7 @@ const title = ref('')
|
|||||||
const operateList = ref([
|
const operateList = ref([
|
||||||
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['health:medicineBasic:query'] },
|
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['health:medicineBasic:query'] },
|
||||||
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['health:medicineBasic:edit'] },
|
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['health:medicineBasic:edit'] },
|
||||||
|
{ id: 'copy', icon: 'Link', title: '复制', hasPermi: ['health:marRecord:edit'] },
|
||||||
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['health:medicineBasic:remove'] }
|
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['health:medicineBasic:remove'] }
|
||||||
])
|
])
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
@@ -258,6 +259,9 @@ const handleOperate = (operate, row) => {
|
|||||||
case 'delete':
|
case 'delete':
|
||||||
handleDelete(row)
|
handleDelete(row)
|
||||||
break
|
break
|
||||||
|
case 'copy':
|
||||||
|
handleCopy(row)
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -275,6 +279,18 @@ function getList() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 复制按钮操作 */
|
||||||
|
function handleCopy(row) {
|
||||||
|
reset()
|
||||||
|
const _id = row.id || ids.value
|
||||||
|
getMedicineBasic(_id).then((response) => {
|
||||||
|
form.value = response.data
|
||||||
|
form.value.id = null
|
||||||
|
open.value = true
|
||||||
|
title.value = '复制药品基础信息'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
function cancel() {
|
function cancel() {
|
||||||
open.value = false
|
open.value = false
|
||||||
|
|||||||
Reference in New Issue
Block a user