From effbd81dd598750429c05e88f5fb6789bec1bc0f Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期三, 16 十月 2024 09:57:01 +0800
Subject: [PATCH] 1、项目名增加plat 2、增加数据和模型的swagger接口api 3、增加应用列表及应用切换功能,暂时放home页 4、其它相关修改

---
 src/views/model/mpk/menu/group/GroupForm.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/model/mpk/menu/group/GroupForm.vue b/src/views/model/mpk/menu/group/GroupForm.vue
index ab2e5b2..cdfc001 100644
--- a/src/views/model/mpk/menu/group/GroupForm.vue
+++ b/src/views/model/mpk/menu/group/GroupForm.vue
@@ -11,7 +11,7 @@
         <el-input v-model="formData.name" placeholder="请输入分组名称" />
       </el-form-item>
       <el-form-item label="排序" prop="sort">
-        <el-input v-model="formData.sort" placeholder="请输入排序" />
+        <el-input-number v-model="formData.sort" :min="0" clearable controls-position="right" />
       </el-form-item>
 
     </el-form>
@@ -35,6 +35,7 @@
 const formType = ref('') // 表单的类型:create - 新增;update - 修改
 const formData = ref({
   id: undefined,
+  menuId: '',
   name: '',
   sort: undefined
 })
@@ -44,11 +45,14 @@
 const formRef = ref() // 表单 Ref
 
 /** 打开弹窗 */
-const open = async (type: string, id?: number) => {
+const open = async (type: string, id?: string, menuId?: string) => {
   dialogVisible.value = true
   dialogTitle.value = t('action.' + type)
   formType.value = type
   resetForm()
+  if (menuId) {
+    formData.value.menuId = menuId
+  }
   // 修改时,设置数据
   if (id) {
     formLoading.value = true

--
Gitblit v1.9.3