From f0028ceb4888ba53844714ebcc7c1b0a61eaec98 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期三, 06 十一月 2024 14:10:49 +0800 Subject: [PATCH] 将摄像头模块名dev修改为video --- 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