|
|
@@ -4,13 +4,13 @@ import {deleteMenuSettings, getMenuSettings, IntergrationMenu} from "@/api/setti
|
|
|
import {ElButton, ElButtonGroup} from "element-plus";
|
|
|
import Dialog from "@/views/settings/menu-settings/dialog.vue";
|
|
|
import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
+import {useCompRef} from "@/utils/useCompRef";
|
|
|
|
|
|
const menuTreeData = ref<IntergrationMenu[]>([])
|
|
|
-const dialogRef = ref()
|
|
|
+const dialogRef = useCompRef(Dialog)
|
|
|
|
|
|
function modify(row) {
|
|
|
- console.log(row)
|
|
|
- dialogRef.value.openDialog(row)
|
|
|
+ dialogRef.value!.openDialog(row)
|
|
|
}
|
|
|
|
|
|
async function loadingData() {
|
|
|
@@ -40,17 +40,22 @@ function addRouterClick(row: IntergrationMenu | null = null) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- dialogRef.value.openDialog({
|
|
|
+ // @ts-ignore
|
|
|
+ dialogRef.value!.openDialog({
|
|
|
+ cascaders: cascaders,
|
|
|
children: [],
|
|
|
+ completePath: "",
|
|
|
component: "",
|
|
|
icon: "",
|
|
|
id: null,
|
|
|
+ mainCard: false,
|
|
|
+ mainOverflowAuto: false,
|
|
|
metaHideTabs: false,
|
|
|
metaPassRule: false,
|
|
|
+ metaShowMenu: false,
|
|
|
metaTitle: "",
|
|
|
name: "",
|
|
|
- cascaders,
|
|
|
- parentId: 0,
|
|
|
+ parentId: row?.id,
|
|
|
path: "",
|
|
|
pathParams: "",
|
|
|
redirect: "",
|