|
@@ -164,15 +164,15 @@ const onTreeNodeClick = async (node: TreeNode) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const objectOAMRef = ref()
|
|
const objectOAMRef = ref()
|
|
|
-const onAddOAM = () => {
|
|
|
|
|
|
|
+const onObjectOAMAdd = () => {
|
|
|
objectOAMRef.value.showAddModel(bizId, objectId)
|
|
objectOAMRef.value.showAddModel(bizId, objectId)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const onEditOAM = () => {
|
|
|
|
|
|
|
+const onObjectOAMEdit = () => {
|
|
|
objectOAMRef.value.showEditModel(bizId, objectId, state.curOamId)
|
|
objectOAMRef.value.showEditModel(bizId, objectId, state.curOamId)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const onDeleteOAM = (data: { bizId: number; objectId: number; oamId: number; oamTitle: string }) => {
|
|
|
|
|
|
|
+const onObjectOAMDelete = (data: { bizId: number; objectId: number; oamId: number; oamTitle: string }) => {
|
|
|
const { bizId, objectId, oamId, oamTitle } = data
|
|
const { bizId, objectId, oamId, oamTitle } = data
|
|
|
ElMessageBox.confirm(`确认删除「${oamTitle}」吗?`, '确认信息').then(async () => {
|
|
ElMessageBox.confirm(`确认删除「${oamTitle}」吗?`, '确认信息').then(async () => {
|
|
|
await deleteObjectOAMById(bizId, objectId, oamId)
|
|
await deleteObjectOAMById(bizId, objectId, oamId)
|
|
@@ -306,7 +306,7 @@ function goBack() {
|
|
|
<LayoutContainer left-side-width="250px" hide-left-side-toggle>
|
|
<LayoutContainer left-side-width="250px" hide-left-side-toggle>
|
|
|
<template #leftSide>
|
|
<template #leftSide>
|
|
|
<el-button-group class="btns">
|
|
<el-button-group class="btns">
|
|
|
- <el-button type="primary" class="add" @click="onAddOAM()">
|
|
|
|
|
|
|
+ <el-button type="primary" class="add" @click="onObjectOAMAdd()">
|
|
|
<template #icon>
|
|
<template #icon>
|
|
|
<el-icon>
|
|
<el-icon>
|
|
|
<svg-icon name="i-ep:plus" />
|
|
<svg-icon name="i-ep:plus" />
|
|
@@ -356,9 +356,8 @@ function goBack() {
|
|
|
border
|
|
border
|
|
|
>
|
|
>
|
|
|
<template #extra>
|
|
<template #extra>
|
|
|
- <el-button type="primary" @click="onEditOAM">
|
|
|
|
|
- 编辑
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="onObjectOAMEdit">编辑</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="onObjectOAMDelete">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<el-descriptions-item
|
|
<el-descriptions-item
|