From 23c8b8154fcf7c9251d07f028f3e14737ba4cecd Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期二, 31 十二月 2024 19:04:35 +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