From b4576d432f9020c6b638ae933f3fa9114bd92d03 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 20 一月 2025 18:01:46 +0800 Subject: [PATCH] 预警配置 --- 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