From 308432acb7100555fdaccc0810e2de75013ef8db Mon Sep 17 00:00:00 2001 From: Lufaneng Date: Sun, 28 Sep 2025 09:16:01 +0800 Subject: [PATCH] 1 --- src/components.d.ts | 3 +- src/router/index.js | 6 ++ src/views/AuthManage/HandleDialog.vue | 11 +- src/views/AuthManage/index.vue | 6 ++ src/views/ComboManage/HandleDialog.vue | 109 ++++++++++++++++++++ src/views/ComboManage/index.vue | 136 +++++++++++++++++++++++++ src/views/ModelManage/HandleDialog.vue | 10 +- 7 files changed, 273 insertions(+), 8 deletions(-) create mode 100644 src/views/ComboManage/HandleDialog.vue create mode 100644 src/views/ComboManage/index.vue diff --git a/src/components.d.ts b/src/components.d.ts index 09b2a3f..48baaf7 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -22,8 +22,8 @@ declare module 'vue' { ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElHeader: typeof import('element-plus/es')['ElHeader'] - ElIcon: typeof import('element-plus/es')['ElIcon'] ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElMain: typeof import('element-plus/es')['ElMain'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] @@ -36,7 +36,6 @@ declare module 'vue' { ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTree: typeof import('element-plus/es')['ElTree'] - ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] MapSelector: typeof import('./components/MapSelector.vue')['default'] Pagination: typeof import('./components/Pagination/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/router/index.js b/src/router/index.js index 9cee89a..48563f2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,6 +50,12 @@ export const asyncRoutes = [ component: () => import('@/views/ModelManage/index.vue'), meta: { title: '模版管理', permissions: ['template'] }, }, + { + path: 'ComboManage', + name: 'ComboManage', + component: () => import('@/views/ComboManage/index.vue'), + meta: { title: '套餐管理', permissions: ['membership_plan'] }, + }, { path: 'NoPermission', name: 'NoPermission', diff --git a/src/views/AuthManage/HandleDialog.vue b/src/views/AuthManage/HandleDialog.vue index 085dea9..446a15b 100644 --- a/src/views/AuthManage/HandleDialog.vue +++ b/src/views/AuthManage/HandleDialog.vue @@ -24,7 +24,7 @@ onMounted(() => { }) const formRef = ref(null) -const formField = ref({}) +const formField = ref({ is_show: 1 }) const formRules = reactive({ name: [{ required: true, message: '不可为空', trigger: 'change' }], code: [{ required: true, message: '不可为空', trigger: 'change' }], @@ -108,6 +108,15 @@ if (!isAdd.value) { + + + + + + - + + - +