-
name: {{ name }}
+
diff --git a/Web/src/views/dashboard/menuItem.vue b/Web/src/views/dashboard/menuItem.vue
new file mode 100644
index 0000000..3ec60b9
--- /dev/null
+++ b/Web/src/views/dashboard/menuItem.vue
@@ -0,0 +1,72 @@
+
+
+
{{props.item.meta.title}}
+
+ {{props.item.meta.title}}
+
+
+
+
+
+
+
+
+
diff --git a/Web/src/views/system/org/components/editDialog.vue b/Web/src/views/system/org/components/editDialog.vue
index ff2cab4..a3036a8 100644
--- a/Web/src/views/system/org/components/editDialog.vue
+++ b/Web/src/views/system/org/components/editDialog.vue
@@ -13,7 +13,7 @@
-
+
@@ -108,6 +108,7 @@ const state = reactive({
})
const elFormRef = ref()
const userSelectRef = ref()
+const parentIdRef = ref()
const rules = {
orgName: [{ required: true, message: '请输入机构名称!', trigger: 'blur' }],
@@ -125,6 +126,7 @@ function openDialog(id) {
state.parentIds = [res.data.parentId]
}
userSelectRef.value?.setDefaultValue(res.data.principalUserId)
+ parentIdRef.value?.setDefaultValue(res.data.parentId)
})
.finally(() => (state.loading = false))
} else {
@@ -158,7 +160,7 @@ function submit() {
elFormRef.value.validate((valid) => {
if (valid) {
state.loading = true
- state.form.parentId = state.parentIds && state.parentIds.length > 0 ? state.parentIds[0] : '0'
+ state.form.parentId = state.parentIds && state.parentIds.length > 0 ? state.parentIds[state.parentIds.length - 1] : '0'
if (state.form.id) {
updateOrg(state.form)
.then(() => {
diff --git a/Web/src/views/system/org/index.vue b/Web/src/views/system/org/index.vue
index 34a500e..ea3050e 100644
--- a/Web/src/views/system/org/index.vue
+++ b/Web/src/views/system/org/index.vue
@@ -2,12 +2,12 @@
-
-
+
+
查询
- orgEditDialogRef.openDialog()" v-auth="'orgIndex:add'">新增
+ {orgEditDialogRef.openDialog()}" v-auth="'orgIndex:add'">新增
@@ -42,6 +42,7 @@