完成系统管理部分

This commit is contained in:
super
2026-01-17 19:32:14 +08:00
parent 183b295e40
commit 76632cc306
18 changed files with 472 additions and 1301 deletions

View File

@@ -88,6 +88,8 @@ const loading = ref(false)
const formRef = ref<FormInstance>()
const formData = reactive<MenuFormData>({
id: undefined,
projectId: undefined, // Add this
parentId: undefined,
name: '',
code: '',
@@ -121,7 +123,8 @@ watch(
// Reset to defaults
Object.assign(formData, {
id: undefined,
parentId: props.record?.parentId || 0, // Use record parentId if exists, else 0
projectId: props.record?.projectId, // Copy projectId
parentId: props.record?.parentId || 0,
name: '',
code: '',
type: 'menu',